Introduce target/target.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
721ec300
GB
12014-09-11 Tom Tromey <tromey@redhat.com>
2 Gary Benson <gbenson@redhat.com>
3
4 * target/target.h: New file.
5 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
6 * target.h: Include target/target.h.
7 (target_read_memory, target_write_memory): Don't declare.
8 * target.c (target_read_uint32): New function.
9 * common/agent.c: Include target/target.h.
10 [!GDBSERVER]: Don't include target.h.
11 (helper_thread_id): Type changed to uint32_t.
12 (agent_get_helper_thread_id): Use target_read_uint32.
13 (agent_run_command): Always use target_read_memory and
14 target_write_memory.
15 (agent_capability): Type changed to uint32_t.
16 (agent_capability_check): Use target_read_uint32.
17
c5e92cca
GB
182014-09-11 Gary Benson <gbenson@redhat.com>
19
20 * common/common-debug.h (show_debug_regs): Declare.
21 * common/common-debug.c (show_debug_regs): Define.
22 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
23 all uses with show_debug_regs. Replace all uses that considered
24 debug_hw_points as a multi-value integer with straight boolean
25 uses.
26 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
27 with show_debug_regs.
28 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
29 all uses with show_debug_regs.
30 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
31 uses with show_debug_regs.
32
eeef931a
UW
332014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
34
35 * findvar.c (address_from_register): Handle targets requiring
36 a special conversion routine even for plain pointer types.
37
8efa9855
UW
382014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
39
40 * rs6000-nat.c (exec_one_dummy_insn): Remove.
41 (store_register): Do not call exec_one_dummy_insn.
42
eb479039
JB
432014-09-10 Joel Brobecker <brobecker@adacore.com>
44
45 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
46 dereference it first. Use value_enclosing_type instead of
47 value_type.
48 (ada_array_length): Likewise.
49
deede10c
JB
502014-09-10 Joel Brobecker <brobecker@adacore.com>
51
52 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
53 Adjust function implementation and documentation accordingly.
54 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
55 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
56 Update call to ada_value_ptr_subscript.
57
7828a5f5
JB
582014-09-10 Joel Brobecker <brobecker@adacore.com>
59
60 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
61 instead of VAL's type.
62
35782f14
JB
632014-09-10 Joel Brobecker <brobecker@adacore.com>
64
65 * amd64-linux-nat.c: Add <sys/uio.h> #include.
66
d342a0da
DE
672014-09-09 Doug Evans <xdje42@gmail.com>
68
69 PR guile/17367
70 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
71 last parameter to pkg-config, not first.
72 * configure.ac: Pass --with-guile provided pkg-config path to
73 GDB_GUILE_PROGRAM_NAMES.
74 * configure: Regenerate.
75
b4a3d263
GKB
762014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
77
78 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
79 Bertazi".
80
6e466374
MR
812014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
82
83 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
84 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
85 the list of sections determining GDB_OSABI_IRIX.
86
a1ada89a
JH
872014-09-09 James Hogan <james.hogan@imgtec.com>
88
89 * MAINTAINERS (Write After Approval): Add "James Hogan".
90
86db008d
JH
912014-09-09 James Hogan <james.hogan@imgtec.com>
92
93 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
94
72fde3df
JB
952014-09-09 Joel Brobecker <brobecker@adacore.com>
96
97 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
98
92d8d229
DE
992014-09-08 Doug Evans <xdje42@gmail.com>
100
101 PR 17247
102 * guile.c: #include <signal.h>.
103 (_initialize_guile): Block SIGCHLD while initializing Guile.
104
105 Replaces the following, which is reverted.
106
107 2014-07-26 Doug Evans <xdje42@gmail.com>
108
109 PR 17185
110 * configure.ac: Add check for header gc/gc.h.
111 Add check for function setenv.
112 * configure: Regenerate.
113 * config.in: Regenerate.
114 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
115
d81412aa
DE
1162014-09-08 Doug Evans <xdje42@gmail.com>
117
118 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
119 with named constant. Fix style of pointer comparison.
120 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
121
a9f116cb
GKB
1222014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
123
124 PR gdb/17035
125 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
126 decide whether we display the command on "show user".
127 * cli/cli-script.c (show_user_1): Only verify cmdlines after
128 printing command name.
129 * cli/cli-decode.h (cli_user_command_p): Declare new function.
130 * cli/cli-decode.c (cli_user_command_p): Create helper function
131 to verify whether cmd_list_element is a user-defined command.
132
c75bd3a2
JK
1332014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
134
135 PR python/17355
136 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
137 Fix goto out of TRY_CATCH.
138
faa42425 1392014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 140 Tom Tromey <tromey@redhat.com>
faa42425
DE
141
142 PR 15276
143 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
144 $_any_caller_matches.
145 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
146 * python/lib/gdb/function/caller_is.py: New file.
147
0d41ba00
DE
1482014-09-06 Doug Evans <xdje42@gmail.com>
149
150 * infcmd.c (program_info): Fix typo.
151
474ca4f6
SDJ
1522014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
153
154 PR gdb/17235
155 * stap-probe.c (stap_parse_single_operand): Delete unused variable
156 'number'. New variable 'has_digit'. Rewrite code to deal with
157 subexpressions on SDT probes.
158
ebf13736
PA
1592014-09-04 Pedro Alves <palves@redhat.com>
160
161 * c-exp.y (parse_number): Skip handling base-switching prefixes if
162 the input is only one character long.
163
eb0b0463
SDJ
1642014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
165
166 PR fortran/17237
167 * f-valprint.c (f_val_print): Specify the correct print option to
168 use when printing integer values.
169
5ee44bfa
GB
1702014-09-04 Gary Benson <gbenson@redhat.com>
171
172 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
173 Remove code to cope with LWPs wrapped as PIDs.
174 Add assertions to ensure no wrapped LWPs are passed.
175
4875ffdb
PA
1762014-09-04 Pedro Alves <palves@redhat.com>
177
178 * value.c (value_ranges_copy_adjusted): New function, factored out
179 from ...
180 (value_contents_copy_raw): ... here.
181 (unpack_value_bits_as_long_1): Rename back to ...
182 (unpack_bits_as_long): ... this. Remove 'original_value' and
183 'result' parameters. Change return type to LONGEST.
184 (unpack_value_bits_as_long): Delete.
185 (unpack_value_field_as_long_1): Delete.
186 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
187 (unpack_value_bitfield): New function.
188 (value_field_bitfield): Reimplement using unpack_value_bitfield.
189 (value_fetch_lazy): Use unpack_value_bitfield.
190 * value.h (unpack_value_bits_as_long): Delete declaration.
191
5f3b99cf
SS
1922014-09-03 Sasha Smundak <asmundak@google.com>
193
194 * python/py-frame.c (frapy_read_register): New function.
195
ac740bc7
JH
1962014-09-03 James Hogan <james.hogan@imgtec.com>
197
198 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
199 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
200
7d793aa9
SDJ
2012014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
202
203 PR python/16699
204 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
205 function.
206 (add_cmd): Set "completer_handle_brkchars" to NULL.
207 * cli/cli-decode.h (struct cmd_list_element)
208 <completer_handle_brkchars>: New field.
209 * command.h (completer_ftype_void): New typedef.
210 (set_cmd_completer_handle_brkchars): New prototype.
211 * completer.c (set_gdb_completion_word_break_characters): New
212 function.
213 (complete_line_internal): Call "completer_handle_brkchars"
214 callback from command.
215 * completer.h: Include "command.h".
216 (set_gdb_completion_word_break_characters): New prototype.
217 * python/py-cmd.c (cmdpy_completer_helper): New function.
218 (cmdpy_completer_handle_brkchars): New function.
219 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
220 (cmdpy_init): Set completer_handle_brkchars to
221 cmdpy_completer_handle_brkchars.
222
97ea6506
GB
2232014-09-03 Gary Benson <gbenson@redhat.com>
224
225 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
226 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
227 Loop conditions changed to equivalent form.
228 (struct x86_debug_reg_state): Updated dr_ref_count comment.
229 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
230 ALL_DEBUG_ADDRESS_REGISTERS.
231
d1437815
JB
2322014-09-03 Joel Brobecker <brobecker@adacore.com>
233
234 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
235 description fix.
236
9b94fcf1
DE
2372014-09-02 Doug Evans <dje@google.com>
238
239 * typeprint.c (find_global_typedef): Fix comment.
240
df7e5265
GB
2412014-09-02 Gary Benson <gbenson@redhat.com>
242
243 * i386-nat.h: Renamed as...
244 * x86-nat.h: New file. All type, function and variable name
245 prefixes changed from "i386_" to "x86_". All references updated.
246 * i386-nat.c: Renamed as...
247 * x86-nat.c: New file. All type, function and variable name
248 prefixes changed from "i386_" to "x86_". All references updated.
249 * common/i386-xstate.h: Renamed as...
250 * common/x86-xstate.h: New file. All type, function and variable
251 name prefixes changed from "i386_" to "x86_". All references
252 updated.
253 * nat/i386-cpuid.h: Renamed as...
254 * nat/x86-cpuid.h: New file. All type, function and variable name
255 prefixes changed from "i386_" to "x86_". All references updated.
256 * nat/i386-gcc-cpuid.h: Renamed as...
257 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
258 name prefixes changed from "i386_" to "x86_". All references
259 updated.
260 * nat/i386-dregs.h: Renamed as...
261 * nat/x86-dregs.h: New file. All type, function and variable name
262 prefixes changed from "i386_" to "x86_". All references updated.
263 * nat/i386-dregs.c: Renamed as...
264 * nat/x86-dregs.c: New file. All type, function and variable name
265 prefixes changed from "i386_" to "x86_". All references updated.
266
1c3569d4
MR
2672014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
268
269 * varobj.c (_initialize_varobj): Move to the end of file.
270
ff55e1b5
GB
2712014-08-29 Gary Benson <gbenson@redhat.com>
272
273 * common/common-exceptions.h: New file.
274 * common/common-exceptions.c: Likewise.
275 * Makefile.in (SFILES): Add common/common-exceptions.c.
276 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
277 (COMMON_OBS): Add common-exceptions.o.
278 (common-exceptions.o): New rule.
279 * exceptions.h (common-exceptions.h): Include.
280 (gdb_setjmp.h): Do not include.
281 (return_reason): Moved to common-exceptions.h.
282 (enum return_reason): Likewise.
283 (RETURN_MASK): Likewise.
284 (typedef return_mask): Likewise.
285 (enum errors): Likewise.
286 (struct gdb_exception): Likewise.
287 (exceptions_state_mc_init): Likewise.
288 (exceptions_state_mc_action_iter): Likewise.
289 (exceptions_state_mc_action_iter_1): Likewise.
290 (TRY_CATCH): Likewise.
291 (throw_exception): Likewise.
292 (throw_verror): Likewise.
293 (throw_vquit): Likewise.
294 (throw_error): Likewise.
295 (throw_quit): Likewise.
296 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
297 (enum catcher_action): Likewise.
298 (struct catcher): Likewise.
299 (current_catcher): Likewise.
300 (catcher_list_size): Likewise.
301 (exceptions_state_mc_init): Likewise.
302 (catcher_pop): Likewise.
303 (exceptions_state_mc): Likewise.
304 (exceptions_state_mc_action_iter): Likewise.
305 (exceptions_state_mc_action_iter_1): Likewise.
306 (throw_exception): Likewise.
307 (exception_messages): Likewise.
308 (exception_messages_size): Likewise.
309 (throw_it): Likewise.
310 (throw_verror): Likewise.
311 (throw_vquit): Likewise.
312 (throw_error): Likewise.
313 (throw_quit): Likewise.
314 (prepare_to_throw_exception): New function.
315
e9bcb658
GB
3162014-08-29 Gary Benson <gbenson@redhat.com>
317
318 * common/gdb_setjmp.h: New file.
319 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
320 * configure.ac: Move sigsetjmp check...
321 * common/common.m4: ...here.
322 * configure: Regenerate.
323 * cp-support.c (SIGJMP_BUF): Delete.
324 (SIGSETJMP): Likewise.
325 (SIGLONGJMP): Likewise.
326 * exceptions.h (gdb_setjmp.h): Include.
327 (setjmp.h): Do not include.
328 (EXCEPTIONS_SIGJMP_BUF): Delete.
329 (EXCEPTIONS_SIGSETJMP): Likewise.
330 (EXCEPTIONS_SIGLONGJMP): Likewise.
331 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
332 from gdb_setjmp.h.
333 * exceptions.c: Likewise.
334
e3180625
GB
3352014-08-29 Gary Benson <gbenson@redhat.com>
336
337 * cleanups.h: Moved to...
338 * common/cleanups.h: New file.
339 * cleanups.c: Moved to...
340 * common/cleanups.c: New file. Include common-defs.h and
341 cleanups.h. Do not include defs.h.
342 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
343 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
344 (cleanups.o): New rule.
345
e3d6ba5d
GB
3462014-08-29 Gary Benson <gbenson@redhat.com>
347
348 * common/errors.h (internal_warning): New declaration.
349 (internal_vwarning): Likewise.
350 * common/errors.c (internal_warning): New function.
351 * utils.h (internal_warning): Don't declare.
352 (internal_vwarning): Likewise.
353 * utils.c (internal_warning): Removed.
354
075c7033
GB
3552014-08-29 Gary Benson <gbenson@redhat.com>
356
357 * main.c (captured_main): Use warning during startup.
358 Prefix startup warning messages with command name.
359
91b35fd0
GB
3602014-08-29 Gary Benson <gbenson@redhat.com>
361
362 * main.c (captured_main): Handle usage errors with error.
363
b1ec390e
GB
3642014-08-29 Gary Benson <gbenson@redhat.com>
365
366 * go32-nat.c (go32_create_inferior): Replace a fprintf/
367 exit pair with a call to error. Wrap the message with _().
368
fd0ef3dd
GB
3692014-08-29 Gary Benson <gbenson@redhat.com>
370
371 * main.c (captured_main): Replace a fprintf/exit
372 pair with a call to error. Wrap the message with _().
373
e0e6bcab
GB
3742014-08-29 Gary Benson <gbenson@redhat.com>
375
376 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
377 pairs with calls to error. Wrap the message with _().
378
0d2f5c07
GB
3792014-08-29 Gary Benson <gbenson@redhat.com>
380
381 * utils.c (vwarning): Protect calls to target_terminal_ours
382 and wrap_here.
383
5df43998
GB
3842014-08-29 Gary Benson <gbenson@redhat.com>
385
386 * exceptions.c (print_flush): Protect calls to
387 target_terminal_ours and wrap_here.
388
2437fd32
GB
3892014-08-29 Gary Benson <gbenson@redhat.com>
390
391 * utils.h (filtered_printing_initialized): New declaration.
392 * utils.c (abort_with_message): New function.
393 (internal_vproblem): Use abort_with_message for first level
394 recursive internal problems, and if gdb_stderr is not set up.
395 Protect calls to target_terminal_ours, begin_line and query.
396
f1f58506
DE
3972014-08-28 Doug Evans <dje@google.com>
398
399 * symtab.c (in_prologue): Move definition to better spot.
400 (skip_prologue_using_sal): Ditto.
401
aab2f208
DE
4022014-08-28 Doug Evans <dje@google.com>
403
404 * symtab.c (find_function_start_sal): Move definition to better spot.
405
6b65d1b6
YQ
4062014-08-28 Yao Qi <yao@codesourcery.com>
407
408 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
409 found_stack_adjust in forward scan. Remove condition check
410 on found_stack_adjust which is always true. Indent the code.
411
a1b34d15
YQ
4122014-08-28 Yao Qi <yao@codesourcery.com>
413
414 * dwarf2read.c (dwarf_decode_lines): Update declaration.
415 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
416 (dwarf_decode_lines): Remove argument
417 want_line_info. Remove condition check on want_line_info.
418 Callers update.
419
d5962de5
DE
4202014-08-27 Doug Evans <dje@google.com>
421
422 * dwarf2read.c (dwarf_record_line): Fix typo.
423
9b139002
SDJ
4242014-08-27 Patrick Palka <patrick@parcs.ath.cx>
425
426 * target.h (struct target_ops::to_terminal_save_ours): Remove
427 declaration.
428 (target_terminal_save_ours): Remove macro.
429 * target-delegates.c: Regenerate.
430 * inf-child.c (inf_child_target): Don't set the nonexistent
431 field to_terminal_save_ours.
432 * inferior.h (child_terminal_save_ours): Remove declaration.
433 * terminal.h (gdb_save_tty_state): New declaration.
434 * inflow.c (child_terminal_save_ours): Rename to ...
435 (gdb_save_tty_state): ... this.
436 * tui/tui.c: Include terminal.h.
437 (tui_enable): Use gdb_save_tty_state instead of
438 target_terminal_save_ours.
439 (tui_disable): Likewise.
440
9debeba0
DE
4412014-08-25 Doug Evans <dje@google.com>
442
443 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
444 Pass NULL instead of 0 for context pointer.
445
428fc5fc
YQ
4462014-08-25 Yao Qi <yao@codesourcery.com>
447
448 * dwarf2read.c: Fix grammatical error.
449
cdc07690
YQ
4502014-08-24 Yao Qi <yao@codesourcery.com>
451
452 * dwarf2read.c (scan_partial_symbols): Update comments.
453 Rename argument 'need_pc' with 'set_addrmap'.
454 (add_partial_namespace): Rename argument 'need_pc' with
455 'set_addrmap'.
456 (add_partial_module): Likewise.
457 (add_partial_subprogram): Likewise. Update comments.
458 (dwarf2_name): Fix typo.
459
a05a36a5
DE
4602014-08-22 Doug Evans <dje@google.com>
461
462 PR 17276
463 * dwarf2read.c (dwarf_record_line_p): New function.
464 (dwarf_decode_lines_1): Ignore subsequent line number entries
465 for the same line if any entry had a non-zero discriminator.
466
252a6764
DE
4672014-08-22 Doug Evans <dje@google.com>
468
469 * buildsym.h (record_line_ftype): New typedef.
470 (record_line): Use it.
471 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
472 (dwarf_decode_lines_1): Call them.
473
510db052
YQ
4742014-08-22 Yao Qi <yao@codesourcery.com>
475
476 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
477 (ctf_end): Remove code.
478
22fd09ae
JK
4792014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
480
481 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
482 (linux_make_corefile_notes): call update_thread_list, protected against
483 exceptions.
484
656e8868
PA
4852014-08-21 Pedro Alves <palves@redhat.com>
486
487 * infcmd.c (attach_command): Remove comment.
488
de589d04
WN
4892014-08-21 Bin Cheng <bin.cheng@arm.com>
490
491 * aarch64-linux-nat.c (dr_changed_t): Change the type from
492 unsigned LONGEST to ULONGEST.
493
2a31c623
PA
4942014-08-20 Pedro Alves <palves@redhat.com>
495
496 * Makefile.in (check-read1): New rule.
497
d36430db
JB
4982014-08-20 Joel Brobecker <brobecker@adacore.com>
499
500 * value.c (value_from_contents_and_address): Strip resolved_type's
501 typedef layers before checking its TYPE_DATA_LOCATION.
502
000339af
PA
5032014-08-20 Pedro Alves <palves@redhat.com>
504
505 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
506
5f52445b
YQ
5072014-08-20 Yao Qi <yao@codesourcery.com>
508
509 * amd64-tdep.c (amd64_classify): Add a blank line after the
510 example. Move "*/" to a new line.
511 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
512 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
513 * dwarf2read.c (psymtab_include_file_name): Likewise.
514
9a0dc9e3
PA
5152014-08-19 Andrew Burgess <aburgess@broadcom.com>
516 Pedro Alves <palves@redhat.com>
517
518 PR symtab/14604
519 PR symtab/14605
520 * ada-lang.c (coerce_unspec_val_to_type): Use
521 value_contents_copy_raw.
522 * ada-valprint.c (val_print_packed_array_elements): Adjust.
523 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
524 * cp-valprint.c (cp_print_value_fields): Let the common printing
525 code handle optimized out values.
526 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
527 * d-valprint.c (dynamic_array_type): Use
528 value_bits_any_optimized_out.
529 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
530 check_any_valid fields.
531 (check_pieced_value_bits): Delete and inline ...
532 (check_pieced_synthetic_pointer): ... here.
533 (check_pieced_value_validity): Delete.
534 (check_pieced_value_invalid): Delete.
535 (pieced_value_funcs): Remove check_validity and check_any_valid
536 fields.
537 (read_pieced_value): Use mark_value_bits_optimized_out.
538 (write_pieced_value): Switch to use
539 mark_value_bytes_optimized_out.
540 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
541 of assuming the whole value is optimized out.
542 * findvar.c (read_frame_register_value): Remove special handling
543 of optimized out registers.
544 (value_from_register): Use mark_value_bytes_optimized_out.
545 * frame-unwind.c (frame_unwind_got_optimized): Use
546 mark_value_bytes_optimized_out.
547 * jv-valprint.c (java_value_print): Adjust.
548 (java_print_value_fields): Let the common printing code handle
549 optimized out values.
550 * mips-tdep.c (mips_print_register): Remove special handling of
551 optimized out registers.
552 * opencl-lang.c (lval_func_check_validity): Delete.
553 (lval_func_check_any_valid): Delete.
554 (opencl_value_funcs): Remove check_validity and check_any_valid
555 fields.
556 * p-valprint.c (pascal_object_print_value_fields): Let the common
557 printing code handle optimized out values.
558 * stack.c (read_frame_arg): Remove special handling of optimized
559 out values. Fetch both VAL and ENTRYVAL before comparing
560 contents. Adjust to value_available_contents_eq rename.
561 * valprint.c (valprint_check_validity)
562 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
563 (val_print_array_elements): Adjust.
564 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
565 (value_bits_any_optimized_out): New function.
566 (value_entirely_covered_by_range_vector): New function, factored
567 out from value_entirely_unavailable.
568 (value_entirely_unavailable): Reimplement.
569 (value_entirely_optimized_out): New function.
570 (insert_into_bit_range_vector): New function, factored out from
571 mark_value_bits_unavailable.
572 (mark_value_bits_unavailable): Reimplement.
573 (struct ranges_and_idx): New struct.
574 (find_first_range_overlap_and_match): New function, factored out
575 from value_available_contents_bits_eq.
576 (value_available_contents_bits_eq): Rename to ...
577 (value_contents_bits_eq): ... this. Check both unavailable
578 contents and optimized out contents.
579 (value_available_contents_eq): Rename to ...
580 (value_contents_eq): ... this.
581 (allocate_value_lazy): Remove reference to the old optimized_out
582 boolean.
583 (allocate_optimized_out_value): Use
584 mark_value_bytes_optimized_out.
585 (require_not_optimized_out): Adjust to check whether the
586 optimized_out vec is empty.
587 (ranges_copy_adjusted): New function, factored out from
588 value_contents_copy_raw.
589 (value_contents_copy_raw): Also copy the optimized out ranges.
590 Assert the destination ranges aren't optimized out.
591 (value_contents_copy): Update comment, remove call to
592 require_not_optimized_out.
593 (value_contents_equal): Adjust to check whether the optimized_out
594 vec is empty.
595 (set_value_optimized_out, value_optimized_out_const): Delete.
596 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
597 New functions.
598 (value_entirely_optimized_out, value_bits_valid): Delete.
599 (value_copy): Take a VEC copy of the 'optimized_out' field.
600 (value_primitive_field): Remove special handling of optimized out.
601 (value_fetch_lazy): Assert that lazy values have no unavailable
602 regions. Use value_bits_any_optimized_out. Remove some special
603 handling for optimized out values.
604 * value.h: Add intro comment about <optimized out> and
605 <unavailable>.
606 (struct lval_funcs): Remove check_validity and check_any_valid
607 fields.
608 (set_value_optimized_out, value_optimized_out_const): Remove.
609 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
610 New declarations.
611 (value_bits_any_optimized_out): New declaration.
612 (value_bits_valid): Delete declaration.
613 (value_available_contents_eq): Rename to ...
614 (value_contents_eq): ... this, and extend comments.
615
6694c411
JK
6162014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
617
618 Fix -fsanitize=address on unreadable inferior strings.
619 * valprint.c (val_print_string): Fix access before BUFFER.
620
89a1c21a
SM
6212014-08-19 Simon Marchi <simon.marchi@ericsson.com>
622
623 * target.c (target_struct_size): Remove.
624 (target_struct_allocsize): Remove.
625 (DEFAULT_ALLOCSIZE): Remove.
626 (target_ops_p): New typedef.
627 (DEF_VEC_P (target_ops_p)): New vector type.
628 (target_structs): Change type to VEC (target_ops_p).
629 (add_target_with_completer): Replace "push" code by VEC_safe_push.
630 (find_default_run_target): Rewrite for loop following changes to
631 target_structs.
632
cb417230
JB
6332014-08-19 Joel Brobecker <brobecker@adacore.com>
634
635 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
636 Adjust code accordingly. Adjust function description comment.
637
817e0957
YQ
6382014-08-19 Yao Qi <yao@codesourcery.com>
639
640 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
641 types.
642
2974be62
AM
6432014-08-19 Alan Modra <amodra@gmail.com>
644
645 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
646 * config.in: Regenerate.
647 * configure: Regenerate.
648
34abf635
GB
6492014-08-19 Tom Tromey <tromey@redhat.com>
650 Gary Benson <gbenson@redhat.com>
651
652 * common/common-debug.h: New file.
653 * common/common-debug.c: Likewise.
654 * debug.c: Likewise.
655 * Makefile.in (SFILES): Add common/common-debug.c.
656 (HFILES_NO_SRCDIR): Add common/common-debug.h.
657 (COMMON_OBS): Add common-debug.o and debug.o.
658 (common-debug.o): New rule.
659 * common/common-defs.h: Include common-debug.h.
660 * common/agent.c (debug_agent_printf): New function.
661 (DEBUG_AGENT): Redefine.
662 * nat/i386-dregs.c (debug_printf): Undefine.
663
f6e94d78
GB
6642014-08-19 Gary Benson <gbenson@redhat.com>
665
666 * common/common-defs.h: Include print-utils.h.
667 * utils.h: Do not include print-utils.h.
668
9239eeab
GB
6692014-08-19 Tom Tromey <tromey@redhat.com>
670 Gary Benson <gbenson@redhat.com>
671
672 * common/common-types.h: New file.
673 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
674 * common/common-defs.h: Include common-types.h.
675 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
676 (ULONGEST): Remove.
677
ef87c8bb
GB
6782014-08-19 Tom Tromey <tromey@redhat.com>
679 Gary Benson <gbenson@redhat.com>
680
681 * common/errors.h: New file.
682 * common/errors.c: Likewise.
683 * Makefile.in (SFILES): Add common/errors.c.
684 (HFILES_NO_SRCDIR): Add common/errors.h.
685 (COMMON_OBS): Add errors.o.
686 (errors.o): New rule.
687 * common/common-defs.h: Include errors.h.
688 * utils.h (perror_with_name, error, verror, warning, vwarning):
689 Don't declare.
690 * common/common-utils.h: (malloc_failure, internal_error):
691 Likewise.
692
196a707b
GB
6932014-08-19 Gary Benson <gbenson@redhat.com>
694
695 * utils.c (internal_vproblem): Always print the message.
696
ded4fc8f
DE
6972014-08-18 Doug Evans <dje@google.com>
698
699 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
700
950c97d8
JB
7012014-08-18 Joel Brobecker <brobecker@adacore.com>
702
703 * ada-typeprint.c (type_is_full_subrange_of_target_type):
704 Return 0 if TYPE is dynamic.
705 (print_range): Add handling of dynamic ranges.
706
3cdcd0ce
JB
7072014-08-18 Keven Boell <keven.boell@intel.com>
708 Joel Brobecker <brobecker@adacore.com>
709
710 * gdbtypes.h (struct main_type): Add field "data_location".
711 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
712 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
713 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
714 a dynamic data location.
715 (resolve_dynamic_type): Add DW_AT_data_location handling.
716 (copy_recursive, copy_type): Copy the data_location information
717 when present.
718 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
719 * value.c (value_from_contents_and_address): Add
720 DW_AT_data_location handling.
721
08412b07
JB
7222014-08-18 Keven Boell <keven.boell@intel.com>
723 Joel Brobecker <brobecker@adacore.com>
724
725 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
726 field "get_object_address".
727 * dwarf2expr.c (execute_stack_op): Add handling for
728 DW_OP_push_object_address.
729 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
730 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
731 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
732 (dwarf_expr_get_obj_addr): New function.
733 (dwarf_expr_ctx_funcs): Add get_object_address field.
734 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
735 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
736 (dwarf2_evaluate_property): Add parameter "address". Use it.
737 (needs_get_obj_addr): New function.
738 (needs_frame_ctx_funcs): Add get_object_address field.
739 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
740 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
741 (resolve_dynamic_array): Likewise.
742
84754697
JB
7432014-08-18 Joel Brobecker <brobecker@adacore.com>
744
745 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
746 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
747 fixed value for records and unions for which some GNAT encodings
748 are present.
749
da5c522f
JB
7502014-08-18 Joel Brobecker <brobecker@adacore.com>
751
752 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
753 rewrite to avoid "else if" and "else" constructs. Should be
754 a no-op in practice.
755
0d72a7c3
JB
7562014-08-18 Joel Brobecker <brobecker@adacore.com>
757
758 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
759 of lexical block.
760
e66d4446
SC
7612014-08-15 Siva Chandra Reddy <sivachandra@google.com>
762
763 PR c++/17132
764 * eval.c: Update all calls to find_overload_match.
765 * valarith.c: Likewise.
766 (value_user_defined_cpp_op, value_user_defined_op): New
767 argument NOSIDE. Update all callers.
768 * valops.c (find_overload_match): New argument NOSIDE.
769 * value.h (find_overload_match): Update signature.
770
940df408
SC
7712014-08-15 Siva Chandra Reddy <sivachandra@google.com>
772
773 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
774 'items' methods instead of 'iteritems' method on dictionaries.
775
699ca60a
DE
7762014-08-15 Doug Evans <dje@google.com>
777
778 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
779 closer to use.
780
37780ee5
DE
7812014-08-15 Doug Evans <dje@google.com>
782
783 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
784
0ad93d4f
DE
7852014-08-15 Doug Evans <dje@google.com>
786
787 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
788
20d8c372
DE
7892014-08-15 Doug Evans <dje@google.com>
790
791 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
792 unused.
793
cb039ba4
EZ
7942014-08-15 Eli Zaretskii <eliz@gnu.org>
795
796 * dcache.h: Include target.h, to avoid compile time warnings.
797
eb7a547a
JB
7982014-08-15 Joel Brobecker <brobecker@adacore.com>
799
800 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
801 frame_info" partial declaration.
802 * gdbarch.h: Regenerate.
803
783cecc8
YQ
8042014-08-15 Yao Qi <yao@codesourcery.com>
805
806 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
807 Add parameter 'decode_for_pst_p'. Callers update.
808
65c749e7
YQ
8092014-08-13 Yao Qi <yao@codesourcery.com>
810
811 PR build/17104
812 * configure.ac: Use local variable 'pos'.
813 * configure: Regenerated.
814
d769e349
DE
8152014-08-11 Doug Evans <dje@google.com>
816
817 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
818 message, it is redundant with "Reading symbols from ..." message.
819
24f1235e
DE
8202014-08-10 Doug Evans <xdje42@gmail.com>
821
822 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
823
dcd2e6ef
YQ
8242014-08-09 Yao Qi <yao@codesourcery.com>
825
826 PR remote/9053
827 * remote.c (remote_xfer_partial): Remove dead code.
828
070bdf0b
AA
8292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
830
831 * ia64-linux-tdep.c: Include "regset.h".
832 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
833 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
834 (ia64_linux_supply_fpregset): New function.
835 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
836 (ia64_linux_regset_from_core_section): New function.
837 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
838 method.
839
08f9f542
AA
8402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
841
842 * m68klinux-tdep.c: Include "regset.h".
843 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
844 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
845 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
846 (m68k_linux_regset_from_core_section): New function.
847 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
848 method.
849
8f1cee41
AA
8502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
851
852 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
853 function. Move logic to...
854 (tilegx_linux_regmap): ... this new register map.
855 (tilegx_linux_regset): Refer to register map, replace supply
856 method by regcache_supply_regset, and add collect method.
857 * tilegx-tdep.h (enum tilegx_regnum): New enum value
858 TILEGX_FIRST_EASY_REGNUM.
859
c5741217
AA
8602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
861
862 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
863 that calls regcache_supply_regset and handles the EPC register
864 separately. Move main logic to...
865 (score7_linux_gregmap): ... this new register map.
866 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
867 (score7_linux_gregset): Refer to register map. Add collect method.
868 (score7_linux_regset_from_core_section): Replace
869 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
870 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
871 (struct regset): Delete unused forward declaraction.
872 (struct pt_regs): Delete structure definition.
873 (elf_gregset_t): Delete typedef.
874
81580573
AA
8752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
876
877 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
878 (nios2_core_regset): Add collect method.
879
ba199d7d
AA
8802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
881
882 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
883 platform-independent and don't write to read-only input buffer.
884 (m32r_linux_collect_gregset): New function.
885 (m32r_linux_gregset): Add collect method.
886
0006a9da
AA
8872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
888
889 * hppa-linux-tdep.c (greg_map): Rename to...
890 (hppa_linux_gregmap): ... this. Also convert to
891 regcache_map_entry format.
892 (hppa_linux_supply_regset): Delete function.
893 (hppa_linux_supply_fpregset): Delete function. Move logic to...
894 (hppa_linux_fpregmap): ... this new register map.
895 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
896 register map, replace supply method by regcache_supply_regset, and
897 add collect method regcache_collect_regset.
898
901e1b23
AA
8992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
900
901 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
902 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
903 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
904 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
905 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
906 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
907 (frv_linux_supply_gregset): Replace main logic by call to
908 regcache_supply_regset, but keep clearing gr32-gr63.
909 (frv_linux_supply_fpregset): Delete function.
910 (frv_linux_gregset): Refer to appropriate register map and add
911 regcache_collect_regset as the collect method.
912 (frv_linux_fpregset): Likewise. Also exchange the supply method
913 by regcache_supply_regset.
914
1d6e7555
AA
9152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
916
917 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
918 by call to alpha_supply_int_regs.
919 (alpha_linux_collect_gregset): New function.
920 (alpha_linux_supply_fpregset): Replace logic by call to
921 alpha_supply_fp_regs.
922 (alpha_linux_collect_fpregset): New function.
923 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
924
d4d793bf
AA
9252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
926
927 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
928 by call to regcache_collect_regset.
929 (supply_gregset, supply_fpregset): Call regcache_supply_regset
930 instead of aarch64_linux_supply_gregset/_fpregset.
931 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
932 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
933 header file instead.
934 (aarch64_linux_supply_gregset, supply_gregset_from_core)
935 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
936 functions. Move logic to ...
937 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
938 register maps.
939 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
940 refer to new register maps, replace *_regset_from_core by
941 regcache_supply_regset, and also use regcache_collect_regset.
942 * aarch64-linux-tdep.h: Include "regset.h".
943 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
944 Delete prototypes.
945 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
946 macros, moved from C source file.
947 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
948 variable declarations.
949
99b7da5d
AA
9502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
951
952 * s390-linux-nat.c: Include "regset.h".
953 (regmap_gregset): Delete macro.
954 (s390_64_regmap_gregset): New register map for
955 regcache_supply/_collect_regset.
956 (s390_64_gregset): New regset.
957 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
958 (regmap_fpregset): Delete macro.
959 (s390_native_supply, s390_native_collect): Delete functions.
960 (supply_gregset, fill_gregset): Replace s390-specific regmap
961 handling by a call to regcache_supply/_collect_regset.
962 (supply_fpregset, fill_fpregset): Call regcache_supply/
963 _collect_regset instead of s390_native_supply/_collect.
964 (fetch_regset, store_regset): Likewise. Also change the last
965 parameter to a regset instead of a regmap.
966 (s390_linux_fetch_inferior_registers)
967 (390_linux_store_inferior_registers): Adjust last parameter in
968 calls to fetch_regset and store_regset.
969 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
970 (s390_gregmap): ... this. Also make static const and convert to
971 regcache_map_entry format.
972 (s390x_regmap_gregset): Delete.
973 (s390_regmap_fpregset): Rename to...
974 (s390_fpregmap): ... this. Make static const and convert to
975 regcache_map_entry format.
976 (s390_regmap_upper, s390_regmap_last_break)
977 (s390x_regmap_last_break, s390_regmap_system_call)
978 (s390_regmap_tdb): Likewise.
979 (s390_supply_regset, s390_collect_regset): Remove functions.
980 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
981 s390_supply_regset.
982 (s390_gregset, s390_fpregset, s390_upper_regset)
983 (s390_last_break_regset, s390x_last_break_regset)
984 (s390_system_call_regset, s390_tdb_regset): Make global and
985 replace s390_supply/_collect_regset by regcache_supply/
986 _collect_regset.
987 (s390x_gregset): Delete.
988 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
989 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
990 (s390_regmap_fpregset, s390_regmap_last_break)
991 (s390x_regmap_last_break, s390_regmap_system_call)
992 (s390_regmap_tdb): Delete global variable declarations.
993 (s390_gregset, s390_fpregset, s390_last_break_regset)
994 (s390x_last_break_regset, s390_system_call_regset)
995 (s390_tdb_regset): New global variable declarations.
996
0b309272
AA
9972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
998
999 * regcache.c: Include "regset.h".
1000 (regcache_transfer_regset): New local function.
1001 (regcache_supply_regset, regcache_collect_regset): New functions.
1002 * regcache.h (struct regcache_map_entry): New structure.
1003 (REGCACHE_MAP_SKIP): New enum value.
1004 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1005
7fefa8d7
AA
10062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1007
1008 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1009 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1010 (ppc_linux_collect_gregset ): Likewise.
1011 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1012 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1013 (ppc_collect_vrregset): Likewise.
1014 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1015 Likewise.
1016
96c4f946
YQ
10172014-08-07 Yao Qi <yao@codesourcery.com>
1018
1019 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1020 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1021 * remote.c (remote_read_bytes): Likewise.
1022
fffbe6a8
YQ
10232014-08-07 Yao Qi <yao@codesourcery.com>
1024
1025 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1026
5ee8a82c
YQ
10272014-08-07 Yao Qi <yao@codesourcery.com>
1028
1029 PR remote/17230
1030 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1031 TARGET_XFER_OK instead of 0.
1032
bb974a24
GB
10332014-08-07 Gary Benson <gbenson@redhat.com>
1034
1035 * common/common-defs.h: Include errno.h.
1036 * defs.h: Do not include errno.h.
1037 * ada-typeprint.c: Likewise.
1038 * c-typeprint.c: Likewise.
1039 * core-regset.c: Likewise.
1040 * corefile.c: Likewise.
1041 * corelow.c: Likewise.
1042 * event-loop.c: Likewise.
1043 * f-typeprint.c: Likewise.
1044 * gnu-nat.c: Likewise.
1045 * go32-nat.c: Likewise.
1046 * i386gnu-nat.c: Likewise.
1047 * m2-typeprint.c: Likewise.
1048 * nat/linux-btrace.c: Likewise.
1049 * p-typeprint.c: Likewise.
1050 * procfs.c: Likewise.
1051 * remote-sim.c: Likewise.
1052 * rs6000-nat.c: Likewise.
1053 * target.c: Likewise.
1054 * typeprint.c: Likewise.
1055 * ui-file.c: Likewise.
1056 * valops.c: Likewise.
1057 * valprint.c: Likewise.
1058
6d3d12eb
GB
10592014-08-07 Gary Benson <gbenson@redhat.com>
1060
1061 * common/common-defs.h: Include string.h.
1062 * aarch64-tdep.c: Do not include string.h.
1063 * ada-exp.y: Likewise.
1064 * ada-lang.c: Likewise.
1065 * ada-lex.l: Likewise.
1066 * ada-typeprint.c: Likewise.
1067 * ada-valprint.c: Likewise.
1068 * aix-thread.c: Likewise.
1069 * alpha-linux-tdep.c: Likewise.
1070 * alpha-mdebug-tdep.c: Likewise.
1071 * alpha-nat.c: Likewise.
1072 * alpha-osf1-tdep.c: Likewise.
1073 * alpha-tdep.c: Likewise.
1074 * alphanbsd-tdep.c: Likewise.
1075 * amd64-dicos-tdep.c: Likewise.
1076 * amd64-linux-tdep.c: Likewise.
1077 * amd64-nat.c: Likewise.
1078 * amd64-sol2-tdep.c: Likewise.
1079 * amd64fbsd-tdep.c: Likewise.
1080 * amd64obsd-tdep.c: Likewise.
1081 * arch-utils.c: Likewise.
1082 * arm-linux-nat.c: Likewise.
1083 * arm-linux-tdep.c: Likewise.
1084 * arm-tdep.c: Likewise.
1085 * arm-wince-tdep.c: Likewise.
1086 * armbsd-tdep.c: Likewise.
1087 * armnbsd-nat.c: Likewise.
1088 * armnbsd-tdep.c: Likewise.
1089 * armobsd-tdep.c: Likewise.
1090 * avr-tdep.c: Likewise.
1091 * ax-gdb.c: Likewise.
1092 * ax-general.c: Likewise.
1093 * bcache.c: Likewise.
1094 * bfin-tdep.c: Likewise.
1095 * breakpoint.c: Likewise.
1096 * build-id.c: Likewise.
1097 * buildsym.c: Likewise.
1098 * c-exp.y: Likewise.
1099 * c-lang.c: Likewise.
1100 * c-typeprint.c: Likewise.
1101 * c-valprint.c: Likewise.
1102 * charset.c: Likewise.
1103 * cli-out.c: Likewise.
1104 * cli/cli-cmds.c: Likewise.
1105 * cli/cli-decode.c: Likewise.
1106 * cli/cli-dump.c: Likewise.
1107 * cli/cli-interp.c: Likewise.
1108 * cli/cli-logging.c: Likewise.
1109 * cli/cli-script.c: Likewise.
1110 * cli/cli-setshow.c: Likewise.
1111 * cli/cli-utils.c: Likewise.
1112 * coffread.c: Likewise.
1113 * common/agent.c: Likewise.
1114 * common/buffer.c: Likewise.
1115 * common/buffer.h: Likewise.
1116 * common/common-utils.c: Likewise.
1117 * common/filestuff.c: Likewise.
1118 * common/filestuff.c: Likewise.
1119 * common/format.c: Likewise.
1120 * common/print-utils.c: Likewise.
1121 * common/rsp-low.c: Likewise.
1122 * common/signals.c: Likewise.
1123 * common/vec.h: Likewise.
1124 * common/xml-utils.c: Likewise.
1125 * core-regset.c: Likewise.
1126 * corefile.c: Likewise.
1127 * corelow.c: Likewise.
1128 * cp-abi.c: Likewise.
1129 * cp-name-parser.y: Likewise.
1130 * cp-support.c: Likewise.
1131 * cp-valprint.c: Likewise.
1132 * cris-tdep.c: Likewise.
1133 * d-exp.y: Likewise.
1134 * darwin-nat.c: Likewise.
1135 * dbxread.c: Likewise.
1136 * dcache.c: Likewise.
1137 * demangle.c: Likewise.
1138 * dicos-tdep.c: Likewise.
1139 * disasm.c: Likewise.
1140 * doublest.c: Likewise.
1141 * dsrec.c: Likewise.
1142 * dummy-frame.c: Likewise.
1143 * dwarf2-frame.c: Likewise.
1144 * dwarf2loc.c: Likewise.
1145 * dwarf2read.c: Likewise.
1146 * elfread.c: Likewise.
1147 * environ.c: Likewise.
1148 * eval.c: Likewise.
1149 * event-loop.c: Likewise.
1150 * exceptions.c: Likewise.
1151 * exec.c: Likewise.
1152 * expprint.c: Likewise.
1153 * f-exp.y: Likewise.
1154 * f-lang.c: Likewise.
1155 * f-typeprint.c: Likewise.
1156 * f-valprint.c: Likewise.
1157 * fbsd-nat.c: Likewise.
1158 * findcmd.c: Likewise.
1159 * findvar.c: Likewise.
1160 * fork-child.c: Likewise.
1161 * frame.c: Likewise.
1162 * frv-linux-tdep.c: Likewise.
1163 * frv-tdep.c: Likewise.
1164 * gdb.c: Likewise.
1165 * gdb_bfd.c: Likewise.
1166 * gdbarch.c: Likewise.
1167 * gdbarch.sh: Likewise.
1168 * gdbtypes.c: Likewise.
1169 * gnu-nat.c: Likewise.
1170 * gnu-v2-abi.c: Likewise.
1171 * gnu-v3-abi.c: Likewise.
1172 * go-exp.y: Likewise.
1173 * go-lang.c: Likewise.
1174 * go32-nat.c: Likewise.
1175 * guile/guile.c: Likewise.
1176 * guile/scm-auto-load.c: Likewise.
1177 * hppa-hpux-tdep.c: Likewise.
1178 * hppa-linux-nat.c: Likewise.
1179 * hppanbsd-tdep.c: Likewise.
1180 * hppaobsd-tdep.c: Likewise.
1181 * i386-cygwin-tdep.c: Likewise.
1182 * i386-dicos-tdep.c: Likewise.
1183 * i386-linux-tdep.c: Likewise.
1184 * i386-nto-tdep.c: Likewise.
1185 * i386-sol2-tdep.c: Likewise.
1186 * i386-tdep.c: Likewise.
1187 * i386bsd-tdep.c: Likewise.
1188 * i386gnu-nat.c: Likewise.
1189 * i386nbsd-tdep.c: Likewise.
1190 * i386obsd-tdep.c: Likewise.
1191 * i387-tdep.c: Likewise.
1192 * ia64-libunwind-tdep.c: Likewise.
1193 * ia64-linux-nat.c: Likewise.
1194 * inf-child.c: Likewise.
1195 * inf-ptrace.c: Likewise.
1196 * inf-ttrace.c: Likewise.
1197 * infcall.c: Likewise.
1198 * infcmd.c: Likewise.
1199 * inflow.c: Likewise.
1200 * infrun.c: Likewise.
1201 * interps.c: Likewise.
1202 * iq2000-tdep.c: Likewise.
1203 * irix5-nat.c: Likewise.
1204 * jv-exp.y: Likewise.
1205 * jv-lang.c: Likewise.
1206 * jv-typeprint.c: Likewise.
1207 * jv-valprint.c: Likewise.
1208 * language.c: Likewise.
1209 * linux-fork.c: Likewise.
1210 * linux-nat.c: Likewise.
1211 * lm32-tdep.c: Likewise.
1212 * m2-exp.y: Likewise.
1213 * m2-typeprint.c: Likewise.
1214 * m32c-tdep.c: Likewise.
1215 * m32r-linux-nat.c: Likewise.
1216 * m32r-linux-tdep.c: Likewise.
1217 * m32r-rom.c: Likewise.
1218 * m32r-tdep.c: Likewise.
1219 * m68hc11-tdep.c: Likewise.
1220 * m68k-tdep.c: Likewise.
1221 * m68kbsd-tdep.c: Likewise.
1222 * m68klinux-nat.c: Likewise.
1223 * m68klinux-tdep.c: Likewise.
1224 * m88k-tdep.c: Likewise.
1225 * machoread.c: Likewise.
1226 * macrocmd.c: Likewise.
1227 * main.c: Likewise.
1228 * mdebugread.c: Likewise.
1229 * mem-break.c: Likewise.
1230 * memattr.c: Likewise.
1231 * memory-map.c: Likewise.
1232 * mep-tdep.c: Likewise.
1233 * mi/mi-cmd-break.c: Likewise.
1234 * mi/mi-cmd-disas.c: Likewise.
1235 * mi/mi-cmd-env.c: Likewise.
1236 * mi/mi-cmd-stack.c: Likewise.
1237 * mi/mi-cmd-var.c: Likewise.
1238 * mi/mi-cmds.c: Likewise.
1239 * mi/mi-console.c: Likewise.
1240 * mi/mi-getopt.c: Likewise.
1241 * mi/mi-interp.c: Likewise.
1242 * mi/mi-main.c: Likewise.
1243 * mi/mi-parse.c: Likewise.
1244 * microblaze-rom.c: Likewise.
1245 * microblaze-tdep.c: Likewise.
1246 * mingw-hdep.c: Likewise.
1247 * minidebug.c: Likewise.
1248 * minsyms.c: Likewise.
1249 * mips-irix-tdep.c: Likewise.
1250 * mips-linux-tdep.c: Likewise.
1251 * mips-tdep.c: Likewise.
1252 * mips64obsd-tdep.c: Likewise.
1253 * mipsnbsd-tdep.c: Likewise.
1254 * mipsread.c: Likewise.
1255 * mn10300-linux-tdep.c: Likewise.
1256 * mn10300-tdep.c: Likewise.
1257 * monitor.c: Likewise.
1258 * moxie-tdep.c: Likewise.
1259 * mt-tdep.c: Likewise.
1260 * nat/linux-btrace.c: Likewise.
1261 * nat/linux-osdata.c: Likewise.
1262 * nat/linux-procfs.c: Likewise.
1263 * nat/linux-ptrace.c: Likewise.
1264 * nat/linux-waitpid.c: Likewise.
1265 * nbsd-tdep.c: Likewise.
1266 * nios2-linux-tdep.c: Likewise.
1267 * nto-procfs.c: Likewise.
1268 * nto-tdep.c: Likewise.
1269 * objc-lang.c: Likewise.
1270 * objfiles.c: Likewise.
1271 * opencl-lang.c: Likewise.
1272 * osabi.c: Likewise.
1273 * osdata.c: Likewise.
1274 * p-exp.y: Likewise.
1275 * p-lang.c: Likewise.
1276 * p-typeprint.c: Likewise.
1277 * parse.c: Likewise.
1278 * posix-hdep.c: Likewise.
1279 * ppc-linux-nat.c: Likewise.
1280 * ppc-sysv-tdep.c: Likewise.
1281 * ppcfbsd-tdep.c: Likewise.
1282 * ppcnbsd-tdep.c: Likewise.
1283 * ppcobsd-tdep.c: Likewise.
1284 * printcmd.c: Likewise.
1285 * procfs.c: Likewise.
1286 * prologue-value.c: Likewise.
1287 * python/py-auto-load.c: Likewise.
1288 * python/py-gdb-readline.c: Likewise.
1289 * ravenscar-thread.c: Likewise.
1290 * regcache.c: Likewise.
1291 * registry.c: Likewise.
1292 * remote-fileio.c: Likewise.
1293 * remote-m32r-sdi.c: Likewise.
1294 * remote-mips.c: Likewise.
1295 * remote-notif.c: Likewise.
1296 * remote-sim.c: Likewise.
1297 * remote.c: Likewise.
1298 * reverse.c: Likewise.
1299 * rs6000-aix-tdep.c: Likewise.
1300 * ser-base.c: Likewise.
1301 * ser-go32.c: Likewise.
1302 * ser-mingw.c: Likewise.
1303 * ser-pipe.c: Likewise.
1304 * ser-tcp.c: Likewise.
1305 * ser-unix.c: Likewise.
1306 * serial.c: Likewise.
1307 * sh-tdep.c: Likewise.
1308 * sh64-tdep.c: Likewise.
1309 * shnbsd-tdep.c: Likewise.
1310 * skip.c: Likewise.
1311 * sol-thread.c: Likewise.
1312 * solib-dsbt.c: Likewise.
1313 * solib-frv.c: Likewise.
1314 * solib-osf.c: Likewise.
1315 * solib-som.c: Likewise.
1316 * solib-spu.c: Likewise.
1317 * solib-target.c: Likewise.
1318 * solib.c: Likewise.
1319 * somread.c: Likewise.
1320 * source.c: Likewise.
1321 * sparc-nat.c: Likewise.
1322 * sparc-sol2-tdep.c: Likewise.
1323 * sparc-tdep.c: Likewise.
1324 * sparc64-tdep.c: Likewise.
1325 * sparc64fbsd-tdep.c: Likewise.
1326 * sparc64nbsd-tdep.c: Likewise.
1327 * sparcnbsd-tdep.c: Likewise.
1328 * spu-linux-nat.c: Likewise.
1329 * spu-multiarch.c: Likewise.
1330 * spu-tdep.c: Likewise.
1331 * stabsread.c: Likewise.
1332 * stack.c: Likewise.
1333 * std-regs.c: Likewise.
1334 * symfile.c: Likewise.
1335 * symmisc.c: Likewise.
1336 * symtab.c: Likewise.
1337 * target.c: Likewise.
1338 * thread.c: Likewise.
1339 * tilegx-linux-nat.c: Likewise.
1340 * tilegx-tdep.c: Likewise.
1341 * top.c: Likewise.
1342 * tracepoint.c: Likewise.
1343 * tui/tui-command.c: Likewise.
1344 * tui/tui-data.c: Likewise.
1345 * tui/tui-disasm.c: Likewise.
1346 * tui/tui-file.c: Likewise.
1347 * tui/tui-layout.c: Likewise.
1348 * tui/tui-out.c: Likewise.
1349 * tui/tui-regs.c: Likewise.
1350 * tui/tui-source.c: Likewise.
1351 * tui/tui-stack.c: Likewise.
1352 * tui/tui-win.c: Likewise.
1353 * tui/tui-windata.c: Likewise.
1354 * tui/tui-winsource.c: Likewise.
1355 * typeprint.c: Likewise.
1356 * ui-file.c: Likewise.
1357 * ui-out.c: Likewise.
1358 * user-regs.c: Likewise.
1359 * utils.c: Likewise.
1360 * v850-tdep.c: Likewise.
1361 * valarith.c: Likewise.
1362 * valops.c: Likewise.
1363 * valprint.c: Likewise.
1364 * value.c: Likewise.
1365 * varobj.c: Likewise.
1366 * vax-tdep.c: Likewise.
1367 * vaxnbsd-tdep.c: Likewise.
1368 * vaxobsd-tdep.c: Likewise.
1369 * windows-nat.c: Likewise.
1370 * xcoffread.c: Likewise.
1371 * xml-support.c: Likewise.
1372 * xstormy16-tdep.c: Likewise.
1373 * xtensa-linux-nat.c: Likewise.
1374
dccbb609
GB
13752014-08-07 Gary Benson <gbenson@redhat.com>
1376
1377 * common/common-defs.h: Include gdb_assert.h.
1378 * aarch64-tdep.c: Do not include gdb_assert.h.
1379 * addrmap.c: Likewise.
1380 * aix-thread.c: Likewise.
1381 * alpha-linux-tdep.c: Likewise.
1382 * alpha-mdebug-tdep.c: Likewise.
1383 * alphanbsd-tdep.c: Likewise.
1384 * amd64-nat.c: Likewise.
1385 * amd64-tdep.c: Likewise.
1386 * amd64bsd-nat.c: Likewise.
1387 * amd64fbsd-nat.c: Likewise.
1388 * amd64fbsd-tdep.c: Likewise.
1389 * amd64nbsd-nat.c: Likewise.
1390 * amd64nbsd-tdep.c: Likewise.
1391 * amd64obsd-nat.c: Likewise.
1392 * amd64obsd-tdep.c: Likewise.
1393 * arch-utils.c: Likewise.
1394 * arm-tdep.c: Likewise.
1395 * armbsd-tdep.c: Likewise.
1396 * auxv.c: Likewise.
1397 * bcache.c: Likewise.
1398 * bfin-tdep.c: Likewise.
1399 * blockframe.c: Likewise.
1400 * breakpoint.c: Likewise.
1401 * bsd-kvm.c: Likewise.
1402 * bsd-uthread.c: Likewise.
1403 * buildsym.c: Likewise.
1404 * c-exp.y: Likewise.
1405 * c-lang.c: Likewise.
1406 * charset.c: Likewise.
1407 * cleanups.c: Likewise.
1408 * cli-out.c: Likewise.
1409 * cli/cli-decode.c: Likewise.
1410 * cli/cli-dump.c: Likewise.
1411 * cli/cli-logging.c: Likewise.
1412 * cli/cli-script.c: Likewise.
1413 * cli/cli-utils.c: Likewise.
1414 * coffread.c: Likewise.
1415 * common/common-utils.c: Likewise.
1416 * common/queue.h: Likewise.
1417 * common/signals.c: Likewise.
1418 * common/vec.h: Likewise.
1419 * complaints.c: Likewise.
1420 * completer.c: Likewise.
1421 * corelow.c: Likewise.
1422 * cp-abi.c: Likewise.
1423 * cp-name-parser.y: Likewise.
1424 * cp-namespace.c: Likewise.
1425 * cp-support.c: Likewise.
1426 * cris-tdep.c: Likewise.
1427 * dbxread.c: Likewise.
1428 * dictionary.c: Likewise.
1429 * doublest.c: Likewise.
1430 * dsrec.c: Likewise.
1431 * dummy-frame.c: Likewise.
1432 * dwarf2-frame-tailcall.c: Likewise.
1433 * dwarf2-frame.c: Likewise.
1434 * dwarf2expr.c: Likewise.
1435 * dwarf2loc.c: Likewise.
1436 * dwarf2read.c: Likewise.
1437 * eval.c: Likewise.
1438 * event-loop.c: Likewise.
1439 * exceptions.c: Likewise.
1440 * expprint.c: Likewise.
1441 * f-valprint.c: Likewise.
1442 * fbsd-nat.c: Likewise.
1443 * findvar.c: Likewise.
1444 * frame-unwind.c: Likewise.
1445 * frame.c: Likewise.
1446 * frv-tdep.c: Likewise.
1447 * gcore.c: Likewise.
1448 * gdb-dlfcn.c: Likewise.
1449 * gdb_bfd.c: Likewise.
1450 * gdbarch.c: Likewise.
1451 * gdbarch.sh: Likewise.
1452 * gdbtypes.c: Likewise.
1453 * gnu-nat.c: Likewise.
1454 * gnu-v3-abi.c: Likewise.
1455 * go-lang.c: Likewise.
1456 * guile/scm-exception.c: Likewise.
1457 * guile/scm-gsmob.c: Likewise.
1458 * guile/scm-lazy-string.c: Likewise.
1459 * guile/scm-math.c: Likewise.
1460 * guile/scm-pretty-print.c: Likewise.
1461 * guile/scm-safe-call.c: Likewise.
1462 * guile/scm-utils.c: Likewise.
1463 * guile/scm-value.c: Likewise.
1464 * h8300-tdep.c: Likewise.
1465 * hppa-hpux-nat.c: Likewise.
1466 * hppa-tdep.c: Likewise.
1467 * hppanbsd-tdep.c: Likewise.
1468 * hppaobsd-tdep.c: Likewise.
1469 * i386-darwin-nat.c: Likewise.
1470 * i386-darwin-tdep.c: Likewise.
1471 * i386-nto-tdep.c: Likewise.
1472 * i386-tdep.c: Likewise.
1473 * i386bsd-nat.c: Likewise.
1474 * i386fbsd-tdep.c: Likewise.
1475 * i386gnu-nat.c: Likewise.
1476 * i386nbsd-tdep.c: Likewise.
1477 * i386obsd-tdep.c: Likewise.
1478 * i387-tdep.c: Likewise.
1479 * ia64-libunwind-tdep.c: Likewise.
1480 * ia64-tdep.c: Likewise.
1481 * inf-ptrace.c: Likewise.
1482 * inf-ttrace.c: Likewise.
1483 * infcall.c: Likewise.
1484 * infcmd.c: Likewise.
1485 * infrun.c: Likewise.
1486 * inline-frame.c: Likewise.
1487 * interps.c: Likewise.
1488 * jv-lang.c: Likewise.
1489 * jv-typeprint.c: Likewise.
1490 * linux-fork.c: Likewise.
1491 * linux-nat.c: Likewise.
1492 * linux-thread-db.c: Likewise.
1493 * m32c-tdep.c: Likewise.
1494 * m32r-linux-nat.c: Likewise.
1495 * m32r-tdep.c: Likewise.
1496 * m68k-tdep.c: Likewise.
1497 * m68kbsd-nat.c: Likewise.
1498 * m68kbsd-tdep.c: Likewise.
1499 * m88k-tdep.c: Likewise.
1500 * machoread.c: Likewise.
1501 * macroexp.c: Likewise.
1502 * macrotab.c: Likewise.
1503 * maint.c: Likewise.
1504 * mdebugread.c: Likewise.
1505 * memory-map.c: Likewise.
1506 * mep-tdep.c: Likewise.
1507 * mi/mi-common.c: Likewise.
1508 * microblaze-tdep.c: Likewise.
1509 * mingw-hdep.c: Likewise.
1510 * mips-linux-nat.c: Likewise.
1511 * mips-linux-tdep.c: Likewise.
1512 * mips-tdep.c: Likewise.
1513 * mips64obsd-tdep.c: Likewise.
1514 * mipsnbsd-tdep.c: Likewise.
1515 * mn10300-linux-tdep.c: Likewise.
1516 * mn10300-tdep.c: Likewise.
1517 * moxie-tdep.c: Likewise.
1518 * mt-tdep.c: Likewise.
1519 * nat/linux-btrace.c: Likewise.
1520 * nat/linux-osdata.c: Likewise.
1521 * nat/linux-ptrace.c: Likewise.
1522 * nat/mips-linux-watch.c: Likewise.
1523 * nios2-linux-tdep.c: Likewise.
1524 * nios2-tdep.c: Likewise.
1525 * objc-lang.c: Likewise.
1526 * objfiles.c: Likewise.
1527 * obsd-nat.c: Likewise.
1528 * opencl-lang.c: Likewise.
1529 * osabi.c: Likewise.
1530 * parse.c: Likewise.
1531 * ppc-linux-nat.c: Likewise.
1532 * ppc-sysv-tdep.c: Likewise.
1533 * ppcfbsd-nat.c: Likewise.
1534 * ppcfbsd-tdep.c: Likewise.
1535 * ppcnbsd-nat.c: Likewise.
1536 * ppcnbsd-tdep.c: Likewise.
1537 * ppcobsd-nat.c: Likewise.
1538 * ppcobsd-tdep.c: Likewise.
1539 * printcmd.c: Likewise.
1540 * procfs.c: Likewise.
1541 * prologue-value.c: Likewise.
1542 * psymtab.c: Likewise.
1543 * python/py-lazy-string.c: Likewise.
1544 * python/py-value.c: Likewise.
1545 * regcache.c: Likewise.
1546 * reggroups.c: Likewise.
1547 * registry.c: Likewise.
1548 * remote-sim.c: Likewise.
1549 * remote.c: Likewise.
1550 * rs6000-aix-tdep.c: Likewise.
1551 * rs6000-tdep.c: Likewise.
1552 * s390-linux-tdep.c: Likewise.
1553 * score-tdep.c: Likewise.
1554 * ser-base.c: Likewise.
1555 * ser-mingw.c: Likewise.
1556 * sh-tdep.c: Likewise.
1557 * sh64-tdep.c: Likewise.
1558 * solib-darwin.c: Likewise.
1559 * solib-spu.c: Likewise.
1560 * solib-svr4.c: Likewise.
1561 * source.c: Likewise.
1562 * sparc-nat.c: Likewise.
1563 * sparc-sol2-tdep.c: Likewise.
1564 * sparc-tdep.c: Likewise.
1565 * sparc64-sol2-tdep.c: Likewise.
1566 * sparc64-tdep.c: Likewise.
1567 * sparc64fbsd-tdep.c: Likewise.
1568 * sparc64nbsd-tdep.c: Likewise.
1569 * sparc64obsd-tdep.c: Likewise.
1570 * sparcnbsd-tdep.c: Likewise.
1571 * sparcobsd-tdep.c: Likewise.
1572 * spu-multiarch.c: Likewise.
1573 * spu-tdep.c: Likewise.
1574 * stabsread.c: Likewise.
1575 * stack.c: Likewise.
1576 * symfile.c: Likewise.
1577 * symtab.c: Likewise.
1578 * target-descriptions.c: Likewise.
1579 * target-memory.c: Likewise.
1580 * target.c: Likewise.
1581 * tic6x-linux-tdep.c: Likewise.
1582 * tic6x-tdep.c: Likewise.
1583 * tilegx-linux-nat.c: Likewise.
1584 * tilegx-tdep.c: Likewise.
1585 * top.c: Likewise.
1586 * tramp-frame.c: Likewise.
1587 * tui/tui-out.c: Likewise.
1588 * tui/tui-winsource.c: Likewise.
1589 * ui-out.c: Likewise.
1590 * user-regs.c: Likewise.
1591 * utils.c: Likewise.
1592 * v850-tdep.c: Likewise.
1593 * valops.c: Likewise.
1594 * value.c: Likewise.
1595 * varobj.c: Likewise.
1596 * vax-nat.c: Likewise.
1597 * xml-syscall.c: Likewise.
1598 * xml-tdesc.c: Likewise.
1599 * xstormy16-tdep.c: Likewise.
1600 * xtensa-linux-nat.c: Likewise.
1601 * xtensa-tdep.c: Likewise.
1602
e76df0d0
GB
16032014-08-07 Gary Benson <gbenson@redhat.com>
1604
1605 * common/common-defs.h: Include common-utils.h.
1606 * defs.h: Do not include common-utils.h.
1607 * common/gdb_assert.h: Likewise.
1608 * darwin-nat.h: Likewise.
1609 * nat/linux-btrace.c: Likewise.
1610 * target/waitstatus.h: Likewise.
1611
4cb9c816
GB
16122014-08-07 Gary Benson <gbenson@redhat.com>
1613
1614 * common/common-defs.h: Include ptid.h.
1615 * defs.h: Do not include ptid.h.
1616 * inferior.h: Likewise.
1617 * infrun.h: Likewise.
1618 * nat/linux-btrace.h: Likewise.
1619 * nat/linux-osdata.h: Likewise.
1620 * target/waitstatus.h: Likewise.
1621
3995eeee
GB
16222014-08-07 Gary Benson <gbenson@redhat.com>
1623
1624 * common/common-defs.h: Include gdb_locale.h.
1625 * defs.h: Do not include gdb_locale.h.
1626
cb9f1a9b
GB
16272014-08-07 Gary Benson <gbenson@redhat.com>
1628
1629 * common/common-defs.h: Include gdb/signals.h.
1630 * defs.h: Do not include gdb/signals.h.
1631
a5fceff8
GB
16322014-08-07 Gary Benson <gbenson@redhat.com>
1633
1634 * common/common-defs.h: Include pathmax.h.
1635 * defs.h: Do not include pathmax.h.
1636
b9391142
GB
16372014-08-07 Gary Benson <gbenson@redhat.com>
1638
1639 * common/common-defs.h: Include libiberty.h.
1640 * defs.h: Do not include libiberty.h.
1641 * common/queue.h: Likewise.
1642 * cp-name-parser.y: Likewise.
1643 * mi/mi-cmd-catch.c: Likewise.
1644 * python/python.c: Likewise.
1645
0e443c87
GB
16462014-08-07 Gary Benson <gbenson@redhat.com>
1647
1648 * common/common-defs.h: Include ansidecl.h.
1649 * defs.h: Do not include ansidecl.h.
1650 * common/buffer.h: Likewise.
1651 * common/common-utils.h: Likewise.
1652
8ebb3f56
GB
16532014-08-07 Gary Benson <gbenson@redhat.com>
1654
1655 * common/common-defs.h: Include stddef.h.
1656 * defs.h: Do not include stddef.h.
1657 * common/common-utils.h: Likewise.
1658 * amd64fbsd-nat.c: Likewise.
1659 * bcache.c: Likewise.
1660 * charset.c: Likewise.
1661 * common/buffer.h: Likewise.
1662 * common/vec.h: Likewise.
1663 * i386bsd-nat.c: Likewise.
1664 * nat/linux-btrace.h: Likewise.
1665 * ppcfbsd-nat.c: Likewise.
1666 * ppcnbsd-tdep.h: Likewise.
1667 * ppcobsd-nat.c: Likewise.
1668 * ppcobsd-tdep.h: Likewise.
1669 * python/py-gdb-readline.c: Likewise.
1670
8980bdf6
GB
16712014-08-07 Gary Benson <gbenson@redhat.com>
1672
1673 * common/common-defs.h: Include stdarg.h.
1674 * defs.h: Do not include stdarg.h.
1675 * ada-lang.c: Likewise.
1676 * common/common-utils.h: Likewise.
1677 * guile/scm-string.c: Likewise.
1678 * guile/scm-utils.c: Likewise.
1679 * m32c-tdep.c: Likewise.
1680
d7096f71
GB
16812014-08-07 Gary Benson <gbenson@redhat.com>
1682
1683 * common/common-defs.h: Include stdlib.h.
1684 * defs.h: Do not include stdlib.h.
1685 * addrmap.c: Likewise.
1686 * bcache.c: Likewise.
1687 * common/buffer.c: Likewise.
1688 * common/common-utils.c: Likewise.
1689 * cp-name-parser.y: Likewise.
1690 * go32-nat.c: Likewise.
1691 * mn10300-linux-tdep.c: Likewise.
1692 * nat/linux-osdata.c: Likewise.
1693 * tui/tui.c: Likewise.
1694 * windows-nat.c: Likewise.
1695
d02f550d
GB
16962014-08-07 Gary Benson <gbenson@redhat.com>
1697
1698 * common/common-defs.h: Include stdio.h.
1699 * defs.h: Do not include stdio.h.
1700 * ada-lang.c: Likewise.
1701 * common/buffer.c: Likewise.
1702 * common/common-utils.c: Likewise.
1703 * cp-name-parser.y: Likewise.
1704 * gnu-nat.c: Likewise.
1705 * go32-nat.c: Likewise.
1706 * i386gnu-nat.c: Likewise.
1707 * proc-api.c: Likewise.
1708 * proc-events.c: Likewise.
1709 * proc-flags.c: Likewise.
1710 * proc-why.c: Likewise.
1711 * python/python-internal.h: Likewise.
1712 * target-memory.c: Likewise.
1713 * tui/tui-io.c: Likewise.
1714 * tui/tui.c: Likewise.
1715
b6d7a4bf
SM
17162014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1717
1718 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1719 (scan_dyntag_auxv): Same.
1720
af19829b
YQ
17212014-08-06 Yao Qi <yao@codesourcery.com>
1722
1723 * amd64-linux-nat.c: Remove duplicated include
1724 "x86-linux-nat.h".
1725 * i386-linux-nat.c: Likewise.
1726
8e07a239
YQ
17272014-08-06 Yao Qi <yao@codesourcery.com>
1728
1729 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1730 operand" with "Special opcode" in comments.
1731
7bfe8241
GB
17322014-08-05 Gary Benson <gbenson@redhat.com>
1733
1734 * interps.c (initialize_interps): Remove prototype.
1735 (interpreter_initialized): Remove static global.
1736 (interp_add): Do not call initialize_interps.
1737 (initialize_interps): Remove function.
1738
d6c95504
GB
17392014-08-05 Gary Benson <gbenson@redhat.com>
1740
1741 * utils.c (vwarning): Remove spurious va_end.
1742
241fd515
AM
17432014-08-05 Alan Modra <amodra@gmail.com>
1744
1745 * charset.c (convert_between_encodings): Cast result of obstack_base.
1746 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1747 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1748 (read_unwind_info): Use size_t for some locals.
1749 * jit.c (finalize_symtab): Likewise.
1750 * utils.c (hashtab_obstack_allocate): Likewise.
1751 * symmisc.c (print_objfile_statistics): Update format strings.
1752
dc304a94
JK
17532014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1754
1755 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1756 (Changes in GDB 7.8): ... here.
1757
3cecbbbe
TT
17582014-08-04 Tom Tromey <tromey@redhat.com>
1759
1760 * target.c (set_targetdebug): New function.
1761 (initialize_targets): Pass set_targetdebug when creating "set
1762 debug target".
1763
6908c509
JB
17642014-08-01 Joel Brobecker <brobecker@adacore.com>
1765
1766 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1767 if detecting a variable-sized field that is not the last field.
1768 Fix struct type length computation.
1769
53e8f97d
JB
17702014-08-01 Joel Brobecker <brobecker@adacore.com>
1771
1772 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1773 Add debug trace.
1774
e068c55d
JB
17752014-08-01 Joel Brobecker <brobecker@adacore.com>
1776
1777 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1778 Remove "+ 8" offset in computation of CHAIN_VMA.
1779
4d4ca2a1
DE
17802014-07-31 Doug Evans <dje@google.com>
1781
1782 * inflow.c (child_terminal_inferior): Add comment.
1783 (child_terminal_ours_for_output): Add comment.
1784 (child_terminal_ours): Add comment.
1785 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1786 (linux_nat_terminal_ours): Add comment.
1787
462f517e
GB
17882014-07-31 Gary Benson <gbenson@redhat.com>
1789
1790 * common/btrace-common.h: Do not include defs.h or server.h.
1791 * nat/mips-linux-watch.h: Likewise.
1792 * gdb-dlfcn.h: Do not include defs.h.
1793 * tracefile.h: Likewise.
1794
74228e77
RM
17952014-07-30 Roland McGrath <mcgrathr@google.com>
1796
1797 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1798
014f9477
TT
17992014-07-30 Tom Tromey <tromey@redhat.com>
1800
1801 * bsd-kvm.c (bsd_kvm_open): Constify.
1802 * corelow.c (core_open): Constify.
1803 * ctf.c (ctf_open): Constify.
1804 * dbug-rom.c (dbug_open): Constify.
1805 * exec.c (exec_open): Constify.
1806 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1807 * microblaze-rom.c (picobug_open): Constify.
1808 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1809 Constify.
1810 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1811 * record-btrace.c (record_btrace_open): Constify.
1812 * record-full.c (record_full_core_open_1, record_full_open_1)
1813 (record_full_open): Constify.
1814 * remote-m32r-sdi.c (m32r_open): Constify.
1815 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1816 (rockhopper_open, lsi_open): Constify.
1817 * remote-sim.c (gdbsim_open): Constify.
1818 * remote.c (remote_open, extended_remote_open, remote_open_1):
1819 Constify.
1820 * target.h (struct target_ops) <to_open>: Make "arg" const.
1821 * tracefile-tfile.c (tfile_open): Constify.
1822
e799154c
TT
18232014-07-30 Tom Tromey <tromey@redhat.com>
1824
1825 * breakpoint.c (map_breakpoint_numbers): Update.
1826 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1827 (get_number_const): New function.
1828 (get_number): Rewrite using get_number_const.
1829 (init_number_or_range): Make "string" const.
1830 (number_is_in_list): Make "list" const.
1831 * cli/cli-utils.h (get_number_const): Declare.
1832 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1833 (init_number_or_range, number_is_in_list): Update.
1834 * printcmd.c (map_display_numbers): Update.
1835 * value.c (value_from_history_ref): Constify.
1836 * value.h (value_from_history_ref): Update.
1837
5f08566b
TT
18382014-07-30 Tom Tromey <tromey@redhat.com>
1839
1840 * corefile.c (hook_type, call_extra_exec_file_hooks)
1841 (specify_exec_file_hook): Constify.
1842 * exec.c (exec_file_attach): Make "filename" const.
1843 * gdbcore.h (deprecated_exec_file_display_hook)
1844 (specify_exec_file_hook, exec_file_attach): Constify.
1845 * main.c (captured_main): Use catch_command_errors_const.
1846
8981c758
TT
18472014-07-30 Tom Tromey <tromey@redhat.com>
1848
1849 * target.c (open_target): New function.
1850 (add_target_with_completer, add_deprecated_target_alias): Use
1851 set_cmd_sfunc, set_cmd_context.
1852 (debug_to_open): Remove.
1853 (setup_target_debug): Update.
1854
a1c7835a
YQ
18552014-07-30 Yao Qi <yao@codesourcery.com>
1856
1857 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1858 comments.
1859 * parse.c (exp_iterate): Update comments.
1860
976411d6
GB
18612014-07-30 Gary Benson <gbenson@redhat.com>
1862
1863 * common/common-defs.h: New file.
1864 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1865 * defs.h: Include common-defs.h.
1866 Do not include config.h or build-gnulib/config.h.
1867
5d4848a4
GB
18682014-07-30 Gary Benson <gbenson@redhat.com>
1869
1870 * common/common-utils.h: Do not include config.h.
1871 * nat/linux-btrace.h: Likewise.
1872
d41f6d8e
GB
18732014-07-30 Gary Benson <gbenson@redhat.com>
1874
1875 * btrace.c: Include defs.h.
1876 * common/ptid.c: Include defs.h or server.h as appropriate.
1877 * nat/mips-linux-watch.c: Likewise.
1878
84202f9c
TT
18792014-07-29 Tom Tromey <tromey@redhat.com>
1880
1881 * target.c (target_is_pushed): Simplify.
1882
2530441c
JB
18832014-07-29 Joel Brobecker <brobecker@adacore.com>
1884
1885 GDB 7.8 released.
1886
7e09a223
YQ
18872014-07-29 Yao Qi <yao@codesourcery.com>
1888
1889 PR gdb/17206
1890 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1891
7ebdbe92
DE
18922014-07-28 Doug Evans <xdje42@gmail.com>
1893
1894 PR guile/17203
1895 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1896 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1897 parameters.
1898
f347ffc9
WN
18992014-07-28 Will Newton <will.newton@linaro.org>
1900
1901 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1902 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1903 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1904 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1905 (THUMB2_EABI_SYSCALL): Likewise.
1906 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1907 struct tramp_frame.
1908 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1909 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1910
37c5f1f7
DE
19112014-07-27 Doug Evans <xdje42@gmail.com>
1912
1913 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1914
0c3abbc7
DE
19152014-07-27 Doug Evans <xdje42@gmail.com>
1916
1917 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1918
e76c5d17
DE
19192014-07-26 Ludovic Courtès <ludo@gnu.org>
1920 Doug Evans <xdje42@gmail.com>
1921
1922 PR guile/17146
1923 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1924 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1925 * configure.ac: Try to use guild to compile an scm file, if it fails
1926 then disable guile support.
1927 * configure: Regenerate.
1928 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1929 GUILE_FILE_LIST.
1930 (GUILE_COMPILED_FILES): New variable.
1931 (GUILE_FILES) Update.
1932 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1933 (stamp-guile): Compile scm files.
1934 * guile/guile.c (boot_guile_support): New function.
1935 (standard_throw_args_p): New function.
1936 (print_standard_throw_error, print_throw_error): New functions.
1937 (handle_boot_error): New function.
1938 (initialize_scheme_side): Rewrite to call boot_guile_support.
1939 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1940 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1941
186fcde0
DE
19422014-07-26 Ludovic Courtès <ludo@gnu.org>
1943 Doug Evans <xdje42@gmail.com>
1944
1945 PR guile/17146
1946 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1947 * guile/lib/gdb/support.scm: New file.
1948 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1949 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1950 All uses updated.
1951 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1952 All uses updated.
1953 (%assert-type): Ditto, and renamed to assert-type.
1954 (%exception-print-style): Delete.
1955
4df42755
DE
19562014-07-26 Doug Evans <xdje42@gmail.com>
1957
1958 PR build/17105
1959 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1960 * configure: Regenerate.
1961 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1962 PYTHON_FILES.
1963 (PYTHON_FILES): New variable.
1964 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1965 (GUILE_FILES): New variable.
1966 (stamp-python, install-python, uninstall-python): Handle empty
1967 file list.
1968 (stamp-guile, install-guile, uninstall-guile): Ditto.
1969
ee7333ae
DE
19702014-07-26 Doug Evans <xdje42@gmail.com>
1971
1972 PR guile/17177
1973 * guile/lib/gdb.scm (pretty-printers): Export.
1974 (set-pretty-printers!): Export.
1975 * guile/lib/gdb/printing.scm (gdb module): Update.
1976 (prepend-pretty-printer!, append-pretty-printer!): Update.
1977 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1978 (pretty_printer_list_var): Delete.
1979 (pretty_printer_list): New static global.
1980 (gdbscm_pretty_printers): New function.
1981 (gdbscm_set_pretty_printers_x): New function.
1982 (ppscm_find_pretty_printer_from_gdb): Update.
1983 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1984 (gdbscm_initialize_pretty_printers): Update.
1985
74edf516
DE
19862014-07-26 Doug Evans <xdje42@gmail.com>
1987
1988 PR 17185
1989 * configure.ac: Add check for header gc/gc.h.
1990 Add check for function setenv.
1991 * configure: Regenerate.
1992 * config.in: Regenerate.
1993 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1994
d54398a7
MR
19952014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1996
1997 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1998 variation in gdbarch matching.
1999
ab16fce8
TT
20002014-07-25 Tom Tromey <tromey@redhat.com>
2001
2002 * exec.c (using_exec_ops): Remove.
2003 (exec_close_1): Update. Remove extraneous block, reindent.
2004 (add_target_sections): Use target_is_pushed.
2005
88056fbb
PA
20062014-07-25 Pedro Alves <palves@redhat.com>
2007
2008 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2009 * monitor.c (monitor_create_inferior): Likewise.
2010 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2011 * remote-sim.c (gdbsim_create_inferior): Likewise.
2012 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2013 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2014 * windows-nat.c (do_initial_windows_stuff): Likewise.
2015
70509625
PA
20162014-07-25 Pedro Alves <palves@redhat.com>
2017
2018 * NEWS: Mention signal passing and "signal" command changes.
2019 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2020 comment.
2021 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2022 call.
2023 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2024 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2025 (jump_command): Adjust clear_proceed_status call.
2026 (signal_command): Warn if other thread that are resumed have
2027 signals that will be delivered. Adjust clear_proceed_status call.
2028 (until_next_command, finish_command)
2029 (proceed_after_attach_callback, attach_command_post_wait)
2030 (attach_command): Adjust clear_proceed_status call.
2031 * infrun.c (proceed_after_vfork_done): Likewise.
2032 (proceed_after_attach_callback): Adjust comment.
2033 (clear_proceed_status_thread): Clear stop_signal if not in pass
2034 state.
2035 (clear_proceed_status_callback): Delete.
2036 (clear_proceed_status): New 'step' parameter. Only clear the
2037 proceed status of threads the command being prepared is about to
2038 resume.
2039 (proceed): If passed in an explicit signal, override stop_signal
2040 with it. Don't pass the last stop signal to the thread we're
2041 resuming.
2042 (init_wait_for_inferior): Adjust clear_proceed_status call.
2043 (switch_back_to_stepped_thread): Clear the signal if it should not
2044 be passed.
2045 * infrun.h (clear_proceed_status): New 'step' parameter.
2046 (user_visible_resume_ptid): Add comment.
2047 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2048 signal is in pass state.
2049 * remote.c (append_pending_thread_resumptions): Likewise.
2050 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2051
d8be2939
TT
20522014-07-25 Tom Tromey <tromey@redhat.com>
2053
2054 * target.h (target_stopped_data_address)
2055 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2056 parentheses.
2057
7d0d9d2b
PL
20582014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2059
2060 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2061 comments.
2062 (avr_pointer_to_address): Likewise.
2063
e9e7f724
TT
20642014-07-24 Tom Tromey <tromey@redhat.com>
2065
2066 * monitor.c (compile_pattern): Update.
2067 * target.h (struct target_ops) <to_shortname, to_longname,
2068 to_doc>: Now const.
2069
1947513d
TT
20702014-07-24 Tom Tromey <tromey@redhat.com>
2071
2072 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2073 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2074 (add_info_alias, add_com): Make "doc" const.
2075 (print_doc_line): Make "str" const.
2076 (delete_cmd): Update.
2077 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2078 (print_doc_line): Update.
2079 * cli/cli-script.c (document_command): Update.
2080 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2081 (add_com, add_info, add_info_alias): Update.
2082 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2083 * python/py-cmd.c (cmdpy_destroyer): Update.
2084
64e61d29
TT
20852014-07-24 Tom Tromey <tromey@redhat.com>
2086
2087 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2088 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2089 (help_cmd_list): Constify.
2090 (lookup_cmd): Update.
2091 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2092 const.
2093 (help_cmd_list, apropos_cmd): Update.
2094 * cli/cli-script.c (show_user): Update.
2095 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2096 * cli/cli-setshow.h (cmd_show_list): Update.
2097 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2098 (cmd_show_list): Update.
2099 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2100 * python/py-cmd.c (cmdpy_destroyer): Update.
2101
429e55ea
TT
21022014-07-24 Tom Tromey <tromey@redhat.com>
2103
2104 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2105 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2106 const.
2107 * command.h (deprecate_cmd): Update.
2108 * maint.c (maintenance_do_deprecate): Add casts.
2109
64669f3b
TT
21102014-07-24 Tom Tromey <tromey@redhat.com>
2111
2112 * cli/cli-decode.c (help_cmd): Make parameter "const".
2113 * cli/cli-decode.h (help_cmd): Update.
2114
d3d3328b
TT
21152014-07-24 Tom Tromey <tromey@redhat.com>
2116
2117 * stack.c (up_silently_base, down_silently_base): Make argument
2118 const.
2119
414842dc
TT
21202014-07-24 Tom Tromey <tromey@redhat.com>
2121
2122 * solib.c (solib_add): Make "pattern" const.
2123 * solib.h (solib_add): Update.
2124
baa336ce
TT
21252014-07-24 Tom Tromey <tromey@redhat.com>
2126
2127 * remote.c (remote_serial_open, print_packet, putpkt)
2128 (putpkt_binary): Constify.
2129 * remote.h (putpkt): Update.
2130
5a19e2d0
TT
21312014-07-24 Tom Tromey <tromey@redhat.com>
2132
2133 * monitor.c (monitor_open): Make "args" const.
2134 * monitor.h (monitor_open): Update.
2135
fc4baa5e
TT
21362014-07-24 Tom Tromey <tromey@redhat.com>
2137
2138 * maint.c (match_bfd_flags): Make "string" const.
2139 (print_bfd_section_info): Remove casts.
2140 (print_objfile_section_info): Make "string" const.
2141
0d5f0dbe
TT
21422014-07-24 Tom Tromey <tromey@redhat.com>
2143
2144 * inf-child.c (inf_child_open_target): Make "arg" const.
2145 * inf-child.h (inf_child_open_target): Update.
2146
41c77899
TT
21472014-07-24 Tom Tromey <tromey@redhat.com>
2148
2149 * environ.c (unset_in_environ): Make "var" const.
2150 * environ.h (unset_in_environ): Update.
2151
93db0d79
TT
21522014-07-24 Tom Tromey <tromey@redhat.com>
2153
2154 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2155 Make "cmd" const.
2156 (scan_filename_with_cleanup): Likewise.
2157 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2158 Make arguments const.
2159 (restore_command): Update.
2160
36d6eb95
PA
21612014-07-24 Pedro Alves <palves@redhat.com>
2162
2163 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2164
8009206a
TT
21652014-07-24 Tom Tromey <tromey@redhat.com>
2166 Gary Benson <gbenson@redhat.com>
2167
2168 * nat/linux-ptrace.c (additional_flags): New global.
2169 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2170 additional_flags; don't check GDBSERVER.
2171 (linux_ptrace_set_additional_flags): New function.
2172 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2173 Declare.
2174 * linux-nat.c (_initialize_linux_nat): Call
2175 linux_ptrace_set_additional_flags.
2176
a7068b60
TT
21772014-07-24 Tom Tromey <tromey@redhat.com>
2178
2179 * make-target-delegates (munge_type, write_debugmethod): New
2180 functions.
2181 (debug_names): New global.
2182 ($TARGET_DEBUG_PRINTER): New global.
2183 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2184 name.
2185 Write debug methods. Generate init_debug_target.
2186 * target-debug.h: New file.
2187 * target-delegates.c: Rebuild.
2188 * target.c: Include target-debug.h.
2189 (debug_target): Hoist definition.
2190 (target_kill, target_get_section_table, target_memory_map)
2191 (target_flash_erase, target_flash_done, target_detach)
2192 (target_disconnect, target_wait, target_resume)
2193 (target_pass_signals, target_program_signals, target_follow_fork)
2194 (target_mourn_inferior, target_search_memory)
2195 (target_thread_address_space, target_close)
2196 (target_find_new_threads, target_core_of_thread)
2197 (target_verify_memory, target_insert_mask_watchpoint)
2198 (target_remove_mask_watchpoint): Remove targetdebug code.
2199 (debug_to_post_attach, debug_to_prepare_to_store)
2200 (debug_to_files_info, debug_to_insert_breakpoint)
2201 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2202 (debug_to_region_ok_for_hw_watchpoint)
2203 (debug_to_can_accel_watchpoint_condition)
2204 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2205 (debug_to_watchpoint_addr_within_range)
2206 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2207 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2208 (debug_to_terminal_init, debug_to_terminal_inferior)
2209 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2210 (debug_to_terminal_save_ours, debug_to_terminal_info)
2211 (debug_to_load, debug_to_post_startup_inferior)
2212 (debug_to_insert_fork_catchpoint)
2213 (debug_to_remove_fork_catchpoint)
2214 (debug_to_insert_vfork_catchpoint)
2215 (debug_to_remove_vfork_catchpoint)
2216 (debug_to_insert_exec_catchpoint)
2217 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2218 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2219 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2220 (setup_target_debug): Call init_debug_target.
2221 * target.h (TARGET_DEBUG_PRINTER): New macro.
2222 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2223 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2224
2c51604d
GB
22252014-07-24 Gary Benson <gbenson@redhat.com>
2226
2227 * exceptions.h (throw_vfatal): Renamed to...
2228 (throw_vquit): New declaration.
2229 (throw_quit): Likewise.
2230 * exceptions.c (throw_vfatal): Renamed to...
2231 (throw_vquit): New function.
2232 (throw_quit): Likewise.
2233 (throw_error): Call throw_verror rather than throw_it.
2234 * utils.h (vfatal): Removed.
2235 (fatal): Likewise.
2236 * utils.c (vfatal): Removed.
2237 (fatal): Likewise.
2238 (internal_verror): Replaced call to fatal with call to throw_quit.
2239 (quit): Replaced calls to fatal with calls to throw_quit.
2240
34211963
ME
22412014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2242
2243 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2244 target_read_code.
2245
a52b4d3e
ME
22462014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2247
2248 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2249 less than zero in conditional expression.
2250
a8bdc56b
TT
22512014-07-23 Tom Tromey <tromey@redhat.com>
2252
2253 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2254 ($INTRO_PART): Don't match whitespace.
2255 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2256 argument matching.
2257 ($METHOD): Add $METHOD_TRAILER.
2258 (trim): Rewrite.
2259 (scan_target_h): New sub.
2260 Change main loop not to collect state.
2261 * target-delegates.c: Rebuild.
2262
91b52240
GB
22632014-07-23 Gary Benson <gbenson@redhat.com>
2264
2265 * cp-support.c (gdb_demangle): Fix build on systems without
2266 sigaltstack.
2267
45326f6f
JK
22682014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2269
2270 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2271 for reference entry value target data value.
2272
e214cf6c
JK
22732014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2274
2275 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2276 value_available_contents_eq.
2277
bddbbedd
PA
22782014-07-22 Pedro Alves <palves@redhat.com>
2279
2280 * value.c (allocate_optimized_out_value): Don't mark value as
2281 non-lazy.
2282
45c71484
JW
22832014-07-22 Jiong Wang <jiong.wang@arm.com>
2284
2285 * MAINTAINERS (Write After Approval): Update my email address.
2286
9597b22a
DE
22872014-07-20 Doug Evans <dje@google.com>
2288
2289 PR server/17147
2290 * remote.c (putpkt_binary): Add text to error message.
2291
91101fe5
YQ
22922014-07-20 Yao Qi <yao@codesourcery.com>
2293
2294 * eval.c: Remove "Chill" from comments.
2295 * gdbtypes.h: Likewise.
2296 * symtab.h: Likewise.
2297
c9402c95
YQ
22982014-07-20 Yao Qi <yao@codesourcery.com>
2299
2300 * std-operator.def: Update comments to TERNOP_SLICE.
2301
ae8fddda
YQ
23022014-07-20 Yao Qi <yao@codesourcery.com>
2303
2304 * std-operator.def: Remove BINOP_RANGE.
2305 * breakpoint.c (watchpoint_exp_is_const): Update.
2306 * expprint.c (dump_subexp_body_standard): Likewise.
2307 * eval.c (init_array_element): Remove dead code.
2308 (evaluate_subexp_standard): Likewise.
2309
9c816640
YQ
23102014-07-20 Yao Qi <yao@codesourcery.com>
2311
2312 * std-operator.def: Remove BINOP_IN.
2313 * breakpoint.c (watchpoint_exp_is_const): Update.
2314 * eval.c (evaluate_subexp_standard): Likewise.
2315 * expprint.c (dump_subexp_body_standard): Likewise.
2316
164224e9
ME
23172014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2318
2319 * microblaze-tdep.c (microblaze_register_names): Add
2320 the rshr and rslr register names.
2321 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2322 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2323 Use of tdesc_numbered_register. Use of
2324 microblaze_register_g_packet_guesses. Use of
2325 tdesc_use_registers. Use of set_gdbarch_register_type.
2326 (microblaze_register_g_packet_guesses): New.
2327 * microblaze-tdep.h (microblaze_reg_num): Add
2328 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2329 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2330 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2331 * features/microblaze-core.xml: New file.
2332 * features/microblaze-stack-protect.xml: New file.
2333 * features/microblaze-with-stack-protect.c: New file.
2334 * features/microblaze-with-stack-protect.xml: New file.
2335 * features/microblaze.xml: New file.
2336 * features/microblaze.c: New file.
2337 * features/Makefile (microblaze-with-stack-protect): Add
2338 microblaze-with-stack-protect microblaze and microblaze-expedite.
2339 * regformats/microblaze-with-stack-protect.dat: New file.
2340 * regformats/microblaze.dat: New file.
2341 * doc/gdb.texinfo (MicroBlaze Features): Added.
2342
e8b2341c
TT
23432014-07-18 Tom Tromey <tromey@redhat.com>
2344
2345 * exec.c (exec_ops): Now static.
2346 * exec.h (exec_ops): Don't declare.
2347
44e89118
TT
23482014-07-18 Tom Tromey <tromey@redhat.com>
2349
2350 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2351 to find_target_beneath.
2352 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2353 find_target_beneath.
2354 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2355
b0ed115f
TT
23562014-07-18 Tom Tromey <tromey@redhat.com>
2357
2358 PR gdb/17130:
2359 * utils.c (quit): Use target_supports_terminal_ours.
2360 * target.h (target_supports_terminal_ours): Declare.
2361 * target.c (target_supports_delete_record): Don't check
2362 to_delete_record against NULL.
2363 (target_supports_terminal_ours): New function.
2364
e75fdfca
TT
23652014-07-18 Tom Tromey <tromey@redhat.com>
2366
2367 PR gdb/17130:
2368 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2369 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2370 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2371 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2372 * windows-nat.c (windows_xfer_partial): Always delegate.
2373 * record-btrace.c (record_btrace_xfer_partial): Simplify
2374 delegation.
2375 (record_btrace_fetch_registers, record_btrace_store_registers)
2376 (record_btrace_prepare_to_store, record_btrace_resume)
2377 (record_btrace_wait, record_btrace_find_new_threads)
2378 (record_btrace_thread_alive): Likewise.
2379 * procfs.c (procfs_xfer_partial): Always delegate.
2380 * corelow.c (core_xfer_partial): Always delegate.
2381 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2382
83814951
TT
23832014-07-18 Tom Tromey <tromey@redhat.com>
2384
2385 * exec.c (exec_make_note_section): Move earlier.
2386
b8b8facf
DE
23872014-07-17 Doug Evans <dje@google.com>
2388
74b49205 2389 PR gdb/17170
b8b8facf
DE
2390 * maint.c (count_symtabs_and_blocks): Handle NULL
2391 current_program_space.
2392 (report_command_stats): Check global enabled flag in addition to
2393 recorded enabled flag.
2394 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2395
69ff6be5
PA
23962014-07-16 Pedro Alves <palves@redhat.com>
2397
2398 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2399
252db1b5
TT
24002014-07-16 Tom Tromey <tromey@redhat.com>
2401
2402 * target.h (struct target_ops) <to_delete_record>: Reformat
2403 comment.
2404
a432721e
TT
24052014-07-16 Tom Tromey <tromey@redhat.com>
2406
2407 * target-delegates.c: Rebuild.
2408
487d9753
PL
24092014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2410
2411 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2412 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2413 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2414 (avr_pointer_to_address): Likewise.
2415 (avr_address_class_type_flags): New function.
2416 (avr_address_class_type_flags_to_name): Likewise.
2417 (avr_address_class_name_to_type_flags): Likewise.
2418 (avr_gdbarch_init): Set address_class_type_flags,
2419 address_class_type_flags_to_name and
2420 address_class_name_to_type_flags.
2421
57745c90
PA
24222014-07-15 Pedro Alves <palves@redhat.com>
2423
2424 * linux-nat.c (kill_callback): Save errno and work with saved
2425 copy.
2426
2d40be18
SM
24272014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2428
2429 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2430
572f6555
EBM
24312014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2432
2433 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2434 breakpoint support correctly.
2435
cc1c52ad
PA
24362014-07-14 Pedro Alves <palves@redhat.com>
2437
2438 * utils.c (prompt_for_continue): Call target_terminal_ours.
2439
1e973570
PA
24402014-07-14 Pedro Alves <palves@redhat.com>
2441
2442 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2443 catch_errors. Don't re-enable stdin or notify observers where,
2444 and rethrow error.
2445 (fetch_inferior_event_wrapper): Delete.
2446
93d6eb10
PA
24472014-07-14 Pedro Alves <palves@redhat.com>
2448
2449 PR gdb/17072
2450 * top.c: Include "inf-loop.h".
2451 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2452 field.
2453 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2454 was async before.
2455 (gdb_readline_wrapper): Store whether the target is async, and
2456 make it sync.
2457
0017922d
PA
24582014-07-14 Pedro Alves <palves@redhat.com>
2459
2460 PR gdb/17072
2461 * top.c (gdb_readline_wrapper_line): Tweak comment.
2462 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2463 the input handler callback.
2464
94696ad3
PA
24652014-07-14 Pedro Alves <palves@redhat.com>
2466
2467 PR gdb/17072
2468 * main.c: Include event-top.h.
2469 (handle_command_errors): New function.
2470 (catch_command_errors, catch_command_errors_const): Use it.
2471
9d1e69a2
PA
24722014-07-14 Pedro Alves <palves@redhat.com>
2473
2474 * exceptions.c (catch_command_errors, catch_command_errors_const):
2475 Moved to main.c.
2476 * exceptions.h (catch_command_errors_ftype)
2477 (catch_command_errors_const_ftype): Moved to main.c.
2478 (catch_command_errors, catch_command_errors_const): Delete
2479 declarations.
2480 * main.c (catch_command_errors_ftype)
2481 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2482 (catch_command_errors, catch_command_errors_const)): Moved here
2483 from exceptions.c and make static.
2484
feefc97b
PA
24852014-07-14 Pedro Alves <palves@redhat.com>
2486
2487 * exceptions.c (print_any_exception): Delete.
2488 (catch_exceptions_with_msg): Use exception_print instead of
2489 print_any_exception.
2490 (catch_errors): Use exception_fprintf instead of
2491 print_any_exception.
2492 (catch_command_errors, catch_command_errors_const): Use
2493 exception_print instead of print_any_exception.
2494
c933f875
PA
24952014-07-14 Pedro Alves <palves@redhat.com>
2496
2497 * infcall.c (run_inferior_call): Set 'sync_execution' while
2498 running the inferior call.
2499
feb6f816
PA
25002014-07-14 Pedro Alves <palves@redhat.com>
2501
2502 * value.c (value_contents_equal): Delete function.
2503 * value.h (value_contents_equal): Delete declaration.
2504
d98b7a16
TT
25052014-07-14 Tom Tromey <tromey@redhat.com>
2506
2507 PR exp/17106:
2508 * gdbtypes.c (is_dynamic_type_internal): New function, from
2509 is_dynamic_type.
2510 (is_dynamic_type): Rewrite.
2511 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2512 (resolve_dynamic_struct): Likewise.
2513 (resolve_dynamic_type_internal): New function, from
2514 resolve_dynamic_type.
2515 (resolve_dynamic_type): Rewrite.
2516
548740d6
TT
25172014-07-14 Tom Tromey <tromey@redhat.com>
2518
2519 * target.c (target_require_runnable): Also check record_stratum.
2520 Update comment.
2521
808f7ab1
YQ
25222014-07-11 Yao Qi <yao@codesourcery.com>
2523
2524 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2525 thumb_instruction_restores_sp return true.
2526
540314bd
YQ
25272014-07-11 Yao Qi <yao@codesourcery.com>
2528
2529 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2530 (thumb_in_function_epilogue_p): Call
2531 thumb_instruction_restores_sp.
2532
1db01f22
YQ
25332014-07-11 Yao Qi <yao@codesourcery.com>
2534
2535 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2536 'add sp, #imm'.
2537 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2538
3116063b
GB
25392014-07-11 Gary Benson <gbenson@redhat.com>
2540
2541 * amd64-linux-nat.c (gdbcore.h): Remove include.
2542 (regset.h): Likewise.
2543 (nat/linux-btrace.h): Likewise.
2544 (btrace.h): Likewise.
2545 (gdb_assert.h): Likewise.
2546 (string.h): Likewise.
2547 (sys/uio.h): Likewise.
2548 (sys/debugreg.h): Likewise.
2549 (sys/syscall.h): Likewise.
2550 (sys/procfs.h): Likewise.
2551 (sys/user.h): Likewise.
2552 (asm/ptrace.h): Likewise.
2553 (i386-nat.h): Likewise.
2554 * i386-linux-nat.c (i386-nat.h): Likewise.
2555 (regset.h): Likewise.
2556 (target.h): Likewise.
2557 (linux-nat.h): Likewise.
2558 (nat/linux-btrace.h): Likewise.
2559 (btrace.h): Likewise.
2560 (gdb_assert.h): Likewise.
2561 (string.h): Likewise.
2562 (sys/uio.h): Likewise.
2563 (sys/user.h): Likewise.
2564 (sys/procfs.h): Likewise.
2565 (sys/reg.h): Likewise.
2566 (sys/debugreg.h): Likewise.
2567 (ORIG_EAX): Remove definition.
2568
040baaf6
GB
25692014-07-11 Gary Benson <gbenson@redhat.com>
2570
2571 * i386-linux-nat.h: New file.
2572 * x86-linux-nat.h: Likewise.
2573 * x86-linux-nat.c: Likewise.
2574 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2575 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2576 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2577 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2578 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2579 (PTRACE_SETREGSET): Likewise.
2580 (arch_lwp_info): Now in x86-linux-nat.c.
2581 (have_ptrace_getregset): Now in x86-linux-nat.h.
2582 (x86_linux_dr_get): Now in x86-linux-nat.c.
2583 (x86_linux_dr_set): Likewise.
2584 (x86_linux_dr_get_addr): Likewise.
2585 (x86_linux_dr_get_control): Likewise.
2586 (x86_linux_dr_get_status): Likewise.
2587 (update_debug_registers_callback): Likewise.
2588 (x86_linux_dr_set_control): Likewise.
2589 (x86_linux_dr_set_addr): Likewise.
2590 (x86_linux_prepare_to_resume): Likewise.
2591 (x86_linux_new_thread): Likewise.
2592 (x86_linux_new_fork): Likewise.
2593 (x86_linux_get_thread_area): Likewise.
2594 (super_post_startup_inferior): Likewise.
2595 (x86_linux_child_post_startup_inferior): Likewise.
2596 (AMD64_LINUX_USER64_CS): Likewise.
2597 (AMD64_LINUX_X32_DS): Likewise.
2598 (x86_linux_read_description): Likewise.
2599 (x86_linux_enable_btrace): Likewise.
2600 (x86_linux_disable_btrace): Likewise.
2601 (x86_linux_teardown_btrace): Likewise.
2602 (x86_linux_read_btrace): Likewise.
2603 (x86_linux_create_target): Likewise.
2604 (x86_linux_add_target): Likewise.
2605 * i386-linux-nat.c (x86-linux-nat.h): New include.
2606 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2607 (PTRACE_SETREGSET): Likewise.
2608 (arch_lwp_info): Now in x86-linux-nat.c.
2609 (have_ptrace_getregset): Now in x86-linux-nat.h.
2610 (x86_linux_dr_get): Now in x86-linux-nat.c.
2611 (x86_linux_dr_set): Likewise.
2612 (x86_linux_dr_get_addr): Likewise.
2613 (x86_linux_dr_get_control): Likewise.
2614 (x86_linux_dr_get_status): Likewise.
2615 (update_debug_registers_callback): Likewise.
2616 (x86_linux_dr_set_control): Likewise.
2617 (x86_linux_dr_set_addr): Likewise.
2618 (x86_linux_prepare_to_resume): Likewise.
2619 (x86_linux_new_thread): Likewise.
2620 (x86_linux_new_fork): Likewise.
2621 (x86_linux_get_thread_area): Likewise.
2622 (super_post_startup_inferior): Likewise.
2623 (x86_linux_child_post_startup_inferior): Likewise.
2624 (AMD64_LINUX_USER64_CS): Likewise.
2625 (AMD64_LINUX_X32_DS): Likewise.
2626 (x86_linux_read_description): Likewise.
2627 (x86_linux_enable_btrace): Likewise.
2628 (x86_linux_disable_btrace): Likewise.
2629 (x86_linux_teardown_btrace): Likewise.
2630 (x86_linux_read_btrace): Likewise.
2631 (x86_linux_create_target): Likewise.
2632 (x86_linux_add_target): Likewise.
2633
1aa7e42c
GB
26342014-07-11 Gary Benson <gbenson@redhat.com>
2635
2636 * amd64-linux-nat.c: Comment and whitespace changes.
2637 * i386-linux-nat.c: Comment and whitespace changes.
2638
c1e246a0
GB
26392014-07-11 Gary Benson <gbenson@redhat.com>
2640
2641 * amd64-linux-nat.c (x86_linux_create_target): New function.
2642 (x86_linux_add_target): Likewise.
2643 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2644 * i386-linux-nat.c (x86_linux_create_target): New function.
2645 (x86_linux_add_target): Likewise.
2646 (_initialize_i386_linux_nat): Delegate to the above new functions.
2647
8c420b8d
GB
26482014-07-11 Gary Benson <gbenson@redhat.com>
2649
2650 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2651 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2652 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2653 (ps_get_thread_area): Delegate to the above.
2654
cb1da100
GB
26552014-07-11 Gary Benson <gbenson@redhat.com>
2656
2657 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2658 x86_linux_read_description. All uses updated. amd64-specific
2659 code conditionalized. Conditionalized i386-specific code added.
2660 Redundant cast removed.
2661 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2662 x86_linux_read_description. All uses updated. i386-specific
2663 code conditionalized. Conditionalized amd64-specific code added.
2664 One sizeof replaced with the actual type it is describing.
2665
2acf3cd0
GB
26662014-07-11 Gary Benson <gbenson@redhat.com>
2667
2668 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2669 x86_linux_dr_get. All uses updated.
2670 (amd64_linux_dr_set): Renamed to
2671 x86_linux_dr_set. All uses updated.
2672 (amd64_linux_dr_get_addr): Renamed to
2673 x86_linux_dr_get_addr. All uses updated.
2674 (amd64_linux_dr_get_control): Renamed to
2675 x86_linux_dr_get_control. All uses updated.
2676 (amd64_linux_dr_get_status): Renamed to
2677 x86_linux_dr_get_status. All uses updated.
2678 (amd64_linux_dr_set_control): Renamed to
2679 x86_linux_dr_set_control. All uses updated.
2680 (amd64_linux_dr_set_addr): Renamed to
2681 x86_linux_dr_set_addr. All uses updated.
2682 (amd64_linux_prepare_to_resume): Renamed to
2683 x86_linux_prepare_to_resume. All uses updated.
2684 (amd64_linux_new_thread): Renamed to
2685 x86_linux_new_thread. All uses updated.
2686 (amd64_linux_new_fork): Renamed to
2687 x86_linux_new_fork. All uses updated.
2688 (amd64_linux_child_post_startup_inferior): Renamed to
2689 x86_linux_child_post_startup_inferior. All uses updated.
2690 (amd64_linux_enable_btrace): Renamed to
2691 x86_linux_enable_btrace. All uses updated.
2692 (amd64_linux_disable_btrace): Renamed to
2693 x86_linux_disable_btrace. All uses updated.
2694 (amd64_linux_teardown_btrace): Renamed to
2695 x86_linux_teardown_btrace. All uses updated.
2696 (amd64_linux_read_btrace): Renamed to
2697 x86_linux_read_btrace. All uses updated.
2698 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2699 x86_linux_dr_get. All uses updated.
2700 (i386_linux_dr_set): Renamed to
2701 x86_linux_dr_set. All uses updated.
2702 (i386_linux_dr_get_addr): Renamed to
2703 x86_linux_dr_get_addr. All uses updated.
2704 (i386_linux_dr_get_control): Renamed to
2705 x86_linux_dr_get_control. All uses updated.
2706 (i386_linux_dr_get_status): Renamed to
2707 x86_linux_dr_get_status. All uses updated.
2708 (i386_linux_dr_set_control): Renamed to
2709 x86_linux_dr_set_control. All uses updated.
2710 (i386_linux_dr_set_addr): Renamed to
2711 x86_linux_dr_set_addr. All uses updated.
2712 (i386_linux_prepare_to_resume): Renamed to
2713 x86_linux_prepare_to_resume. All uses updated.
2714 (i386_linux_new_thread): Renamed to
2715 x86_linux_new_thread. All uses updated.
2716 (i386_linux_new_fork): Renamed to
2717 x86_linux_new_fork. All uses updated.
2718 (i386_linux_child_post_startup_inferior): Renamed to
2719 x86_linux_child_post_startup_inferior. All uses updated.
2720 (i386_linux_enable_btrace): Renamed to
2721 x86_linux_enable_btrace. All uses updated.
2722 (i386_linux_disable_btrace): Renamed to
2723 x86_linux_disable_btrace. All uses updated.
2724 (i386_linux_teardown_btrace): Renamed to
2725 x86_linux_teardown_btrace. All uses updated.
2726 (i386_linux_read_btrace): Renamed to
2727 x86_linux_read_btrace. All uses updated.
2728
b9c1d481
AS
27292014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2730
2731 * remote.c (extended_remote_post_attach): New function.
2732 (init_extended_remote_ops): Install it as to_post_attach method.
2733
7180e04a
PA
27342014-07-09 Pedro Alves <palves@redhat.com>
2735
2736 * infcmd.c (attach_command_post_wait): Don't call
2737 target_terminal_inferior here.
2738 (attach_command): Call it here instead.
2739
9a9a7608
AB
27402014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2743 field.
2744 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2745 from varobj.c, with additional checks.
2746 (c_varobj_ops): Fill in is_path_expr_parent field.
2747 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2748 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2749 field.
2750 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2751 ops method.
2752 (varobj_default_is_path_expr_parent): New function.
2753 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2754 (varobj_default_is_path_expr_parent): Declare new function.
2755
1f267ae3
MM
27562014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2757
2758 * infcmd.c (finish_backward): Turn internal error into normal error.
2759
b2ee242b
PA
27602014-07-07 Pedro Alves <palves@redhat.com>
2761
8a869bca 2762 PR gdb/17096
b2ee242b
PA
2763 * remote.c (async_handle_remote_sigint)
2764 (async_handle_remote_sigint_twice): Call
2765 gdb_call_async_signal_handler instead of
2766 mark_async_signal_handler.
2767
38e229b2
TT
27682014-07-07 Tom Tromey <tromey@redhat.com>
2769
2770 * target-delegates.c: Rebuild.
2771 * target.c (target_info_record): Remove.
2772 * record.c (info_record_command): Unconditionally call
2773 to_info_record.
2774 * target.h (struct target_ops) <to_info_record>: Use
2775 TARGET_DEFAULT_IGNORE.
2776 (target_info_record): Remove.
2777
f0f9ff95
TT
27782014-07-07 Tom Tromey <tromey@redhat.com>
2779
2780 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2781 TARGET_DEFAULT_NORETURN.
2782 * target.c (generic_tls_error): New function.
2783 (target_translate_tls_address): Don't search target stack.
2784 * target-delegates.c: Rebuild.
2785 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2786 stack.
2787 * linux-thread-db.c (thread_db_get_thread_local_address):
2788 Unconditionally call beneath target.
2789
4a5be5ee
MK
27902014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2791
2792 * cli/cli-logging.c (pop_output_files): Assign targerr to
2793 gdb_stdtargerr.
2794
92c3b204
AB
27952014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * MAINTAINERS (Write After Approval): Update my email address.
2798
9b11e3a7
GB
27992014-07-02 Gary Benson <gbenson@redhat.com>
2800
2801 * proc-service.c (ps_xfer_memory): Update comment.
2802 (ps_pstop): Remove unused function.
2803 (ps_pcontinue): Likewise.
2804 (ps_lstop): Likewise.
2805 (ps_lcontinue): Likewise.
2806 (ps_lgetxregsize): Likewise.
2807 (ps_lgetxregs): Likewise.
2808 (ps_lsetxregs): Likewise.
2809 (ps_plog): Likewise.
2810 (ps_ptread): Likewise.
2811 (ps_ptwrite): Likewise.
2812
cf363f18
MW
28132014-07-01 Mark Wielaard <mjw@redhat.com>
2814
2815 * dwarf2read.c (add_array_cv_type): New function.
2816 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2817 (read_tag_volatile_type): Likewise.
2818
82ae6c8d
TT
28192014-07-01 Tom Tromey <tromey@redhat.com>
2820
2821 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2822 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2823 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2824 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2825 * command.h (cmd_cfunc_ftype): Move earlier.
2826 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2827 (add_com, add_info): Use cmd_cfunc_ftype.
2828
96142726
TT
28292014-06-30 Tom Tromey <tromey@redhat.com>
2830
2831 * symtab.c (operator_chars): Make parameters and return type
2832 const.
2833 (file_matches): Make "files" const.
2834 (struct search_symbols_data) <files>: Now const.
2835 (search_symbols): Make "regexp" and "files" parameters const.
2836 Update.
2837 (symtab_symbol_info): Remove cast.
2838 (rbreak_command): Update.
2839 * symtab.h (search_symbols): Update.
2840
b67a2c6f
YQ
28412014-06-27 Yao Qi <yao@codesourcery.com>
2842
2843 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2844 Change parameter type to 'struct thread_info *'. Caller
2845 updated.
2846 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2847 Update declaration.
2848 * dummy-frame.c (struct dummy_frame_id): New.
2849 (dummy_frame_id_eq): New function.
2850 (struct dummy_frame) <id>: Change its type to 'struct
2851 dummy_frame_id'.
2852 (dummy_frame_push): Add parameter ptid and save it in
2853 dummy_frame_id.
2854 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2855 inferior_ptid.
2856 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2857 to inferior_ptid.
2858 (lookup_dummy_frame): Change parameter type to 'struct
2859 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2860 instead of frame_id_eq.
2861 (dummy_frame_pop): Add parameter ptid. Callers updated.
2862 Update comments. Compose dummy_frame_id and pass it to
2863 lookup_dummy_frame.
2864 (dummy_frame_discard): Add parameter ptid.
2865 (dummy_frame_sniffer): Compose dummy_frame_id and call
2866 dummy_frame_id_eq instead of frame_id_eq.
2867 (fprint_dummy_frames): Print ptid.
2868 * dummy-frame.h: Remove comments.
2869 (dummy_frame_push): Add ptid in declaration.
2870 (dummy_frame_pop, dummy_frame_discard): Likewise.
2871
5b10184c
TT
28722014-06-26 Tom Tromey <tromey@redhat.com>
2873
2874 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2875 * command.h (error_no_arg): Update.
2876
06900326
TT
28772014-06-26 Tom Tromey <tromey@redhat.com>
2878
2879 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2880 (do_show_command): Make "arg" const.
2881 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2882
c2bcbb1d
TT
28832014-06-26 Tom Tromey <tromey@redhat.com>
2884
2885 * record-full.c (record_full_get_bookmark): Make "args" const.
2886 (record_full_goto_bookmark): Make "raw_bookmark" const.
2887 * record.c (record_goto): New function.
2888 (cmd_record_goto): Use it. Now static.
2889 * record.h (record_goto): Declare.
2890 (cmd_record_goto): Remove declaration.
2891 * target-delegates.c: Rebuild.
2892 * target.h (struct target_ops) <to_get_bookmark,
2893 to_goto_bookmark>: Make parameter const.
2894
9cbe5fff
TT
28952014-06-26 Tom Tromey <tromey@redhat.com>
2896
2897 * defs.h (generic_load): Update.
2898 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2899 * monitor.c (monitor_load): Make "args" const.
2900 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2901 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2902 const.
2903 (mips_load): Make "file" const.
2904 * remote-sim.c (gdbsim_load): Make "args" const.
2905 * remote.c (remote_load): Make "name" const.
2906 * symfile.c (generic_load): Make "args" const.
2907 * target-delegates.c: Rebuild.
2908 * target.c (target_load): Make "arg" const.
2909 (debug_to_load): Make "args" const.
2910 * target.h (struct target_ops) <to_load>: Make parameter const.
2911 (target_load): Update.
2912
34a68019
TT
29132014-06-26 Tom Tromey <tromey@redhat.com>
2914
2915 PR symtab/16902:
2916 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2917 (dwarf2_physname, read_partial_die)
2918 (guess_partial_die_structure_name, fixup_partial_die)
2919 (guess_full_die_structure_name, anonymous_struct_prefix)
2920 (dwarf2_name): Use per-BFD obstack.
2921
efc889c1
YQ
29222014-06-26 Yao Qi <yao@codesourcery.com>
2923
2924 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2925 dummyframe and this_id into inner block below.
2926
4395285e
YQ
29272014-06-26 Yao Qi <yao@codesourcery.com>
2928
2929 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2930 with "signal_pass[0]" in the initialization of signal_pass.
2931
aef92902
MM
29322014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2933
2934 * record-btrace.c (record_btrace_generating_corefile)
2935 (record_btrace_prepare_to_generate_core)
2936 (record_btrace_done_generating_core): New.
2937 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2938 (record_btrace_store_registers, record_btrace_prepare_to_store):
2939 Forward request when generating a core file.
2940 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2941 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2942 to_done_generating_core.
2943
5fff78c4
MM
29442014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2945
2946 * target.h (target_ops) <to_prepare_to_generate_core>
2947 <to_done_generating_core>: New.
2948 (target_prepare_to_generate_core, target_done_generating_core): New.
2949 * target.c (target_prepare_to_generate_core)
2950 (target_done_generating_core): New.
2951 * target-delegates.c: Regenerate.
2952 * gcore.c: (write_gcore_file): Rename to ...
2953 (write_gcore_file_1): ...this.
2954 (write_gcore_file): Call target_prepare_to_generate_core
2955 and target_done_generating_core.
2956
1d1f1ccb
MM
29572014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2958
2959 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2960 * gcore.c (write_gcore_file): Free memory returned from
2961 make_corefile_notes.
2962 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2963 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2964
3343ef86
YQ
29652014-06-24 Yao Qi <yao@codesourcery.com>
2966
2967 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2968 (arm_linux_init_abi): Set skip_trampoline_code with
2969 gdbarch_skip_trampoline_code instead of
2970 find_solib_trampoline_target.
2971
18d18ac8
YQ
29722014-06-24 Yao Qi <yao@codesourcery.com>
2973
2974 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2975 arm_skip_bx_reg returns non-zero.
2976
80d8d390
YQ
29772014-06-24 Yao Qi <yao@codesourcery.com>
2978
2979 * arm-tdep.c (arm_skip_bx_reg): New function.
2980 (arm_skip_stub): Call arm_skip_bx_reg.
2981
6a18a01c
DB
29822014-06-23 Don Breazeal <donb@codesourcery.com>
2983
2984 * MAINTAINERS: Add myself as write-after-approval maintainer.
2985
8e9db26e
PA
29862014-06-23 Pedro Alves <palves@redhat.com>
2987
2988 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2989 DR_CONTROL before setting DR0..DR3.
2990 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2991 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2992 bits of DR_CONTROL related to the debug register slot being
2993 disabled. If all slots are vacant, clear local slowdown as well,
2994 and assert DR_CONTROL is 0.
2995
70afc5b7
SC
29962014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2997
2998 * python/lib/gdb/command/xmethods.py
2999 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3000 current progspace only if the string "progspace" matches LOCUS_RE.
3001
840ed64d
JK
30022014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3003
3004 Fix --with-system-readline with readline-6.3 patch 5.
3005 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3006 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3007 types.
3008
26f2dc30
TT
30092014-06-20 Tom Tromey <tromey@redhat.com>
3010
3011 * dwarf2read.c (dw2_get_real_path): Use correct type in
3012 OBSTACK_CALLOC.
3013 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3014
125f8a3d
GB
30152014-06-20 Gary Benson <gbenson@redhat.com>
3016
3017 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3018 * common/glibc_thread_db.h: Likewise.
3019 * common/i386-cpuid.h: Likewise.
3020 * common/i386-gcc-cpuid.h: Likewise.
3021 * common/linux-btrace.h: Likewise.
3022 * common/linux-osdata.h: Likewise.
3023 * common/linux-procfs.h: Likewise.
3024 * common/linux-ptrace.h: Likewise.
3025 * common/mips-linux-watch.h: Likewise.
3026 * common/linux-btrace.c: Moved to nat.
3027 * common/linux-osdata.c: Likewise.
3028 * common/linux-procfs.c: Likewise.
3029 * common/linux-ptrace.c: Likewise.
3030 * common/mips-linux-watch.c: Likewise.
3031 * nat/gdb_thread_db.h: Moved from common.
3032 * nat/glibc_thread_db.h: Likewise.
3033 * nat/i386-cpuid.h: Likewise.
3034 * nat/i386-gcc-cpuid.h: Likewise.
3035 * nat/linux-btrace.c: Likewise.
3036 * nat/linux-btrace.h: Likewise.
3037 * nat/linux-osdata.c: Likewise.
3038 * nat/linux-osdata.h: Likewise.
3039 * nat/linux-procfs.c: Likewise.
3040 * nat/linux-procfs.h: Likewise.
3041 * nat/linux-ptrace.c: Likewise.
3042 * nat/linux-ptrace.h: Likewise.
3043 * nat/mips-linux-watch.c: Likewise.
3044 * nat/mips-linux-watch.h: Likewise.
3045 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3046 (object file files): Reordered.
3047 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3048 of glibc_thread_db.h.
3049
42995dbd
GB
30502014-06-20 Gary Benson <gbenson@redhat.com>
3051
3052 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3053 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3054 (i386_dr_low): Likewise.
3055 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3056 (i386_dr_low_set_addr): Likewise.
3057 (i386_dr_low_get_addr): Likewise.
3058 (i386_dr_low_can_set_control): Likewise.
3059 (i386_dr_low_set_control): Likewise.
3060 (i386_dr_low_get_control): Likewise.
3061 (i386_dr_low_get_status): Likewise.
3062 (i386_get_debug_register_length): Likewise.
3063 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3064 (i386_dr_low): Likewise.
3065 * nat/i386-dregs.c (i386-low.h): Remove include.
3066 (i386-nat.h): Likewise.
3067 (nat/i386-dregs.h): New include.
3068 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3069 (i386_dr_low_set_addr): Likewise.
3070 (i386_dr_low_get_addr): Likewise.
3071 (i386_dr_low_can_set_control): Likewise.
3072 (i386_dr_low_set_control): Likewise.
3073 (i386_dr_low_get_control): Likewise.
3074 (i386_dr_low_get_status): Likewise.
3075 (i386_get_debug_register_length): Likewise.
3076 (debug_hw_points): Likewise.
3077
3ed9baed
IB
30782014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3079
3080 * Makefile.in (SFILES): Add d-exp.y.
3081 (YYFILES): Add d-exp.c.
3082 (YYOBJ): Add d-exp.o.
3083 (local-maintainer-clean): Delete d-exp.c.
3084 * d-exp.y: New file.
3085 * d-lang.h (d_parse): New declaration.
3086 (d_error): New declaration.
3087 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3088 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3089 PREC_ORDER operators.
3090 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3091
78c164b0
YQ
30922014-06-19 Yao Qi <yao@codesourcery.com>
3093
3094 * gdbthread.h (any_running): Remove the declaration.
3095 * thread.c (any_running): Remove.
3096
f6e29b6e
YQ
30972014-06-19 Yao Qi <yao@codesourcery.com>
3098
3099 * gdbthread.h (struct thread_info) <state>: Change its type to
3100 'enum thread_state'. Update comments.
3101
034f788c
PA
31022014-06-19 Pedro Alves <palves@redhat.com>
3103
3104 * gdbthread.h (ALL_THREADS): Delete.
3105 (ALL_NON_EXITED_THREADS): New macro.
3106 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3107 instead of ALL_THREADS.
3108 * infrun.c (find_thread_needs_step_over)
3109 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3110 instead of ALL_THREADS.
3111 * record-btrace.c (record_btrace_open)
3112 (record_btrace_stop_recording, record_btrace_close)
3113 (record_btrace_is_replaying, record_btrace_resume)
3114 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3115 * remote.c (append_pending_thread_resumptions): Likewise.
3116 * thread.c (thread_apply_all_command): Likewise.
3117
46e33252
GB
31182014-06-19 Gary Benson <gbenson@redhat.com>
3119
3120 * i386-nat.c (i386_stopped_by_watchpoint):
3121 Use i386_dr_stopped_by_watchpoint.
3122 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3123 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3124
3a8ee006
GB
31252014-06-19 Gary Benson <gbenson@redhat.com>
3126
3127 * nat/i386-dregs.c: New file.
3128 * Makefile.in (i386-dregs.o): New rule.
3129 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3130 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3131 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3132 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3133 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3134 * config/i386/go32.mh (NATDEPFILES): Likewise.
3135 * config/i386/linux.mh (NATDEPFILES): Likewise.
3136 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3137 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3138 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3139 * i386-nat.h (debug_hw_points): New declaration.
3140 * i386-nat.c (breakpoint.h): Remove include.
3141 (command.h): Likewise.
3142 (target.h): Likewise.
3143 (gdb_assert.h): Likewise.
3144 (debug_hw_points): Made nonstatic.
3145 (debug_printf): Now in i386-dregs.c.
3146 (TARGET_HAS_DR_LEN_8): Likewise.
3147 (DR_CONTROL_SHIFT): Likewise.
3148 (DR_CONTROL_SIZE): Likewise.
3149 (DR_RW_EXECUTE): Likewise.
3150 (DR_RW_WRITE): Likewise.
3151 (DR_RW_READ): Likewise.
3152 (DR_RW_IORW): Likewise.
3153 (DR_LEN_1): Likewise.
3154 (DR_LEN_2): Likewise.
3155 (DR_LEN_4): Likewise.
3156 (DR_LEN_8): Likewise.
3157 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3158 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3159 (DR_ENABLE_SIZE): Likewise.
3160 (DR_LOCAL_SLOWDOWN): Likewise.
3161 (DR_GLOBAL_SLOWDOWN): Likewise.
3162 (DR_CONTROL_RESERVED): Likewise.
3163 (I386_DR_CONTROL_MASK): Likewise.
3164 (I386_DR_VACANT): Likewise.
3165 (I386_DR_LOCAL_ENABLE): Likewise.
3166 (I386_DR_GLOBAL_ENABLE): Likewise.
3167 (I386_DR_DISABLE): Likewise.
3168 (I386_DR_SET_RW_LEN): Likewise.
3169 (I386_DR_GET_RW_LEN): Likewise.
3170 (I386_DR_WATCH_HIT): Likewise.
3171 (i386_wp_op_t): Likewise.
3172 (i386_show_dr): Likewise.
3173 (i386_length_and_rw_bits): Likewise.
3174 (i386_insert_aligned_watchpoint): Likewise.
3175 (i386_remove_aligned_watchpoint): Likewise.
3176 (i386_handle_nonaligned_watchpoint): Likewise.
3177 (i386_update_inferior_debug_regs): Likewise.
3178 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3179 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3180 (i386_region_ok_for_watchpoint):
3181 Use i386_dr_region_ok_for_watchpoint.
3182 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3183
322a8e06
GB
31842014-06-19 Gary Benson <gbenson@redhat.com>
3185
3186 * i386-nat.c (i386_insert_hw_breakpoint): Use
3187 i386_insert_watchpoint.
3188 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3189
8f26655c
GB
31902014-06-19 Gary Benson <gbenson@redhat.com>
3191
3192 * i386-nat.c (i386_dr_show): Renamed to
3193 i386_show_dr and made static. All uses updated.
3194 (i386_dr_length_and_rw_bits): Renamed to
3195 i386_length_and_rw_bits and made static.
3196 All uses updated.
3197 (i386_dr_insert_aligned_watchpoint): Renamed to
3198 i386_insert_aligned_watchpoint and made static.
3199 All uses updated.
3200 (i386_dr_remove_aligned_watchpoint): Renamed to
3201 i386_remove_aligned_watchpoint and made static.
3202 All uses updated.
3203 (i386_dr_update_inferior_debug_regs): Renamed to
3204 i386_update_inferior_debug_regs and made static.
3205 All uses updated.
3206 * nat/i386-dregs.h (i386_dr_show): Removed.
3207 (i386_dr_length_and_rw_bits): Likewise.
3208 (i386_dr_insert_aligned_watchpoint): Likewise.
3209 (i386_dr_remove_aligned_watchpoint): Likewise.
3210 (i386_dr_update_inferior_debug_regs): Likewise.
3211
992c7d70
GB
32122014-06-19 Gary Benson <gbenson@redhat.com>
3213
3214 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3215 * configure: Regenerate.
3216 * config.in: Likewise.
3217 * main.c (signal.h): New include.
3218 (setup_alternate_signal_stack): New function.
3219 (captured_main): Call the above.
3220 * cp-support.c (signal.h): New include.
3221 (catch_demangler_crashes): New flag.
3222 (SIGJMP_BUF): New define.
3223 (SIGSETJMP): Likewise.
3224 (SIGLONGJMP): Likewise.
3225 (gdb_demangle_jmp_buf): New static global.
3226 (gdb_demangle_attempt_core_dump): Likewise.
3227 (gdb_demangle_signal_handler): New function.
3228 (gdb_demangle): If catch_demangler_crashes is set, install the
3229 above signal handler before calling bfd_demangle, and restore
3230 the original signal handler afterwards. Display the offending
3231 symbol and call demangler_warning the first time a segmentation
3232 fault is caught.
3233 (_initialize_cp_support): New maint set/show command.
3234
eae7090b
GB
32352014-06-19 Gary Benson <gbenson@redhat.com>
3236
3237 * utils.h (resource_limit_kind): New enum.
3238 (can_dump_core): New declaration.
3239 (warn_cant_dump_core): Likewise.
3240 (dump_core): Likewise.
3241 * utils.c (dump_core): Made nonstatic. Added new
3242 parameter "limit_kind".
3243 (can_dump_core): Made nonstatic. Moved printing code to...
3244 (warn_cant_dump_core): New function.
3245 (can_dump_core_warn): Likewise.
3246 (internal_vproblem): Replace calls to can_dump_core with
3247 calls to can_dump_core_warn. Supply new argument to each.
3248
57fcfb1b
GB
32492014-06-19 Gary Benson <gbenson@redhat.com>
3250
3251 * utils.h (demangler_vwarning): New declaration.
3252 (demangler_warning): Likewise.
3253 * utils.c (struct internal_problem)
3254 <user_settable_should_quit>: New field.
3255 <user_settable_should_dump_core>: Likewise
3256 (internal_error_problem): Add values for above new fields.
3257 (internal_warning_problem): Likewise.
3258 (demangler_warning_problem): New static global.
3259 (demangler_vwarning): New function.
3260 (demangler_warning): Likewise.
3261 (add_internal_problem_command): Selectively add commands.
3262 (_initialize_utils): New internal problem command.
3263 * maint.c (maintenance_demangler_warning): New function.
3264 (_initialize_maint_cmds): New command.
3265
17a40b44
TT
32662014-06-18 Tom Tromey <tromey@redhat.com>
3267
3268 * f-valprint.c (info_common_command_for_block): Update.
3269 * symtab.h (struct general_symbol_info) <common_block>: Now
3270 const.
3271
346d1dfe
TT
32722014-06-18 Tom Tromey <tromey@redhat.com>
3273
3274 * symtab.h (struct symtab) <blockvector>: Now const.
3275 * ada-lang.c (ada_add_global_exceptions): Update.
3276 * buildsym.c (augment_type_symtab): Update.
3277 * dwarf2read.c (dw2_lookup_symbol): Update.
3278 * jit.c (finalize_symtab): Update.
3279 * jv-lang.c (add_class_symtab_symbol): Update.
3280 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3281 Update.
3282 * objfiles.c (objfile_relocate1): Update.
3283 * psymtab.c (lookup_symbol_aux_psymtabs)
3284 (maintenance_check_psymtabs): Update.
3285 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3286 Update.
3287 * spu-tdep.c (spu_catch_start): Update.
3288 * symmisc.c (dump_symtab_1): Update.
3289 * symtab.c (lookup_global_symbol_from_objfile)
3290 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3291 (basic_lookup_transparent_type_quick)
3292 (basic_lookup_transparent_type, find_pc_sect_symtab)
3293 (find_pc_sect_line, search_symbols): Update.
3294 * block.c (find_block_in_blockvector): Make "bl" const.
3295 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3296 const.
3297 (blockvector_contains_pc): Make "bv" const.
3298 (block_for_pc_sect): Update.
3299 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3300 (blockvector_contains_pc): Update.
3301 * breakpoint.c (resolve_sal_pc): Update.
3302 * inline-frame.c (block_starting_point_at): Update.
3303
1834676b
TT
33042014-06-18 Tom Tromey <tromey@redhat.com>
3305
3306 * completer.c (complete_line): Make "line_buffer" const.
3307 * completer.h (complete_line): Update.
3308
ac1a991b
TT
33092014-06-18 Tom Tromey <tromey@redhat.com>
3310
3311 * symtab.c (add_macro_name): Remove unneeded cast.
3312
5bc98e52
TT
33132014-06-18 Tom Tromey <tromey@redhat.com>
3314
3315 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3316 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3317
8236def8
TT
33182014-06-18 Tom Tromey <tromey@redhat.com>
3319
3320 * probe.c (info_probes_for_ops): Make "arg" const.
3321 * probe.h (info_probes_for_ops): Update.
3322
3977b71f
TT
33232014-06-18 Tom Tromey <tromey@redhat.com>
3324
3325 * varobj.c (varobj_create): Update.
3326 * valops.c (value_of_this): Update.
3327 * tracepoint.c (add_local_symbols, scope_info): Update.
3328 * symtab.h (struct general_symbol_info) <block>: Now const.
3329 * symtab.c (skip_prologue_sal)
3330 (default_make_symbol_completion_list_break_on)
3331 (skip_prologue_using_sal): Update.
3332 * stack.h (iterate_over_block_locals)
3333 (iterate_over_block_local_vars): Update.
3334 * stack.c (print_frame_args): Update.
3335 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3336 parameter const.
3337 (get_selected_block): Make return type const.
3338 * python/py-frame.c (frapy_block): Update.
3339 * python/py-block.c (gdbpy_block_for_pc): Update.
3340 * p-exp.y (%union) <bval>: Now const.
3341 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3342 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3343 * m2-exp.y (%union) <bval>: Now const.
3344 * linespec.c (get_current_search_block): Make return type const.
3345 (create_sals_line_offset, find_label_symbols): Update.
3346 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3347 Update.
3348 (block_starting_point_at): Make "block" const.
3349 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3350 (check_exception_resume): Update.
3351 * guile/scm-frame.c (gdbscm_frame_block): Update.
3352 * guile/scm-block.c (gdbscm_lookup_block): Update.
3353 * frame.h (get_frame_block): Update.
3354 (get_selected_block): Make return type const.
3355 * frame.c (frame_id_inner): Update.
3356 * f-valprint.c (info_common_command_for_block)
3357 (info_common_command): Update.
3358 * dwarf2loc.c (dwarf2_find_location_expression)
3359 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3360 (locexpr_describe_location_piece): Update.
3361 * c-exp.y (%union) <bval>: Now const.
3362 * breakpoint.c (resolve_sal_pc): Update.
3363 * blockframe.c (get_frame_block):Make return type const.
3364 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3365 (block_innermost_frame): Update.
3366 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3367 (block_for_pc, block_for_pc_sect): Update.
3368 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3369 'pblock' const.
3370 (block_for_pc_sect, block_for_pc): Make return type const.
3371 * ax-gdb.c (gen_expr): Update.
3372 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3373 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3374 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3375 (ada_read_var_value): Update.
3376 * ada-exp.y (struct name_info) <block>: Now const.
3377 (%union): Likewise.
3378 (block_lookup): Constify.
3379
b9228891
GB
33802014-06-18 Gary Benson <gbenson@redhat.com>
3381
3382 * nat/i386-dregs.h: New file.
3383 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3384 * i386-nat.h (i386-dregs.h): New include.
3385 (DR_FIRSTADDR): Now in i386-dregs.h.
3386 (DR_LASTADDR): Likewise.
3387 (DR_NADDR): Likewise.
3388 (DR_STATUS): Likewise.
3389 (DR_CONTROL): Likewise.
3390 (i386_debug_reg_state): Likewise.
3391 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3392
a1aa2221
LM
33932014-06-18 Don Breazeal <donb@codesourcery.com>
3394
3395 * breakpoint.c (set_longjmp_breakpoint): Call
3396 momentary_breakpoint_from_master with additional argument.
3397 (set_longjmp_breakpoint_for_call_dummy): Call
3398 momentary_breakpoint_from_master with additional argument.
3399 (set_std_terminate_breakpoint): Call
3400 momentary_breakpoint_from_master with additional argument.
3401 (momentary_breakpoint_from_master): Add argument to function
3402 definition and use it to initialize structure member flag.
74228e77 3403 (clone_momentary_breakpoint): Call
a1aa2221
LM
3404 momentary_breakpoint_from_master with additional argument.
3405 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3406 member flags set in momentary_breakpoint_from_master.
3407
4be83cc2
GB
34082014-06-18 Gary Benson <gbenson@redhat.com>
3409
3410 * i386-nat.c (i386_show_dr): Renamed to
3411 i386_dr_show and made nonstatic. All uses updated.
3412 (i386_length_and_rw_bits): Renamed to
3413 i386_dr_length_and_rw_bits and made nonstatic.
3414 All uses updated.
3415 (i386_insert_aligned_watchpoint): Renamed to
3416 i386_dr_insert_aligned_watchpoint and made nonstatic.
3417 All uses updated.
3418 (i386_remove_aligned_watchpoint): Renamed to
3419 i386_dr_remove_aligned_watchpoint and made nonstatic.
3420 All uses updated.
3421 (i386_update_inferior_debug_regs): Renamed to
3422 i386_dr_update_inferior_debug_regs and made nonstatic.
3423 All uses updated.
3424
131aa0d4
GB
34252014-06-18 Gary Benson <gbenson@redhat.com>
3426
3427 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3428 (i386_dr_low_can_set_control): Likewise.
3429 (i386_dr_low_set_addr): Likewise.
3430 (i386_dr_low_set_control): Likewise.
3431 (i386_dr_low_get_addr): Likewise.
3432 (i386_dr_low_get_status): Likewise.
3433 (i386_dr_low_get_control): Likewise.
3434 (i386_insert_aligned_watchpoint): Use new macros.
3435 (i386_update_inferior_debug_regs): Likewise.
3436 (i386_stopped_data_address): Likewise.
3437
d9305f7f
GB
34382014-06-18 Gary Benson <gbenson@redhat.com>
3439
3440 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3441 New parameter. All uses updated.
3442
ea008da4
GB
34432014-06-18 Gary Benson <gbenson@redhat.com>
3444
3445 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3446 All uses updated.
3447
1b6d4134
GB
34482014-06-18 Gary Benson <gbenson@redhat.com>
3449
3450 * i386-nat.c (debug_printf): New macro.
3451 (i386_get_debug_register_length): Likewise.
3452 (TARGET_HAS_DR_LEN_8): Use above macro.
3453 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3454 and printf_unfiltered. Use phex to format values.
3455
9b4550ef
GB
34562014-06-18 Gary Benson <gbenson@redhat.com>
3457
3458 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3459 Make const.
3460
6e62758f
GB
34612014-06-18 Gary Benson <gbenson@redhat.com>
3462
3463 * i386-nat.c: Comment changes.
3464
51c79e94
GB
34652014-06-18 Gary Benson <gbenson@redhat.com>
3466
3467 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3468
3e11889a
GB
34692014-06-18 Gary Benson <gbenson@redhat.com>
3470
3471 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3472 (i386_insert_aligned_watchpoint): Likewise.
3473 (i386_remove_aligned_watchpoint): Likewise.
3474 (i386_handle_nonaligned_watchpoint): Likewise.
3475
fc6e2f03
GB
34762014-06-18 Gary Benson <gbenson@redhat.com>
3477
3478 * i386-nat.c: Whitespace changes.
3479
2afe7d50
SB
34802014-06-17 Samuel Bronson <naesten@gmail.com>
3481
3482 * MAINTAINERS: Update Roland McGrath's email address.
3483 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3484 Red Hat a while ago, and giving me a current address.
2afe7d50 3485
3bca49ee
TT
34862014-06-17 Tom Tromey <tromey@redhat.com>
3487
3488 * utils.h (savestring): Remove declaration.
3489
6e366df1
TT
34902014-06-17 Tom Tromey <tromey@redhat.com>
3491
3492 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3493
6be47f0c
KS
34942014-06-16 Keith Seitz <keiths@redhat.com>
3495
3496 PR mi/15863
3497 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3498 to update the varobj if inferior_ptid is null_ptid.
3499
7bc112c1
TT
35002014-06-16 Tom Tromey <tromey@redhat.com>
3501
3502 * target.h (struct target_ops) <to_info_proc>: Make parameter
3503 const.
3504 (target_info_proc): Update.
3505 * target.c (target_info_proc): Make "args" const.
3506 * procfs.c (procfs_info_proc): Update.
3507 * linux-tdep.c (linux_info_proc): Update.
3508 (linux_core_info_proc_mappings): Make "args" const.
3509 (linux_core_info_proc): Update.
3510 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3511 * gdbarch.c: Rebuild.
3512 * gdbarch.h: Rebuild.
3513 * corelow.c (core_info_proc): Update.
3514
fee354ee
TT
35152014-06-16 Tom Tromey <tromey@redhat.com>
3516
3517 * target.h (struct target_ops) <to_disconnect>: Make parameter
3518 const.
3519 (target_disconnect): Update.
3520 * target.c (target_disconnect): Make "args" const.
3521 * target-delegates.c: Rebuild.
3522 * remote.c (remote_disconnect): Update.
3523 * record.h (record_disconnect): Update.
3524 * record.c (record_disconnect): Update.
3525 * inf-child.c (inf_child_disconnect): Update.
3526
a30bf1f1
TT
35272014-06-16 Tom Tromey <tromey@redhat.com>
3528
3529 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3530 * target.c (debug_to_rcmd, default_rcmd): Update.
3531 * target-delegates.c: Rebuild.
3532 * remote.c (remote_rcmd): Update.
3533 * monitor.c (monitor_rcmd): Update.
3534
d03de421
PA
35352014-06-16 Pedro Alves <palves@redhat.com>
3536
3537 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3538 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3539 have OBJF_SHARED set.
3540 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3541 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3542 instead of OBJF_USERLOADED.
3543 * objfiles.h (OBJF_SHARED): Update comment.
3544 (userloaded_objfile_contains_address_p): Rename to ...
3545 (shared_objfile_contains_address_p): ... this, and update
3546 comments.
3547 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3548 new objfile.
3549 (remove_symbol_file_command): Skip objfiles that don't have
3550 OBJF_SHARED set.
3551
99f4262f
TT
35522014-06-16 Tom Tromey <tromey@redhat.com>
3553
3554 * minsyms.h (prim_record_minimal_symbol)
3555 (prim_record_minimal_symbol_and_info): Update comments.
3556
97d66cc6
EZ
35572014-06-14 Eli Zaretskii <eliz@gnu.org>
3558
3559 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3560 or --without-guile, according to how GDB was built.
3561
635c7e8a
TT
35622014-06-13 Tom Tromey <tromey@redhat.com>
3563
3564 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3565 to help_list.
3566 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3567 to help_list.
3568 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3569 help_list.
3570 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3571 help_list.Pass all_commands, not -1, to help_list.
3572 * cli/cli-dump.c (dump_command, append_command)
3573 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3574 (binary_dump_command, binary_append_command): Pass all_commands,
3575 not -1, to help_list.
3576 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3577 -1, to help_list.
3578 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3579 -1, to help_list.
3580 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3581 help_list.
3582 * top.c (set_history): Pass all_commands, not -1, to help_list.
3583 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3584 all_commands, not -1, to help_list.
3585 * symfile.c (overlay_command): Pass all_commands, not -1, to
3586 help_list.
3587 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3588 help_list.
3589 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3590 help_list.
3591 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3592 -1, to help_list.
3593 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3594 not -1, to help_list.
3595 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3596 not -1, to help_list.
3597 * maint.c (maintenance_command, maintenance_info_command)
3598 (maintenance_print_command, maintenance_set_cmd): Pass
3599 all_commands, not -1, to help_list.
3600 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3601 help_list.
3602 * language.c (set_check): Pass all_commands, not -1, to help_list.
3603 * infcmd.c (unset_command): Pass all_commands, not -1, to
3604 help_list.
3605 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3606 help_list.
3607 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3608 help_list.
3609 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3610 help_list.
3611 * breakpoint.c (save_command): Pass all_commands, not -1, to
3612 help_list.
3613 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3614 all_commands, not -1, to help_list.
3615
b94ade42
PL
36162014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3617
3618 * regcache.c (struct register_to_invalidate): New structure.
3619 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3620 functions.
3621 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3622
31f628ae
YQ
36232014-06-12 Yao Qi <yao@codesourcery.com>
3624
3625 * varobj.c (varobj_get_num_children): Call
3626 varobj_is_dynamic_p.
3627 (varobj_list_children): Likewise.
3628 (varobj_update): Likewise. Update comments.
3629
cde5ef40
YQ
36302014-06-12 Yao Qi <yao@codesourcery.com>
3631
3632 * varobj.c (varobj_pretty_printed_p): Rename to ...
3633 (varobj_is_dynamic_p): ... this. New function.
3634 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3635 (varobj_is_dynamic_p): Declare.
3636 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3637 (mi_print_value_p, varobj_update_one): Likewise.
3638
576ea091
YQ
36392014-06-12 Pedro Alves <pedro@codesourcery.com>
3640 Yao Qi <yao@codesourcery.com>
3641
3642 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3643 (varobj_get_iterator): Wrap up code for pretty-printer by
3644 "#if HAVE_PYTHON" and "#endif".
3645 (update_dynamic_varobj_children): Likewise.
3646
827f100c
YQ
36472014-06-12 Pedro Alves <pedro@codesourcery.com>
3648 Yao Qi <yao@codesourcery.com>
3649
3650 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3651 gdb_python_initialized is false. Move some code from varobj.c.
3652 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3653 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3654 (struct varobj_item): Moved to varobj-iter.h".
3655 (varobj_clear_saved_item): New function.
3656 (update_dynamic_varobj_children): Move python-related code to
3657 py-varobj.c.
3658 (free_variable): Call varobj_clear_saved_item and
3659 varobj_iter_delete.
3660
e5250216
YQ
36612014-06-12 Pedro Alves <pedro@codesourcery.com>
3662 Yao Qi <yao@codesourcery.com>
3663
3664 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3665 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3666 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3667 (py-varobj.o): New rule.
3668 * python/py-varobj.c: New file.
3669 * python/python-internal.h (py_varobj_get_iterator): Declare.
3670 * varobj-iter.h: New file.
3671 * varobj.c: Include "varobj-iter.h"
3672 (struct varobj) <child_iter>: Change its type from "PyObject *"
3673 to "struct varobj_iter *".
3674 <saved_item>: Likewise.
3675 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3676 [HAVE_PYTHON] (varobj_get_iterator): New function.
3677 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3678 python-specific code to python/py-varobj.c.
3679 (install_visualizer): Call varobj_iter_delete instead of
3680 Py_XDECREF.
3681 * varobj.h (varobj_ensure_python_env): Declare.
3682
5a2e0d6e
YQ
36832014-06-12 Yao Qi <yao@codesourcery.com>
3684
3685 * varobj.c (struct varobj_item): New structure.
3686 (create_child_with_value): Update declaration.
3687 (varobj_add_child): Replace arguments 'name' and 'value' with
3688 'item'. All callers updated.
3689 (install_dynamic_child): Likewise.
3690 (update_dynamic_varobj_children): Likewise.
3691 (varobj_add_child): Likewise.
3692 (create_child_with_value): Likewise.
3693
919b9a93
JB
36942014-06-11 Joel Brobecker <brobecker@adacore.com>
3695
3696 * NEWS: Create a new section for the next release branch.
3697 Rename the section of the current branch, now that it has
3698 been cut.
3699
71a55bdf
JB
37002014-06-11 Joel Brobecker <brobecker@adacore.com>
3701
3702 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3703 * version.in: Bump version to 7.8.50.DATE-cvs.
3704
364fe1f7
PA
37052014-06-11 Pedro Alves <palves@redhat.com>
3706
3707 PR remote/17028
3708 * ser-mingw.c (net_windows_socket_check_pending): New function.
3709 (net_windows_select_thread): Ignore spurious wakeups. Use
3710 net_windows_socket_check_pending.
3711 (net_windows_wait_handle): Check for pending events with
3712 ioctlsocket, through net_windows_socket_check_pending, instead of
3713 checking the socket's event.
3714
5a6c7709
SC
37152014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3716
3717 * python/python-internal.h (gdb_PyObject_GetAttrString)
3718 (gdb_PyObject_HasAttrString): New inline function definitions.
3719 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3720 char * of the second argument to PyObject_GetAttrString.
74228e77 3721
0e58ee40
JB
37222014-06-10 Joel Brobecker <brobecker@adacore.com>
3723
3724 * serial.c (serial_write): Fix index of character to be printed
3725 in call to serial_logchar when serial debug traces are enabled.
3726
d190df30
JB
37272014-06-10 Joel Brobecker <brobecker@adacore.com>
3728
3729 * gdbtypes (resolve_dynamic_range): Add function description.
3730
b4b01d36
PA
37312014-06-09 Pedro Alves <palves@redhat.com>
3732
3733 * linux-nat.c (linux_child_follow_fork): Initialize status with
3734 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3735 inner block. Only pass the signal to PTRACE_DETACH if in pass
3736 state.
3737
3657956b
GB
37382014-06-09 Gary Benson <gbenson@redhat.com>
3739
3740 * common/signals.c (gdb_signal_from_host): Reorder to separate
3741 the always-available ANSI-standard signals from the signals that
3742 require checking.
3743 (do_gdb_signal_to_host): Likewise.
3744 * proc-events.c (signal_table): Likewise.
3745
c077881a
HZ
37462014-06-08 Hui Zhu <hui@codesourcery.com>
3747
3748 * common/linux-ptrace.c (linux_disable_event_reporting): New
3749 function.
3750 * common/linux-ptrace.h (linux_disable_event_reporting): New
3751 declaration.
3752 * linux-nat.c (linux_child_follow_fork): Do a single step before
3753 detach.
3754
4186eb54
KS
37552014-06-07 Keith Seitz <keiths@redhat.com>
3756
3757 Revert:
3758 PR c++/16253
3759 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3760 from symbol_matches_domain in symtab.c. All local callers
3761 of symbol_matches_domain updated.
3762 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3763 search STRUCT_DOMAIN.
3764 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3765 independently. standard_lookup will do that automatically.
3766 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3767 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3768 (cp_lookup_symbol_in_namespace): Likewise.
3769 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3770 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3771 may return a STRUCT_DOMAIN match.
3772 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3773 * cp-support.c: Include language.h.
3774 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3775 VAR_DOMAIN.
3776 * psymtab.c (match_partial_symbol): Compare the requested
3777 domain with the symbol's domain directly.
3778 (lookup_partial_symbol): Likewise.
3779 * symtab.c (lookup_symbol_in_language): Explain when/why
3780 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3781 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3782 appropriate languages.
3783 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3784 and moved to ada-lang.c
3785 (lookup_block_symbol): Explain that this function only returns
3786 symbol matching the requested DOMAIN.
3787 Compare the requested domain with the symbol's domain directly.
3788 (iterate_over_symbols): Compare the requested domain with the
3789 symbol's domain directly.
3790 * symtab.h (symbol_matches_domain): Remove.
3791
25326a28 37922014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3793
3794 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3795 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3796 (gdbscm_guile_version_is_at_least): Declare.
3797 (gdbscm_scm_string_to_int): Declare.
3798 * guile/guile.c (gdbscm_guile_major_version): New global.
3799 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3800 (guile_datadir): New static global.
3801 (gdbscm_guile_data_directory): New function.
3802 (initialize_scheme_side): Update.
3803 (misc_guile_functions): Add guile-data-directory.
3804 (initialize_gdb_module): Fetch guile version number.
3805 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3806 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3807 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3808 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3809 comments.
3810 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3811 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3812 * guile/scm-value.c (gdbscm_value_to_string): Only call
3813 scm_port_conversion_strategy if Guile version >= 2.0.6.
3814
0a770bb2 38152014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3816
3817 * main.c (print_gdb_help): Add -q and --silent.
3818
73ba372c
GB
38192014-06-06 Gary Benson <gbenson@redhat.com>
3820
3821 * common/signals.c: Remove preprocessor conditionals for
3822 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3823 SIGSEGV and SIGTERM.
3824 * proc-events.c: Likewise.
3825
c33b2f12
MM
38262014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3827
3828 * symfile.c (symfile_free_objfile): Remove restriction to
3829 OBJF_USERLOADED.
3830 * symfile-mem.c (symbol_file_add_from_memory): Call
3831 add_target_sections_of_objfile.
3832
fb934770
LC
38332014-06-05 Ludovic Courtès <ludo@gnu.org>
3834
3835 * guile/scm-value.c (gdbscm_history_append_x): Use
3836 'vlscm_get_value_smob_arg_unsafe' instead of
3837 'vlscm_scm_to_value'.
3838
6ef284bd
SM
38392014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3840
3841 PR mi/15806
3842 * utils.c (printchar): Don't escape at all if quoter is NUL.
3843 Update function documentation to clarify effect of parameter
3844 QUOTER.
3845 * remote.c (escape_buffer): Pass '\\' as the quoter to
3846 fputstrn_unfiltered.
3847 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3848 generate the output.
3849 (mi_solib_unloaded): Same.
3850
270c9937
JB
38512014-06-05 Joel Brobecker <brobecker@adacore.com>
3852
3853 * development.sh: Delete.
3854 * Makefile.in (config.status): Adjust dependency on development.sh.
3855 * configure.ac: Adjust development.sh source call.
3856 * configure: Regenerate.
3857
16f691fb
DE
38582014-06-04 Doug Evans <xdje42@gmail.com>
3859
3860 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3861 is_scheme_bkpt, spec.
3862 (bpscm_make_breakpoint_smob): Initialize new members.
3863 (gdbscm_create_breakpoint_x): Split into two ...
3864 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3865 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3866 (scheme_function breakpoint_functions): Update.
3867 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3868 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3869 register-breakpoint!.
3870
ef7cab6b
JB
38712014-06-04 Joel Brobecker <brobecker@adacorer.com>
3872
3873 PR server/17023
3874 * mem-break.c (z_type_supported): Return zero if
3875 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3876
012370f6
TT
38772014-06-04 Tom Tromey <tromey@redhat.com>
3878
3879 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3880 value_from_contents_and_address_unresolved.
3881 (ada_template_to_fixed_record_type_1): Likewise.
3882 (ada_which_variant_applies): Likewise.
3883 * value.h (value_from_contents_and_address_unresolved): Declare.
3884 * value.c (value_from_contents_and_address_unresolved): New
3885 function.
3886 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3887 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3888 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3889
92e2a17f
TT
38902014-06-04 Tom Tromey <tromey@redhat.com>
3891
3892 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3893
c0939df1
TT
38942014-06-04 Tom Tromey <tromey@redhat.com>
3895
3896 * procfs.c (procfs_attach): Make "args" const.
3897 * windows-nat.c (windows_attach): Make "args" const.
3898 * nto-procfs.c (procfs_attach): Make "args" const.
3899 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3900 * go32-nat.c (go32_attach): Make "args" const.
3901 * gnu-nat.c (gnu_attach): Make "args" const.
3902 * darwin-nat.c (darwin_attach): Make "args" const.
3903 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3904 * linux-nat.c (linux_nat_attach): Make "args" const.
3905 * remote.c (extended_remote_attach_1, extended_remote_attach):
3906 Make "args" const.
3907 * target.h (struct target_ops) <to_attach>: Make "args" const.
3908 (find_default_attach): Likewise.
3909 * utils.c (parse_pid_to_attach): Make "args" const.
3910 * utils.h (parse_pid_to_attach): Update.
3911
8eaff7cd
TT
39122014-06-04 Tom Tromey <tromey@redhat.com>
3913
3914 * target-delegates.c: Rebuild.
3915 * target.c (default_thread_address_space): New function.
3916 (target_thread_address_space): Simplify.
3917 * target.h (struct target_ops) <to_thread_address_space>: Add
3918 TARGET_DEFAULT_FUNC.
3919
1913f160
DE
39202014-06-04 Doug Evans <xdje42@gmail.com>
3921
3922 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3923
70ad5bff
MM
39242014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3925
3926 * record-btrace.c: Include event-loop.h and inf-loop.h.
3927 (record_btrace_resume_exec_dir)
3928 (record_btrace_async_inferior_event_handler)
3929 (record_btrace_handle_async_inferior_event): New.
3930 (record_btrace_open): Create async event handler.
3931 (record_btrace_close): Delete async event handler.
3932 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3933 Mark async event handler.
3934 (record_btrace_execution_direction): New.
3935 (init_record_btrace_ops): Initialize to_execution_direction.
3936
b6210538
DE
39372014-06-03 Doug Evans <xdje42@gmail.com>
3938
3939 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3940 (gdbscm_make_parameter): Ditto.
3941
a5b1fd27
DE
39422014-06-03 Doug Evans <dje@google.com>
3943
3944 * exec.c (exec_close_1): Call clear_section_table instead of
3945 resize_section_table.
3946 (clear_section_table): New function.
3947 (resize_section_table): Make static. Rename arg num_added to
3948 adjustment.
3949 * exec.h (clear_section_table): Declare.
3950 (resize_section_table): Delete.
3951 * progspace.c (release_program_space): Call clear_section_table
3952 instead of resize_section_table.
3953
0c6e92a5
SC
39542014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3955
3956 * NEWS (Python Scripting): Add entry about the new xmethods
3957 feature.
3958
883964a7
SC
39592014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3960
3961 * python/py-xmethods.c: New file.
3962 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3963 (objfpy_dealloc): XDECREF on the new xmethods field.
3964 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3965 field.
3966 (objfpy_get_xmethods): New function.
3967 (objfile_getset): New entry 'xmethods'.
3968 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3969 (pspy_dealloc): XDECREF on the new xmethods field.
3970 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3971 field.
3972 (pspy_get_xmethods): New function.
3973 (pspace_getset): New entry 'xmethods'.
3974 * python/python-internal.h: Add declarations for new functions.
3975 * python/python.c (_initialize_python): Invoke
3976 gdbpy_initialize_xmethods.
3977 * python/lib/gdb/__init__.py (xmethods): New
3978 attribute.
3979 * python/lib/gdb/xmethod.py: New file.
3980 * python/lib/gdb/command/xmethods.py: New file.
3981
58992dc5
SC
39822014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3983
3984 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3985 best match method returned by find_overload_match is an xmethod.
3986 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3987 the best matching operator returned by find_overload_match is an
3988 xmethod.
3989 * valops.c: #include "extension.h".
3990 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3991 Return void. The list of matching source methods is returned in
3992 "fn_list" and a vector of matching debug method workers is
3993 returned in "xm_worker_vec". Update all callers.
3994 (value_find_oload_method_list): Likewise.
3995 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3996 non-NULL, then the index of the best matching method in this
3997 vector is returned. Update all callers.
3998 (find_overload_match): Include xmethods while performing overload
3999 resolution.
4000
e81e7f5e
SC
40012014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4002
4003 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4004 * extension-priv.h (struct extension_language_ops): Add the
4005 xmethod interface.
4006 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4007 get_matching_xmethod_workers, get_xmethod_argtypes,
4008 invoke_xmethod, free_xmethod_worker,
4009 free_xmethod_worker_vec): New functions.
4010 * extension.h: #include "common/vec.h".
4011 New function declarations.
4012 (struct xmethod_worker): New struct.
4013 (VEC (xmethod_worker_ptr)): New vector type.
4014 (xmethod_worker_ptr): New typedef.
4015 (xmethod_worker_vec): Likewise.
4016 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4017 builtin_type.
4018 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4019 (struct builtin_type): New field "xmethod".
4020 * valarith.c (value_ptradd): Assert that the value argument is not
4021 lval_xcallable.
4022 * valops.c (value_must_coerce_to_target): Return 0 for
4023 lval_xcallable values.
4024 * value.c (struct value): New field XM_WORKER in the field
4025 LOCATION.
4026 (value_address, value_raw_address): Return 0 for lval_xcallable
4027 values.
4028 (set_value_address): Assert that the value is not an
4029 lval_xcallable.
4030 (value_free): Free the associated xmethod worker when freeing
4031 lval_xcallable values.
4032 (set_value_component_location): Assert that the WHOLE value is not
4033 lval_xcallable.
4034 (value_of_xmethod, call_xmethod): New functions.
4035 * value.h: Declare "struct xmethod_worker".
4036 Declare new functions value_of_xmethod, call_xmethod.
4037
ef370185
JB
40382014-06-03 Joel Brobecker <brobecker@adacore.com>
4039 Pedro Alves <palves@redhat.com>
4040
4041 PR breakpoints/17000
4042 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4043 New function, extracted from software_breakpoint_inserted_here_p.
4044 (software_breakpoint_inserted_here_p): Replace factored out code
4045 by call to find_non_raw_software_breakpoint_inserted_here.
4046 (bp_target_info_copy_insertion_state): New function.
4047 (bkpt_insert_location): Handle the case of a single-step
4048 breakpoint already inserted at the same address.
4049 (bkpt_remove_location): Handle the case of a single-step
4050 breakpoint still inserted at the same address.
4051 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4052 breakpoint already inserted at the same address.
4053 (deprecated_remove_raw_breakpoint): Handle the case of a
4054 non-raw breakpoint still inserted at the same address.
4055 (find_single_step_breakpoint): New function, extracted from
4056 single_step_breakpoint_inserted_here_p.
4057 (find_single_step_breakpoint): New function,
4058 factored out from single_step_breakpoint_inserted_here_p.
4059 (single_step_breakpoint_inserted_here_p): Reimplement.
4060
1e2ccb61
BM
40612014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4062
4063 Pushed by Joel Brobecker <brobecker@adacore.com>
4064 * source.c (show_substitute_path_command): Fix display of matching
4065 substitution rules.
4066
d3448d85
GB
40672014-06-03 Gary Benson <gbenson@redhat.com>
4068
4069 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4070
06eb1586
DE
40712014-06-02 Doug Evans <xdje42@gmail.com>
4072
4073 Add parameter support for Guile.
4074 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4075 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4076 (scm-param.o): New rule.
4077 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4078 (gdbscm_misc_error): Declare.
4079 (gdbscm_canonicalize_command_name): Declare.
4080 (gdbscm_scm_to_host_string): Declare.
4081 (gdbscm_scm_from_host_string): Declare.
4082 (gdbscm_initialize_parameters): Declare.
4083 * guile/guile.c (initialize_gdb_module): Call
4084 gdbscm_initialize_parameters.
4085 * guile/lib/gdb.scm: Export parameter symbols.
4086 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4087 cmdscm_canonicalize_name and made public. All callers updated.
4088 * guile/scm-exception.c (gdbscm_misc_error): New function.
4089 * guile/scm-param.c: New file.
4090 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4091 (gdbscm_scm_to_host_string): New function.
4092 (gdbscm_scm_from_host_string): New function.
4093 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4094
e698b8c4
DE
40952014-06-02 Doug Evans <xdje42@gmail.com>
4096
4097 Add command support for Guile.
4098 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4099 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4100 (scm-cmd.o): New rule.
4101 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4102 (gdbscm_user_error_p): Declare.
4103 (gdbscm_parse_command_name): Declare.
4104 (gdbscm_valid_command_class_p): Declare.
4105 (gdbscm_initialize_commands): Declare.
4106 * guile/guile.c (initialize_gdb_module): Call
4107 gdbscm_initialize_commands.
4108 * guile/lib/gdb.scm: Export command symbols.
4109 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4110 (throw-user-error): New function.
4111 * guile/scm-cmd.c: New file.
4112 * guile/scm-exception.c (user_error_symbol): New static global.
4113 (gdbscm_user_error_p): New function.
4114 (gdbscm_initialize_exceptions): Set user_error_symbol.
4115 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4116
fb1f94b0
PM
41172014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4118
4119 * top.c (command_loop): Handle comments here...
4120 (command_line_input): ... not here.
4121
ded03782
DE
41222014-06-02 Doug Evans <xdje42@gmail.com>
4123
4124 Add progspace support for Guile.
4125 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4126 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4127 (scm-progspace.o): New rule.
4128 * guile/guile-internal.h (pspace_smob): New typedef.
4129 (psscm_pspace_smob_pretty_printers): Declare.
4130 (psscm_pspace_smob_from_pspace): Declare.
4131 (psscm_scm_from_pspace): Declare.
4132 * guile/guile.c (initialize_gdb_module): Call
4133 gdbscm_initialize_pspaces.
4134 * guile/lib/gdb.scm: Export progspace symbols.
4135 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4136 support.
4137 (append-pretty-printer!): Ditto.
4138 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4139 Implement.
4140 * guile/scm-progspace.c: New file.
4141
397998fc
AM
41422014-06-03 Alan Modra <amodra@gmail.com>
4143
4144 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4145 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4146
6aa5f3a6
DE
41472014-06-02 Doug Evans <dje@google.com>
4148
4149 Add support for skeletonless type units.
4150 * dwarf2read.c (struct dwarf2_per_objfile): New member
4151 n_allocated_type_units.
4152 (struct dwarf2_per_objfile) <tu_stats>: New member
4153 nr_all_type_units_reallocs.
4154 (create_signatured_type_table_from_index): Initialize
4155 n_allocated_type_units
4156 (create_all_type_units): Ditto.
4157 (add_type_unit): Move up in file. New arg slot.
4158 All callers updated. Increase space for all_type_units more
4159 efficiently.
4160 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4161 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4162 (lookup_dwp_signatured_type): Ditto.
4163 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4164 All callers updated.
4165 (build_type_psymtabs_1): Leave type_unit_groups as
4166 NULL if no TUs present.
4167 (print_tu_stats): New function.
4168 (process_skeletonless_type_unit): New function.
4169 (process_dwo_file_for_skeletonless_type_units): New
4170 function.
4171 (process_skeletonless_type_units): New function.
4172 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4173 Call print tu_stats if debugging enabled.
4174
41fac0cf
PA
41752014-06-02 Pedro Alves <palves@redhat.com>
4176
4177 * breakpoint.c (build_target_command_list): Don't build a command
4178 list if we have any duplicate location that isn't a dprintf.
4179
cd1608cc
PA
41802014-06-02 Pedro Alves <palves@redhat.com>
4181
4182 * breakpoint.c (dprintf_breakpoint_hit): New function.
4183 (initialize_breakpoint_ops): Install it as dprintf's
4184 breakpoint_hit method.
4185
486ef3b9
JB
41862014-06-02 Joel Brobecker <brobecker@adacore.com>
4187
4188 * source.c (substitute_path_rule_matches): Simplify using
4189 filename_ncmp instead of FILENAME_CMP.
4190
230cd560
JB
41912014-06-02 Joel Brobecker <brobecker@adacore.com>
4192
4193 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4194
16954d5d
LC
41952014-06-01 Ludovic Courtès <ludo@gnu.org>
4196
4197 * configure.ac: When Guile is available, check for the
4198 availability of 'scm_new_smob'.
4199 * configure, config.h.in: Regenerate.
4200 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4201 function.
4202
53e8a631
AB
42032014-05-30 Andrew Burgess <aburgess@broadcom.com>
4204
4205 * frame.c (struct frame_info): Add stop_string field.
4206 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4207 (get_prev_frame_always): Old content moved into
4208 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4209 TRY_CATCH, handle MEMORY_ERROR exceptions.
4210 (frame_stop_reason_string): New function definition.
4211 * frame.h (unwind_stop_reason_to_string): Extend comment to
4212 mention frame_stop_reason_string.
4213 (frame_stop_reason_string): New function declaration.
4214 * stack.c (frame_info): Switch to frame_stop_reason_string.
4215 (backtrace_command_1): Switch to frame_stop_reason_string.
4216 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4217 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4218 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4219
70e38b8e
AB
42202014-05-30 Andrew Burgess <aburgess@broadcom.com>
4221
4222 * frame.c (frame_stop_reason_string): Rename to ...
4223 (unwind_stop_reason_to_string): this.
4224 * frame.h (frame_stop_reason_string): Rename to ...
4225 (unwind_stop_reason_to_string): this.
4226 * stack.c (frame_info): Update call to frame_stop_reason_string.
4227 (backtrace_command_1): Likewise.
4228 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4229 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4230
938f0e2f
AB
42312014-05-30 Andrew Burgess <aburgess@broadcom.com>
4232
4233 * frame.c (remove_prev_frame): New function.
4234 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4235 remove_prev_frame.
4236
a09dd441
PA
42372014-05-29 Pedro Alves <palves@redhat.com>
4238
4239 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4240 and make it const. When a single-step decays to a continue,
4241 clear 'step', not 'hw_step'. Pass whether the caller wanted
4242 to step to user_visible_resume_ptid, not what we ask the
4243 target to do.
4244
bdc36728
PA
42452014-05-29 Pedro Alves <palves@redhat.com>
4246
4247 * infrun.c (process_event_stop_test, handle_step_into_function)
4248 (handle_step_into_function_backward): Adjust.
4249 Don't set the even thread's stop_step and call stop_waiting before
4250 calling end_stepping_range. Instead do that ...
4251 (end_stepping_range): ... here. Take an ecs pointer parameter.
4252
22bcd14b
PA
42532014-05-29 Pedro Alves <palves@redhat.com>
4254
4255 * infrun.c (stop_stepping): Rename to ...
4256 (stop_waiting): ... this.
4257 (proceed): Update comment.
4258 (process_event_stop_test, handle_inferior_event)
4259 (handle_signal_stop, handle_step_into_function)
4260 (handle_step_into_function_backward): Update.
4261
4ae57c05
PA
42622014-05-29 Pedro Alves <palves@redhat.com>
4263
4264 * infcall.c (run_inferior_call): Don't check whether the current
4265 thread is running after the proceed call.
4266
329ea579
PA
42672014-05-29 Pedro Alves <palves@redhat.com>
4268 Tom Tromey <tromey@redhat.com>
4269
4270 * NEWS: Mention "maint set target-async", "set mi-async", and that
4271 background execution commands are now always available.
4272 * target.h (target_async_permitted): Update comment.
4273 * target.c (target_async_permitted, target_async_permitted_1):
4274 Default to 1.
4275 (set_target_async_command): Rename to ...
4276 (maint_set_target_async_command): ... this.
4277 (show_target_async_command): Rename to ...
4278 (maint_show_target_async_command): ... this.
4279 (_initialize_target): Adjust.
4280 * infcmd.c (prepare_execution_command): Make extern.
4281 * inferior.h (prepare_execution_command): Declare.
4282 * infrun.c (set_observer_mode): Leave target async alone.
4283 * mi/mi-interp.c (mi_interpreter_init): Install
4284 mi_on_sync_execution_done as sync_execution_done observer.
4285 (mi_on_sync_execution_done): New function.
4286 (mi_execute_command_input_handler): Don't print the prompt if we
4287 just started a synchronous command with an async target.
4288 (mi_on_resume): Check sync_execution before printing prompt.
4289 * mi/mi-main.h (mi_async_p): Declare.
4290 * mi/mi-main.c: Include gdbcmd.h.
4291 (mi_async_p): New function.
4292 (mi_async, mi_async_1): New globals.
4293 (set_mi_async_command, show_mi_async_command, mi_async): New
4294 functions.
4295 (exec_continue): Call prepare_execution_command.
4296 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4297 (mi_execute_async_cli_command): Use mi_async_p.
4298 (_initialize_mi_main): Install "set mi-async". Make
4299 "target-async" a deprecated alias.
4300
92bcb5f9
PA
43012014-05-29 Pedro Alves <palves@redhat.com>
4302
4303 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4304 (_initialize_cli_interp): Adjust.
4305 * event-loop.c: Include "observer.h".
4306 (start_event_loop): Notify 'command_error' observers instead of
4307 calling display_gdb_prompt. Remove FIXME comment.
4308 * event-top.c (display_gdb_prompt): Remove call into the
4309 interpreters.
4310 * inf-loop.c: Include "observer.h".
4311 (inferior_event_handler): Notify 'command_error' observers instead
4312 of calling display_gdb_prompt.
4313 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4314 observers instead of calling display_gdb_prompt.
4315 * interps.c (interp_set): Don't call display_gdb_prompt.
4316 (current_interp_display_prompt_p): Delete.
4317 * interps.h (interp_prompt_p): Delete declaration.
4318 (interp_prompt_p_ftype): Delete.
4319 (struct interp_procs) <prompt_proc_p>: Delete field.
4320 (current_interp_display_prompt_p): Delete declaration.
4321 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4322 (_initialize_mi_interp): Adjust.
4323 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4324 'command_error' observers.
4325 (tui_on_sync_execution_done, tui_on_command_error): New
4326 functions.
4327 (tui_display_prompt_p): Delete.
4328 (_initialize_tui_interp): Adjust.
4329
fd664c91
PA
43302014-05-29 Pedro Alves <palves@redhat.com>
4331
4332 PR gdb/13860
4333 * cli/cli-interp.c: Include infrun.h and observer.h.
4334 (cli_uiout, cli_interp): New globals.
4335 (cli_on_signal_received, cli_on_end_stepping_range)
4336 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4337 functions.
4338 (cli_interpreter_init): Install them as 'end_stepping_range',
4339 'signal_received' 'signal_exited', 'exited' and 'no_history'
4340 observers.
4341 (_initialize_cli_interp): Remove cli_interp local.
4342 * infrun.c (handle_inferior_event): Call the several stop reason
4343 observers instead of printing the stop reason directly.
4344 (end_stepping_range): New function.
4345 (print_end_stepping_range_reason, print_signal_exited_reason)
4346 (print_exited_reason, print_signal_received_reason)
4347 (print_no_history_reason): Make static, and add an uiout
4348 parameter. Print to that instead of to CURRENT_UIOUT.
4349 * infrun.h (print_end_stepping_range_reason)
4350 (print_signal_exited_reason, print_exited_reason)
4351 (print_signal_received_reason print_no_history_reason): New
4352 declarations.
4353 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4354 'mi_uiout'.
4355 <cli_uiout>: New field.
4356 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4357 uiout for CLI output. Install 'signal_received',
4358 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4359 observers.
4360 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4361 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4362 (mi_on_no_history): New functions.
4363 (ui_out_free_cleanup): Delete function.
4364 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4365 instead use the one already stored in the MI interpreter data.
4366 (mi_ui_out): Adjust.
4367 * tui/tui-interp.c: Include infrun.h and observer.h.
4368 (tui_interp): New global.
4369 (tui_on_signal_received, tui_on_end_stepping_range)
4370 (tui_on_signal_exited, tui_on_exited)
4371 (tui_on_no_history): New functions.
4372 (tui_init): Install them as 'end_stepping_range',
4373 'signal_received' 'signal_exited', 'exited' and 'no_history'
4374 observers.
4375 (_initialize_tui_interp): Delete tui_interp local.
4376
8817a6f2
PA
43772014-05-29 Pedro Alves <palves@redhat.com>
4378
4379 PR gdb/15713
4380 * linux-nat.c (linux_nat_resume_callback): Rename the second
4381 parameter to 'except'. Skip LP if it points to EXCEPT.
4382 (linux_nat_resume): Don't mark the event lwp as not stopped
4383 before resuming sibling lwps. Instead ask
4384 linux_nat_resume_callback to skip the event lwp. Mark it as not
4385 stopped after actually resuming it.
4386 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4387 resuming it.
4388 (wait_lwp): Mark the lwp as stopped here.
4389 (stop_wait_callback): Mark the lwp as not stopped right after
4390 resuming it. Don't mark lwps as stopped here.
4391 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4392 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4393
251bde03
PA
43942014-05-29 Pedro Alves <palves@redhat.com>
4395
4396 PR PR15693
4397 * infrun.c (resume): Determine how much to resume depending on
4398 whether the caller wanted a step, not whether we can hardware step
4399 the target. Mark all threads that we intend to run as running,
4400 unless we're calling an inferior function.
4401 (normal_stop): If the thread is running an infcall, don't finish
4402 thread state.
4403 * target.c (target_resume): Don't mark threads as running here.
4404
7f3c0343
JB
44052014-05-28 Joel Brobecker <brobecker@adacore.com>
4406
4407 * serial.c (_initialize_serial): Remove support for
4408 the "set remotebaud" and "show remotebaud" commands.
4409 * NEWS: Add entry documenting the removal of that command.
4410
ee34b3f9
YQ
44112014-05-28 Yao Qi <yao@codesourcery.com>
4412
4413 * charset.c: Fix typo in comments.
4414
add6c04d
GB
44152014-05-27 Gary Benson <gbenson@redhat.com>
4416
4417 * utils.c (internal_vproblem): Prompt for a bug report.
4418
92c48fc5
AW
44192014-05-26 Andy Wingo <wingo@igalia.com>
4420
4421 * guile/scm-arch.c (arscm_mark_arch_smob):
4422 * guile/scm-block.c (bkscm_mark_block_smob)
4423 (bkscm_mark_block_syms_progress_smob):
4424 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4425 * guile/scm-exception.c (exscm_mark_exception_smob):
4426 * guile/scm-frame.c (frscm_mark_frame_smob):
4427 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4428 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4429 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4430 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4431 (ppscm_mark_pretty_printer_worker_smob):
4432 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4433 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4434 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4435 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4436 mark functions.
4437 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4438 function.
4439
b2715b27
AW
44402014-05-26 Andy Wingo <wingo@igalia.com>
4441 Doug Evans <xdje42@gmail.com>
4442
4443 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4444 empty_base_class. All uses updated.
4445 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4446 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4447 Adapt all callers.
4448 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4449 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4450 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4451 (gdbscm_gsmob_has_property_p, add_property_name)
4452 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4453 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4454 (gdb-object-has-property?, gdb-object-properties): Remove.
4455 (gdb-object-kind): Renamed from gsmob-kind.
4456
214ab2da
AW
44572014-05-26 Andy Wingo <wingo@igalia.com>
4458
4459 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4460 * configure: Regenerate.
4461
589fdceb
MM
44622014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4463
4464 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4465
67b5c0c1
MM
44662014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4467
4468 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4469 (replay_memory_access_read_only, replay_memory_access_read_write)
4470 (replay_memory_access_types, replay_memory_access)
4471 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4472 (cmd_set_record_btrace, cmd_show_record_btrace)
4473 (cmd_show_replay_memory_access): New.
4474 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4475 (record_btrace_remove_breakpoint): Replace
4476 record_btrace_allow_memory_access with replay_memory_access.
4477 (_initialize_record_btrace): Add commands.
4478 * NEWS: Announce it.
4479
036cd381
RR
44802014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4481
4482 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4483
c77c1e42
RR
44842014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4485
4486 * MAINTAINERS (Write After Approval): Move self back from
4487 paper trail.
4488
45741a9c
PA
44892014-05-22 Pedro Alves <palves@redhat.com>
4490
4491 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4492 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4493 (disable_randomization, enum exec_direction_kind)
4494 (execution_direction, stop_registers, start_remote)
4495 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4496 (wait_for_inferior, normal_stop, get_last_target_status)
4497 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4498 (insert_step_resume_breakpoint_at_sal)
4499 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4500 (set_step_info, print_stop_event, signal_stop_state)
4501 (signal_print_state, signal_pass_state, signal_stop_update)
4502 (signal_print_update, signal_pass_update)
4503 (update_signals_program_target, clear_exit_convenience_vars)
4504 (displaced_step_dump_bytes, update_observer_mode)
4505 (signal_catch_update, gdb_signal_from_command): Move
4506 declarations ...
4507 * infrun.h: ... to this new file.
4508 * amd64-tdep.c: Include infrun.h.
4509 * annotate.c: Include infrun.h.
4510 * arch-utils.c: Include infrun.h.
4511 * arm-linux-tdep.c: Include infrun.h.
4512 * arm-tdep.c: Include infrun.h.
4513 * break-catch-sig.c: Include infrun.h.
4514 * breakpoint.c: Include infrun.h.
4515 * common/agent.c: Include infrun.h instead of inferior.h.
4516 * corelow.c: Include infrun.h.
4517 * event-top.c: Include infrun.h.
4518 * go32-nat.c: Include infrun.h.
4519 * i386-tdep.c: Include infrun.h.
4520 * inf-loop.c: Include infrun.h.
4521 * infcall.c: Include infrun.h.
4522 * infcmd.c: Include infrun.h.
4523 * infrun.c: Include infrun.h.
4524 * linux-fork.c: Include infrun.h.
4525 * linux-nat.c: Include infrun.h.
4526 * linux-thread-db.c: Include infrun.h.
4527 * monitor.c: Include infrun.h.
4528 * nto-tdep.c: Include infrun.h.
4529 * procfs.c: Include infrun.h.
4530 * record-btrace.c: Include infrun.h.
4531 * record-full.c: Include infrun.h.
4532 * remote-m32r-sdi.c: Include infrun.h.
4533 * remote-mips.c: Include infrun.h.
4534 * remote-notif.c: Include infrun.h.
4535 * remote-sim.c: Include infrun.h.
4536 * remote.c: Include infrun.h.
4537 * reverse.c: Include infrun.h.
4538 * rs6000-tdep.c: Include infrun.h.
4539 * s390-linux-tdep.c: Include infrun.h.
4540 * solib-irix.c: Include infrun.h.
4541 * solib-osf.c: Include infrun.h.
4542 * solib-svr4.c: Include infrun.h.
4543 * target.c: Include infrun.h.
4544 * top.c: Include infrun.h.
4545 * windows-nat.c: Include infrun.h.
4546 * mi/mi-interp.c: Include infrun.h.
4547 * mi/mi-main.c: Include infrun.h.
4548 * python/py-threadevent.c: Include infrun.h.
4549
98eb56a4
PA
45502014-05-22 Pedro Alves <palves@redhat.com>
4551
4552 * infrun.c (handle_inferior_event): Store the exit code for
4553 --return-child-result here, instead of ...
4554 (print_exited_reason): ... here.
4555
17b2616c
PA
45562014-05-21 Pedro Alves <palves@redhat.com>
4557
4558 PR gdb/13860
4559 * gdbthread.h (struct thread_control_state): New field
4560 `command_interp'.
4561 * infrun.c (follow_fork): Copy the new thread control field to the
4562 child fork thread.
4563 (clear_proceed_status_thread): Clear the new thread control field.
4564 (proceed): Set the new thread control field.
4565 * interps.h (command_interp): Declare.
4566 * interps.c (command_interpreter): New global.
4567 (command_interp): New function.
4568 (interp_exec): Set `command_interpreter' while here.
4569 * cli-out.c (cli_uiout_dtor): New function.
4570 (cli_ui_out_impl): Install it.
4571 * mi/mi-interp.c: Include cli-out.h.
4572 (mi_cmd_interpreter_exec): Add comment.
4573 (restore_current_uiout_cleanup): New function.
4574 (ui_out_free_cleanup): New function.
4575 (mi_on_normal_stop): If finishing an execution command started by
4576 a CLI command, or any kind of breakpoint-like event triggered,
4577 print the stop event to the output (CLI) stream.
4578 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4579
5166082f
PA
45802014-05-21 Pedro Alves <palves@redhat.com>
4581
4582 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4583 current source line having changed.
4584 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4585 * infrun.c (normal_stop): Adjust call to
4586 set_current_sal_from_frame.
4587 * source.c (clear_lines_listed_range): New function.
4588 (set_current_source_symtab_and_line, identify_source_line): Clear
4589 the lines listed range.
4590 (line_info): Handle the first "info line" after the current source
4591 line having changed.
4592 * stack.c (print_stack_frame): Remove center handling.
4593 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4594 center sal.line.
4595
c1ee2fb3
PA
45962014-05-21 Pedro Alves <palves@redhat.com>
4597
4598 * inf-child.c (inf_child_mourn_inferior): New function.
4599 * inf-child.h (inf_child_mourn_inferior): New declaration.
4600 * darwin-nat.c (darwin_mourn_inferior): Use
4601 inf_child_mourn_inferior.
4602 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4603 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4604 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4605 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4606 * windows-nat.c (windows_mourn_inferior): Likewise.
4607
5c6d4fb2
DE
46082014-05-21 Doug Evans <xdje42@gmail.com>
4609
250748cb 4610 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4611
4a2722c5
DE
46122014-05-21 Doug Evans <xdje42@gmail.com>
4613
17292b30 4614 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4615 (gdbscm_out_of_range_error): Ditto.
4616 (gdbscm_memory_error): Ditto.
250748cb
DE
4617 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4618 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4619 (gdbscm_out_of_range_error): Update.
4620 (gdbscm_memory_error): Update.
4621 (gdbscm_scm_to_target_string_unsafe): Delete.
4622
6a3cb8e8
PA
46232014-05-21 Pedro Alves <palves@redhat.com>
4624
4625 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4626 globals.
4627 (inf_child_open_target): New function.
4628 (inf_child_open): Use inf_child_open_target to push the target
4629 instead of erroring out.
4630 (inf_child_disconnect, inf_child_close)
4631 (inf_child_maybe_unpush_target): New functions.
4632 (inf_child_target): Install inf_child_disconnect and
4633 inf_child_close. Store a pointer to the returned object.
4634 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4635 declarations.
4636 * target.c (auto_connect_native_target): New global.
4637 (show_default_run_target): New function.
4638 (find_default_run_target): Return NULL if automatically connecting
4639 to the native target is disabled.
4640 (_initialize_target): Install set/show auto-connect-native-target.
4641 * NEWS: Mention "set auto-connect-native-target", and "target
4642 native".
4643 * linux-nat.c (super_close): New global.
4644 (linux_nat_close): Call super_close.
4645 (linux_nat_add_target): Store a pointer to the base class's
4646 to_close method.
4647 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4648 inf_child_maybe_unpush.
4649 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4650 already pushed.
4651 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4652 the inferior. Use inf_child_maybe_unpush_target.
4653 (inf_ttrace_attach): Don't push the target if it is already
4654 pushed.
4655 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4656 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4657 after mourning the inferior. Use inf_child_maybe_unpush_target.
4658 (darwin_attach_pid): Don't push the target if it is already
4659 pushed.
4660 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4661 mourning the inferior. Use inf_child_maybe_unpush_target.
4662 (gnu_detach): Use inf_child_maybe_unpush_target.
4663 * go32-nat.c (go32_create_inferior): Don't push the target if it
4664 is already pushed.
4665 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4666 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4667 (procfs_open): Rename to ...
4668 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4669 comments. Can target_preopen before changing node. Call
4670 inf_child_open_target to push the target explicitly.
4671 (procfs_attach): Don't push the target if it is already pushed.
4672 (procfs_detach): Use inf_child_maybe_unpush_target.
4673 (procfs_create_inferior): Don't push the target if it is already
4674 pushed.
4675 (nto_native_ops): New global.
4676 (procfs_open): Reimplement.
4677 (procfs_native_open): New function.
4678 (init_procfs_targets): Install procfs_native_open as to_open of
4679 "target native". Store a pointer to the "native" target in
4680 nto_native_ops.
4681 * procfs.c (procfs_attach): Don't push the target if it is already
4682 pushed.
4683 (procfs_detach): Use inf_child_maybe_unpush_target.
4684 (procfs_mourn_inferior): Only unpush the target after mourning the
4685 inferior. Use inf_child_maybe_unpush_target.
4686 (procfs_init_inferior): Don't push the target if it is already
4687 pushed.
4688 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4689 if it is already pushed.
4690
930ee1b1
PA
46912014-05-21 Pedro Alves <palves@redhat.com>
4692
4693 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4694 and "procfs" targets are now called "native" instead.
4695
1f5d1b13
PA
46962014-05-21 Pedro Alves <palves@redhat.com>
4697
4698 * go32-nat.c (go32_open): Delete.
4699 (go32_target): Don't override the to_open method.
4700
132f8e03
PA
47012014-05-21 Pedro Alves <palves@redhat.com>
4702
4703 * nto-procfs.c (procfs_can_run): New function.
4704 (nto_procfs_ops): New global.
4705 (init_procfs_targets): New, based on procfs_target. Install
4706 "target native" in addition to "target procfs".
4707 (_initialize_procfs): Call init_procfs_targets instead of adding
4708 the target here.
4709
03c136c3
PA
47102014-05-21 Pedro Alves <palves@redhat.com>
4711
4712 * windows-nat.c (windows_target): Don't override to_shortname,
4713 to_longname or to_doc.
4714
a635d0f3
PA
47152014-05-21 Pedro Alves <palves@redhat.com>
4716
4717 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4718 to_doc.
4719
4f9b5133
PA
47202014-05-21 Pedro Alves <palves@redhat.com>
4721
4722 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4723 to_shortname, to_longname or to_doc.
4724
bc85afde
PA
47252014-05-21 Pedro Alves <palves@redhat.com>
4726
4727 * go32-nat.c (go32_target): Don't override to_shortname,
4728 to_longname or to_doc.
4729
4ebfc96e
PA
47302014-05-21 Pedro Alves <palves@redhat.com>
4731
4732 * inf-child.c (inf_child_open): Remove mention of "child".
4733 (inf_child_target): Rename target to "native" instead of "child".
4734
2648dfed
AA
47352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4736
4737 * Makefile.in (SFILES): Delete "regset.c".
4738 (COMMON_OBS): Delete "regset.o".
4739 * regset.c: Remove.
4740 * regset.h (regset_alloc): Delete prototype.
4741
b13feb94
AA
47422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4743
4744 * sparc-linux-tdep.c (sparc32_linux_gregset)
4745 (sparc32_linux_fpregset): New static regset structures.
4746 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4747 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4748 'fpregset' fields.
4749 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4750 (sparc64_linux_fpregset): New static regset structures.
4751 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4752 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4753 New static regset structures.
4754 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4755 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4756 New static regset structures.
4757 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4758 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4759 New static regset structures.
4760 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4761 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4762 New static regset structures.
4763 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4764
b4fd25c9
AA
47652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4766
4767 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4768 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4769 register maps ("regmaps") from "*regset" to "*regmap". Do this
4770 for all regmap types and variables.
4771 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4772 (sparc32_linux_supply_core_gregset)
4773 (sparc32_linux_collect_core_gregset)
4774 (sparc32_linux_supply_core_fpregset)
4775 (sparc32_linux_collect_core_fpregset): Likewise.
4776 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4777 (sparc_gregmap, sparc_fpregmap): ... these.
4778 (sparc_supply_gregset, sparc_collect_gregset)
4779 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4780 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4781 (_initialize_sparc_nat): Rename regmaps.
4782 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4783 (sparc_gregmap, sparc_fpregmap): ... these.
4784 (sparc_supply_gregset, sparc_collect_gregset)
4785 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4786 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4787 Rename macros to...
4788 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4789 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4790 Likewise.
4791 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4792 Rename to...
4793 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4794 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4795 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4796 regmaps.
4797 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4798 (sparc32_bsd_fpregset): Rename to...
4799 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4800 (sparc32_bsd_fpregmap): ... these.
4801 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4802 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4803 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4804 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4805 (struct sparc_gregmap, struct sparc_fpregmap)
4806 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4807 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4808 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4809 (sparc32_supply_regset, sparc32_collect_gregset)
4810 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4811 prototypes.
4812 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4813 (sparc64_linux_ptrace_gregmap): ... this.
4814 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4815 (_initialize_sparc64_linux_nat): Rename regmaps.
4816 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4817 (sparc64_linux_core_gregmap): ... this.
4818 (sparc64_linux_supply_core_gregset)
4819 (sparc64_linux_collect_core_gregset)
4820 (sparc64_linux_supply_core_fpregset)
4821 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4822 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4823 (sparc64_sol2_fpregset): Rename to...
4824 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4825 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4826 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4827 regmaps.
4828 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4829 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4830 (sparc64_bsd_fpregset): Rename to...
4831 (struct sparc_gregmap, sparc64_sol2_gregmap)
4832 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4833 (sparc64_bsd_fpregmap): ... these.
4834 (sparc64_supply_gregset, sparc64_collect_gregset)
4835 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4836 prototypes.
4837 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4838 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4839 (sparc64fbsd_gregmap): ... this.
4840 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4841 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4842 Rename regmaps.
4843 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4844 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4845 (sparc64nbsd_collect_fpregset): Likewise.
4846 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4847 (sparc64nbsd_gregmap): ... this.
4848 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4849 regmaps.
4850 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4851 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4852 (sparc64obsd_gregmap): ... this.
4853 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4854 regmaps.
4855 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4856 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4857 (sparc32nbsd_gregmap): ... this.
4858 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4859 regmaps.
4860
8fea3224
AA
48612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4862
4863 * score-tdep.c (score7_linux_gregset): New static regset
4864 structure.
4865 (score7_linux_regset_from_core_section): Remove dynamic regset
4866 allocation.
4867 (score_gdbarch_init): Drop allocation of tdep structure.
4868 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4869
24534243
AA
48702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4871
4872 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4873 regset structures.
4874 (am33_regset_from_core_section): Remove dynamic regset
4875 allocations.
4876
b7195f27
AA
48772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4878
4879 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4880 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4881 structures.
4882 (mips_linux_regset_from_core_section): Remove dynamic regset
4883 allocations.
4884 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4885 'gregset64', 'fpregset', and 'fpregset64'.
4886 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4887 deleted tdep fields.
4888
ecc37a5a
AA
48892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4890
4891 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4892 regset structures.
4893 (amd64_regset_from_core_section): Remove dynamic regset
4894 allocations.
4895 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4896 structure.
4897 (amd64obsd_regset_from_core_section): Remove dynamic regset
4898 allocation.
4899 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4900 Likewise.
4901 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4902 x86-common regset supply function.
4903 * i386-tdep.c (i386_collect_gregset): Make static.
4904 (i386_gregset): New global regset structure.
4905 (i386_fpregset, i386_xstateregset): New static regset structures.
4906 (i386_regset_from_core_section): Remove dynamic regset
4907 allocations.
4908 (i386_gdbarch_init): Remove initialization of tdep fields
4909 'gregset', 'fpregset', and 'xstateregset'.
4910 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4911 'fpregset', and 'xstateregset'.
4912 (i386_collect_gregset): Remove prototype.
4913 (i386_gregset): New declaration.
4914 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4915 structure.
4916 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4917 allocation.
4918
b7611c43
AA
49192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4920
4921 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4922 (arm_linux_vfpregset): New static regset structures.
4923 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4924 regset structures.
4925 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4926 and 'vfpregset' fields.
4927
a069a2bd
AA
49282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4929
4930 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4931 (aarch64_linux_fpregset): New static regset structures.
4932 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4933 of regset structures.
4934 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4935 'fpregset' fields.
4936
09424cff
AA
49372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4938
4939 * regset.h (struct regset): Remove gdbarch field.
4940 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4941 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4942 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4943 Likewise.
4944 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4945 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4946 (ppc32_linux_vsxregset): Likewise.
4947 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4948 via the regcache instead of the regset.
4949 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4950 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4951 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4952 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4953 Likewise.
4954
3ca7dae4
AA
49552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4956
4957 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4958 Constify structures.
4959 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4960 (alphanbsd_aout_gregset): Likewise.
4961 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4962 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4963 Likewise.
4964 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4965 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4966 Likewise.
4967 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4968 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4969 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4970 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4971 * m88k-tdep.c (m88k_gregset): Likewise.
4972 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4973 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4974 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4975 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4976 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4977 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4978 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4979 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4980 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4981 Likewise.
4982 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4983 * sh-tdep.h (sh_corefile_gregset): Likewise.
4984 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4985 * vax-tdep.c (vax_gregset): Likewise.
4986
5876f503
JK
49872014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4988
4989 Fix TLS access for -static -pthread.
4990 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4991 (try_thread_db_load_1): Initialize it.
4992 (thread_db_get_thread_local_address): Call it if LM is zero.
4993 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4994 * target.h (struct target_ops) (to_get_thread_local_address): Add
4995 load_module_addr comment.
4996
0256a6ac
PA
49972014-05-21 Pedro Alves <palves@redhat.com>
4998
4999 * dcache.c (dcache_read_memory_partial): If reading the cache line
5000 fails, fallback to reading just the memory the caller wanted.
5001
227533ac
DE
50022014-05-20 Doug Evans <dje@google.com>
5003
5004 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5005 instead of get_current_arch.
5006
936d2992
PA
50072014-05-20 Pedro Alves <palves@redhat.com>
5008
5009 * NEWS: Mention that compare-sections now works with all targets.
5010
5011 * remote.c (PACKET_qCRC): New enum value.
5012 (remote_verify_memory): Don't send qCRC if the target has no
5013 execution. Use packet_support/packet_ok. If the target doesn't
5014 support the qCRC packet, fallback to a deep memory copy.
5015 (compare_sections_command): Say "target image" instead of "remote
5016 executable".
5017 (_initialize_remote): Add PACKET_qCRC to the list of config
5018 packets that have no associated command. Extend comment.
5019 * target.c (simple_verify_memory, default_verify_memory): New
5020 function.
5021 * target.h (struct target_ops) <to_verify_memory>: Default to
5022 default_verify_memory.
5023 (simple_verify_memory): New declaration.
5024 * target-delegates.c: Regenerate.
5025
e59fa00f
MM
50262014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5027
5028 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5029
f2205de0
HZ
50302014-05-20 Hui Zhu <hui@codesourcery.com>
5031 Yao Qi <yao@codesourcery.com>
5032
5033 PR backtrace/16558
5034 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5035 and change address of sp and pc.
5036
c4e54771
TT
50372014-05-19 Tom Tromey <tromey@redhat.com>
5038
5039 * gdbtypes.c (rank_function): Use XNEWVEC.
5040 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5041
73051182
DE
50422014-05-19 Doug Evans <dje@google.com>
5043
5044 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5045 build_type_unit_groups and moved closer to only caller. Remove
5046 arguments. All references updated. Remove outdated .gdb_index
5047 comment.
5048 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5049 build_type_psymtabs_1.
5050
8832e7e3
DE
50512014-05-19 Doug Evans <dje@google.com>
5052
5053 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5054 n_type_unit_groups, all_type_unit_groups. All uses removed.
5055 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5056 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5057 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5058 (add_type_unit_group_to_table): Delete.
5059
cd8ae15e
DE
50602014-05-19 Doug Evans <dje@google.com>
5061
5062 * eval.c (evaluate_subexp_standard): Add some comments.
5063
08f4850b
DE
50642014-05-17 Doug Evans <xdje42@gmail.com>
5065
5066 * progspace.c (remove_program_space): Delete, unused.
5067 * progspace.h (remove_program_space): Ditto.
5068
bed8455c
DE
50692014-05-17 Doug Evans <xdje42@gmail.com>
5070
5071 * inferior.c (prune_inferiors): Fix comment.
5072 (remove_inferior_command): Call prune_program_spaces.
5073
8d551b02
DE
50742014-05-16 Doug Evans <dje@google.com>
5075
5076 New command line option -D.
5077 * NEWS: Mention it.
5078 * main.c (set_gdb_data_directory): New function.
5079 (captured_main): Recognize -D. Flag error for --data-directory "".
5080 Call set_gdb_data_directory.
5081 (print_gdb_help): Print --data-directory, -D.
5082 * main.h (set_gdb_data_directory): Declare.
5083 * top.c (staged_gdb_datadir): New static global.
5084 (set_gdb_datadir): Call set_gdb_data_directory
5085 (show_gdb_datadir): New function.
5086 (init_main): Update init of data-directory parameter.
5087
18848e28
GF
50882014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5089
5090 Import the "dirfd" gnulib module.
5091 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5092 * gnulib/aclocal.m4: Update.
5093 * gnulib/config.in: Update.
5094 * gnulib/configure: Update.
5095 * gnulib/import/Makefile.am: Update.
5096 * gnulib/import/Makefile.in: Update.
5097 * gnulib/import/dirfd.c: New.
5098 * gnulib/import/m4/dirfd.m4: New.
5099 * gnulib/import/m4/gnulib-cache.m4: Update.
5100 * gnulib/import/m4/gnulib-comp.m4: Update.
5101
95c64f92
YQ
51022014-05-16 Pierre Muller <muller@sourceware.org>
5103 Yao Qi <yao@codesourcery.com>
5104
5105 * valprint.c (print_wchar): Move the code on checking whether
5106 W is a printable wide char to the default branch of switch
5107 statement below. Call wchar_printable instead of gdb_iswprint.
5108
cac395ea
TM
51092014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5110
19679eca 5111 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5112 ldr.w and ldrd instructions.
5113
83655187
DE
51142014-05-15 Doug Evans <dje@google.com>
5115
5116 * dwarf2read.c (read_structure_type): Delete outdated comments.
5117
dd756689
TT
51182014-05-14 Tom Tromey <tromey@redhat.com>
5119
5120 * macrocmd.c (print_macro_definition): Reindent.
5121
75ddda77
DE
51222014-05-13 Doug Evans <xdje42@gmail.com>
5123
5124 * python/py-cmd.c (cmdpy_completer): Add comment.
5125 (completers): Make const.
5126
b0f16a3e
SM
51272014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5128
5129 * infrun.c (resume): Remove should_resume (unused). Move up
5130 declaration of resume_ptid.
5131
033c3379
TT
51322014-05-13 Tom Tromey <tromey@redhat.com>
5133
5134 * language.h (unop_type_check): Remove.
5135 (binop_type_check): Don't declare.
5136
9b44a3a5
AA
51372014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5138
5139 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5140 call to regcache_raw_collect.
5141
303a33fa
SM
51422014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5143
5144 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5145 mi_console->quote as the quoting character.
5146
196100a0
SM
51472014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5148
5149 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5150
f989a1c8
TT
51512014-04-29 Tom Tromey <tromey@redhat.com>
5152
5153 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5154 "show debug varobj".
5155
9404b58f
KM
51562014-05-07 Kyle McMartin <kyle@redhat.com>
5157
5158 Pushed by Joel Brobecker <brobecker@adacore.com>.
5159 * aarch64-tdep.c (aarch64_software_single_step): New function.
5160 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5161 with aarch64_software_single_step.
5162
5e49ba57
JB
51632014-05-05 Joel Brobecker <brobecker@adacore.com>
5164
5165 GDB 7.7.1 released.
5166
c888a17d
KS
51672014-05-05 Keith Seitz <keiths@redhat.com>
5168
5169 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5170 variable or history value is successfully parsed.
5171
290a839c
YQ
51722014-05-05 Yao Qi <yao@codesourcery.com>
5173 Pedro Alves <palves@redhat.com>
5174
5175 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5176 address of blocks that intersects the requested range. Trim
5177 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5178 sections.
5179 * ctf.c (ctf_xfer_partial): Likewise.
5180
91256dc2
YQ
51812014-05-05 Yao Qi <yao@codesourcery.com>
5182
5183 * printcmd.c (display_command): Remove the check to
5184 target_has_execution.
5185
07284463
MK
51862014-05-03 Mark Kettenis <kettenis@gnu.org>
5187
5188 * ppcobsd-nat.c: Include "obsd-nat.h".
5189 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5190 add_target.
5191 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5192
30a1e6cc
SDJ
51932014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5194
5195 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5196 and 16-bit signed and unsigned arguments. Update comment.
5197 (stap_parse_probe_arguments): Extend code to handle such
5198 arguments. Use warning instead of complaint to notify about
5199 unrecognized bitness.
5200
f33da99a
SDJ
52012014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5202
5203 PR breakpoints/16889
5204 * stap-probe.c (stap_parse_probe_arguments): Simplify
5205 check for non-prefixed probes (i.e., probes whose
5206 arguments do not start with "N@"). Always set the
5207 argument type to a sane value.
5208
95cf3b38
DT
52092014-05-01 David Taylor <dtaylor@emc.com>
5210
5211 * remote.c (compare_sections_command): Add -r option to compare
5212 all loadable read-only sections.
5213
1cfdf534
SC
52142014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5215
5216 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5217 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5218 Update all callers.
5219 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5220 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5221 Remove unused CORE_ADDR argument. Update all callers.
5222
ca4f7f8b
PA
52232014-04-29 Pedro Alves <palves@redhat.com>
5224
5225 * remote.c (struct packet_config) <detect>: Extend comment.
5226 (add_packet_config_cmd): Don't set the config's detect or support
5227 fields here.
5228 (init_all_packet_configs): Also initialize the config's 'detect'
5229 field.
5230 (reset_all_packet_configs_support): New function.
5231 (remote_open_1): Call reset_all_packet_configs_support instead of
5232 init_all_packet_configs.
5233 (_initialize_remote): Initialize all packet configs. Assert that
5234 all packets have an associated command, except a few known
5235 outliers.
5236
11c1ba78
JB
52372014-04-28 Joel Brobecker <brobecker@adacore.com>
5238
5239 * dwarf2read.c (read_subrange_type): Handle dynamic
5240 DW_AT_lower_bound attributes.
5241
8739bc53
JB
52422014-04-28 Joel Brobecker <brobecker@adacore.com>
5243
5244 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5245 dynamic bounds before computing its upper bound.
5246 (ada_discrete_type_low_bound): Same as above with the lower bound.
5247
6f8a3220
JB
52482014-04-28 Joel Brobecker <brobecker@adacore.com>
5249
5250 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5251 range types. Adjust the array handling implementation to
5252 take advantage of this change.
5253 (resolve_dynamic_range): New function, mostly extracted from
5254 resolve_dynamic_bounds.
5255 (resolve_dynamic_array): New function, mostly extracted from
5256 resolve_dynamic_bounds.
5257 (resolve_dynamic_bounds): Delete.
5258 (resolve_dynamic_type): Reimplement. Add handling of
5259 TYPE_CODE_RANGE types.
5260
4d072ce4
JB
52612014-04-28 Joel Brobecker <brobecker@adacore.com>
5262
5263 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5264 handling of parallel ___XA types.
5265
52865325
JB
52662014-04-28 Joel Brobecker <brobecker@adacore.com>
5267
5268 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5269 unnecessary second call to static_unwrap_type.
5270
433e77fa
HZ
52712014-04-27 Hui Zhu <hui@codesourcery.com>
5272
5273 * stack.c (print_frame_info): Call do_gdb_disassembly with
5274 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5275
b51a69ee
DE
52762014-04-26 Doug Evans <xdje42@gmail.com>
5277
5278 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5279
7ae1a6a6
PA
52802014-04-25 Pedro Alves <palves@redhat.com>
5281
5282 PR server/16255
5283 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5284 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5285 and newline from built string.
5286 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5287 (linux_ptrace_attach_fail_reason): ... this.
5288 * linux-nat.c (linux_nat_attach): Adjust to use
5289 linux_ptrace_attach_fail_reason.
5290
4082afcc
PA
52912014-04-25 Pedro Alves <palves@redhat.com>
5292
5293 * remote.c (struct remote_state): Remove multi_process_aware,
5294 non_stop_aware, cond_tracepoints, cond_breakpoints,
5295 breakpoint_commands, fast_tracepoints, static_tracepoints,
5296 install_in_trace, disconnected_tracing,
5297 enable_disable_tracepoints, string_tracing, and
5298 augmented_libraries_svr4_read fields.
5299 (remote_multi_process_p): Move further below in the file.
5300 (struct packet_config): Add comments.
5301 (update_packet_config): Delete function.
5302 (show_packet_config_cmd): Use packet_config_support.
5303 (add_packet_config_cmd): Use NULL as set callback.
5304 (packet_ok): "set remote foo-packet"-style commands no longer
5305 change config->supported -- adjust.
5306 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5307 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5308 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5309 (PACKET_QNonStop, PACKET_multiprocess_feature)
5310 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5311 (PACKET_DisconnectedTracing_feature)
5312 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5313 (set_remote_protocol_packet_cmd): Delete function.
5314 (packet_config_support, packet_support): New functions.
5315 (set_remote_protocol_Z_packet_cmd): Don't call
5316 update_packet_config.
5317 (remote_query_attached, remote_pass_signals)
5318 (remote_program_signals, remote_threads_info)
5319 (remote_threads_extra_info, remote_start_remote): Use
5320 packet_support.
5321 (remote_start_remote): Use packet_config_support and
5322 packet_support.
5323 (init_all_packet_configs): Set all packets to unknown support,
5324 instead of calling update_packet_config.
5325 (remote_check_symbols): Use packet_support.
5326 (remote_supported_packet): Unconditionally set the packet config's
5327 support status.
5328 (remote_multi_process_feature, remote_non_stop_feature)
5329 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5330 (remote_breakpoint_commands_feature)
5331 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5332 (remote_install_in_trace_feature)
5333 (remote_disconnected_tracing_feature)
5334 (remote_enable_disable_tracepoint_feature)
5335 (remote_string_tracing_feature)
5336 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5337 (remote_protocol_features): Adjust to use remote_supported_packet
5338 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5339 "ConditionalTracepoints", "ConditionalBreakpoints",
5340 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5341 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5342 "EnableDisableTracepoints", and "tracenz".
5343 (remote_query_supported): Use packet_support.
5344 (remote_open_1): Adjust.
5345 (extended_remote_attach_1): Use packet_support. Switch on the
5346 result of packet_ok instead of checking whether the packet ended
5347 up disabled.
5348 (remote_vcont_resume): Use packet_support.
5349 (remote_resume, remote_stop_ns, fetch_register_using_p)
5350 (remote_prepare_to_store, store_register_using_P)
5351 (check_binary_download, remote_write_bytes): Use packet_support.
5352 (remote_vkill): Use packet_support. Switch on the result of
5353 packet_ok instead of checking whether the packet ended up
5354 disabled.
5355 (extended_remote_supports_disable_randomization): Use
5356 packet_support.
5357 (extended_remote_run): Switch on the result of packet_ok instead
5358 of checking whether the packet ended up disabled.
5359 (remote_insert_breakpoint, remote_remove_breakpoint)
5360 (remote_insert_watchpoint, remote_remove_watchpoint)
5361 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5362 packet_support.
5363 (remote_search_memory): Use packet_config_support.
5364 (remote_get_thread_local_address, remote_get_tib_address)
5365 (remote_hostio_send_command, remote_can_execute_reverse): Use
5366 packet_support.
5367 (remote_supports_cond_tracepoints)
5368 (remote_supports_cond_breakpoints)
5369 (remote_supports_fast_tracepoints)
5370 (remote_supports_static_tracepoints)
5371 (remote_supports_install_in_trace)
5372 (remote_supports_enable_disable_tracepoint)
5373 (remote_supports_string_tracing)
5374 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5375 the packet config says the feature is enabled or disabled.
5376 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5377 (remote_get_trace_status): Use packet_support.
5378 (remote_set_disconnected_tracing): Adjust to check whether the
5379 feature is enabled with packet_support.
5380 (remote_set_trace_buffer_size, remote_use_agent)
5381 (remote_can_use_agent, remote_supports_btrace): Use
5382 packet_support.
5383 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5384 Use packet_config_support.
5385 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5386 the packet config says the feature is enabled or disabled.
5387 (set_range_stepping): Use packet_support.
5388
bdb52a22
TT
53892014-04-25 Tom Tromey <tromey@redhat.com>
5390
5391 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5392 argument.
5393
e9475ead
SA
53942014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5395
5396 * NEWS: Mention support for C99 variable length arrays.
5397
82eacd52
JB
53982014-04-24 Joel Brobecker <brobecker@adacore.com>
5399
5400 * ada-lang.c (standard_exc): Expand introductory comment.
5401
01f9f808
MS
54022014-04-24 Michael Sturm <michael.sturm@mintel.com>
5403 Walfred Tedeschi <walfred.tedeschi@intel.com>
5404
5405 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5406 AVX512 registers.
5407 (amd64_linux_read_description): Add code to handle AVX512 xstate
5408 mask and return respective tdesc.
5409 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5410 and features/i386/x32-avx512-linux.c.
5411 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5412 (amd64_linux_core_read_description): Add code to handle AVX512
5413 xstate mask and return respective tdesc.
5414 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5415 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5416 calculation.
5417 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5418 (tdesc_amd64_avx512_linux): New prototype.
5419 (tdesc_x32_avx512_linux): Likewise.
5420 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5421 features/i386/x32-avx512.c.
5422 (amd64_ymm_avx512_names): New register names for pseudo
5423 registers YMM16-31.
5424 (amd64_ymmh_avx512_names): New register names for raw registers
5425 YMMH16-31.
5426 (amd64_k_names): New register names for K registers.
5427 (amd64_zmmh_names): New register names for ZMM raw registers.
5428 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5429 (amd64_xmm_avx512_names): New register names for XMM16-31
5430 registers.
5431 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5432 registers.
5433 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5434 if feature is present.
5435 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5436 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5437 (AMD64_NUM_REGS): Adjust to new number of registers.
5438 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5439 registers supplied via XSTATE by AVX512 registers.
5440 (i386_linux_read_description): Add case for AVX512.
5441 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5442 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5443 (i386_linux_core_read_description): Add case for AVX512.
5444 (i386_linux_init_abi): Install supported register note section
5445 for AVX512.
5446 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5447 AVX512.
5448 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5449 registers to be number of zmm7h + 1.
5450 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5451 * i386-tdep.c: Include features/i386/i386-avx512.c.
5452 (i386_zmm_names): Add ZMM pseudo register names array.
5453 (i386_zmmh_names): Add ZMM raw register names array.
5454 (i386_k_names): Add K raw register names array.
5455 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5456 registers. AVX512 has 16 more ZMM registers than there are YMM
5457 registers.
5458 (i386_zmmh_regnum_p): Add function to look up register number of
5459 ZMM raw registers.
5460 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5461 (i386_k_regnum_p): Likewise for K raw registers.
5462 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5463 registers added by AVX512.
5464 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5465 registers added by AVX512.
5466 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5467 added by AVX512.
5468 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5469 (i386_pseudo_register_name): Add ZMM pseudo registers.
5470 (i386_zmm_type): Construct and return vector registers type for ZMM
5471 registers.
5472 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5473 ZMM0-31 pseudo registers and K registers.
5474 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5475 and YMM16-31 registers from register cache.
5476 (i386_pseudo_register_write): Add code to write K, ZMM and
5477 YMM16-31 registers.
5478 (i386_register_reggroup_p): Add code to include/exclude AVX512
5479 registers in/from respective register groups.
5480 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5481 registers if feature is present in xcr0.
5482 (i386_gdbarch_init): Add code to initialize AVX512 feature
5483 variables in tdep structure, wire in pseudo registers and call
5484 initialize_tdesc_i386_avx512.
5485 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5486 variables.
5487 (i386_regnum): Add AVX512 registers.
5488 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5489 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5490 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5491 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5492 512 bits wide.
5493 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5494 (i386_ymm_avx512_regnum_p): Likewise.
5495 (i386_k_regnum_p): Likewise.
5496 (i386_zmm_regnum_p): Likewise.
5497 (i386_zmmh_regnum_p): Likewise.
5498 * i387-tdep.c : Update year in copyright notice.
5499 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5500 XSAVE buffer.
5501 (XSAVE_YMM_AVX512_ADDR): New macro.
5502 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5503 XSAVE buffer.
5504 (XSAVE_XMM_AVX512_ADDR): New macro.
5505 (xsave_avx512_k_offset): New table for K register offsets in
5506 XSAVE buffer.
5507 (XSAVE_AVX512_K_ADDR): New macro.
5508 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5509 in XSAVE buffer.
5510 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5511 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5512 buffer.
5513 (i387_collect_xsave): Add code to collect AVX512 registers from
5514 XSAVE buffer.
5515 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5516 of XMM16-31 registers.
5517 (I387_NUM_K_REGS): New define for number of K registers.
5518 (I387_K0_REGNUM): New define for K0 register number.
5519 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5520 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5521 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5522 registers.
5523 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5524 (I387_XMM16_REGNUM): New define for XMM16 register number.
5525 (I387_YMM0_REGNUM): New define for YMM0 register number.
5526 (I387_KEND_REGNUM): New define for last K register number.
5527 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5528 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5529 number.
5530 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5531 number.
5532 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5533 size.
5534 * features/Makefile: Add AVX512 related files.
5535 * features/i386/32bit-avx512.xml: New file.
5536 * features/i386/64bit-avx512.xml: Likewise.
5537 * features/i386/amd64-avx512-linux.c: Likewise.
5538 * features/i386/amd64-avx512-linux.xml: Likewise.
5539 * features/i386/amd64-avx512.c: Likewise.
5540 * features/i386/amd64-avx512.xml: Likewise.
5541 * features/i386/i386-avx512-linux.c: Likewise.
5542 * features/i386/i386-avx512-linux.xml: Likewise.
5543 * features/i386/i386-avx512.c: Likewise.
5544 * features/i386/i386-avx512.xml: Likewise.
5545 * features/i386/x32-avx512-linux.c: Likewise.
5546 * features/i386/x32-avx512-linux.xml: Likewise.
5547 * features/i386/x32-avx512.c: Likewise.
5548 * features/i386/x32-avx512.xml: Likewise.
5549 * regformats/i386/amd64-avx512-linux.dat: New file.
5550 * regformats/i386/amd64-avx512.dat: Likewise.
5551 * regformats/i386/i386-avx512-linux.dat: Likewise.
5552 * regformats/i386/i386-avx512.dat: Likewise.
5553 * regformats/i386/x32-avx512-linux.dat: Likewise.
5554 * regformats/i386/x32-avx512.dat: Likewise.
5555 * NEWS: Add note about new support for AVX512.
5556
5557
08351840
PA
55582014-04-23 Pedro Alves <palves@redhat.com>
5559
5560 * breakpoint.c (insert_bp_location): Tolerate errors if the
5561 breakpoint is set in a user-loaded objfile.
5562 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5563 location is marked shlib_disabled. If the breakpoint is set in a
5564 user-loaded objfile is a GDB-side memory breakpoint, validate it
5565 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5566 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5567 flag.
5568 * mem-break.c (memory_validate_breakpoint): New function.
5569 * objfiles.c (userloaded_objfile_contains_address_p): New
5570 function.
5571 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5572 * target.h (memory_validate_breakpoint): New declaration.
5573
076855f9
PA
55742014-04-23 Pedro Alves <palves@redhat.com>
5575
5576 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5577 the breakpoint is set in a shared library, only suppress
5578 errors for software breakpoints, not hardware breakpoints.
5579
483805cf
PA
55802014-04-22 Pedro Alves <palves@redhat.com>
5581
5582 * infrun.c (schedlock_applies): New function, factored out from
5583 find_thread_needs_step_over.
5584 (find_thread_needs_step_over): Use it.
5585 (switch_back_to_stepped_thread): Always clear trap_expected if the
5586 step over is finished. Return early if scheduler locking applies.
5587 Look for the stepping thread and a potential step-over thread with
5588 a single loop.
5589 (currently_stepping_or_nexting_callback): Delete.
5590
a75fef0e
NC
55912014-04-22 Nick Clifton <nickc@redhat.com>
5592
5593 * NEWS: Mention that ARM sim now supports tracing.
5594
48b6e87e
YQ
55952014-04-22 Yao Qi <yao@codesourcery.com>
5596
5597 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5598 to ...
5599 * tracefile.c (tracefile_fetch_registers): ... it. New
5600 function.
5601 * tracefile.h (tracefile_fetch_registers): Declare.
5602 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5603 tracefile_fetch_registers.
5604
17617f2d
EZ
56052014-04-19 Eli Zaretskii <eliz@gnu.org>
5606
5607 PR gdb/14018
5608 * windows-nat.c (thread_rec): Don't display a warning when
5609 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5610 fails for any reason, set th->suspended to -1, so that we don't
5611 try to resume such a thread. Also, don't return NULL in these
5612 cases, to avoid completely ruin the session due to "PC register is
5613 not available" error.
5614 (do_windows_fetch_inferior_registers): Check errors in
5615 GetThreadContext call.
5616 (windows_continue): Accept an additional argument KILLED; if not
5617 zero, ignore errors in the SetThreadContext call, since the
5618 inferior was killed and is shutting down.
5619 (windows_resume, get_windows_debug_event)
5620 (windows_create_inferior, windows_mourn_inferior)
5621 (windows_kill_inferior): All callers of windows_continue changed
5622 to adjust to its new calling sequence.
5623
5723a6fd
YQ
56242014-04-19 Yao Qi <yao@codesourcery.com>
5625
5626 * ctf.c (ctf_open): Call post_create_inferior.
5627
614d5099
YQ
56282014-04-19 Yao Qi <yao@codesourcery.com>
5629
5630 * ctf.c (handle_id): New static variable.
5631 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5632 value. Get the declaration of event "register" and get length
5633 of field "contents".
5634
dac3e710
YQ
56352014-04-19 Yao Qi <yao@codesourcery.com>
5636
5637 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5638
2bca57ba
SC
56392014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5640
5641 * valops.c (oload_method_static): Remove unnecessary argument
5642 METHOD. Update all callers.
5643
51d48146
PA
56442014-04-18 Pedro alves <palves@redhat.com>
5645 Tom Tromey <tromey@redhat.com>
5646
5647 PR backtrace/15558
5648 * frame.c (get_prev_frame_1): Rename to ...
5649 (get_prev_frame_always): ... this, and make extern. Adjust.
5650 (skip_artificial_frames): Use get_prev_frame_always.
5651 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5652 (get_frame_unwind_stop_reason): Adjust to rename.
5653 * frame.h (get_prev_frame_always): Declare.
5654 * inline-frame.c: Include frame.h.
5655 (inline_frame_this_id): Use get_prev_frame_always.
5656
1bdad2e0
TG
56572014-04-18 Tristan Gingold <gingold@adacore.com>
5658
5659 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5660 code by using bfd_mach_o_get_base_address.
5661
7ce16bd4
UW
56622014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5663
5664 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5665 (spu_ax_pseudo_register_collect): New function.
5666 (spu_ax_pseudo_register_push_stack): Likewise.
5667 (spu_dwarf_reg_to_regnum): Likewise.
5668 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5669
2ed3c037
UW
56702014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5671
5672 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5673 Replace FRAME argument with FRAME_ID.
5674 * gdbarch.c, gdbarch.h: Regenerate.
5675 * findvar.c (default_value_from_register): Add GDBARCH argument;
5676 replace FRAME by FRAME_ID. No longer call get_frame_id.
5677 (value_from_register): Update call to gdbarch_value_from_register.
5678 * value.h (default_value_from_register): Update prototype.
5679 * s390-linux-tdep.c (s390_value_from_register): Update interface
5680 and call to default_value_from_register.
5681 * spu-tdep.c (spu_value_from_register): Likewise.
5682
5683 * findvar.c (address_from_register): Remove TYPE argument.
5684 Do not call value_from_register; use gdbarch_value_from_register
5685 with null_frame_id instead.
5686 * value.h (address_from_register): Update prototype.
5687 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5688 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5689 address_from_register interface change.
5690
71e50e83
YQ
56912014-04-17 Yao Qi <yao@codesourcery.com>
5692
5693 * gdbtypes.h: Update comments to link to types and macros'
5694 definitions.
5695
7a23c549
SC
56962014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5697
5698 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5699
22869d73
KS
57002014-04-16 Keith Seitz <keiths@redhat.com>
5701
5702 PR gdb/15827
5703 * dwarf2read.c (skip_one_die): Check that all relative-offset
5704 sibling DIEs fall within range of the current reader's buffer.
5705 (read_partial_die): Likewise.
5706
c4f87ca6
KS
57072014-04-16 Keith Seitz <keiths@redhat.com>
5708
5709 PR c++/16597
5710 * cp-namespace.c (lookup_symbol_file): If the type name of
5711 `this' is NULL, return immediately.
5712
b50c8614
KS
57132014-04-14 Keith Seitz <keiths@redhat.com>
5714
5715 PR c++/16253
5716 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5717 from symbol_matches_domain in symtab.c. All local callers
5718 of symbol_matches_domain updated.
5719 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5720 search STRUCT_DOMAIN.
5721 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5722 independently. standard_lookup will do that automatically.
5723 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5724 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5725 (cp_lookup_symbol_in_namespace): Likewise.
5726 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5727 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5728 may return a STRUCT_DOMAIN match.
5729 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5730 * cp-support.c: Include language.h.
5731 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5732 VAR_DOMAIN.
5733 * psymtab.c (match_partial_symbol): Compare the requested
5734 domain with the symbol's domain directly.
5735 (lookup_partial_symbol): Likewise.
5736 * symtab.c (lookup_symbol_in_language): Explain when/why
5737 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5738 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5739 appropriate languages.
5740 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5741 and moved to ada-lang.c
5742 (lookup_block_symbol): Explain that this function only returns
5743 symbol matching the requested DOMAIN.
5744 Compare the requested domain with the symbol's domain directly.
5745 (iterate_over_symbols): Compare the requested domain with the
5746 symbol's domain directly.
5747 * symtab.h (symbol_matches_domain): Remove.
5748
3d567982
TT
57492014-04-14 Tom Tromey <tromey@redhat.com>
5750
5751 PR c++/15246:
5752 * c-exp.y (type_aggregate_p): New function.
5753 (qualified_name, classify_inner_name): Use it.
5754 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5755 and TYPE_TARGET_TYPE of an enum type.
5756 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5757 an enum type.
5758 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5759 handle TYPE_DECLARED_CLASS.
5760 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5761 types.
5762 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5763 * valops.c (enum_constant_from_type): New function.
5764 (value_aggregate_elt): Use it.
5765 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5766 TYPE_CODE_ENUM.
5767
c848d642
TT
57682014-04-14 Tom Tromey <tromey@redhat.com>
5769
5770 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5771 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5772 const.
5773 * value.h (value_aggregate_elt): Update.
5774
0626fc76
TT
57752014-04-14 Tom Tromey <tromey@redhat.com>
5776
5777 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5778
5ecaaa66
SA
57792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5780
5781 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5782 (evaluate_subexp_standard): Pass noside argument.
5783 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5784 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5785 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5786 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5787 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5788
1612e0c0
SA
57892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5790
5791 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5792 points to a constant blob.
5793
c451ebe5
SA
57942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5795
5796 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5797 property and store it as the high bound and flag the range accordingly.
5798 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5799 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5800 * gdbtypes.h (enum range_flags): New enum.
5801 (struct range_bounds): Add flags member.
5802
1d42e4c4
SA
58032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5804
5805 * c-typeprint.c (c_type_print_varspec_suffix): Added
5806 check for not yet resolved high bound. If unresolved, print
5807 "variable length" string to the console instead of random
5808 length.
5809
9f1f738a
SA
58102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5811
5812 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5813 value.
5814 (ada_template_to_fixed_record_type_1): Likewise.
5815 (ada_to_fixed_type_1): Likewise.
5816 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5817 (cp_print_value): Likewise.
5818 * d-valprint.c (dynamic_array_type): Likewise.
5819 * findvar.c (address_of_variable): Likewise.
5820 * jv-valprint.c (java_value_print): Likewise.
5821 * valops.c (value_ind): Likewise.
5822 * value.c (coerce_ref): Likewise.
5823
3c8452d4
SA
58242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5825
5826 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5827 value and retrieve the dynamic type size.
5828
4ad88275
SA
58292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5830
5831 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5832 passed to sizeof is dynamic evaluate the argument to compute the length.
5833
80180f79
SA
58342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5835 Joel Brobecker <brobecker@adacore.com>
5836
5837 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5838 (dwarf2_evaluate_property): New function.
5839 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5840 * dwarf2read.c (attr_to_dynamic_prop): New function.
5841 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5842 attribute.
5843 * gdbtypes.c: Include dwarf2loc.h.
5844 (is_dynamic_type): New function.
5845 (resolve_dynamic_type): New function.
5846 (resolve_dynamic_bounds): New function.
5847 (get_type_length): New function.
5848 (check_typedef): Use get_type_length to compute type length.
5849 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5850 (TYPE_LOW_BOUND_KIND): New macro.
5851 (is_dynamic_type): New function prototype.
5852 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5853 to resolve dynamic properties of the type. Update comment.
5854 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5855
a1556843
RH
58562014-04-14 Richard Henderson <rth@redhat.com>
5857
5858 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5859
0be03e84
DE
58602014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5861 Doug Evans <xdje42@gmail.com>
5862
5863 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5864 dereference TYPE_CODE_REF values.
5865
6b662e19
JB
58662014-04-11 Joel Brobecker <brobecker@adacore.com>
5867
5868 Revert the following changes due to regressions:
5869
5870 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5871 (dwarf2_evaluate_property): New function.
5872 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5873 * dwarf2read.c (attr_to_dynamic_prop): New function.
5874 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5875 attribute.
5876 * gdbtypes.c: Include dwarf2loc.h.
5877 (is_dynamic_type): New function.
5878 (resolve_dynamic_type): New function.
5879 (resolve_dynamic_bounds): New function.
5880 (get_type_length): New function.
5881 (check_typedef): Use get_type_length to compute type length.
5882 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5883 (TYPE_LOW_BOUND_KIND): New macro.
5884 (is_dynamic_type): New function prototype.
5885 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5886 to resolve dynamic properties of the type. Update comment.
5887 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5888
5889 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5890 passed to sizeof is dynamic evaluate the argument to compute the length.
5891
5892 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5893 value and retrieve the dynamic type size.
5894
5895 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5896 (ada_template_to_fixed_record_type_1): Likewise.
5897 (ada_to_fixed_type_1): Likewise.
5898 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5899 (cp_print_value): Likewise.
5900 * d-valprint.c (dynamic_array_type): Likewise.
5901 * eval.c (evaluate_subexp_with_coercion): Likewise.
5902 * findvar.c (address_of_variable): Likewise.
5903 * jv-valprint.c (java_value_print): Likewise.
5904 * valops.c (value_ind): Likewise.
5905 * value.c (coerce_ref): Likewise.
5906
5907 * c-typeprint.c (c_type_print_varspec_suffix): Added
5908 check for not yet resolved high bound. If unresolved, print
5909 "variable length" string to the console instead of random
5910 length.
5911
5912 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5913 property and store it as the high bound and flag the range accordingly.
5914 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5915 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5916 * gdbtypes.h (enum range_flags): New enum.
5917 (struct range_bounds): Add flags member.
5918
5919 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5920 points to a constant blob.
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
245a5f0b
KS
59302014-04-11 Keith Seitz <keiths@redhat.com>
5931
5932 PR c++/16675
5933 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5934 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5935 reference types.
5936
3bce8237
SA
59372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5938
5939 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5940 (evaluate_subexp_standard): Pass noside argument.
5941 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5942 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5943 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5944 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5945 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5946
92b09522
SA
59472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5948
5949 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5950 points to a constant blob.
5951
e1969afb
SA
59522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5953
5954 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5955 property and store it as the high bound and flag the range accordingly.
5956 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5957 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5958 * gdbtypes.h (enum range_flags): New enum.
5959 (struct range_bounds): Add flags member.
5960
b86138fb
SA
59612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5962
5963 * c-typeprint.c (c_type_print_varspec_suffix): Added
5964 check for not yet resolved high bound. If unresolved, print
5965 "variable length" string to the console instead of random
5966 length.
5967
bcd629a4
SA
59682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5969
5970 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5971 (ada_template_to_fixed_record_type_1): Likewise.
5972 (ada_to_fixed_type_1): Likewise.
5973 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5974 (cp_print_value): Likewise.
5975 * d-valprint.c (dynamic_array_type): Likewise.
5976 * eval.c (evaluate_subexp_with_coercion): Likewise.
5977 * findvar.c (address_of_variable): Likewise.
5978 * jv-valprint.c (java_value_print): Likewise.
5979 * valops.c (value_ind): Likewise.
5980 * value.c (coerce_ref): Likewise.
5981
04b19544
SA
59822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5983
5984 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5985 value and retrieve the dynamic type size.
5986
26cb189f
SA
59872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5988
5989 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5990 passed to sizeof is dynamic evaluate the argument to compute the length.
5991
37c1ab67
SA
59922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5993
5994 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5995 (dwarf2_evaluate_property): New function.
5996 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5997 * dwarf2read.c (attr_to_dynamic_prop): New function.
5998 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5999 attribute.
6000 * gdbtypes.c: Include dwarf2loc.h.
6001 (is_dynamic_type): New function.
6002 (resolve_dynamic_type): New function.
6003 (resolve_dynamic_bounds): New function.
6004 (get_type_length): New function.
6005 (check_typedef): Use get_type_length to compute type length.
6006 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6007 (TYPE_LOW_BOUND_KIND): New macro.
6008 (is_dynamic_type): New function prototype.
6009 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6010 to resolve dynamic properties of the type. Update comment.
6011 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6012
729efb13
SA
60132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6014
6015 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6016 declaring high/low bounds and change uses accordingly. Call
6017 create_range_type instead of create_static_range_type.
6018 * gdbtypes.c (create_range_type): New function.
6019 (create_range_type): Convert bounds into struct bound_prop and pass
6020 them to create_range_type.
6021 * gdbtypes.h (struct bound_prop): New struct.
6022 (create_range_type): New function prototype.
6023 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6024 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6025 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6026 part of the bound.
6027 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6028
0c9c3474
SA
60292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6030
6031 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6032 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6033 * ada-lang.c: All uses of create_range_type updated.
6034 * coffread.c: All uses of create_range_type updated.
6035 * dwarf2read.c: All uses of create_range_type updated.
6036 * f-exp.y: All uses of create_range_type updated.
6037 * m2-valprint.c: All uses of create_range_type updated.
6038 * mdebugread.c: All uses of create_range_type updated.
6039 * stabsread.c: All uses of create_range_type updated.
6040 * valops.c: All uses of create_range_type updated.
6041 * valprint.c: All uses of create_range_type updated.
6042
9d497a19
PA
60432014-04-10 Pedro Alves <palves@redhat.com>
6044
6045 * breakpoint.c (single_step_breakpoints)
6046 (single_step_gdbarch): Move up in the file.
6047 (one_breakpoint_xfer_memory): New function, factored out from ...
6048 (breakpoint_xfer_memory): ... here. Also process single-step
6049 breakpoints.
6050
15a9128a
TG
60512014-04-09 Tristan Gingold <gingold@adacore.com>
6052
6053 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6054 comments.
6055 (darwin_decode_exception_message): Free port only after use.
6056
9c97a070
PL
60572014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6058
6059 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6060 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6061 when setting the size of call_length.
6062
7af389b8
SC
60632014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6064
6065 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6066 dereference TYPE_CODE_REF values.
6067
86ad98c3
JB
60682014-04-07 Joel Brobecker <brobecker@adacore.com>
6069
6070 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6071 end of warning message.
6072
b0aeadb3
DE
60732014-04-03 Doug Evans <dje@google.com>
6074
6075 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6076 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6077
5979d6b6
AM
60782014-04-02 Alan Modra <amodra@gmail.com>
6079
6080 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6081 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6082 (struct symbol_file_add_from_memory_args): Add size field.
6083 (find_vdso_size): New function.
6084 (add_vsyscall_page): Attempt to find vdso size.
6085
0d60c288
DE
60862014-04-01 Doug Evans <dje@google.com>
6087
6088 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6089
a41f2563
TG
60902014-04-01 Tristan Gingold <gingold@adacore.com>
6091
6092 * darwin-nat.c (darwin_encode_reply): Add prototype.
6093 (darwin_decode_exception_message): Reply to unknown inferiors.
6094 (darwin_decode_message): Handle message by id. Ignore message
6095 to unknown inferior.
6096 (darwin_wait): Discard unknown messages, add debug trace.
6097
11a865c8
DE
60982014-03-31 Doug Evans <dje@google.com>
6099
6100 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6101 comp_dir_string.
6102
770e7fc7
DE
61032014-03-31 Doug Evans <dje@google.com>
6104
6105 New option "set print symbol-loading".
6106 * NEWS: Mention it.
6107 * solib.c (solib_read_symbols): Only print symbol loading messages
6108 if requested.
6109 (solib_add): If symbol loading is in "brief" mode, notify user
6110 symbols are being loaded.
6111 (reload_shared_libraries_1): Ditto.
6112 * symfile.c (print_symbol_loading_off): New static global.
6113 (print_symbol_loading_brief): New static global.
6114 (print_symbol_loading_full): New static global.
6115 (print_symbol_loading_enums): New static global.
6116 (print_symbol_loading): New static global.
6117 (print_symbol_loading_p): New function.
6118 (symbol_file_add_with_addrs): Only print symbol loading messages
6119 if requested.
6120 (_initialize_symfile): Register "print symbol-loading" set/show
6121 command.
6122 * symfile.h (print_symbol_loading_p): Declare.
6123
c32c64b7
DE
61242014-03-30 Doug Evans <xdje42@gmail.com>
6125
6126 * infrun.c (set_last_target_status): New function.
6127 (handle_inferior_event): Call it.
6128
7c0bc051
DE
61292014-03-30 Doug Evans <xdje42@gmail.com>
6130
6131 * inferior.h (enum stop_kind): Improve comment.
6132
8776cfe9
JB
61332014-03-28 Joel Brobecker <brobecker@adacore.com>
6134
6135 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6136 a reference, strip the reference layer before calling
6137 the lang_ops value_has_mutated callback.
6138
410a0ff2
SDJ
61392014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6140
6141 Remove some globals from our parser.
6142 * language.c (unk_lang_parser): Add "struct parser_state"
6143 argument.
6144 * language.h (struct language_defn) <la_parser>: Likewise.
6145 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6146 (initialize_expout): Add "struct parser_state" argument.
6147 Rewrite function to use the parser state.
6148 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6149 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6150 write_exp_elt_longcst, write_exp_elt_dblcst,
6151 write_exp_elt_decfloatcst, write_exp_elt_type,
6152 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6153 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6154 write_dollar_variable): Likewise.
6155 (parse_exp_in_context_1): Use parser state.
6156 (insert_type_address_space): Add "struct parser_state" argument.
6157 Use parser state.
6158 (increase_expout_size): New function.
6159 * parser-defs.h: Forward declare "struct language_defn" and
6160 "struct parser_state".
6161 (expout, expout_size, expout_ptr): Remove extern declarations.
6162 (parse_gdbarch, parse_language): Rewrite macro declarations to
6163 accept the parser state.
6164 (struct parser_state): New struct.
6165 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6166 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6167 write_exp_elt_decfloatcst, write_exp_elt_type,
6168 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6169 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6170 write_exp_msymbol, write_dollar_variable,
6171 mark_struct_expression, insert_type_address_space): Add "struct
6172 parser_state" argument.
6173 (increase_expout_size): New function.
6174 * utils.c (do_clear_parser_state): New function.
6175 (make_cleanup_clear_parser_state): Likewise.
6176 * utils.h (make_cleanup_clear_parser_state): New function
6177 prototype.
6178 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6179 Update calls to write_exp* in order to pass the parser state.
6180 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6181 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6182 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6183 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6184 * stap-probe.c (stap_parse_register_operand): Likewise.
6185 (stap_parse_single_operand): Likewise.
6186 (stap_parse_argument_1): Likewise.
6187 (stap_parse_argument): Use parser state.
6188 * stap-probe.h: Include "parser-defs.h".
6189 (struct stap_parse_info) <pstate>: New field.
6190 * c-exp.y (parse_type): Rewrite to use parser state.
6191 (yyparse): Redefine to c_parse_internal.
6192 (pstate): New global variable.
6193 (parse_number): Add "struct parser_state" argument.
6194 (write_destructor_name): Likewise.
6195 (type_exp): Update calls to write_exp* and similars in order to
6196 use parser state.
6197 (exp1, exp, variable, qualified_name, space_identifier,
6198 typename, typebase): Likewise.
6199 (write_destructor_name, parse_number, lex_one_token,
6200 classify_name, classify_inner_name, c_parse): Add "struct
6201 parser_state" argument. Update function to use parser state.
6202 * c-lang.h: Forward declare "struct parser_state".
6203 (c_parse): Add "struct parser_state" argument.
6204 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6205 (yyparse): Redefine macro to ada_parse_internal.
6206 (pstate): New variable.
6207 (write_int, write_object_renaming, write_var_or_type,
6208 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6209 type_int, type_long, type_long_long, type_float, type_double,
6210 type_long_double, type_char, type_boolean, type_system_address):
6211 Add "struct parser_state" argument.
6212 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6213 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6214 var_or_type, aggregate, aggregate_component_list,
6215 positional_list, others, component_group,
6216 component_associations): Update calls to write_exp* and similar
6217 functions in order to use parser state.
6218 (ada_parse, write_var_from_sym, write_int,
6219 write_exp_op_with_string, write_object_renaming,
6220 find_primitive_type, write_selectors, write_ambiguous_var,
6221 write_var_or_type, write_name_assoc, type_int, type_long,
6222 type_long_long, type_float, type_double, type_long_double,
6223 type_char, type_boolean, type_system_address): Add "struct
6224 parser_state" argument. Adjust function to use parser state.
6225 * ada-lang.c (parse): Likewise.
6226 * ada-lang.h: Forward declare "struct parser_state".
6227 (ada_parse): Add "struct parser_state" argument.
6228 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6229 calls to both functions.
6230 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6231 parser state.
6232 (yyparse): Redefine macro to f_parse_internal.
6233 (pstate): New variable.
6234 (parse_number): Add "struct parser_state" argument.
6235 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6236 and similars in order to use parser state.
6237 (parse_number): Adjust code to use parser state.
6238 (yylex): Likewise.
6239 (f_parse): New function.
6240 * f-lang.h: Forward declare "struct parser_state".
6241 (f_parse): Add "struct parser_state" argument.
6242 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6243 parser state.
6244 (yyparse): Redefine macro for java_parse_internal.
6245 (pstate): New variable.
6246 (push_expression_name, push_expression_name, insert_exp): Add
6247 "struct parser_state" argument.
6248 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6249 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6250 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6251 PostIncrementExpression, PostDecrementExpression,
6252 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6253 UnaryExpressionNotPlusMinus, CastExpression,
6254 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6255 RelationalExpression, EqualityExpression, AndExpression,
6256 ExclusiveOrExpression, InclusiveOrExpression,
6257 ConditionalAndExpression, ConditionalOrExpression,
6258 ConditionalExpression, Assignment, LeftHandSide): Update
6259 calls to write_exp* and similars in order to use parser state.
6260 (parse_number): Ajust code to use parser state.
6261 (yylex): Likewise.
6262 (java_parse): New function.
6263 (push_variable): Add "struct parser_state" argument. Adjust
6264 code to user parser state.
6265 (push_fieldnames, push_qualified_expression_name,
6266 push_expression_name, insert_exp): Likewise.
6267 * jv-lang.h: Forward declare "struct parser_state".
6268 (java_parse): Add "struct parser_state" argument.
6269 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6270 parser state.
6271 (yyparse): Redefine macro to m2_parse_internal.
6272 (pstate): New variable.
6273 (type_exp, exp, fblock, variable, type): Update calls to
6274 write_exp* and similars to use parser state.
6275 (yylex): Likewise.
6276 (m2_parse): New function.
6277 * m2-lang.h: Forward declare "struct parser_state".
6278 (m2_parse): Add "struct parser_state" argument.
6279 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6280 * objc-lang.h: Forward declare "struct parser_state".
6281 (end_msglist): Add "struct parser_state" argument.
6282 * p-exp.y (parse_type): Rewrite macro to use parser state.
6283 (yyparse): Redefine macro to pascal_parse_internal.
6284 (pstate): New variable.
6285 (parse_number): Add "struct parser_state" argument.
6286 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6287 write_exp* and similars in order to use parser state.
6288 (parse_number, yylex): Adjust code to use parser state.
6289 (pascal_parse): New function.
6290 * p-lang.h: Forward declare "struct parser_state".
6291 (pascal_parse): Add "struct parser_state" argument.
6292 * go-exp.y (parse_type): Rewrite macro to use parser state.
6293 (yyparse): Redefine macro to go_parse_internal.
6294 (pstate): New variable.
6295 (parse_number): Add "struct parser_state" argument.
6296 (type_exp, exp1, exp, variable, type): Update calls to
6297 write_exp* and similars in order to use parser state.
6298 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6299 to use parser state.
6300 (go_parse): Likewise.
6301 * go-lang.h: Forward declare "struct parser_state".
6302 (go_parse): Add "struct parser_state" argument.
6303
342587c4
DE
63042014-03-27 Doug Evans <dje@google.com>
6305
6306 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6307
33e80786
DE
63082014-03-27 Doug Evans <dje@google.com>
6309
6310 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6311 Remove argument abbrev_section. All callers updated.
6312
1dbab08b
DE
63132014-03-27 Doug Evans <dje@google.com>
6314
6315 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6316 addr_base, ranges_base.
6317
318d3177
KS
63182014-03-26 Keith Seitz <keiths@redhat.com>
6319
6320 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6321 types, not VAR_DOMAIN.
6322
1e54db15
SL
63232014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6324
6325 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6326 "ra" registers.
6327 * features/nios2-linux.c: Regenerated.
6328 * features/nios2.c: Regenerated.
6329
d3839ede
PA
63302014-03-25 Pedro Alves <palves@redhat.com>
6331
6332 * cli/cli-script.c (script_from_file): Force the interpreter to
6333 sync mode.
6334
7588d2ec
PL
63352014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6336
6337 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6338 small stack allocation.
6339
a6290449
TG
63402014-03-24 Tristan Gingold <gingold@adacore.com>
6341
6342 * darwin-nat.c (exc_server): Remove unused prototype.
6343 (darwin_dump_message): Correctly display data on x86_64.
6344 (darwin_encode_reply): Fix style.
6345 Add comments and fix indentation.
6346
31ae9d24 63472014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6348
6349 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6350
6339bfc4
DE
63512014-03-22 Doug Evans <xdje42@gmail.com>
6352
6353 * infcmd.c: Whitespace fixes.
6354 (interrupt_command): Merge two function comments into one.
6355
0a07590b
DE
63562014-03-22 Doug Evans <xdje42@gmail.com>
6357
6358 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6359 All uses updated.
6360
b55fbac4
YQ
63612014-03-22 Yao Qi <yao@codesourcery.com>
6362
6363 * remote.c (target_read_live_memory): Remove.
6364 (memory_xfer_live_readonly_partial): Rename it to
6365 remote_xfer_live_readonly_partial. Remove argument 'object'.
6366 All callers updated. Call remote_read_bytes_1
6367 instead of target_read_live_memory.
6368 * tracepoint.c (set_traceframe_number): Remove.
6369 (make_cleanup_restore_traceframe_number): Likewise .
6370 * tracepoint.h (set_traceframe_number): Remove declaration.
6371 (make_cleanup_restore_traceframe_number): Likewise.
6372
9217e74e
YQ
63732014-03-22 Yao Qi <yao@codesourcery.com>
6374
6375 * remote.c (remote_read_bytes): Move code on reading from the
6376 remote stub to ...
6377 (remote_read_bytes_1): ... here. New function.
6378
8acf9577
YQ
63792014-03-22 Yao Qi <yao@codesourcery.com>
6380
6381 * ctf.c (ctf_xfer_partial): Check the return value of
6382 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6383 return TARGET_XFER_UNAVAILABLE.
6384 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6385 * target.c (target_read_live_memory): Move it to remote.c.
6386 (memory_xfer_live_readonly_partial): Likewise.
6387 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6388 * remote.c (target_read_live_memory): Moved from target.c.
6389 (memory_xfer_live_readonly_partial): Likewise.
6390 (remote_read_bytes): Factored out from
6391 memory_xfer_partial_1.
6392
feef67ab
DE
63932014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6394
6395 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6396 NULL pointer.
6397
b65dc60b
PA
63982014-03-21 Pedro Alves <palves@redhat.com>
6399
6400 * infrun.c (normal_stop): Extend comment.
6401
b4ab256d
HZ
64022014-03-21 Hui Zhu <hui@codesourcery.com>
6403 Pedro Alves <palves@redhat.com>
6404
6405 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6406 static buffer.
6407 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6408 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6409 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6410
deba7593
MR
64112014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6412
6413 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6414 `z' formatted output modifier.
6415
1bff71c3
SDJ
64162014-03-20 Tom Tromey <tromey@redhat.com>
6417 Sergio Durigan Junior <sergiodj@redhat.com>
6418
6419 * probe.c (parse_probes): Turn assert into an ordinary error.
6420 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6421 exceptions when parsing probes. Rearrange the code for clarity.
6422
90e28950
TT
64232014-03-20 Tom Tromey <tromey@redhat.com>
6424
6425 PR gdb/14135
6426 * top.c (execute_command): Only dispatch events if the command
6427 started the target.
6428
beb460e8
PA
64292014-03-20 Tom Tromey <tromey@redhat.com>
6430
6431 PR cli/15718
6432 * infcall.c: Include event-top.h.
6433 (run_inferior_call): Call async_disable_stdin if needed.
6434
99619bea
PA
64352014-03-20 Pedro Alves <palves@redhat.com>
6436
6437 * infrun.c (prepare_to_proceed): Delete.
6438 (thread_still_needs_step_over): New function.
6439 (find_thread_needs_step_over): New function.
6440 (proceed): If the current thread needs a step-over, set its
6441 steping_over_breakpoint flag. Adjust to use
6442 find_thread_needs_step_over instead of prepare_to_proceed.
6443 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6444 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6445 breakpoint.
6446 (switch_back_to_stepped_thread): Step over breakpoints of all
6447 threads not the stepping thread, before switching back to the
6448 stepping thread.
6449
2adfaa28
PA
64502014-03-20 Pedro Alves <palves@redhat.com>
6451
6452 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6453 extern.
6454 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6455 * infrun.c (saved_singlestep_ptid)
6456 (stepping_past_singlestep_breakpoint): Delete.
6457 (resume): Remove stepping_past_singlestep_breakpoint handling.
6458 (proceed): Store the prev_pc of the stepping thread too.
6459 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6460 singlestep_pc.
6461 (enum infwait_states): Delete infwait_thread_hop_state.
6462 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6463 field.
6464 (handle_inferior_event): Adjust.
6465 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6466 handling and the thread-hop code. Before removing single-step
6467 breakpoints, check whether the thread hit a single-step breakpoint
6468 of another thread. If it did, the trap is not a random signal.
6469 (switch_back_to_stepped_thread): If the event thread hit a
6470 single-step breakpoint, unblock it before switching to the
6471 stepping thread. Handle the case of the stepped thread having
6472 advanced already.
6473 (keep_going): Handle the case of the current thread moving past a
6474 single-step breakpoint.
6475
31e77af2
PA
64762014-03-20 Pedro Alves <palves@redhat.com>
6477
6478 PR breakpoints/7143
6479 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6480 are being stepped over.
6481 (breakpoint_address_match): Make extern.
6482 * breakpoint.h (breakpoint_address_match): New declaration.
6483 * inferior.h (stepping_past_instruction_at): New declaration.
6484 * infrun.c (struct step_over_info): New type.
6485 (step_over_info): New global.
6486 (set_step_over_info, clear_step_over_info)
6487 (stepping_past_instruction_at): New functions.
6488 (handle_inferior_event): Clear the step-over info when
6489 trap_expected is cleared.
6490 (resume): Remove now stale comment.
6491 (clear_proceed_status): Clear step-over info.
6492 (proceed): Adjust step-over handling to set or clear the step-over
6493 info instead of removing all breakpoints.
6494 (handle_signal_stop): When setting up a thread-hop, don't remove
6495 breakpoints here.
6496 (stop_stepping): Clear step-over info.
6497 (keep_going): Adjust step-over handling to set or clear step-over
6498 info and then always inserting breakpoints, instead of removing
6499 all breakpoints when stepping over one.
6500
b9f437de
PA
65012014-03-20 Pedro Alves <palves@redhat.com>
6502
6503 * infrun.c (previous_inferior_ptid): Adjust comment.
6504 (deferred_step_ptid): Delete.
6505 (infrun_thread_ptid_changed, prepare_to_proceed)
6506 (init_wait_for_inferior): Adjust.
6507 (handle_signal_stop): Delete deferred_step_ptid handling.
6508
06c868a8
JK
65092014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6510
6511 PR gdb/15358
6512 * defs.h (sync_quit_force_run): New declaration.
6513 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6514 * event-top.c (async_sigterm_handler): New declaration.
6515 (async_sigterm_token): New variable.
6516 (async_init_signals): Create also async_sigterm_token.
6517 (async_sigterm_handler): New function.
6518 (sync_quit_force_run): New variable.
6519 (handle_sigterm): Replace quit_force call by other calls.
6520 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6521
dea80df0
MR
65222014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6523
6524 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6525 offset into SPE pseudo registers.
6526
0c7e1a46
PA
65272014-03-18 Pedro Alves <palves@redhat.com>
6528
6529 PR gdb/13860
6530 * inferior.h (print_stop_event): Declare.
6531 * infrun.c (print_stop_event): New, factored out from ...
6532 (normal_stop): ... this.
6533 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6534 of bpstat_print/print_stack_frame.
6535
9c1fcd01
TT
65362014-03-17 Tom Tromey <tromey@redhat.com>
6537
6538 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6539
11aa919a
PMR
65402014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6541
6542 * ada-lang.c (decode_constrained_packed_array): Perform a
6543 minimal coercion for reference with coerce_ref instead of
6544 ada_coerce_ref.
6545
d4ccb5e0
TG
65462014-03-17 Tristan Gingold <gingold@adacore.com>
6547
6548 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6549 (darwin_solib_create_inferior_hook): Emit a warning if version
6550 is unhandled.
6551
49840f2a
UW
65522014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6553
6554 * python/py-value.c (get_field_flag): Cast flag_name argument to
6555 PyObject_GetAttrString to support Python 2.4.
6556
ed4123e5
JK
65572014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6558
6559 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6560 (Global Maintainers): Remove Jan Kratochvil.
6561
d6b64346
PA
65622014-03-14 Pedro Alves <palves@redhat.com>
6563
6564 * inferior.h (terminal_ours_for_output): Rename to ...
6565 (child_terminal_ours_for_output): ... this.
6566 (terminal_save_ours): Rename to ...
6567 (child_terminal_save_ours): ... this.
6568 (terminal_ours): Rename to ...
6569 (child_terminal_ours): ... this.
6570 (terminal_inferior): Rename to ...
6571 (child_terminal_inferior): ... this.
6572 (terminal_init_inferior): Rename to ...
6573 (child_terminal_init_inferior): ... this.
6574 (terminal_init_inferior_with_pgrp): Rename to ...
6575 (child_terminal_init_inferior_with_pgrp): ... this.
6576 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6577 (child_terminal_init_with_pgrp): ... this.
6578 (terminal_save_ours): Rename to ...
6579 (child_terminal_save_ours): ... this.
6580 (terminal_init_inferior): Rename to ...
6581 (child_terminal_init): ... this. Adjust.
6582 (terminal_inferior): Rename to ...
6583 (child_terminal_inferior): ... this.
6584 (terminal_ours_for_output): Rename to ...
6585 (child_terminal_ours_for_output): ... this. Adjust.
6586 (terminal_ours): Rename to ...
6587 (child_terminal_ours): ... this.
6588 (terminal_ours_1): Rename to ...
6589 (child_terminal_ours_1): ... this. Adjust.
6590 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6591 * windows-nat.c (do_initial_windows_stuff): Adjust.
6592 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6593 (gnu_terminal_init): ... this. Adjust.
6594 (gnu_target): Adjust.
6595 * inf-child.c (inf_child_target): Adjust.
6596
5a1e8c7a
DE
65972014-03-13 Doug Evans <xdje42@gmail.com>
6598
6599 PR guile/16612
6600 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6601 new eq?-hashtab.
6602
350e1a76
DE
66032014-03-13 Doug Evans <xdje42@gmail.com>
6604
6605 * value.c (record_latest_value): Call release_value_or_incref
6606 instead of release_value.
6607
a69900ae
PA
66082014-03-13 Pedro Alves <palves@redhat.com>
6609
6610 * procfs.c (procfs_target): Don't override to_shortname,
6611 to_longname or to_doc.
6612
5db9f0bd
PA
66132014-03-13 Pedro Alves <palves@redhat.com>
6614
6615 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6616 Unix in user visible strings.
6617
5e3a2c38
SS
66182014-03-12 Stan Shebs <stan@codesourcery.com>
6619
6620 * gdbtypes.h: Annotate comments for Doxygen, add a page
6621 block comment with some general info.
6622
8bc2fe48
PA
66232014-03-12 Pedro Alves <palves@redhat.com>
6624
6625 * infcmd.c (prepare_execution_command): New function, factored out
6626 from several execution commands.
6627 (run_command_1, continue_command, step_1, jump_command)
6628 (signal_command, until_command, advance_command, finish_command)
6629 (attach_command): Use prepare_execution_command.
6630
638c5f49
OJ
66312014-03-12 Omair Javaid <omair.javaid@linaro.org>
6632
6633 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6634 (MAX_BPTS): Define.
6635 (MAX_WPTS): Define.
6636 (struct arm_linux_thread_points): Removed.
6637 (struct arm_linux_process_info): New.
6638 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6639 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6640 (arm_linux_find_breakpoints_by_tid): Removed.
6641 (struct arch_lwp_info): New.
6642 (arm_linux_find_process_pid): New functions.
6643 (arm_linux_add_process): New functions.
6644 (arm_linux_process_info_get): New functions.
6645 (arm_linux_forget_process): New function.
6646 (arm_linux_get_debug_reg_state): New function.
6647 (struct update_registers_data): New.
6648 (update_registers_callback): New function.
6649 (arm_linux_insert_hw_breakpoint1): Updated.
6650 (arm_linux_remove_hw_breakpoint1): Updated.
6651 (arm_linux_insert_hw_breakpoint): Updated.
6652 (arm_linux_remove_hw_breakpoint): Updated.
6653 (arm_linux_insert_watchpoint): Updated.
6654 (arm_linux_remove_watchpoint): Updated.
6655 (arm_linux_new_thread): Updated.
6656 (arm_linux_prepare_to_resume): New function.
6657 (arm_linux_new_fork): New function.
6658 (_initialize_arm_linux_nat): Updated.
6659
6d03af93
PA
66602014-03-12 Pedro Alves <palves@redhat.com>
6661
6662 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6663
b3ccfe11
TT
66642014-03-12 Tom Tromey <tromey@redhat.com>
6665
6666 * inf-child.c (return_zero): New function.
6667 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6668 * aix-thread.c (aix_thread_inferior_created): New function.
6669 (aix_thread_attach): Remove.
6670 (init_aix_thread_ops): Don't set to_attach.
6671 (_initialize_aix_thread): Register inferior_created observer.
6672 * corelow.c (init_core_ops): Don't set to_attach or
6673 to_create_inferior.
6674 * exec.c (init_exec_ops): Don't set to_attach or
6675 to_create_inferior.
6676 * infcmd.c (run_command_1): Use find_run_target. Make direct
6677 target calls.
6678 (attach_command): Use find_attach_target. Make direct target
6679 calls.
6680 * record-btrace.c (init_record_btrace_ops): Don't set
6681 to_create_inferior.
6682 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6683 Remove.
6684 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6685 set to_create_inferior.
6686 * target.c (complete_target_initialization): Add assertion.
6687 (target_create_inferior): Remove.
6688 (find_default_attach, find_default_create_inferior): Remove.
6689 (find_attach_target, find_run_target): New functions.
6690 (find_default_is_async_p, find_default_can_async_p)
6691 (target_supports_non_stop, target_attach): Remove.
6692 (init_dummy_target): Don't set to_create_inferior or
6693 to_supports_non_stop.
6694 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6695 TARGET_DEFAULT_FUNC.
6696 <to_create_inferior>: Add comment.
6697 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6698 TARGET_DEFAULT_RETURN.
6699 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6700 (find_attach_target, find_run_target): Declare.
6701 (target_create_inferior): Remove.
6702 (target_has_execution_1): Update comment.
6703 (target_supports_non_stop): Remove.
6704 * target-delegates.c: Rebuild.
6705
91f83b02
PA
67062014-03-12 Pedro Alves <palves@redhat.com>
6707
6708 * inf-child.h: Update comment to not mention Unix.
6709
f1aea813
PA
67102014-03-12 Pedro Alves <palves@redhat.com>
6711
6712 * inf-child.c: Update top comment to not mention Unix. Add
6713 generic comment describing how this target is meant to be used.
6714 (inf_child_post_attach, inf_child_post_startup_inferior)
6715 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6716 Unix in comment.
6717
ee8e9165
PA
67182014-03-12 Pedro Alves <palves@redhat.com>
6719
6720 * nto-procfs.c: Include inf-child.h.
6721 (procfs_ops): Delete global.
6722 (procfs_can_run): Delete method.
6723 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6724 target pointer instead of referencing procfs_ops.
6725 (procfs_prepare_to_store): Delete.
6726 (init_procfs_ops): Delete function.
6727 (procfs_target): New function, based on init_procfs_ops, but
6728 inherit inf_child_target.
6729 (_initialize_procfs): Use procfs_target.
6730
51a9c8c5
PA
67312014-03-12 Pedro Alves <palves@redhat.com>
6732
6733 * windows-nat.c: Include inf-child.h.
6734 (windows_ops): Delete global.
6735 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6736 methods.
6737 (init_windows_ops): Delete function.
6738 (windows_target): New function, based on init_windows_ops, but
6739 inherit inf_child_target.
6740 (_initialize_windows_nat): Use windows_target. Install x86
6741 specific target methods here.
6742
c1966e26
DE
67432014-03-10 Doug Evans <xdje42@gmail.com>
6744
6745 * guile/guile.c (call_initialize_gdb_module): New function.
6746 (initialize_guile): Replace call to scm_init_guile with call to
6747 scm_with_guile.
6748
023db19c
JB
67492014-03-10 Joel Brobecker <brobecker@adacore.com>
6750
6751 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6752 in call to TYPE_CODE macro.
6753
5ec18f2b
JG
67542014-03-10 Jerome Guitton <guitton@adacore.com>
6755
8668be63
JB
6756 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6757 Resolve tagged types to full view.
5ec18f2b 6758
7d03f2eb
HZ
67592014-03-10 Hui Zhu <hui@codesourcery.com>
6760
6761 * target.h (target_insert_breakpoint): Remove "hardware" from its
6762 comments.
6763
c5164cbc
DE
67642014-03-07 Doug Evans <dje@google.com>
6765
6766 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6767
c4a3fee2
DE
67682014-03-07 Doug Evans <dje@google.com>
6769
6770 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6771 Remove unused local comp_dir_attr. Assert exactly one of
6772 stub_comp_unit_die, stub_comp_dir is non-NULL.
6773
3156469c
JB
67742014-03-07 Joel Brobecker <brobecker@adacore.com>
6775
6776 * target.h (complete_target_initialization, add_target):
6777 Add comment.
6778
c1a7b7c6
PA
67792014-03-07 Pedro Alves <palves@redhat.com>
6780
6781 * go32-nat.c: Include inf-child.h.
6782 (go32_ops): Delete global.
6783 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6784 Delete methods.
6785 (go32_create_inferior): Push the passed in target pointer instead
6786 of referencing go32_ops.
6787 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6788 (go32_target): New function, based on init_go32_ops, but inherit
6789 inf_child_target.
6790 (_initialize_go32_nat): Use go32_target. Move parts of
6791 init_go32_ops here.
6792
d3c1a85f
JB
67932014-03-06 Joel Brobecker <brobecker@adacore.com>
6794
6795 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6796 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6797 SYMBOL_VALUE_ADDRESS.
6798 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6799
5fa1d40e
YQ
68002014-03-06 Yao Qi <yao@codesourcery.com>
6801
6802 * breakpoint.c (get_tracepoint_by_number): Remove argument
6803 optional_p. All callers updated. Adjust comments. Update
6804 output message.
6805 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6806
0c13193f
YQ
68072014-03-06 Yao Qi <yao@codesourcery.com>
6808
6809 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6810 early if get_number returns zero. Use 'p' instead of 'args'.
6811
2217da06
YQ
68122014-03-06 Yao Qi <yao@codesourcery.com>
6813
6814 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6815 message.
6816
cc3da688
YQ
68172014-03-06 Yao Qi <yao@codesourcery.com>
6818
6819 PR breakpoints/16508
6820 * tracepoint.c (check_trace_running): New function.
6821 (trace_find_command): Move code to check_trace_running and
6822 call check_trace_running.
6823 (trace_find_pc_command): Likewise.
6824 (trace_find_tracepoint_command): Likewise.
6825 (trace_find_line_command): Likewise.
6826 (trace_find_range_command): Likewise.
6827 * tracepoint.h (check_trace_running): Likewise.
6828 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6829
6a5f844b
YQ
68302014-03-06 Yao Qi <yao@codesourcery.com>
6831
6832 * target.h (struct target_ops) <to_traceframe_info>: Use
6833 TARGET_DEFAULT_NORETURN (tcomplain ()).
6834 * target-delegates.c: Regenerated.
6835
0f26cec1
PA
68362014-03-05 Pedro Alves <palves@redhat.com>
6837
6838 PR gdb/16575
6839 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6840 void. Update comment.
6841 (dcache_xfer_memory): Delete.
6842 (dcache_read_memory_partial): New, based on the read bits of
6843 dcache_xfer_memory.
6844 (dcache_update): Add status parameter. Use ULONGEST for len, and
6845 adjust. Discard cache lines if the reason for the update was
6846 error.
6847 * dcache.h (dcache_xfer_memory): Delete declaration.
6848 (dcache_read_memory_partial): New declaration.
6849 (dcache_update): Update prototype.
6850 * target.c (raw_memory_xfer_partial): Update the dcache here.
6851 (memory_xfer_partial_1): Don't handle dcache writes here.
6852
b2b255bd
MF
68532014-03-05 Mike Frysinger <vapier@gentoo.org>
6854
6855 * remote-sim.c (gdbsim_load): Add const to prog.
6856
5d9cf8a4
TT
68572014-03-03 Tom Tromey <tromey@redhat.com>
6858
6859 * elfread.c (probe_key): Change to bfd_data.
6860 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6861 now per-BFD, not per-objfile.
6862 * stap-probe.c (stap_probe_destroy): Update comment.
6863 (handle_stap_probe): Allocate on the per-BFD obstack.
6864
729662a5
TT
68652014-03-03 Tom Tromey <tromey@redhat.com>
6866
6867 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6868 * breakpoint.c (create_longjmp_master_breakpoint): Use
6869 get_probe_address.
6870 (add_location_to_breakpoint, bkpt_probe_insert_location)
6871 (bkpt_probe_remove_location): Update.
6872 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6873 * elfread.c (elf_symfile_relocate_probe): Remove.
6874 (elf_probe_fns): Update.
6875 (insert_exception_resume_breakpoint): Change type of "probe"
6876 parameter to bound_probe.
6877 (check_exception_resume): Update.
6878 * objfiles.c (objfile_relocate1): Don't relocate probes.
6879 * probe.c (bound_probe_s): New typedef.
6880 (parse_probes): Use get_probe_address. Set sal's objfile.
6881 (find_probe_by_pc): Return a bound_probe.
6882 (collect_probes): Return a VEC(bound_probe_s).
6883 (compare_probes): Update.
6884 (gen_ui_out_table_header_info): Change type of "probes"
6885 parameter. Update.
6886 (info_probes_for_ops): Update.
6887 (get_probe_address): New function.
6888 (probe_safe_evaluate_at_pc): Update.
6889 * probe.h (struct probe_ops) <get_probe_address>: New field.
6890 <set_semaphore, clear_semaphore>: Add objfile parameter.
6891 (struct probe) <objfile>: Remove field.
6892 <arch>: New field.
6893 <address>: Update comment.
6894 (struct bound_probe): New.
6895 (find_probe_by_pc): Return a bound_probe.
6896 (get_probe_address): Declare.
6897 * solib-svr4.c (struct probe_and_action) <address>: New field.
6898 (hash_probe_and_action, equal_probe_and_action): Update.
6899 (register_solib_event_probe): Add address parameter.
6900 (solib_event_probe_at): Update.
6901 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6902 get_probe_address.
6903 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6904 (stap_get_probe_address): New function.
6905 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6906 (compile_probe_arg): Update.
6907 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6908 address.
6909 (handle_stap_probe): Don't relocate the probe.
6910 (stap_relocate): Remove.
6911 (stap_gen_info_probes_table_values): Update.
6912 (stap_probe_ops): Remove stap_relocate.
6913 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6914 (debug_sym_probe_fns): Update.
6915 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6916 * symtab.c (init_sal): Use memset.
6917 * symtab.h (struct symtab_and_line) <objfile>: New field.
6918 * tracepoint.c (start_tracing, stop_tracing): Update.
6919
ff887920
TT
69202014-03-03 Tom Tromey <tromey@redhat.com>
6921
6922 * probe.h (parse_probes, find_probe_by_pc)
6923 (find_probes_in_objfile): Fix comments.
6924
f0407826
DE
69252014-03-02 Doug Evans <xdje42@gmail.com>
6926
6927 * infrun.c (handle_signal_stop): Replace test for
6928 TARGET_WAITKIND_STOPPED with an assert.
6929
35e6a711
DE
69302014-03-02 Doug Evans <xdje42@gmail.com>
6931
6932 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6933
667f9d0b
DE
69342014-03-02 Doug Evans <xdje42@gmail.com>
6935
6936 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6937
dc92ace0
MK
69382014-03-01 Mark Kettenis <kettenis@gnu.org>
6939
6940 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6941
a900370f
MK
69422014-03-01 Mark Kettenis <kettenis@gnu.org>
6943
6944 * i386obsd-nat.c: Include "obsd-nat.h".
6945 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6946 add_target.
6947 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6948
b72a7981
MK
69492014-03-01 Mark Kettenis <kettenis@gnu.org>
6950
6951 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6952
96c70aba
MK
69532014-03-01 Mark Kettenis <kettenis@gnu.org>
6954
6955 * mips64obsd-nat.c: Include "obsd-nath".
6956 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6957 add_target
6958 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6959
874a80af
MK
69602014-03-01 Mark Kettenis <kettenis@gnu.org>
6961
8fd408f1
MK
6962 * amd64obsd-nat.c: Include "obsd-nat,h.
6963 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6964 add_target.
874a80af
MK
6965 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6966
9cf95373
SC
69672014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6968
6969 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6970 (find_overload_match): Update call to find_oload_champ.
6971 (find_oload_champ_namespace_loop): Likewise
6972
863e4da4
MK
69732014-02-28 Mark Kettenis <kettenis@gnu.org>
6974
025cac40
MK
6975 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6976
1ed586ce
MK
6977 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6978 * config/sparc/obsd64.mh: New file.
6979 * sparc64obsd-nat.c: New file.
6980
863e4da4
MK
6981 * obsd-nat.h: New file.
6982 * obsd-nat.c: New file.
6983 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6984 (ALLDEPFILES): Add obsd-nat.c.
6985
89de4da4
TT
69862014-02-28 Tom Tromey <tromey@redhat.com>
6987
6988 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6989 * cli-out.h (cli_ui_out_impl): Now const.
6990 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6991 * ui-out.c (struct ui_out) <impl>: Now const.
6992 (default_ui_out_impl): Now const.
6993 (ui_out_new): Make 'impl' parameter const.
6994 * ui-out.h (ui_out_new): Update.
6995
c725e7b6
MK
69962014-02-27 Mark Kettenis <kettenis@gnu.org>
6997
6998 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6999
670b46b3
MK
70002014-02-27 Mark Kettenis <kettenis@gnu.org>
7001
7002 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7003
c91550fc
JK
70042014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7005
7006 Additional PR 8882 fix.
7007 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7008
2fa0369e
PA
70092014-02-27 Pedro Alves <palves@redhat.com>
7010
7011 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7012 isn't set.
7013
d632a097
PA
70142014-02-27 Pedro Alves <palves@redhat.com>
7015
7016 PR 12702
7017 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7018 * nat/linux-waitpid.c: Include string.h.
7019 (status_to_str): Moved here and made extern.
7020 * nat/linux-waitpid.h (status_to_str): New declaration.
7021
2ebd5a35
HZ
70222014-02-27 Hui Zhu <hui@codesourcery.com>
7023
7024 PR 12702
7025 * infrun.c (ptid_match): Move ...
7026 * common/ptid.c (ptid_match): ... here.
7027 * inferior.h (ptid_match): Move ...
7028 * common/ptid.h (ptid_match): ... here.
7029
3cdd631f
MK
70302014-02-27 Mark Kettenis <kettenis@gnu.org>
7031
7032 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7033 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7034 gdb_target_obs.
7035
bee30a64
MK
70362014-02-27 Mark Kettenis <kettenis@gnu.org>
7037
7038 * obsd-tdep.c (obsd_auxv_parse): New function.
7039 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7040
7041 * gdbarch.sh (auxv_parse): New.
7042 * gdbarch.h: Regenerated.
7043 * gdbarch.c: Regenerated.
7044 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7045
7a5a839f
LC
70462014-02-26 Ludovic Courtès <ludo@gnu.org>
7047
7048 * guile/scm-value.c (gdbscm_history_append_x): New function.
7049 (value_functions): Add it.
7050
31aa7e4e
JB
70512014-02-27 Joel Brobecker <brobecker@adacore.com>
7052
7053 * dwarf2read.c (attr_value_as_address): New function.
7054 (dwarf2_find_base_address, read_call_site_scope): Use
7055 attr_value_as_address in place of DW_ADDR.
7056 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7057 the low and high addresses. Slight rework of the handling
7058 of the high pc being a constant form, and limit it to
7059 DWARF verson 4 or higher.
7060 (dwarf2_record_block_ranges): Likewise.
7061 (read_partial_die): Likewise.
7062 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7063
9b333ba3
TT
70642014-02-26 Tom Tromey <tromey@redhat.com>
7065
7066 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7067
5f6cac40
TT
70682014-02-26 Tom Tromey <tromey@redhat.com>
7069
7070 * elfread.c (elf_read_minimal_symbols): Return early if
7071 minimal symbols have already been read. Add "ei" parameter.
7072 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7073 * minsyms.c (prim_record_minimal_symbol_full): Update.
7074 * objfiles.h (struct objstats) <n_minsyms>: Move...
7075 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7076 * symmisc.c (print_objfile_statistics): Update.
7077
2750ef27
TT
70782014-02-26 Tom Tromey <tromey@redhat.com>
7079
7080 * elfread.c (elf_read_minimal_symbols): New function, from
7081 elf_symfile_read.
7082 (elf_symfile_read): Call it.
7083
34643a32
TT
70842014-02-26 Tom Tromey <tromey@redhat.com>
7085
7086 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7087 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7088 (lookup_minimal_symbol_solib_trampoline)
7089 (lookup_minimal_symbol_by_pc_section_1)
7090 (lookup_minimal_symbol_and_objfile): Update.
7091 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7092 Don't allocate a minimal symbol if minsyms have already been read.
7093 (build_minimal_symbol_hash_tables): Update.
7094 (install_minimal_symbols): Do nothing if minsyms already read.
7095 Use the per-BFD obstack.
7096 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7097 * objfiles.c (allocate_objfile): Call
7098 terminate_minimal_symbol_table later.
7099 (have_minimal_symbols): Update.
7100 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7101 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7102 Move from struct objfile.
7103 <minsyms_read>: New field.
7104 (struct objfile) <msymbols, minimal_symbol_count,
7105 msymbol_hash, msymbol_demangled_hash>: Move.
7106 (ALL_OBJFILE_MSYMBOLS): Update.
7107 * symfile.c (read_symbols): Set minsyms_read.
7108 (reread_symbols): Update.
7109 * symmisc.c (dump_objfile, dump_msymbols): Update.
7110
2273f0ac
TT
71112014-02-26 Tom Tromey <tromey@redhat.com>
7112
7113 * minsyms.c (msymbols_sort): Remove.
7114 * minsyms.h (msymbols_sort): Remove.
7115 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7116 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7117 * elfread.c (elf_symtab_read): Don't add section offsets.
7118 * xcoffread.c (record_minimal_symbol): Don't add section offset
7119 to minimal symbol address.
7120 * somread.c (text_offset, data_offset): Remove.
7121 (som_symtab_read): Don't add section offsets to minimal symbol
7122 addresses.
7123 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7124 Don't add section offsets to minimal symbols.
7125 * coffread.c (coff_symtab_read): Don't add section offsets
7126 to minimal symbol addresses.
7127 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7128 to minimal symbol addresses.
7129 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7130 section offset to minimal symbol addresses.
7131 * mdebugread.c (parse_partial_symbols): Don't add section
7132 offset to minimal symbol addresses.
7133 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7134 offset to minimal symbol addresses.
7135
77e371c0
TT
71362014-02-26 Tom Tromey <tromey@redhat.com>
7137
7138 * ada-lang.c (ada_main_name): Update.
7139 (ada_add_standard_exceptions): Update.
7140 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7141 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7142 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7143 * auxv.c (ld_so_xfer_auxv): Update.
7144 * avr-tdep.c (avr_scan_prologue): Update.
7145 * ax-gdb.c (gen_var_ref): Update.
7146 * blockframe.c (get_pc_function_start)
7147 (find_pc_partial_function_gnu_ifunc): Update.
7148 * breakpoint.c (create_overlay_event_breakpoint)
7149 (create_longjmp_master_breakpoint)
7150 (create_std_terminate_master_breakpoint)
7151 (create_exception_master_breakpoint): Update.
7152 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7153 * c-valprint.c (c_val_print): Update.
7154 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7155 * common/agent.c (agent_look_up_symbols): Update.
7156 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7157 * dwarf2loc.c (call_site_to_target_addr): Update.
7158 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7159 * elfread.c (elf_gnu_ifunc_record_cache)
7160 (elf_gnu_ifunc_resolve_by_got): Update.
7161 * findvar.c (default_read_var_value): Update.
7162 * frame.c (inside_main_func): Update.
7163 * frv-tdep.c (frv_frame_this_id): Update.
7164 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7165 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7166 Update.
7167 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7168 (hppa_hpux_find_dummy_bpaddr): Update.
7169 * hppa-tdep.c (hppa_symbol_address): Update.
7170 * infcmd.c (until_next_command): Update.
7171 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7172 Update.
7173 * linespec.c (minsym_found, add_minsym): Update.
7174 * linux-nat.c (get_signo): Update.
7175 * linux-thread-db.c (inferior_has_bug): Update.
7176 * m32c-tdep.c (m32c_return_value)
7177 (m32c_m16c_address_to_pointer): Update.
7178 * m32r-tdep.c (m32r_frame_this_id): Update.
7179 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7180 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7181 * maint.c (maintenance_translate_address): Update.
7182 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7183 (frob_address): New function.
7184 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7185 frob_address. Rename parameter to "pc_in".
7186 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7187 addresses.
7188 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7189 Update.
7190 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7191 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7192 * objc-lang.c (find_objc_msgsend): Update.
7193 * objfiles.c (objfile_relocate1): Update.
7194 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7195 * p-valprint.c (pascal_val_print): Update.
7196 * parse.c (write_exp_msymbol): Update.
7197 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7198 (ppc_elfv2_skip_entrypoint): Update.
7199 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7200 * printcmd.c (build_address_symbolic, msym_info)
7201 (address_info): Update.
7202 * proc-service.c (ps_pglobal_lookup): Update.
7203 * psymtab.c (find_pc_sect_psymtab_closer)
7204 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7205 Change msymbol parameter to bound_minimal_symbol.
7206 * ravenscar-thread.c (get_running_thread_id): Update.
7207 * remote.c (remote_check_symbols): Update.
7208 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7209 address.
7210 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7211 * solib-dsbt.c (lm_base): Update.
7212 * solib-frv.c (lm_base, main_got): Update.
7213 * solib-irix.c (locate_base): Update.
7214 * solib-som.c (som_solib_create_inferior_hook)
7215 (link_map_start): Update.
7216 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7217 * solib-svr4.c (elf_locate_base, enable_break): Update.
7218 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7219 (flush_ea_cache): Update.
7220 * stabsread.c (define_symbol, scan_file_globals): Update.
7221 * stack.c (find_frame_funname): Update.
7222 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7223 (debug_qf_find_pc_sect_symtab): Update.
7224 * symfile.c (simple_read_overlay_table)
7225 (simple_overlay_update): Update.
7226 * symfile.h (struct quick_symbol_functions)
7227 <find_pc_sect_symtab>: Change type of msymbol to
7228 bound_minimal_symbol.
7229 * symmisc.c (dump_msymbols): Update.
7230 * symtab.c (find_pc_sect_symtab_via_partial)
7231 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7232 (search_symbols, print_msymbol_info): Update.
7233 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7234 (MSYMBOL_VALUE_ADDRESS): Redefine.
7235 (BMSYMBOL_VALUE_ADDRESS): New macro.
7236 * tracepoint.c (scope_info): Update.
7237 * tui/tui-disasm.c (tui_find_disassembly_address)
7238 (tui_get_begin_asm_address): Update.
7239 * valops.c (find_function_in_inferior): Update.
7240 * value.c (value_static_field, value_fn_field): Update.
7241
3b7344d5
TT
72422014-02-26 Tom Tromey <tromey@redhat.com>
7243
7244 * ada-lang.c (ada_update_initial_language): Update.
7245 (ada_main_name, ada_has_this_exception_support): Update.
7246 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7247 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7248 * arm-tdep.c (arm_skip_stub): Update.
7249 * auxv.c (ld_so_xfer_auxv): Update.
7250 * avr-tdep.c (avr_scan_prologue): Update.
7251 * ax-gdb.c (gen_var_ref): Update.
7252 * breakpoint.c (struct breakpoint_objfile_data)
7253 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7254 type to bound_minimal_symbol.
7255 (create_overlay_event_breakpoint)
7256 (create_longjmp_master_breakpoint)
7257 (create_std_terminate_master_breakpoint)
7258 (create_exception_master_breakpoint): Update.
7259 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7260 * c-exp.y (classify_name): Update.
7261 * coffread.c (coff_symfile_read): Update.
7262 * common/agent.c (agent_look_up_symbols): Update.
7263 * d-lang.c (d_main_name): Update.
7264 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7265 * dec-thread.c (enable_dec_thread): Update.
7266 * dwarf2loc.c (call_site_to_target_addr): Update.
7267 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7268 * eval.c (evaluate_subexp_standard): Update.
7269 * findvar.c (struct minsym_lookup_data) <result>: Change type
7270 to bound_minimal_symbol.
7271 <objfile>: Remove.
7272 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7273 * frame.c (inside_main_func): Update.
7274 * frv-tdep.c (frv_frame_this_id): Update.
7275 * gcore.c (call_target_sbrk): Update.
7276 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7277 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7278 Update.
7279 * go-lang.c (go_main_name): Update.
7280 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7281 (hppa_hpux_find_import_stub_for_addr): Update.
7282 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7283 Update. Change return type.
7284 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7285 type.
7286 * jit.c (jit_breakpoint_re_set_internal): Update.
7287 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7288 Update.
7289 * linux-nat.c (get_signo): Update.
7290 * linux-thread-db.c (inferior_has_bug): Update
7291 * m32c-tdep.c (m32c_return_value)
7292 (m32c_m16c_address_to_pointer): Update.
7293 * m32r-tdep.c (m32r_frame_this_id): Update.
7294 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7295 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7296 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7297 lookup_minimal_symbol. Change return type.
7298 (lookup_minimal_symbol): Remove.
7299 (lookup_bound_minimal_symbol): Update.
7300 (lookup_minimal_symbol_text): Change return type.
7301 (lookup_minimal_symbol_solib_trampoline): Change return type.
7302 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7303 (lookup_minimal_symbol_solib_trampoline): Change return type.
7304 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7305 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7306 (value_nsstring, find_imps): Update.
7307 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7308 * p-lang.c (pascal_main_name): Update.
7309 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7310 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7311 * proc-service.c (ps_pglobal_lookup): Update.
7312 * ravenscar-thread.c (get_running_thread_msymbol): Change
7313 return type.
7314 (has_ravenscar_runtime, get_running_thread_id): Update.
7315 * remote.c (remote_check_symbols): Update.
7316 * sol-thread.c (ps_pglobal_lookup): Update.
7317 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7318 * solib-dsbt.c (lm_base): Update.
7319 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7320 Update.
7321 * solib-irix.c (locate_base): Update.
7322 * solib-som.c (som_solib_create_inferior_hook)
7323 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7324 Update.
7325 * solib-spu.c (spu_enable_break): Update.
7326 * solib-svr4.c (elf_locate_base, enable_break): Update.
7327 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7328 (flush_ea_cache): Update.
7329 * stabsread.c (define_symbol): Update.
7330 * symfile.c (simple_read_overlay_table): Update.
7331 * symtab.c (find_pc_sect_line): Update.
7332 * tracepoint.c (scope_info): Update.
7333 * tui-disasm.c (tui_get_begin_asm_address): Update.
7334 * value.c (value_static_field): Update.
7335
40c1a007
TT
73362014-02-26 Tom Tromey <tromey@redhat.com>
7337
7338 * minsyms.c (prim_record_minimal_symbol_full): Use
7339 SET_MSYMBOL_VALUE_ADDRESS.
7340 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7341 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7342 SET_MSYMBOL_VALUE_ADDRESS.
7343 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7344 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7345
efd66ac6
TT
73462014-02-26 Tom Tromey <tromey@redhat.com>
7347
7348 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7349 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7350 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7351 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7352 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7353 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7354 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7355 * ada-lang.c (ada_main_name): Update.
7356 (ada_lookup_simple_minsym): Update.
7357 (ada_make_symbol_completion_list): Update.
7358 (ada_add_standard_exceptions): Update.
7359 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7360 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7361 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7362 * arm-tdep.c (skip_prologue_function): Update.
7363 (arm_skip_stack_protector, arm_skip_stub): Update.
7364 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7365 (arm_wince_skip_main_prologue): Update.
7366 * auxv.c (ld_so_xfer_auxv): Update.
7367 * avr-tdep.c (avr_scan_prologue): Update.
7368 * ax-gdb.c (gen_var_ref): Update.
7369 * block.c (call_site_for_pc): Update.
7370 * blockframe.c (get_pc_function_start): Update.
7371 (find_pc_partial_function_gnu_ifunc): Update.
7372 * breakpoint.c (create_overlay_event_breakpoint): Update.
7373 (create_longjmp_master_breakpoint): Update.
7374 (create_std_terminate_master_breakpoint): Update.
7375 (create_exception_master_breakpoint): Update.
7376 (resolve_sal_pc): Update.
7377 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7378 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7379 Update.
7380 * c-valprint.c (c_val_print): Update.
7381 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7382 * coffread.c (coff_symfile_read): Update.
7383 * common/agent.c (agent_look_up_symbols): Update.
7384 * dbxread.c (find_stab_function_addr): Update.
7385 (end_psymtab): Update.
7386 * dwarf2loc.c (call_site_to_target_addr): Update.
7387 (func_verify_no_selftailcall): Update.
7388 (tailcall_dump): Update.
7389 (call_site_find_chain_1): Update.
7390 (dwarf_expr_reg_to_entry_parameter): Update.
7391 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7392 (elf_gnu_ifunc_resolve_by_got): Update.
7393 * f-valprint.c (info_common_command): Update.
7394 * findvar.c (read_var_value): Update.
7395 * frame.c (get_prev_frame_1): Update.
7396 (inside_main_func): Update.
7397 * frv-tdep.c (frv_skip_main_prologue): Update.
7398 (frv_frame_this_id): Update.
7399 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7400 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7401 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7402 (gnuv3_skip_trampoline): Update.
7403 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7404 (hppa64_hpux_in_solib_call_trampoline): Update.
7405 (hppa_hpux_skip_trampoline_code): Update.
7406 (hppa64_hpux_search_dummy_call_sequence): Update.
7407 (hppa_hpux_find_import_stub_for_addr): Update.
7408 (hppa_hpux_find_dummy_bpaddr): Update.
7409 * hppa-tdep.c (hppa_symbol_address)
7410 (hppa_lookup_stub_minimal_symbol): Update.
7411 * i386-tdep.c (i386_skip_main_prologue): Update.
7412 (i386_pe_skip_trampoline_code): Update.
7413 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7414 * infcall.c (get_function_name): Update.
7415 * infcmd.c (until_next_command): Update.
7416 * jit.c (jit_breakpoint_re_set_internal): Update.
7417 (jit_inferior_init): Update.
7418 * linespec.c (minsym_found): Update.
7419 (add_minsym): Update.
7420 * linux-fork.c (info_checkpoints_command): Update.
7421 * linux-nat.c (get_signo): Update.
7422 * linux-thread-db.c (inferior_has_bug): Update.
7423 * m32c-tdep.c (m32c_return_value): Update.
7424 (m32c_m16c_address_to_pointer): Update.
7425 (m32c_m16c_pointer_to_address): Update.
7426 * m32r-tdep.c (m32r_frame_this_id): Update.
7427 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7428 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7429 * maint.c (maintenance_translate_address): Update.
7430 * minsyms.c (add_minsym_to_hash_table): Update.
7431 (add_minsym_to_demangled_hash_table): Update.
7432 (msymbol_objfile): Update.
7433 (lookup_minimal_symbol): Update.
7434 (iterate_over_minimal_symbols): Update.
7435 (lookup_minimal_symbol_text): Update.
7436 (lookup_minimal_symbol_by_pc_name): Update.
7437 (lookup_minimal_symbol_solib_trampoline): Update.
7438 (lookup_minimal_symbol_by_pc_section_1): Update.
7439 (lookup_minimal_symbol_and_objfile): Update.
7440 (prim_record_minimal_symbol_full): Update.
7441 (compare_minimal_symbols): Update.
7442 (compact_minimal_symbols): Update.
7443 (build_minimal_symbol_hash_tables): Update.
7444 (install_minimal_symbols): Update.
7445 (terminate_minimal_symbol_table): Update.
7446 (find_solib_trampoline_target): Update.
7447 (minimal_symbol_upper_bound): Update.
7448 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7449 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7450 (mips_skip_pic_trampoline_code): Update.
7451 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7452 * objc-lang.c (selectors_info): Update.
7453 (classes_info): Update.
7454 (find_methods): Update.
7455 (find_imps): Update.
7456 (find_objc_msgsend): Update.
7457 * objfiles.c (objfile_relocate1): Update.
7458 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7459 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7460 * p-valprint.c (pascal_val_print): Update.
7461 * parse.c (write_exp_msymbol): Update.
7462 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7463 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7464 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7465 * printcmd.c (build_address_symbolic): Update.
7466 (sym_info): Update.
7467 (address_info): Update.
7468 * proc-service.c (ps_pglobal_lookup): Update.
7469 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7470 (find_pc_sect_psymtab): Update.
7471 * python/py-framefilter.c (py_print_frame): Update.
7472 * ravenscar-thread.c (get_running_thread_id): Update.
7473 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7474 Update.
7475 * remote.c (remote_check_symbols): Update.
7476 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7477 (rs6000_skip_trampoline_code): Update.
7478 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7479 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7480 * solib-dsbt.c (lm_base): Update.
7481 * solib-frv.c (lm_base): Update.
7482 (main_got): Update.
7483 * solib-irix.c (locate_base): Update.
7484 * solib-som.c (som_solib_create_inferior_hook): Update.
7485 (som_solib_desire_dynamic_linker_symbols): Update.
7486 (link_map_start): Update.
7487 * solib-spu.c (spu_enable_break): Update.
7488 (ocl_enable_break): Update.
7489 * solib-svr4.c (elf_locate_base): Update.
7490 (enable_break): Update.
7491 * spu-tdep.c (spu_get_overlay_table): Update.
7492 (spu_catch_start): Update.
7493 (flush_ea_cache): Update.
7494 * stabsread.c (define_symbol): Update.
7495 (scan_file_globals): Update.
7496 * stack.c (find_frame_funname): Update.
7497 (frame_info): Update.
7498 * symfile.c (simple_read_overlay_table): Update.
7499 (simple_overlay_update): Update.
7500 * symmisc.c (dump_msymbols): Update.
7501 * symtab.c (fixup_section): Update.
7502 (find_pc_sect_line): Update.
7503 (skip_prologue_sal): Update.
7504 (search_symbols): Update.
7505 (print_msymbol_info): Update.
7506 (rbreak_command): Update.
7507 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7508 (completion_list_objc_symbol): Update.
7509 (default_make_symbol_completion_list_break_on): Update.
7510 * tracepoint.c (scope_info): Update.
7511 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7512 (tui_get_begin_asm_address): Update.
7513 * valops.c (find_function_in_inferior): Update.
7514 * value.c (value_static_field): Update.
7515 (value_fn_field): Update.
7516
50e65b17
TT
75172014-02-26 Tom Tromey <tromey@redhat.com>
7518
7519 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7520 bound minimal symbols. Move code that knows about minsym
7521 table layout...
7522 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7523 function.
7524 * minsyms.h (minimal_symbol_upper_bound): Declare.
7525 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7526 minimal_symbol_upper_bound.
7527
1b588015
JB
75282014-02-27 Joel Brobecker <brobecker@adacore.com>
7529
7530 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7531 Use the type's name if its basic type does not have a tag.
7532
dbb9c2b1
JB
75332014-02-27 Joel Brobecker <brobecker@adacore.com>
7534
7535 * dwarf2read.c (read_subrange_type): Add comment.
7536
55426c9d
JB
75372014-02-27 Joel Brobecker <brobecker@adacore.com>
7538
7539 * dwarf2read.c (update_enumeration_type_from_children): New
7540 function, mostly extracted from process_structure_scope.
7541 (read_enumeration_type): Call update_enumeration_type_from_children.
7542 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7543 and flag_flag_enum fields.
7544
f2fce0ca
PA
75452014-02-26 Pedro Alves <palves@redhat.com>
7546
7547 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7548 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7549 to_xfer_partial method.
7550
7a44e40e
PA
75512014-02-26 Pedro Alves <palves@redhat.com>
7552
7553 * target.c (complete_target_initialization): Don't install
7554 default_xfer_partial as to_xfer_partial hook.
7555 (nomemory): Delete.
7556 (update_current_target): Don't INHERIT nor de_fault
7557 deprecated_xfer_memory. Delete de_fault macro.
7558 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7559 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7560 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7561 field.
7562
bd265cd0
PA
75632014-02-26 Pedro Alves <palves@redhat.com>
7564
7565 * go32-nat.c (my_write_child): New function.
7566 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7567 (go32_xfer_partial): New function.
7568 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7569 Instead install a to_xfer_partial hook.
7570
9d46c4e5
PA
75712014-02-26 Pedro Alves <palves@redhat.com>
7572
7573 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7574 to_xfer_partial helper. Rewrite.
7575 (procfs_xfer_partial): New function.
7576 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7577 Install a to_xfer_partial hook.
7578
a1583b1f
PA
75792014-02-26 Pedro Alves <palves@redhat.com>
7580
7581 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7582 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7583 (m32r_xfer_partial): New function.
7584 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7585 Install a to_xfer_partial hook.
7586
6df1b29f
PA
75872014-02-26 Pedro Alves <palves@redhat.com>
7588
7589 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7590 helper.
7591 (mips_xfer_partial): New function.
7592 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7593 hook. Install a to_xfer_partial hook.
7594
dc53a7ad
JB
75952014-02-26 Joel Brobecker <brobecker@adacore.com>
7596
7597 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7598 * gdbtypes.c (create_array_type_with_stride): New function,
7599 renaming create_array_type, but with an added parameter
7600 called "bit_stride".
7601 (create_array_type): Re-implement using
7602 create_array_type_with_stride.
7603 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7604 and DW_AT_bit_stride attributes.
7605
12ab52e9
PA
76062014-02-26 Pedro Alves <palves@redhat.com>
7607
7608 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7609 task-specific breakpoints.
7610
d16461ae
PA
76112014-02-25 Pedro Alves <palves@redhat.com>
7612
7613 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7614 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7615
a8b16220
SS
76162014-02-25 Stan Shebs <stan@codesourcery.com>
7617
7618 * defs.h: Annotate comments for Doxygen.
7619
b9e795ee
TT
76202014-02-25 Tom Tromey <tromey@redhat.com>
7621
7622 * target.h (target_ignore): Don't declare.
7623 * target.c (target_ignore): Remove.
7624
849c862e
JK
76252014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7626
7627 PR gdb/16626
7628 * auto-load.c (auto_load_objfile_script_1): Change filename to
7629 debugfile.
7630
475109d8
JB
76312014-02-25 Joel Brobecker <brobecker@adacore.com>
7632
7633 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7634 documentation. Adjust prototype to match the target_ops
7635 to_xfer_partial method. Adjust implementation accordingly.
7636
e186c3bd
HZ
76372014-02-25 Hui Zhu <hui@codesourcery.com>
7638
7639 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7640 to_traceframe_info.
7641
6d451942
KB
76422014-02-25 Kevin Buettner <kevinb@redhat.com>
7643
041ab8b4 7644 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7645 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7646 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7647 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7648 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7649 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7650 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7651 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7652 New constants.
7653 (rl78_register_type): Use a data pointer type for SP and
7654 new pseudo registers mentioned above. Use a 16 bit integer
7655 type for all other register pairs.
7656 (rl78_register_name, rl78_g10_register_name): Update for
7657 new pseudo registers.
7658 (rl78_pseudo_register_read): Likewise.
7659 (rl78_pseudo_register_write): Likewise.
7660 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7661 to the newly added pseudo registers.
7662
eddf0bae
DE
76632014-02-24 Doug Evans <dje@google.com>
7664
7665 * value.c (record_latest_value): Fix comment.
7666 * printcmd.c (print_command_1): Remove code to handle -1 return from
7667 record_latest_value.
7668
e96027e0
PA
76692014-02-24 Pedro Alves <palves@redhat.com>
7670
7671 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7672 deprecated_xfer_memory hook.
7673 (procfs_xfer_partial): Call procfs_xfer_memory instead
7674 of the deprecated_xfer_memory target hook.
7675 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7676 helper.
7677
0837c976
YZ
76782014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7679
7680 * windows-nat.c (windows_xfer_shared_libraries): Return
7681 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7682 requested object is TARGET_OBJECT_LIBRARIES.
7683
bc113b4e
YQ
76842014-02-24 Yao Qi <yao@codesourcery.com>
7685
7686 * target.h (enum target_xfer_status)
7687 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7688 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7689 explicitly. New.
7690 * corefile.c (memory_error_message): User updated.
7691 * exec.c (section_table_read_available_memory): Likewise.
7692 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7693 * target.c (target_xfer_status_to_string): Likewise.
7694 (raw_memory_xfer_partial): Likewise.
7695 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7696 * valops.c (read_value_memory): Likewise.
7697 * exec.h: Update comments.
7698
01cb8804
YQ
76992014-02-24 Yao Qi <yao@codesourcery.com>
7700
7701 * target.c (target_xfer_status_to_string): Rename argument err
7702 to status.
7703 * target.h (target_xfer_status_to_string): Update declaration.
7704 Replace target_xfer_error_to_string with
7705 target_xfer_status_to_string in comment.
7706
93063aa6
YQ
77072014-02-24 Yao Qi <yao@codesourcery.com>
7708
7709 * mips-linux-nat.c (super_close): Update its type.
7710 (mips_linux_close): Pass 'self' to super_close.
7711
5c328c05
YQ
77122014-02-24 Yao Qi <yao@codesourcery.com>
7713
7714 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7715 * corefile.c (read_memory): Adjusted.
7716 * target.c (target_write_with_progress): Adjusted.
7717
f73023dd
YQ
77182014-02-23 Yao Qi <yao@codesourcery.com>
7719
7720 Revert two patches:
7721
7722 2013-10-25 Yao Qi <yao@codesourcery.com>
7723
7724 * remote.c (remote_traceframe_info): Return early if
7725 traceframe is not selected.
7726
7727 2013-07-19 Yao Qi <yao@codesourcery.com>
7728
7729 * target.c (update_current_target): Change the default action
7730 of 'to_traceframe_info' from tcomplain to return_zero.
7731 * target.h (struct target_ops) <to_traceframe_info>: Add more
7732 comments.
7733
5a2eb0ef
YQ
77342014-02-23 Yao Qi <yao@codesourcery.com>
7735
7736 * valops.c (read_value_memory): Rewrite it. Call
7737 target_xfer_partial in a loop.
7738 * exec.h (section_table_available_memory): Remove declaration.
7739 Move comments to ...
7740 * exec.c (section_table_available_memory): ... here. Make it
7741 static.
7742
1ee79381
YQ
77432014-02-23 Yao Qi <yao@codesourcery.com>
7744
7745 * exec.c (section_table_read_available_memory): New function.
7746 * exec.h (section_table_read_available_memory): Declare.
7747 * ctf.c (ctf_xfer_partial): Call
7748 section_table_read_available_memory.
7749 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7750
1ca49d37
YQ
77512014-02-23 Yao Qi <yao@codesourcery.com>
7752
7753 * ctf.c (ctf_xfer_partial): Move code to ...
7754 * exec.c (exec_read_partial_read_only): ... it. New function.
7755 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7756 * tracefile.c: Include "exec.h".
7757 * exec.h (exec_read_partial_read_only): Declare.
7758
a283690e
YQ
77592014-02-23 Yao Qi <yao@codesourcery.com>
7760
7761 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7762 (tfile_has_memory): Remove.
7763 (init_tfile_ops): Don't set fields to_has_all_memory and
7764 to_has_memory of tfile_ops.
7765 * tracefile.c (tracefile_has_all_memory): New function.
7766 (tracefile_has_memory): New function.
7767 (init_tracefile_ops): Initialize fields to_has_all_memory and
7768 to_has_memory of 'ops'.
7769
12e03cd0
YQ
77702014-02-23 Yao Qi <yao@codesourcery.com>
7771
7772 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7773 (ctf_thread_alive, ctf_get_trace_status): Remove.
7774 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7775 init_tracefile_ops.
7776 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7777 (tfile_has_stack, tfile_has_registers): Remove.
7778 (tfile_thread_alive): Remove.
7779 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7780 init_tracefile_ops.
7781 * tracefile.c (tracefile_has_stack): New function.
7782 (tracefile_has_registers): New function.
7783 (tracefile_thread_alive): New function.
7784 (tracefile_get_trace_status): New function.
7785 (init_tracefile_ops): New function.
7786 * tracefile.h (init_tracefile_ops): Declare.
7787
11395323
YQ
77882014-02-23 Yao Qi <yao@codesourcery.com>
7789
7790 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7791 (O_LARGEFILE): Likewise.
7792 (tfile_ops): Likewise.
7793 (TRACE_HEADER_SIZE): Likewise.
7794 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7795 (cur_data_size): Likewise.
7796 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7797 (tfile_close, tfile_files_info): Likewise.
7798 (tfile_get_trace_status): Likewise.
7799 (tfile_get_tracepoint_status): Likewise.
7800 (tfile_get_traceframe_address): Likewise.
7801 (tfile_trace_find, match_blocktype): Likewise.
7802 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7803 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7804 (tfile_get_trace_state_variable_value): Likewise.
7805 (tfile_has_all_memory, tfile_has_memory): Likewise.
7806 (tfile_has_stack, tfile_has_registers): Likewise.
7807 (tfile_thread_alive, build_traceframe_info): Likewise.
7808 (tfile_traceframe_info, init_tfile_ops): Likewise.
7809 (_initialize_tracepoint): Don't call init_tfile_ops
7810 and add_target_with_completer.
7811 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7812 exec.h, completer.h and filenames.h.
7813 (_initialize_tracefile_tfile): New function.
7814
7951c4eb
YQ
78152014-02-23 Yao Qi <yao@codesourcery.com>
7816
7817 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7818 tracefile-tfile.o.
7819 (HFILES_NO_SRCDIR): Add tracefile.h.
7820 * ctf.c: Include "tracefile.h".
7821 * tracefile.h: New file.
7822 * tracefile.c: New file
7823 * tracefile-tfile.c: New file.
7824 * tracepoint.c: Include "tracefile.h".
7825 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7826 (stop_reason_names): Add const.
7827 (trace_file_writer_xfree): Move it to tracefile.c.
7828 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7829 (trace_save_ctf): Likewise.
7830 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7831 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7832 (tfile_write_header, tfile_write_regblock_type): Likewise.
7833 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7834 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7835 (tfile_write_raw_data, tfile_end): Likewise.
7836 (tfile_trace_file_writer_new): Likewise.
7837 (free_uploaded_tp): Make it extern.
7838 (free_uploaded_tsv): Make it extern.
7839 (_initialize_tracepoint): Move code to register command 'tsave'
7840 to tracefile.c.
7841 * tracepoint.h (stop_reason_names): Declare.
7842 (struct trace_frame_write_ops): Move it to tracefile.h.
7843 (struct trace_file_write_ops): Likewise.
7844 (struct trace_file_writer): Likewise.
7845 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7846
184cd072
JK
78472014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7848
7849 PR gdb/16594
7850 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7851 process name.
7852 (get_cores_used_by_process): New parameter num_cores, use it.
7853 (linux_xfer_osdata_processes): Pass num_cores to it.
7854 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7855 process name.
7856
c63528fc
AK
78572014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7858
7859 * target.c (memory_xfer_partial): Fix length arg in call to
7860 breakpoint_xfer_memory.
7861
d7b30f67
SDJ
78622014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7863
7864 PR tdep/16397
7865 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7866 number comes after the + or - signs. Adjust length of register
7867 name to be extracted.
7868
8838afaf
TT
78692014-02-20 Tom Tromey <tromey@redhat.com>
7870
7871 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7872 (ada_varobj_ops): Mark "extern".
7873
05227d14
TT
78742014-02-20 Tom Tromey <tromey@redhat.com>
7875
7876 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7877
1254eefc
DE
78782014-02-20 Doug Evans <xdje42@gmail.com>
7879
7880 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7881 All callers updated.
7882 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7883 All callers updated.
7884 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7885 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7886
adde2bff
DE
78872014-02-20 lin zuojian <manjian2006@gmail.com>
7888 Joel Brobecker <brobecker@adacore.com>
7889 Doug Evans <xdje42@gmail.com>
7890
7891 PR symtab/16581
7892 * dwarf2read.c (struct die_info): New member in_process.
7893 (reset_die_in_process): New function.
7894 (process_die): Set it at the start, reset when returning.
7895 (inherit_abstract_dies): Only call process_die if origin_child_die
7896 not already being processed.
7897
3be75f87
JB
78982014-02-20 Joel Brobecker <brobecker@adacore.com>
7899
7900 * windows-nat.c (handle_unload_dll): Add function documentation.
7901 (do_initial_windows_stuff): Add comment explaining why we wait
7902 until after inferior initialization has finished before
7903 processing all DLLs.
7904
47f7ffdb
JB
79052014-02-20 Joel Brobecker <brobecker@adacore.com>
7906
7907 * windows-nat.c (get_module_name): Delete.
7908 (windows_get_exec_module_filename): New function, mostly
7909 inspired from get_module_name.
7910 (windows_pid_to_exec_file): Replace call to get_module_name
7911 by call to windows_get_exec_module_filename.
7912
1cd9feab
JB
79132014-02-20 Joel Brobecker <brobecker@adacore.com>
7914
7915 * windows-nat.c (handle_load_dll): Rewrite this function's
7916 introductory comment. Remove code using get_module_name
7917 to get the DLL's name.
7918
ea39ad35
JB
79192014-02-20 Joel Brobecker <brobecker@adacore.com>
7920
7921 * windows-nat.c (get_windows_debug_event): Ignore
7922 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7923 if windows_initialization_done == 0.
7924 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7925 Adjust implementation to always load all DLLs.
7926 (do_initial_windows_stuff): Replace call to
7927 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7928
95060284
JB
79292014-02-20 Joel Brobecker <brobecker@adacore.com>
7930
7931 * windows-nat.c (_initialize_windows_nat): Deprecate the
7932 "dll-symbols" command. Turn the "add-shared-symbol-files"
7933 and "assf" aliases into commands, and deprecate them as well.
7934 * NEWS: Add entry explaining that "dll-symbols" and its two
7935 aliases are now deprecated.
7936
8d4fdb12
JB
79372014-02-20 Joel Brobecker <brobecker@adacore.com>
7938
7939 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7940 new-line in debug string. Remove trailing spaces.
7941
1b281443
SS
79422014-02-19 Stan Shebs <stan@codesourcery.com>
7943
7944 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7945
f7bd0f78
SC
79462014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7947
7948 * NEWS: Add entry for the new feature
7949 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7950 and class values.
7951
399ebc3d
SS
79522014-02-19 Stan Shebs <stan@codesourcery.com>
7953
7954 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7955
c658158d
PA
79562014-02-19 Pedro Alves <palves@redhat.com>
7957
7958 * common/ptid.h (struct ptid): Mention that process_stratum
7959 targets should prefer ptid.lwp.
7960
ba348170
PA
79612014-02-19 Pedro Alves <palves@redhat.com>
7962
7963 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7964 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7965 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7966 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7967 store remote thread ids rather than ptid.tid.
7968 (_initialize_remote): Adjust.
7969
ac01945b
TT
79702014-02-19 Tom Tromey <tromey@redhat.com>
7971
7972 * target.c (target_get_unwinder): Rewrite.
7973 (target_get_tailcall_unwinder): Rewrite.
7974 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7975 (record_btrace_to_get_tailcall_unwinder): New function.
7976 (init_record_btrace_ops): Update.
7977 * target.h (struct target_ops) <to_get_unwinder,
7978 to_get_tailcall_unwinder>: Now function pointers. Use
7979 TARGET_DEFAULT_RETURN.
7980
8476dc92
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7984 argument.
7985 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7986
c0eca49f
TT
79872014-02-19 Tom Tromey <tromey@redhat.com>
7988
7989 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7990 directly.
7991 * target-delegates.c: Rebuild.
7992 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7993 TARGET_DEFAULT_FUNC.
7994 * target.c (default_target_decr_pc_after_break): Rename from
7995 forward_target_decr_pc_after_break. Simplify.
7996 (target_decr_pc_after_break): Rely on delegation.
7997
596b6b39
TT
79982014-02-19 Tom Tromey <tromey@redhat.com>
7999
8000 * target.c (update_current_target): Do not INHERIT to_doc or
8001 to_magic. Do not de_fault to_open or to_close.
8002
b427c1bc
TT
80032014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * gcore.h (objfile_find_memory_regions): Declare.
8006 * gcore.c (objfile_find_memory_regions): No longer static. Add
8007 "self" argument.
8008 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8009 * exec.c: Include gcore.h.
8010 (exec_set_find_memory_regions): Remove.
8011 (exec_find_memory_regions): Remove.
8012 (exec_do_find_memory_regions): Remove.
8013 (init_exec_ops): Update.
8014 * defs.h (exec_set_find_memory_regions): Remove.
8015
9b144037
TT
80162014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * target-delegates.c: Rebuild.
8019 * target.h (struct target_ops) <to_extra_thread_info,
8020 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8021 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8022 not 0, in TARGET_DEFAULT_RETURN.
8023
555bbdeb
TT
80242014-02-19 Tom Tromey <tromey@redhat.com>
8025
8026 * target.c (complete_target_initialization): Remove casts. Use
8027 return_zero_has_execution.
8028 (return_zero): Add "ignore" argument.
8029 (return_zero_has_execution): New function.
8030 (init_dummy_target): Remove casts. Use
8031 return_zero_has_execution.
8032
be4ddd36
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target.c (update_current_target): Update comments. Do not
8036 INHERIT to_stratum.
8037
2117c711
TT
80382014-02-19 Tom Tromey <tromey@redhat.com>
8039
8040 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8041 needed.
8042 * corelow.c (core_read_description): Delegate when needed.
8043 * remote.c (remote_read_description): Delegate when needed.
8044 * target-delegates.c: Rebuild.
8045 * target.c (target_read_description): Rewrite.
8046 * target.h (struct target_ops) <to_read_description>: Update
8047 comment. Use TARGET_DEFAULT_RETURN.
8048
e88ef65c
TT
80492014-02-19 Tom Tromey <tromey@redhat.com>
8050
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_can_run.
8054 (find_default_run_target): Check against delegate_can_run.
8055 * target.h (struct target_ops) <to_can_run>: Use
8056 TARGET_DEFAULT_RETURN.
8057
86a0854a
TT
80582014-02-19 Tom Tromey <tromey@redhat.com>
8059
8060 * target-delegates.c: Rebuild.
8061 * target.c (target_disconnect): Unconditionally delegate.
8062 * target.h (struct target_ops) <to_disconnect>: Use
8063 TARGET_DEFAULT_NORETURN.
8064
ee97f592
TT
80652014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * record.c (record_stop): Unconditionally delegate.
8068 * target-delegates.c: Rebuild.
8069 * target.c (target_stop_recording): Unconditionally delegate.
8070 * target.h (struct target_ops) <to_stop_recording>: Use
8071 TARGET_DEFAULT_IGNORE.
8072
6dc7fcf4
TT
80732014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * target-delegates.c: Rebuild.
8076 * target.c (target_enable_btrace): Unconditionally delegate.
8077 * target.h (struct target_ops) <to_enable_btrace>: Use
8078 TARGET_DEFAULT_NORETURN.
8079
eb5b20d4
TT
80802014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target-delegates.c: Rebuild.
8083 * target.c (target_read_btrace): Unconditionally delegate.
8084 * target.h (struct target_ops) <to_read_btrace>: Use
8085 TARGET_DEFAULT_NORETURN.
8086
9ace480d
TT
80872014-02-19 Tom Tromey <tromey@redhat.com>
8088
8089 * target-delegates.c: Rebuild.
8090 * target.c (target_teardown_btrace): Unconditionally delegate.
8091 * target.h (struct target_ops) <to_teardown_btrace>: Use
8092 TARGET_DEFAULT_NORETURN.
8093
8dc292d3
TT
80942014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * target-delegates.c: Rebuild.
8097 * target.c (target_disable_btrace): Unconditionally delegate.
8098 * target.h (struct target_ops) <to_disable_btrace>: Use
8099 TARGET_DEFAULT_NORETURN.
8100
58a5184e
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (default_search_memory): New function.
8105 (simple_search_memory): Update comment.
8106 (target_search_memory): Unconditionally delegate.
8107 * target.h (struct target_ops) <to_search_memory>: Use
8108 TARGET_DEFAULT_FUNC.
8109
8de71aab
TT
81102014-02-19 Tom Tromey <tromey@redhat.com>
8111
8112 * auxv.c (default_auxv_parse): No longer static.
8113 (target_auxv_parse): Unconditionally delegate.
8114 * auxv.h (default_auxv_parse): Declare.
8115 * target-delegates.c: Rebuild.
8116 * target.c: Include auxv.h.
8117 * target.h (struct target_ops) <to_auxv_parse>: Use
8118 TARGET_DEFAULT_FUNC.
8119
6b2c5a57
TT
81202014-02-19 Tom Tromey <tromey@redhat.com>
8121
8122 * target-delegates.c: Rebuild.
8123 * target.c (target_memory_map): Unconditionally delegate.
8124 * target.h (struct target_ops) <to_memory_map>: Use
8125 TARGET_DEFAULT_RETURN.
8126
cbffc065
TT
81272014-02-19 Tom Tromey <tromey@redhat.com>
8128
8129 * target-delegates.c: Rebuild.
8130 * target.c (target_thread_alive): Unconditionally delegate.
8131 * target.h (struct target_ops) <to_thread_alive>: Use
8132 TARGET_DEFAULT_RETURN.
8133
f09e2107
TT
81342014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target-delegates.c: Rebuild.
8137 * target.c (target_save_record): Unconditionally delegate.
8138 * target.h (struct target_ops) <to_save_record>: Use
8139 TARGET_DEFAULT_NORETURN.
8140
07366925
TT
81412014-02-19 Tom Tromey <tromey@redhat.com>
8142
8143 * target-delegates.c: Rebuild.
8144 * target.c (target_delete_record): Unconditionally delegate.
8145 * target.h (struct target_ops) <to_delete_record>: Use
8146 TARGET_DEFAULT_NORETURN.
8147
dd2e9d25
TT
81482014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (target_record_is_replaying): Unconditionally
8152 delegate.
8153 * target.h (struct target_ops) <to_record_is_replaying>: Use
8154 TARGET_DEFAULT_RETURN.
8155
671e76cc
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_goto_record_begin): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_goto_record_begin>: Use
8161 TARGET_DEFAULT_NORETURN.
8162
e9179bb3
TT
81632014-02-19 Tom Tromey <tromey@redhat.com>
8164
8165 * target-delegates.c: Rebuild.
8166 * target.c (target_goto_record_end): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_goto_record_end>: Use
8168 TARGET_DEFAULT_NORETURN.
8169
05969c84
TT
81702014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_goto_record): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_goto_record>: Use
8175 TARGET_DEFAULT_NORETURN.
8176
3679abfa
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_insn_history): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_insn_history>: Use
8182 TARGET_DEFAULT_NORETURN.
8183
8444ab58
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_insn_history_from): Unconditionally delegate.
8188 * target.h (struct target_ops) <to_insn_history_from>: Use
8189 TARGET_DEFAULT_NORETURN.
8190
c29302cc
TT
81912014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target-delegates.c: Rebuild.
8194 * target.c (target_insn_history_range): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_insn_history_range>: Use
8196 TARGET_DEFAULT_NORETURN.
8197
170049d4
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (target_call_history): Unconditionally delegate.
8202 * target.h (struct target_ops) <to_call_history>: Use
8203 TARGET_DEFAULT_NORETURN.
8204
16fc27d6
TT
82052014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * target-delegates.c: Rebuild.
8208 * target.c (target_call_history_from): Unconditionally delegate.
8209 * target.h (struct target_ops) <to_call_history_from>: Use
8210 TARGET_DEFAULT_NORETURN.
8211
115d9817
TT
82122014-02-19 Tom Tromey <tromey@redhat.com>
8213
8214 * target-delegates.c: Rebuild.
8215 * target.c (target_call_history_range): Unconditionally delegate.
8216 * target.h (struct target_ops) <to_call_history_range>: Use
8217 TARGET_DEFAULT_NORETURN.
8218
eb276a6b
TT
82192014-02-19 Tom Tromey <tromey@redhat.com>
8220
8221 * target-delegates.c: Rebuild.
8222 * target.c (target_verify_memory): Unconditionally delegate.
8223 * target.h (struct target_ops) <to_verify_memory>: Use
8224 TARGET_DEFAULT_NORETURN.
8225
9e538d0d
TT
82262014-02-19 Tom Tromey <tromey@redhat.com>
8227
8228 * target-delegates.c: Rebuild.
8229 * target.c (target_core_of_thread): Unconditionally delegate.
8230 * target.h (struct target_ops) <to_core_of_thread>: Use
8231 TARGET_DEFAULT_RETURN.
8232
f6fb2925
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_flash_done): Unconditionally delegate.
8237 * target.h (struct target_ops) <to_flash_done>: Use
8238 TARGET_DEFAULT_NORETURN.
8239
e8a6c6ac
TT
82402014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (target_flash_erase): Unconditionally delegate.
8244 * target.h (struct target_ops) <to_flash_erase>: Use
8245 TARGET_DEFAULT_NORETURN.
8246
7e35c012
TT
82472014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target-delegates.c: Rebuild.
8250 * target.c (target_get_section_table): Unconditionally delegate.
8251 * target.h (struct target_ops) <to_get_section_table>: Use
8252 TARGET_DEFAULT_RETURN.
8253
770234d3
TT
82542014-02-19 Tom Tromey <tromey@redhat.com>
8255
8256 * target-delegates.c: Rebuild.
8257 * target.c (target_pid_to_str): Unconditionally delegate.
8258 (init_dummy_target): Don't initialize to_pid_to_str.
8259 (default_pid_to_str): Rename from dummy_pid_to_str.
8260 * target.h (struct target_ops) <to_pid_to_str>: Use
8261 TARGET_DEFAULT_FUNC.
8262
09b0dc2b
TT
82632014-02-19 Tom Tromey <tromey@redhat.com>
8264
8265 * target-delegates.c: Rebuild.
8266 * target.c (target_find_new_threads): Unconditionally delegate.
8267 * target.h (struct target_ops) <to_find_new_threads>: Use
8268 TARGET_DEFAULT_RETURN.
8269
7d4f8efa
TT
82702014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target-delegates.c: Rebuild.
8273 * target.c (target_program_signals): Unconditionally delegate.
8274 * target.h (struct target_ops) <to_program_signals>: Use
8275 TARGET_DEFAULT_IGNORE.
8276
035cad7f
TT
82772014-02-19 Tom Tromey <tromey@redhat.com>
8278
8279 * target-delegates.c: Rebuild.
8280 * target.c (target_pass_signals): Unconditionally delegate.
8281 * target.h (struct target_ops) <to_pass_signals>: Use
8282 TARGET_DEFAULT_IGNORE.
8283
8d657035
TT
82842014-02-19 Tom Tromey <tromey@redhat.com>
8285
8286 * target-delegates.c: Rebuild.
8287 * target.c (default_mourn_inferior): New function.
8288 (target_mourn_inferior): Unconditionally delegate.
8289 * target.h (struct target_ops) <to_mourn_inferior>: Use
8290 TARGET_DEFAULT_FUNC.
8291
098dba18
TT
82922014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target-delegates.c: Rebuild.
8295 * target.c (default_follow_fork): New function.
8296 (target_follow_fork): Unconditionally delegate.
8297 * target.h (struct target_ops) <to_follow_fork>: Use
8298 TARGET_DEFAULT_FUNC.
8299
423a4807
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target-delegates.c: Rebuild.
8303 * target.c (target_kill): Unconditionally delegate.
8304 * target.h (struct target_ops) <to_kill>: Use
8305 TARGET_DEFAULT_NORETURN.
8306
6c7e5e5c
TT
83072014-02-19 Tom Tromey <tromey@redhat.com>
8308
8309 * target-delegates.c: Rebuild.
8310 * target.c (target_masked_watch_num_registers): Unconditionally
8311 delegate.
8312 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8313 Use TARGET_DEFAULT_RETURN.
8314
8b1c364c
TT
83152014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (target_remove_mask_watchpoint): Unconditionally
8319 delegate.
8320 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8321 TARGET_DEFAULT_RETURN.
8322
cd4ae029
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target-delegates.c: Rebuild.
8326 * target.c (target_insert_mask_watchpoint): Unconditionally
8327 delegate.
8328 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8329 TARGET_DEFAULT_RETURN.
8330
a134316b
TT
83312014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target-delegates.c: Rebuild.
8334 * target.c (target_ranged_break_num_registers): Unconditionally
8335 delegate.
8336 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8337 Use TARGET_DEFAULT_RETURN.
8338
ad5989bd
TT
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_fetch_registers): Unconditionally delegate.
8343 * target.h (struct target_ops) <to_fetch_registers>: Use
8344 TARGET_DEFAULT_NORETURN.
8345
46ee7e8d
TT
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8350 to_stop.
8351 * target.h (struct target_ops) <to_stop>: Use
8352 TARGET_DEFAULT_IGNORE.
8353
843f59ed
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_can_run_breakpoint_commands.
8359 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8360 Use TARGET_DEFAULT_RETURN.
8361
ccfde2a0
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_supports_evaluation_of_breakpoint_conditions.
8367 * target.h (struct target_ops)
8368 <to_supports_evaluation_of_breakpoint_conditions>: Use
8369 TARGET_DEFAULT_RETURN.
8370
0de91722
TT
83712014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8375 to_augmented_libraries_svr4_read.
8376 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8377 Use TARGET_DEFAULT_RETURN.
8378
9a7d8b48
TT
83792014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8383 to_can_use_agent.
8384 * target.h (struct target_ops) <to_can_use_agent>: Use
8385 TARGET_DEFAULT_RETURN.
8386
d9db5b21
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_use_agent.
8392 * target.h (struct target_ops) <to_use_agent>: Use
8393 TARGET_DEFAULT_NORETURN.
8394
92155eeb
TT
83952014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8399 to_traceframe_info.
8400 (return_null): Remove.
8401 * target.h (struct target_ops) <to_traceframe_info>: Use
8402 TARGET_DEFAULT_RETURN.
8403
d6522a22
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_static_tracepoint_markers_by_strid.
8409 * target.h (struct target_ops)
8410 <to_static_tracepoint_markers_by_strid>: Use
8411 TARGET_DEFAULT_NORETURN.
8412
4c3e4425
TT
84132014-02-19 Tom Tromey <tromey@redhat.com>
8414
8415 * target-delegates.c: Rebuild.
8416 * target.c (update_current_target): Don't inherit or default
8417 to_static_tracepoint_marker_at.
8418 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8419 Use TARGET_DEFAULT_RETURN.
8420
dcd6917f
TT
84212014-02-19 Tom Tromey <tromey@redhat.com>
8422
8423 * target-delegates.c: Rebuild.
8424 * target.c (update_current_target): Don't inherit or default
8425 to_set_permissions.
8426 * target.h (struct target_ops) <to_set_permissions>: Use
8427 TARGET_DEFAULT_IGNORE.
8428
22bcceee
TT
84292014-02-19 Tom Tromey <tromey@redhat.com>
8430
8431 * target-delegates.c: Rebuild.
8432 * target.c (update_current_target): Don't inherit or default
8433 to_get_tib_address.
8434 * target.h (struct target_ops) <to_get_tib_address>: Use
8435 TARGET_DEFAULT_NORETURN.
8436
8586ccaa
TT
84372014-02-19 Tom Tromey <tromey@redhat.com>
8438
8439 * target-delegates.c: Rebuild.
8440 * target.c (update_current_target): Don't inherit or default
8441 to_set_trace_notes.
8442 * target.h (struct target_ops) <to_set_trace_notes>: Use
8443 TARGET_DEFAULT_RETURN.
8444
91df8d1d
TT
84452014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't initialize
8449 to_set_trace_buffer_size.
8450 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8451 TARGET_DEFAULT_IGNORE.
8452
8d526939
TT
84532014-02-19 Tom Tromey <tromey@redhat.com>
8454
8455 * target-delegates.c: Rebuild.
8456 * target.c (update_current_target): Don't inherit or default
8457 to_set_circular_trace_buffer.
8458 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8459 TARGET_DEFAULT_IGNORE.
8460
0bcfeddf
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_set_disconnected_tracing.
8466 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8467 TARGET_DEFAULT_IGNORE.
8468
9249843f
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_get_min_fast_tracepoint_insn_len.
8474 (return_minus_one): Remove.
8475 * target.h (struct target_ops)
8476 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8477
ace92e7d
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_get_raw_trace_data.
8483 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8484 TARGET_DEFAULT_NORETURN.
8485
08120467
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8490 to_upload_trace_state_variables.
8491 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8492 Use TARGET_DEFAULT_RETURN.
8493
1e949b00
TT
84942014-02-19 Tom Tromey <tromey@redhat.com>
8495
8496 * target-delegates.c: Rebuild.
8497 * target.c (update_current_target): Don't inherit or default
8498 to_upload_tracepoints.
8499 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8500 TARGET_DEFAULT_RETURN.
8501
a2e6c147
TT
85022014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * target-delegates.c: Rebuild.
8505 * target.c (update_current_target): Don't inherit or default
8506 to_save_trace_data.
8507 * target.h (struct target_ops) <to_save_trace_data>: Use
8508 TARGET_DEFAULT_NORETURN.
8509
959bcd0b
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target-delegates.c: Rebuild.
8513 * target.c (update_current_target): Don't inherit or default
8514 to_get_trace_state_variable_value.
8515 * target.h (struct target_ops)
8516 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8517
afc94e66
TT
85182014-02-19 Tom Tromey <tromey@redhat.com>
8519
8520 * target-delegates.c: Rebuild.
8521 * target.c (update_current_target): Don't inherit or default
8522 to_trace_find.
8523 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8524
e51c07ea
TT
85252014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target-delegates.c: Rebuild.
8528 * target.c (update_current_target): Don't inherit or default
8529 to_trace_stop.
8530 * target.h (struct target_ops) <to_trace_stop>: Use
8531 TARGET_DEFAULT_NORETURN.
8532
6fea14cd
TT
85332014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_get_tracepoint_status.
8538 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8539 TARGET_DEFAULT_NORETURN.
8540
4072d4ff
TT
85412014-02-19 Tom Tromey <tromey@redhat.com>
8542
8543 * target-delegates.c: Rebuild.
8544 * target.c (update_current_target): Don't inherit or default
8545 to_get_trace_status.
8546 * target.h (struct target_ops) <to_get_trace_status>: Use
8547 TARGET_DEFAULT_RETURN.
8548
25da2e80
TT
85492014-02-19 Tom Tromey <tromey@redhat.com>
8550
8551 * target-delegates.c: Rebuild.
8552 * target.c (update_current_target): Don't inherit or default
8553 to_trace_start.
8554 * target.h (struct target_ops) <to_trace_start>: Use
8555 TARGET_DEFAULT_NORETURN.
8556
86dd181d
TT
85572014-02-19 Tom Tromey <tromey@redhat.com>
8558
8559 * target-delegates.c: Rebuild.
8560 * target.c (update_current_target): Don't inherit or default
8561 to_trace_set_readonly_regions.
8562 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8563 Use TARGET_DEFAULT_NORETURN.
8564
05c41993
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target-delegates.c: Rebuild.
8568 * target.c (update_current_target): Don't inherit or default
8569 to_disable_tracepoint.
8570 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8571 TARGET_DEFAULT_NORETURN.
8572
151f70f1
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8577 to_enable_tracepoint.
8578 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8579 TARGET_DEFAULT_NORETURN.
8580
94eb98b9
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_download_trace_state_variable.
8586 * target.h (struct target_ops) <to_download_trace_state_variable>:
8587 Use TARGET_DEFAULT_NORETURN.
8588
719acc4a
TT
85892014-02-19 Tom Tromey <tromey@redhat.com>
8590
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8593 to_can_download_tracepoint.
8594 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8595 TARGET_DEFAULT_RETURN.
8596
9a980a22
TT
85972014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_download_tracepoint.
8602 * target.h (struct target_ops) <to_download_tracepoint>: Use
8603 TARGET_DEFAULT_NORETURN.
8604
5536135b
TT
86052014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_trace_init.
8610 * target.h (struct target_ops) <to_trace_init>: Use
8611 TARGET_DEFAULT_RETURN.
8612
9409d39e
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_string_tracing.
8618 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8619 TARGET_DEFAULT_RETURN.
8620
aab1b22d
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_supports_enable_disable_tracepoint.
8626 * target.h (struct target_ops)
8627 <to_supports_enable_disable_tracepoint>: Use
8628 TARGET_DEFAULT_RETURN.
8629
a7304748
TT
86302014-02-19 Tom Tromey <tromey@redhat.com>
8631
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_supports_multi_process.
8635 * target.h (struct target_ops) <to_supports_multi_process>: Use
8636 TARGET_DEFAULT_RETURN.
8637
4229b31d
TT
86382014-02-19 Tom Tromey <tromey@redhat.com>
8639
8640 * target-delegates.c: Rebuild.
8641 * target.c (update_current_target): Don't inherit or default
8642 to_get_ada_task_ptid.
8643 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8644 TARGET_DEFAULT_FUNC.
8645
43eba180
TT
86462014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target-delegates.c: Rebuild.
8649 * target.c (update_current_target): Don't inherit or default
8650 to_thread_architecture.
8651 * target.h (struct target_ops) <to_thread_architecture>: Use
8652 TARGET_DEFAULT_FUNC.
8653
fe31bf5b
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_execution_direction.
8659 * target.h (struct target_ops) <to_execution_direction>: Use
8660 TARGET_DEFAULT_FUNC.
8661
53e1cfc7
TT
86622014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_can_execute_reverse.
8667 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8668 TARGET_DEFAULT_RETURN.
8669 (target_can_execute_reverse): Unconditionally delegate.
8670
9bb9d61d
TT
86712014-02-19 Tom Tromey <tromey@redhat.com>
8672
8673 * target-delegates.c: Rebuild.
8674 * target.c (update_current_target): Don't inherit or default
8675 to_goto_bookmark.
8676 (dummy_goto_bookmark): Remove.
8677 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8678 * target.h (struct target_ops) <to_goto_bookmark>: Use
8679 TARGET_DEFAULT_NORETURN.
8680
3dbafbbb
TT
86812014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_get_bookmark.
8686 (dummy_get_bookmark): Remove.
8687 (init_dummy_target): Don't inherit or default to_get_bookmark.
8688 * target.h (struct target_ops) <to_get_bookmark>: Use
8689 TARGET_DEFAULT_NORETURN
8690
16f796b1
TT
86912014-02-19 Tom Tromey <tromey@redhat.com>
8692
8693 * target-delegates.c: Rebuild.
8694 * target.c (update_current_target): Don't inherit or default
8695 to_make_corefile_notes.
8696 (init_dummy_target): Don't initialize to_make_corefile_notes.
8697 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8698 TARGET_DEFAULT_FUNC.
8699
0b5a2719
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_find_memory_regions.
8705 (init_dummy_target): Don't initialize to_find_memory_regions.
8706 * target.h (struct target_ops) <to_find_memory_regions>: Use
8707 TARGET_DEFAULT_FUNC.
8708
d9cb0195
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_log_command.
8714 * target.h (struct target_ops) <to_log_command>: Use
8715 TARGET_DEFAULT_IGNORE.
8716 (target_log_command): Unconditionally delegate.
8717
830ca330
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_pid_to_exec_file.
8723 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8724 TARGET_DEFAULT_RETURN.
8725
825828fc
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_thread_name.
8731 (target_thread_name): Unconditionally delegate.
8732 * target.h (struct target_ops) <to_thread_name>: Use
8733 TARGET_DEFAULT_RETURN.
8734
4a7e6dda
TT
87352014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_extra_thread_info.
8740 * target.h (struct target_ops) <to_extra_thread_info>: Use
8741 TARGET_DEFAULT_RETURN.
8742
0db88c1d
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_has_exited.
8748 * target.h (struct target_ops) <to_has_exited>: Use
8749 TARGET_DEFAULT_RETURN..
8750
6a9fa051
TT
87512014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_set_syscall_catchpoint.
8756 (return_one): Remove.
8757 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8758 TARGET_DEFAULT_RETURN.
8759
62f64d7a
TT
87602014-02-19 Tom Tromey <tromey@redhat.com>
8761
8762 * target-delegates.c: Rebuild.
8763 * target.c (update_current_target): Don't inherit or default
8764 to_insert_exec_catchpoint.
8765 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8766 TARGET_DEFAULT_RETURN.
8767
cda0f38c
TT
87682014-01-08 Tom Tromey <tromey@redhat.com>
8769
8770 * target-delegates.c: Rebuild.
8771 * target.c (update_current_target): Don't inherit or default
8772 to_insert_exec_catchpoint.
8773 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8774 TARGET_DEFAULT_RETURN.
8775
95c3375e
TT
87762014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target-delegates.c: Rebuild.
8779 * target.c (update_current_target): Don't inherit or default
8780 to_remove_vfork_catchpoint.
8781 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8782 TARGET_DEFAULT_RETURN.
8783
7e18a8dc
TT
87842014-02-19 Tom Tromey <tromey@redhat.com>
8785
8786 * target-delegates.c: Rebuild.
8787 * target.c (update_current_target): Don't inherit or default
8788 to_insert_vfork_catchpoint.
8789 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8790 TARGET_DEFAULT_RETURN.
8791
e1a21fb7
TT
87922014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target-delegates.c: Rebuild.
8795 * target.c (update_current_target): Don't inherit or default
8796 to_remove_fork_catchpoint.
8797 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8798 TARGET_DEFAULT_RETURN.
8799
5958ebeb
TT
88002014-02-19 Tom Tromey <tromey@redhat.com>
8801
8802 * target-delegates.c: Rebuild.
8803 * target.c (update_current_target): Don't inherit or default
8804 to_insert_fork_catchpoint.
8805 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8806 TARGET_DEFAULT_RETURN.
8807
340ba4bf
TT
88082014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * target-delegates.c: Rebuild.
8811 * target.c (update_current_target): Don't inherit or default
8812 to_post_startup_inferior.
8813 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8814 TARGET_DEFAULT_IGNORE.
8815
7634da87
TT
88162014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * target-delegates.c: Rebuild.
8819 * target.c (update_current_target): Don't inherit or default
8820 to_load.
8821 * target.h (struct target_ops) <to_load>: Use
8822 TARGET_DEFAULT_NORETURN.
8823
e19e919f
TT
88242014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8828 to_terminal_info.
8829 * target.h (struct target_ops) <to_terminal_info>: Use
8830 TARGET_DEFAULT_FUNC.
8831
c6ea8f79
TT
88322014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target-delegates.c: Rebuild.
8835 * target.c (update_current_target): Don't inherit or default
8836 to_terminal_save_ours.
8837 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8838 TARGET_DEFAULT_IGNORE.
8839
e4a733f1
TT
88402014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (update_current_target): Don't inherit or default
8844 to_terminal_ours.
8845 * target.h (struct target_ops) <to_terminal_ours>: Use
8846 TARGET_DEFAULT_IGNORE.
8847
74fcbef9
TT
88482014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target-delegates.c: Rebuild.
8851 * target.c (update_current_target): Don't inherit or default
8852 to_terminal_ours_for_output.
8853 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8854 TARGET_DEFAULT_IGNORE.
8855
ddeaacc9
TT
88562014-02-19 Tom Tromey <tromey@redhat.com>
8857
8858 * target-delegates.c: Rebuild.
8859 * target.c (update_current_target): Don't inherit or default
8860 to_terminal_inferior.
8861 * target.h (struct target_ops) <to_terminal_inferior>: Use
8862 TARGET_DEFAULT_IGNORE.
8863
0343661d
TT
88642014-02-19 Tom Tromey <tromey@redhat.com>
8865
8866 * target-delegates.c: Rebuild.
8867 * target.c (update_current_target): Don't inherit or default
8868 to_terminal_init.
8869 * target.h (struct target_ops) <to_terminal_init>: Use
8870 TARGET_DEFAULT_IGNORE.
8871
77cdffe9
TT
88722014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target-delegates.c: Rebuild.
8875 * target.c (update_current_target): Don't inherit or default
8876 to_can_accel_watchpoint_condition.
8877 * target.h (struct target_ops)
8878 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8879
d03655e4
TT
88802014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target-delegates.c: Rebuild.
8883 * target.c (update_current_target): Don't inherit or default
8884 to_region_ok_for_hw_watchpoint.
8885 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8886 Use TARGET_DEFAULT_FUNC.
8887
65f160a9
TT
88882014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * target-delegates.c: Rebuild.
8891 * target.c (update_current_target): Don't inherit or default
8892 to_watchpoint_addr_within_range.
8893 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8894 Use TARGET_DEFAULT_FUNC.
8895
61dd109f
TT
88962014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target-delegates.c: Rebuild.
8899 * target.c (update_current_target): Don't inherit or default
8900 to_remove_watchpoint.
8901 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8902 TARGET_DEFAULT_NORETURN.
8903
016facd4
TT
89042014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target-delegates.c: Rebuild.
8907 * target.c (update_current_target): Don't inherit or default
8908 to_insert_watchpoint.
8909 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8910 TARGET_DEFAULT_RETURN.
8911
418dabac
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target-delegates.c: Rebuild.
8915 * target.c (update_current_target): Don't inherit or default
8916 to_remove_hw_breakpoint.
8917 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8918 TARGET_DEFAULT_RETURN.
8919
61b371f9
TT
89202014-02-19 Tom Tromey <tromey@redhat.com>
8921
8922 * target-delegates.c: Rebuild.
8923 * target.c (update_current_target): Don't inherit or default
8924 to_insert_hw_breakpoint.
8925 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8926 TARGET_DEFAULT_RETURN.
8927
52b51d06
TT
89282014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target-delegates.c: Rebuild.
8931 * target.c (update_current_target): Don't inherit or default
8932 to_can_use_hw_breakpoint.
8933 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8934 TARGET_DEFAULT_RETURN.
8935
f86e59b2
TT
89362014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target-delegates.c: Rebuild.
8939 * target.c (update_current_target): Don't inherit or default
8940 to_files_info.
8941 * target.h (struct target_ops) <to_files_info>: Use
8942 TARGET_DEFAULT_IGNORE.
8943
6c628163
TT
89442014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target-delegates.c: Rebuild.
8947 * target.c (update_current_target): Don't inherit or default
8948 to_store.
8949 * target.h (struct target_ops) <to_store>: Use
8950 TARGET_DEFAULT_NORETURN.
8951
bebd3233
TT
89522014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target-delegates.c: Rebuild.
8955 * target.c (update_current_target): Don't inherit or default
8956 to_post_attach.
8957 * target.h (struct target_ops) <to_post_attach>: Use
8958 TARGET_DEFAULT_IGNORE.
8959
a53f3625
TT
89602014-02-19 Tom Tromey <tromey@redhat.com>
8961
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8964 to_rcmd.
8965 (default_rcmd): New function.
8966 (do_monitor_command): Unconditionally delegate.
8967 * target.h (struct target_ops) <to_rmcd>: Use
8968 TARGET_DEFAULT_FUNC.
8969
e9a29200
TT
89702014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target-delegates.c: Rebuild.
8973 * target.c (init_dummy_target): Don't initialize to_attach.
8974 (target_attach): Unconditionally delegate.
8975 * target.h (struct target_ops) <to_attach>: Use
8976 TARGET_DEFAULT_FUNC.
8977
09da0d0a
TT
89782014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target-delegates.c: Rebuild.
8981 * target.c (target_detach): Unconditionally delegate.
8982 (init_dummy_target): Don't initialize to_detach.
8983 * target.h (struct target_ops) <to_detach>: Use
8984 TARGET_DEFAULT_IGNORE.
8985
5436ff03
TT
89862014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8989 Add argument.
8990 (target_augmented_libraries_svr4_read): Add argument.
8991 * target.c (update_current_target): Update.
8992 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8993 argument.
8994
f0d960ea
TT
89952014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops) <to_call_history_range>: Add
8998 argument.
8999 * target.c (target_call_history_range): Add argument.
9000 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9001 argument.
9002 (record_btrace_call_history_from): Update.
9003
ec0aea04
TT
90042014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target.h (struct target_ops) <to_call_history_from>: Add
9007 argument.
9008 * target.c (target_call_history_from): Add argument.
9009 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9010 argument.
9011
5df2fcba
TT
90122014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target.h (struct target_ops) <to_call_history>: Add argument.
9015 * target.c (target_call_history): Add argument.
9016 * record-btrace.c (record_btrace_call_history): Add 'self'
9017 argument.
9018
4e99c6b7
TT
90192014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target.h (struct target_ops) <to_insn_history_range>: Add
9022 argument.
9023 * target.c (target_insn_history_range): Add argument.
9024 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9025 argument.
9026 (record_btrace_insn_history_from): Update.
9027
9abc3ff3
TT
90282014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target.h (struct target_ops) <to_insn_history_from>: Add
9031 argument.
9032 * target.c (target_insn_history_from): Add argument.
9033 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9034 argument.
9035
7a6c5609
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target.h (struct target_ops) <to_insn_history>: Add argument.
9039 * target.c (target_insn_history): Add argument.
9040 * record-btrace.c (record_btrace_insn_history): Add 'self'
9041 argument.
9042
606183ac
TT
90432014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target.h (struct target_ops) <to_goto_record>: Add argument.
9046 * target.c (target_goto_record): Add argument.
9047 * record-full.c (record_full_goto): Add 'self' argument.
9048 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9049
307a1b91
TT
90502014-02-19 Tom Tromey <tromey@redhat.com>
9051
9052 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9053 * target.c (target_goto_record_end): Add argument.
9054 * record-full.c (record_full_goto_end): Add 'self' argument.
9055 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9056
08475817
TT
90572014-02-19 Tom Tromey <tromey@redhat.com>
9058
9059 * target.h (struct target_ops) <to_goto_record_begin>: Add
9060 argument.
9061 * target.c (target_goto_record_begin): Add argument.
9062 * record-full.c (record_full_goto_begin): Add 'self' argument.
9063 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9064 argument.
9065
1c63c994
TT
90662014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * target.h (struct target_ops) <to_record_is_replaying>: Add
9069 argument.
9070 * target.c (target_record_is_replaying): Add argument.
9071 * record-full.c (record_full_is_replaying): Add 'self' argument.
9072 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9073 argument.
9074 (record_btrace_xfer_partial, record_btrace_store_registers)
9075 (record_btrace_prepare_to_store, record_btrace_resume)
9076 (record_btrace_wait, record_btrace_decr_pc_after_break)
9077 (record_btrace_find_new_threads, record_btrace_thread_alive):
9078 Update.
9079
d1b55219
TT
90802014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops) <to_delete_record>: Add argument.
9083 * target.c (target_delete_record): Add argument.
9084 * record-full.c (record_full_delete): Add 'self' argument.
9085
1390f529
TT
90862014-02-19 Tom Tromey <tromey@redhat.com>
9087
9088 * target.h (struct target_ops) <to_save_record>: Add argument.
9089 * target.c (target_save_record): Add argument.
9090 * record-full.c (record_full_save): Add 'self' argument.
9091 (record_full_save): Add 'self' argument.
9092
630d6a4a
TT
90932014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target.h (struct target_ops) <to_info_record>: Add argument.
9096 * target.c (target_info_record): Add argument.
9097 * record.c (info_record_command): Add argument.
9098 * record-full.c (record_full_info): Add 'self' argument.
9099 * record-btrace.c (record_btrace_info): Add 'self' argument.
9100
c6cd7c02
TT
91012014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9104 * target.c (target_stop_recording): Add argument.
9105 * record.c (record_stop): Add argument.
9106 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9107 argument.
9108
39c49f83
TT
91092014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9112 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9113 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9114 argument.
9115 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9116 (_initialize_amd64_linux_nat): Use it.
9117 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9118 (_initialize_i386_linux_nat): Use it.
9119
1777056d
TT
91202014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9123 * target.c (target_teardown_btrace): Add argument.
9124 * remote.c (remote_teardown_btrace): Add 'self' argument.
9125 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9126 argument.
9127 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9128 argument.
9129
25e95349
TT
91302014-02-19 Tom Tromey <tromey@redhat.com>
9131
9132 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9133 * target.c (target_disable_btrace): Add argument.
9134 * remote.c (remote_disable_btrace): Add 'self' argument.
9135 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9136 argument.
9137 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9138 argument.
9139
e3c49f88
TT
91402014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9143 * target.c (target_enable_btrace): Add argument.
9144 * remote.c (remote_enable_btrace): Add 'self' argument.
9145 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9146 argument.
9147 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9148 argument.
9149
fe38f897
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9153 (target_can_use_agent): Add argument.
9154 * target.c (update_current_target): Update.
9155 * remote.c (remote_can_use_agent): Add 'self' argument.
9156 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9157
2c152180
TT
91582014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target.h (struct target_ops) <to_use_agent>: Add argument.
9161 (target_use_agent): Add argument.
9162 * target.c (update_current_target): Update.
9163 * remote.c (remote_use_agent): Add 'self' argument.
9164 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9165
a893e81f
TT
91662014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9169 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9170 (target_traceframe_info): Add argument.
9171 * target.c (update_current_target): Update.
9172 * remote.c (remote_traceframe_info): Add 'self' argument.
9173 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9174
c686c57f
TT
91752014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (target_static_tracepoint_markers_by_strid): Add
9178 argument.
9179 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9180 'self' argument.
9181 * target.c (update_current_target): Update.
9182 * remote.c (struct target_ops)
9183 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9184 * linux-nat.c (struct target_ops)
9185 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9186
61fc905d
TT
91872014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9190 Add argument.
9191 (target_static_tracepoint_marker_at): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9194 argument.
9195
c378d69d
TT
91962014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9199 (target_set_permissions): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_set_permissions): Add 'self' argument.
9202 (remote_start_remote): Update.
9203
bd7ae0f5
TT
92042014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9207 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9208 (target_get_tib_address): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_get_tib_address): Add 'self' argument.
9211
d9e68a2c
TT
92122014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9215 (target_set_trace_notes): Add argument.
9216 * target.c (update_current_target): Update.
9217 * remote.c (remote_set_trace_notes): Add 'self' argument.
9218
4da384be
TT
92192014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9222 argument.
9223 (target_set_trace_buffer_size): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9226
736d5b1f
TT
92272014-02-19 Tom Tromey <tromey@redhat.com>
9228
9229 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9230 argument.
9231 (target_set_circular_trace_buffer): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9234 argument.
9235
37b25738
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9239 argument.
9240 (target_set_disconnected_tracing): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9243
0e67620a
TT
92442014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (struct target_ops)
9247 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9248 (target_get_min_fast_tracepoint_insn_len): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9251 argument.
9252
88ee6f45
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9256 argument.
9257 (target_get_raw_trace_data): Add argument.
9258 * target.c (update_current_target): Update.
9259 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9260
181e3713
TT
92612014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9264 Add argument.
9265 (target_upload_trace_state_variables): Add argument.
9266 * target.c (update_current_target): Update.
9267 * remote.c (remote_upload_trace_state_variables): Add 'self'
9268 argument.
9269 (remote_start_remote): Update.
9270
ab6617cc
TT
92712014-02-19 Tom Tromey <tromey@redhat.com>
9272
9273 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9274 argument.
9275 (target_upload_tracepoints): Add argument.
9276 * target.c (update_current_target): Update.
9277 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9278 (remote_start_remote): Update.
9279
dc3decaf
TT
92802014-02-19 Tom Tromey <tromey@redhat.com>
9281
9282 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9283 (target_save_trace_data): Add argument.
9284 * target.c (update_current_target): Update.
9285 * remote.c (remote_save_trace_data): Add 'self' argument.
9286
4011015b
TT
92872014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9290 argument.
9291 * target.h (struct target_ops)
9292 <to_get_trace_state_variable_value>: Add argument.
9293 (target_get_trace_state_variable_value): Add argument.
9294 * target.c (update_current_target): Update.
9295 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9296 argument.
9297 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9298
bd4c6793
TT
92992014-02-19 Tom Tromey <tromey@redhat.com>
9300
9301 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9302 * target.h (struct target_ops) <to_trace_find>: Add argument.
9303 (target_trace_find): Add argument.
9304 * target.c (update_current_target): Update.
9305 * remote.c (remote_trace_find): Add 'self' argument.
9306 * ctf.c (ctf_trace_find): Add 'self' argument.
9307
74499f1b
TT
93082014-02-19 Tom Tromey <tromey@redhat.com>
9309
9310 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9311 (target_trace_stop): Add argument.
9312 * target.c (update_current_target): Update.
9313 * remote.c (remote_trace_stop): Add 'self' argument.
9314
db90e85c
TT
93152014-02-19 Tom Tromey <tromey@redhat.com>
9316
9317 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9318 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9319 argument.
9320 (target_get_tracepoint_status): Add argument.
9321 * target.c (update_current_target): Update.
9322 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9323
8bd200f1
TT
93242014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9327 * target.h (struct target_ops) <to_get_trace_status>: Add
9328 argument.
9329 (target_get_trace_status): Add argument.
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_get_trace_status): Add 'self' argument.
9332 (remote_start_remote, remote_can_download_tracepoint): Update.
9333 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9334
e2d1aae3
TT
93352014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target.h (struct target_ops) <to_trace_start>: Add argument.
9338 (target_trace_start): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_trace_start): Add 'self' argument.
9341
583f9a86
TT
93422014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9345 Add argument.
9346 (target_trace_set_readonly_regions): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9349 argument.
9350
780b049c
TT
93512014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9354 argument.
9355 (target_disable_tracepoint): Add argument.
9356 * target.c (update_current_target): Update.
9357 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9358
46670d57
TT
93592014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9362 argument.
9363 (target_enable_tracepoint): Add argument.
9364 * target.c (update_current_target): Update.
9365 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9366
559d2b81
TT
93672014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target.h (struct target_ops) <to_download_trace_state_variable>:
9370 Add argument.
9371 (target_download_trace_state_variable): Add argument.
9372 * target.c (update_current_target): Update.
9373 * remote.c (remote_download_trace_state_variable): Add 'self'
9374 argument.
9375
a52a8357
TT
93762014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9379 argument.
9380 (target_can_download_tracepoint): Add argument.
9381 * target.c (update_current_target): Update.
9382 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9383
548f7808
TT
93842014-02-19 Tom Tromey <tromey@redhat.com>
9385
9386 * target.h (struct target_ops) <to_download_tracepoint>: Add
9387 argument.
9388 (target_download_tracepoint): Add argument.
9389 * target.c (update_current_target): Update.
9390 * remote.c (remote_download_tracepoint): Add 'self' argument.
9391
ecae04e1
TT
93922014-02-19 Tom Tromey <tromey@redhat.com>
9393
9394 * target.h (struct target_ops) <to_trace_init>: Add argument.
9395 (target_trace_init): Add argument.
9396 * target.c (update_current_target): Update.
9397 * remote.c (remote_trace_init): Add 'self' argument.
9398
fab5aa7c
TT
93992014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9402 * target.c (target_fileio_readlink): Add argument.
9403 * remote.c (remote_hostio_readlink): Add 'self' argument.
9404 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9405
dbbca37d
TT
94062014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9409 * target.c (target_fileio_unlink): Add argument.
9410 * remote.c (remote_hostio_unlink): Add 'self' argument.
9411 (remote_file_delete): Update.
9412 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9413
df39ea25
TT
94142014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9417 * target.c (target_fileio_close): Add argument.
9418 * remote.c (remote_hostio_close): Add 'self' argument.
9419 (remote_hostio_close_cleanup): Update.
9420 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9421 Update.
9422 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9423
a3be983c
TT
94242014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9427 * target.c (target_fileio_pread): Add argument.
9428 * remote.c (remote_hostio_pread): Add 'self' argument.
9429 (remote_bfd_iovec_pread, remote_file_get): Update.
9430 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9431
0d866f62
TT
94322014-02-19 Tom Tromey <tromey@redhat.com>
9433
9434 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9435 * target.c (target_fileio_pwrite): Add argument.
9436 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9437 (remote_file_put): Update.
9438 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9439
cd897586
TT
94402014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9443 * target.c (target_fileio_open): Add argument.
9444 * remote.c (remote_hostio_open): Add 'self' argument.
9445 (remote_bfd_iovec_open): Add 'self' argument.
9446 (remote_file_put): Add 'self' argument.
9447 (remote_file_get): Add 'self' argument.
9448 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9449
78eff0ec
TT
94502014-02-19 Tom Tromey <tromey@redhat.com>
9451
9452 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9453 Add argument.
9454 (target_can_run_breakpoint_commands): Add argument.
9455 * target.c (update_current_target): Update.
9456 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9457 argument.
9458 (remote_insert_breakpoint): Add 'self' argument.
9459 (remote_insert_hw_breakpoint): Add 'self' argument.
9460 (remote_can_run_breakpoint_commands): Add 'self' argument.
9461
efcc2da7
TT
94622014-02-19 Tom Tromey <tromey@redhat.com>
9463
9464 * target.h (struct target_ops)
9465 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9466 (target_supports_evaluation_of_breakpoint_conditions): Add
9467 argument.
9468 * target.c (update_current_target): Update.
9469 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9470 argument.
9471 (remote_insert_breakpoint): Add 'self' argument.
9472 (remote_insert_hw_breakpoint): Add 'self' argument.
9473 (remote_supports_cond_breakpoints): Add 'self' argument.
9474
6de37a3a
TT
94752014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9478 argument.
9479 (target_supports_string_tracing): Add argument.
9480 * target.c (update_current_target): Update.
9481 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9482
2bfc0540
TT
94832014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target.h (struct target_ops)
9486 <to_supports_disable_randomization>: Add argument.
9487 * target.c (find_default_supports_disable_randomization): Add
9488 argument.
9489 (target_supports_disable_randomization): Add argument.
9490 (find_default_supports_disable_randomization): Add 'self'
9491 argument.
9492 * remote.c (extended_remote_supports_disable_randomization): Add
9493 'self' argument.
9494 (remote_supports_disable_randomization): Add 'self' argument.
9495 (extended_remote_create_inferior): Update.
9496 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9497 'self' argument.
9498
7d178d6a
TT
94992014-02-19 Tom Tromey <tromey@redhat.com>
9500
9501 * target.h (struct target_ops)
9502 <to_supports_enable_disable_tracepoint>: Add argument.
9503 (target_supports_enable_disable_tracepoint): Add argument.
9504 * target.c (update_current_target): Update.
9505 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9506 argument.
9507
86ce2668
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_supports_multi_process>: Add
9511 argument.
9512 (target_supports_multi_process): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_supports_multi_process): Add 'self' argument.
9515 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9516 argument.
9517 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9518 argument.
9519
4c612759
TT
95202014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target.h (struct target_ops) <to_execution_direction>: Add
9523 argument.
9524 (target_execution_direction): Add argument.
9525 * target.c (default_execution_direction): Add 'self' argument.
9526 * record-full.c (record_full_execution_direction): Add 'self'
9527 argument.
9528
19db3e69
TT
95292014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9532 argument.
9533 (target_can_execute_reverse): Add argument.
9534 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9535 * record-full.c (record_full_can_execute_reverse): Add 'self'
9536 argument.
9537 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9538 argument.
9539
1e6b91a4
TT
95402014-02-19 Tom Tromey <tromey@redhat.com>
9541
9542 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9543 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9544 argument.
9545 (target_get_ada_task_ptid): Add argument.
9546 * target.c (update_current_target): Update.
9547 (default_get_ada_task_ptid): Add 'self' argument.
9548 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9549 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9550 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9551 argument.
9552 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9553 argument.
9554 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9555 argument.
9556 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9557 argument.
9558 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9559 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9560 argument.
9561
3c80fb48
TT
95622014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9565 (target_goto_bookmark): Add argument.
9566 * target.c (dummy_goto_bookmark): Add 'self' argument.
9567 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9568
dd0e2830
TT
95692014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9572 (target_get_bookmark): Add argument.
9573 * target.c (dummy_get_bookmark): Add 'self' argument.
9574 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9575
fc6691b2
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9579 argument.
9580 (target_make_corefile_notes): Add argument.
9581 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9582 * procfs.c (procfs_make_note_section): Add 'self' argument.
9583 (procfs_make_note_section): Add 'self' argument.
9584 (procfs_make_note_section): Add 'self' argument.
9585 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9586 argument.
9587 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9588 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9589 * exec.c (exec_make_note_section): Add 'self' argument.
9590 (exec_make_note_section): Add 'self' argument.
9591
2e73927c
TT
95922014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target.h (struct target_ops) <to_find_memory_regions>: Add
9595 argument.
9596 (target_find_memory_regions): Add argument.
9597 * target.c (dummy_find_memory_regions): Add 'self' argument.
9598 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9599 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9600 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9601 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9602 * exec. (exec_do_find_memory_regions): New global.
9603 (exec_set_find_memory_regions): Rewrite.
9604 (exec_find_memory_regions): New function.
9605 (init_exec_ops): Use exec_find_memory_regions.
9606
2a9a2795
TT
96072014-02-19 Tom Tromey <tromey@redhat.com>
9608
9609 * target.h (struct target_ops) <to_supports_non_stop>: Add
9610 argument.
9611 * target.c (find_default_supports_non_stop): Add argument.
9612 (target_supports_non_stop): Add argument.
9613 (find_default_supports_non_stop): Add 'self' argument.
9614 * remote.c (remote_supports_non_stop): Add 'self' argument.
9615 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9616
4ab76ea3
TT
96172014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target.h (struct target_ops) <to_log_command>: Add argument.
9620 (target_log_command): Add argument.
9621 * serial.h (serial_log_command): Add 'self' argument.
9622 * serial.c (serial_log_command): Add 'self' argument.
9623
8dd27370
TT
96242014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9627 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9628 argument.
9629 (target_pid_to_exec_file): Add argument.
9630 * target.c (debug_to_pid_to_exec_file): Add argument.
9631 (update_current_target): Update.
9632 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9633 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9634 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9635 (linux_handle_extended_wait): Update.
9636 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9637 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9638 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9639 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9640
1aac633b
TT
96412014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target.h (struct target_ops) <to_rcmd>: Add argument.
9644 (target_rcmd): Add argument.
9645 * target.c (debug_to_rcmd): Add argument.
9646 (update_current_target, do_monitor_command): Update.
9647 * remote.c (remote_rcmd): Add 'self' argument.
9648 * monitor.c (monitor_rcmd): Add 'self' argument.
9649
1eab8a48
TT
96502014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * windows-nat.c (windows_stop): Add 'self' argument.
9653 * target.h (struct target_ops) <to_stop>: Add argument.
9654 * target.c (target_stop): Add argument.
9655 (debug_to_stop): Add argument.
9656 (update_current_target): Update.
9657 * remote.c (remote_stop): Add 'self' argument.
9658 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9659 (gdbsim_cntrl_c): Update.
9660 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9661 * procfs.c (procfs_stop): Add 'self' argument.
9662 * nto-procfs.c (procfs_stop): Add 'self' argument.
9663 * monitor.c (monitor_stop): Add 'self' argument.
9664 (monitor_open): Update.
9665 * linux-nat.c (linux_nat_stop): Add argument.
9666 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9667 * gnu-nat.c (gnu_stop): Add 'self' argument.
9668 * darwin-nat.c (darwin_stop): Add 'self' argument.
9669
503a628d
TT
96702014-02-19 Tom Tromey <tromey@redhat.com>
9671
9672 * target.h (struct target_ops) <to_thread_name>: Add argument.
9673 * target.c (target_thread_name): Add argument.
9674 (update_current_target): Update.
9675 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9676
c15906d8
TT
96772014-02-19 Tom Tromey <tromey@redhat.com>
9678
9679 * target.h (struct target_ops) <to_extra_thread_info>: Add
9680 argument.
9681 (target_extra_thread_info): Add argument.
9682 * target.c (update_current_target): Update.
9683 * remote.c (remote_threads_extra_info): Add 'self' argument.
9684 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9685 argument.
9686 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9687 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9688 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9689 argument.
9690 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9691 argument.
9692 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9693 argument.
9694 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9695 argument.
9696
daf5e9b6
TT
96972014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target.h (struct target_ops) <to_program_signals>: Add argument.
9700 * target.c (target_program_signals): Add argument.
9701 * remote.c (remote_program_signals): Add 'self' argument.
9702
94bedb42
TT
97032014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9706 * target.c (target_pass_signals): Add argument.
9707 * remote.c (remote_pass_signals): Add 'self' argument.
9708 (remote_start_remote): Update.
9709 * procfs.c (procfs_pass_signals): Add 'self' argument.
9710 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9711 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9712 (linux_nat_create_inferior, linux_nat_attach): Update.
9713
da82bd6b
TT
97142014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * windows-nat.c (windows_can_run): Add 'self' argument.
9717 * target.h (struct target_ops) <to_can_run>: Add argument.
9718 (target_can_run): Add argument.
9719 * target.c (debug_to_can_run): Add argument.
9720 (update_current_target): Update.
9721 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9722 * inf-child.c (inf_child_can_run): Add 'self' argument.
9723 * go32-nat.c (go32_can_run): Add 'self' argument.
9724
d796e1d6
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target.h (struct target_ops) <to_has_exited>: Add argument.
9728 (target_has_exited): Add argument.
9729 * target.c (debug_to_has_exited): Add argument.
9730 (update_current_target): Update.
9731
ff214e67
TT
97322014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9735 argument.
9736 (target_set_syscall_catchpoint): Add argument.
9737 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9738 argument.
9739 * target.c (update_current_target): Update.
9740
758e29d2
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9744 argument.
9745 (target_remove_exec_catchpoint): Add argument.
9746 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9747 (update_current_target): Update.
9748 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9749 argument.
9750
ba025e51
TT
97512014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9754 argument.
9755 (target_insert_exec_catchpoint): Add argument.
9756 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9757 (update_current_target): Update.
9758 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9759 argument.
9760
e98cf0cd
TT
97612014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9764 argument.
9765 (target_remove_vfork_catchpoint): Add argument.
9766 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9767 (update_current_target): Update.
9768 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9769 argument.
9770
3ecc7da0
TT
97712014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9774 argument.
9775 (target_insert_vfork_catchpoint): Add argument.
9776 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9777 (update_current_target): Update.
9778 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9779 argument.
9780
973fc227
TT
97812014-02-19 Tom Tromey <tromey@redhat.com>
9782
9783 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9784 argument.
9785 (target_remove_fork_catchpoint): Add argument.
9786 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9787 (update_current_target): Update.
9788 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9789 argument.
9790
a863b201
TT
97912014-02-19 Tom Tromey <tromey@redhat.com>
9792
9793 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9794 argument.
9795 (target_insert_fork_catchpoint): Add argument.
9796 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9797 (update_current_target): Update.
9798 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9799 argument.
9800
2e97a79e
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9804 argument.
9805 (target_post_startup_inferior): Add argument.
9806 * target.c (debug_to_post_startup_inferior): Add argument.
9807 (update_current_target): Update.
9808 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9809 argument.
9810 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9811 argument.
9812 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9813 argument.
9814 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9815 argument.
9816 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9817 'self' argument.
9818 (super_post_startup_inferior): Likewise.
9819 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9820 'self' argument.
9821 (super_post_startup_inferior): Likewise.
9822 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9823 Add 'self' argument.
9824 (super_post_startup_inferior): Likewise.
9825
71a9f134
TT
98262014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target.h (struct target_ops) <to_load>: Add argument.
9829 * target.c (target_load): Add argument.
9830 (debug_to_load): Add argument.
9831 (update_current_target): Update.
9832 * remote.c (remote_load): Add 'self' argument.
9833 * remote-sim.c (gdbsim_load): Add 'self' argument.
9834 * remote-mips.c (mips_load): Add 'self' argument.
9835 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9836 * monitor.c (monitor_load): Add 'self' argument.
9837 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9838
0a4f40a2
TT
98392014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9842 (target_terminal_info): Add argument.
9843 * target.c (debug_to_terminal_info): Add argument.
9844 (default_terminal_info): Likewise.
9845 * inflow.c (child_terminal_info): Add 'self' argument.
9846 * inferior.h (child_terminal_info): Add 'self' argument.
9847 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9848
ae3bd431
TT
98492014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9852 argument.
9853 (target_terminal_save_ours): Add argument.
9854 * target.c (debug_to_terminal_save_ours): Add argument.
9855 (update_current_target): Update.
9856 * inflow.c (terminal_save_ours): Add 'self' argument.
9857 * inferior.h (terminal_save_ours): Add 'self' argument.
9858
e3594fd1
TT
98592014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9862 (target_terminal_ours): Add argument.
9863 * target.c (debug_to_terminal_ours): Add argument.
9864 (update_current_target): Update.
9865 * remote.c (remote_terminal_ours): Add 'self' argument.
9866 (remote_close): Update.
9867 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9868 * inflow.c (terminal_ours): Add 'self' argument.
9869 * inferior.h (terminal_ours): Add 'self' argument.
9870 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9871
2e1e1a19
TT
98722014-02-19 Pedro Alves <palves@redhat.com>
9873 Tom Tromey <tromey@redhat.com>
9874
9875 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9876 argument.
9877 (target_terminal_ours_for_output): Add argument.
9878 * target.c (debug_to_terminal_ours_for_output): Add argument.
9879 (update_current_target): Update.
9880 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9881 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9882 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9883
d2f640d4
TT
98842014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target.h (struct target_ops) <to_terminal_inferior>: Add
9887 argument.
9888 * target.c (target_terminal_inferior): Add argument.
9889 (update_current_target): Update.
9890 * remote.c (remote_terminal_inferior): Add 'self' argument.
9891 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9892 * inflow.c (terminal_inferior): Add 'self' argument.
9893 * inferior.h (terminal_inferior): Add 'self' argument.
9894 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9895 (go32_terminal_inferior): Add 'self' argument.
9896
c42bf286
TT
98972014-02-19 Tom Tromey <tromey@redhat.com>
9898
9899 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9900 (target_terminal_init): Add argument.
9901 * target.c (debug_to_terminal_init): Add argument.
9902 (update_current_target): Update.
9903 * inflow.c (terminal_init_inferior): Add 'self' argument.
9904 * inferior.h (terminal_init_inferior): Add 'self' argument.
9905 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9906 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9907
c3a5ff89
TT
99082014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target.h (struct target_ops)
9911 <to_can_accel_watchpoint_condition>: Add argument.
9912 (target_can_accel_watchpoint_condition): Add argument.
9913 * target.c (debug_to_can_accel_watchpoint_condition): Add
9914 argument.
9915 (update_current_target): Update.
9916 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9917 'self' argument.
9918
31568a15
TT
99192014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9922 Add argument.
9923 (target_region_ok_for_hw_watchpoint): Add argument.
9924 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9925 (default_region_ok_for_hw_watchpoint): Add argument.
9926 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9927 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9928 argument.
9929 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9930 argument.
9931 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9932 argument.
9933 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9934 'self' argument.
9935 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9936 'self' argument.
9937 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9938 'self' argument.
9939 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9940 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9941 'self' argument.
9942 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9943 Add 'self' argument.
9944
7bb99c53
TT
99452014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9948 argument.
9949 (target_insert_watchpoint): Add argument.
9950 * target.c (debug_to_insert_watchpoint): Add argument.
9951 (update_current_target): Update.
9952 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9953 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9954 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9955 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9956 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9957 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9958 argument.
9959 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9960 (procfs_insert_hw_watchpoint): Add 'self' argument.
9961 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9962 argument.
9963 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9964 argument.
9965 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9966 argument.
9967 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9968 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9969 argument.
9970 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9971 'self' argument.
9972
11b5219a
TT
99732014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9976 argument.
9977 (target_remove_watchpoint): Add argument.
9978 * target.c (debug_to_remove_watchpoint): Add argument.
9979 (update_current_target): Update.
9980 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9981 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9982 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9983 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9984 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9985 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9986 argument.
9987 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9988 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9989 argument.
9990 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9991 argument.
9992 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9993 argument.
9994 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9995 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9996 argument.
9997 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9998 'self' argument.
9999
a64dc96c
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10003 argument.
10004 (target_remove_hw_breakpoint): Add argument.
10005 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10006 (update_current_target): Update.
10007 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10008 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10009 argument.
10010 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10011 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10012 argument.
10013 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10014 'self' argument.
10015
23a26771
TT
100162014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10019 argument.
10020 (target_insert_hw_breakpoint): Add argument.
10021 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10022 (update_current_target): Update.
10023 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10024 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10025 argument.
10026 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10027 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10028 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10029 argument.
10030 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10031 'self' argument.
10032
5461485a
TT
100332014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10036 argument.
10037 (target_can_use_hardware_watchpoint): Add argument.
10038 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10039 (update_current_target): Update.
10040 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10041 argument.
10042 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10043 argument.
10044 * remote.c (remote_check_watch_resources): Add 'self' argument.
10045 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10046 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10047 argument.
10048 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10049 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10050 argument.
10051 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10052 argument.
10053 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10054 argument.
10055 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10056 argument.
10057 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10058 argument.
10059 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10060 argument.
10061 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10062 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10063 argument.
10064 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10065 'self' argument.
10066
f045800c
TT
100672014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * target.h (struct target_ops) <to_post_attach>: Add argument.
10070 (target_post_attach): Add argument.
10071 * target.c (debug_to_post_attach): Add argument.
10072 (update_current_target): Update.
10073 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10074 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10075 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10076 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10077 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10078
de90e03d
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * windows-nat.c (windows_close): Add 'self' argument.
10082 * tracepoint.c (tfile_close): Add 'self' argument.
10083 * target.h (struct target_ops) <to_close>: Add argument.
10084 * target.c (target_close): Add argument.
10085 (update_current_target): Update.
10086 * remote.c (remote_close): Add 'self' argument.
10087 * remote-sim.c (gdbsim_close): Add 'self' argument.
10088 * remote-mips.c (mips_close): Add 'self' argument.
10089 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10090 * record-full.c (record_full_close): Add 'self' argument.
10091 * record-btrace.c (record_btrace_close): Add 'self' argument.
10092 * monitor.h (monitor_close): Add 'self' argument.
10093 * monitor.c (monitor_close): Add 'self' argument.
10094 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10095 * linux-nat.c (linux_nat_close): Add argument.
10096 * go32-nat.c (go32_close): Add 'self' argument.
10097 * exec.c (exec_close_1): Add 'self' argument.
10098 * ctf.c (ctf_close): Add 'self' argument.
10099 * corelow.c (core_close): Add 'self' argument.
10100 (core_close_cleanup): Update.
10101 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10102 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10103
9dd130a0
TT
101042014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 * remote.c (remote_load): New function.
10107 (init_remote_ops): Use it.
10108
46917d26
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10112 argument.
10113 * common/linux-btrace.h (linux_supports_btrace): Update.
10114 * remote.c (remote_supports_btrace): Add "self" argument.
10115 * target-delegates.c: Rebuild.
10116 * target.c (target_supports_btrace): Remove.
10117 * target.h (struct target_ops) <to_supports_btrace>: Add
10118 target_ops argument.
10119 (target_supports_btrace): New define.
10120
6b84065d
TT
101212014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * record-full.c (record_full_beneath_to_resume_ops)
10124 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10125 (record_full_beneath_to_wait)
10126 (record_full_beneath_to_store_registers_ops)
10127 (record_full_beneath_to_store_registers)
10128 (record_full_beneath_to_xfer_partial_ops)
10129 (record_full_beneath_to_xfer_partial)
10130 (record_full_beneath_to_insert_breakpoint_ops)
10131 (record_full_beneath_to_insert_breakpoint)
10132 (record_full_beneath_to_remove_breakpoint_ops)
10133 (record_full_beneath_to_remove_breakpoint)
10134 (record_full_beneath_to_stopped_by_watchpoint)
10135 (record_full_beneath_to_stopped_data_address)
10136 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10137 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10138 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10139 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10140 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10141 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10142 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10143 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10144 (record_full_resume, record_full_wait_1)
10145 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10146 (record_full_store_registers, record_full_xfer_partial)
10147 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10148 (record_full_async, record_full_core_xfer_partial): Use target
10149 delegation.
10150 * target-delegates.c: Rebuild.
10151 * target.c (current_xfer_partial): Remove.
10152 (update_current_target): Do not INHERIT or de_fault
10153 to_insert_breakpoint, to_remove_breakpoint,
10154 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10155 to_is_async_p, to_async. Do not set to_xfer_partial field.
10156 (default_xfer_partial): Simplify.
10157 (current_xfer_partial): Remove.
10158 (target_wait, target_resume): Simplify.
10159 (find_default_can_async_p, find_default_is_async_p): Update.
10160 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10161 to_xfer_partial, to_stopped_by_watchpoint,
10162 to_stopped_data_address.
10163 (target_store_registers): Simplify.
10164 (forward_target_remove_breakpoint)
10165 (forward_target_insert_breakpoint): Remove.
10166 (target_remove_breakpoint, target_insert_breakpoint)
10167 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10168 * target.h (struct target_ops) <to_resume, to_wait,
10169 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10170 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10171 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10172 markup.
10173 (forward_target_remove_breakpoint)
10174 (forward_target_insert_breakpoint): Remove.
10175 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10176 directly.
10177 (record_btrace_insert_breakpoint): Delegate directly.
10178
1101cb7b
TT
101792014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 PR build/7701:
10182 * target-delegates.c: New file.
10183 * target.c: Include target-delegates.c.
10184 (init_dummy_target): Call install_dummy_methods.
10185 (complete_target_initialization): Call install_delegators.
10186 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10187 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10188 * make-target-delegates: New file.
10189
8b06beed
TT
101902014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * record.c (find_record_target): Use find_target_at.
10193 * target.c (find_target_at): New function.
10194 * target.h (find_target_at): Declare.
10195
6a109b6b
TT
101962014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10199 Add 'ops' argument.
10200 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10201 'ops' argument.
10202 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10203 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10204 'ops' argument.
10205 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10206 argument.
10207 * linux-nat.c (save_sigtrap): Update.
10208 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10209 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10210 (linux_nat_close): Update.
10211 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10212 argument.
10213 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10214 argument.
10215 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10216 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10217 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10218 (tmp_to_async): Add 'ops' argument.
10219 (record_full_stopped_by_watchpoint, record_full_async)
10220 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10221 argument.
10222 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10223 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10224 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10225 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10226 (remote_is_async_p, remote_async): Add 'ops' argument.
10227 (remote_stopped_data_address): Update.
10228 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10229 * target.c (update_current_target)
10230 (find_default_can_async_p, find_default_is_async_p): Update.
10231 (init_dummy_target): Update.
10232 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10233 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10234 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10235 (target_can_async_p, target_is_async_p, target_async)
10236 (target_stopped_by_watchpoint): Update.
10237
e095146b
YQ
102382014-02-19 Yao Qi <yao@codesourcery.com>
10239
10240 PR gdb/16220
10241 * gdbarch.sh: Remove startup_gdbarch.
10242 * gdbarch.c: Regenerated.
10243 * gdbarch.h: Likewise.
10244
bc3c6b36
KB
102452014-02-17 Kevin Buettner <kevinb@redhat.com>
10246
10247 * rl78-tdep.c (rl78_g10_register_name): New function.
10248 (rl78_return_value): Add g10 support.
10249 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10250 g10.
10251
98dc0167 102522014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10253
10254 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10255 (SUBDIR_GUILE_SRCS): Ditto.
10256 (scm-gsmob.o): Ditto.
10257
842c05cd
YQ
102582014-02-17 Yao Qi <yao@codesourcery.com>
10259
10260 * gnu-nat.c (ILL_RPC): Declare defined function.
10261
25c0bd04
YQ
102622014-02-17 Yao Qi <yao@codesourcery.com>
10263
10264 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10265 mach_msg_type_number_t.
10266 (gnu_write_inferior): Likewise.
10267
a9a758e3
YQ
102682014-02-17 Yao Qi <yao@codesourcery.com>
10269
10270 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10271 in format string.
10272 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10273 (inf_validate_procs, inf_signal): Likewise.
10274 (S_exception_raise_request): Likewise.
10275 (do_mach_notify_dead_name): Likewise.
10276 (steal_exc_port): Likewise.
10277 (gnu_read_inferior): Change 'copy_count''s type to
10278 mach_msg_type_number_t.
10279 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10280 format string.
10281
bae8023e
TS
102822014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10283
c82f56d9
TS
10284 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10285 flag. Adjust all users; in particular...
10286 (gnu_wait): ..., don't decrement its value in here...
10287 (gnu_create_inferior): ..., and instead set the flag in here,
10288 around the startup_inferior call, and call that one with
10289 START_INFERIOR_TRAPS_EXPECTED.
10290
3398af6a
TS
10291 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10292 (ILL_RPC): ... new macro.
10293 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10294 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10295 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10296 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10297 functions with ILL_RPC macro.
10298 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10299 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10300 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10301 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10302 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10303 (S_proc_getlogin_reply, S_proc_getsid_reply)
10304 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10305 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10306 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10307 (S_proc_getnports_reply, S_proc_is_important_reply)
10308 (S_proc_get_code_reply): New stub functions, generated with
10309 ILL_RPC macro.
10310
d47642c9
TS
10311 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10312 collected the type check structures.
10313
bae8023e
TS
10314 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10315
8a55ffb0
DE
103162014-02-14 Doug Evans <dje@google.com>
10317
10318 * target.c (target_write_partial): Fix result type.
10319
c2853f3d
JM
103202014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10321
10322 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10323 the proper offsets to access fpregset_t.
10324
ac61d2db
SA
103252014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10326
10327 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10328 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10329 * h8300-tdep.c (setmachinelist): Remove global.
10330 * hppa-tdep.c (hppa_sigtramp): Remove global.
10331 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10332 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10333 * ravenscar-thread.c (update_target_observer): Remove global.
10334 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10335
9d2d0b8b
TT
103362014-02-12 Tom Tromey <tromey@redhat.com>
10337
10338 * common/rsp-low.c: Update comments.
10339 * common/rsp-low.h: Update comments.
10340
a7191e8b
TT
103412014-02-12 Tom Tromey <tromey@redhat.com>
10342
10343 * common/rsp-low.c (convert_ascii_to_int): Remove.
10344 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10345
ff0e980e
TT
103462014-02-12 Tom Tromey <tromey@redhat.com>
10347
10348 * common/rsp-low.h (unhexify): Don't declare.
10349 * common/rsp-low.c (unhexify): Remove.
10350
e9371aff
TT
103512014-02-12 Tom Tromey <tromey@redhat.com>
10352
10353 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10354 * common/rsp-low.c (convert_int_to_ascii): Remove.
10355
971dc0b8
TT
103562014-02-12 Tom Tromey <tromey@redhat.com>
10357
10358 * common/rsp-low.h (hexify): Don't declare.
10359 * common/rsp-low.c (hexify): Remove.
10360
0a822afb
TT
103612014-02-12 Tom Tromey <tromey@redhat.com>
10362
10363 * common/rsp-low.c (hexify): Never take strlen of argument.
10364
9f1b45b0
TT
103652014-02-12 Tom Tromey <tromey@redhat.com>
10366
10367 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10368 * remote.c (extended_remote_run, remote_rcmd)
10369 (remote_download_trace_state_variable, remote_save_trace_data)
10370 (remote_set_trace_notes): Update.
10371 * tracepoint.c (encode_source_string, tfile_write_status)
10372 (tfile_write_uploaded_tsv): Update.
10373
9c3d6531
TT
103742014-02-12 Tom Tromey <tromey@redhat.com>
10375
10376 * tracepoint.c: Include rsp-low.h.
10377 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10378 * remote.c: Include rsp-low.h.
10379 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10380 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10381 (remote_unescape_input): Move to common/rsp-low.c.
10382 * common/rsp-low.h: New file.
10383 * common/rsp-low.c: New file.
10384 * Makefile.in (SFILES): Add common/rsp-low.c.
10385 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10386 (COMMON_OBS): Add rsp-low.o.
10387 (rsp-low.o): New target.
10388
01fd3ea5
TT
103892014-02-12 Tom Tromey <tromey@redhat.com>
10390
10391 * utils.h: Include print-utils.h.
10392 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10393 (int_string, core_addr_to_string, core_addr_to_string_nz)
10394 (hex_string, hex_string_custom): Don't declare.
10395 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10396 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10397 (hex_string_custom, int_string, core_addr_to_string)
10398 (core_addr_to_string_nz, host_address_to_string): Move to
10399 common/print-utils.c.
10400 * common/print-utils.h: New file.
10401 * common/print-utils.c: New file
10402 * Makefile.in (SFILES): Add common/print-utils.c.
10403 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10404 (COMMON_OBS): Add print-utils.o.
10405 (print-utils.o): New target.
10406
9fb50108
TT
104072014-02-12 Tom Tromey <tromey@redhat.com>
10408
10409 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10410
0548b5db
MK
104112014-02-12 Mark Kettenis <kettenis@gnu.org>
10412
10413 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10414
493443a4
MK
104152014-02-12 Mark Kettenis <kettenis@gnu.org>
10416
10417 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10418 if a PT_IO ptrace request returns sucessfully but indicates that 0
10419 bytes were transferred.
10420
706d0883
PA
104212014-02-12 Pedro Alves <palves@redhat.com>
10422 Kevin Buettner <kevinb@redhat.com>
10423
10424 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10425 TYPE_INSTANCE_FLAG_CODE_SPACE.
10426
5caa2f0b
PA
104272014-02-12 Pedro Alves <palves@redhat.com>
10428
10429 * h8300-tdep.c (pseudo_from_raw_register)
10430 (raw_from_pseudo_register): New functions.
10431 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10432 them.
10433
76fd5f74
PA
104342014-02-12 Pedro Alves <palves@redhat.com>
10435
10436 * h8300-tdep.c (h8300_register_sim_regno): New function.
10437 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10438 gdbarch_register_sim_regno hook.
10439
8f008406
SA
104402014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10441
10442 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10443
195abc10
SA
104442014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10445
10446 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10447
93ffa5b9
MK
104482014-02-12 Mark Kettenis <kettenis@gnu.org>
10449
10450 * obsd-tdep.h (obsd_init_abi): New prototype.
10451 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10452 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10453 (obsd_init_abi): New functions.
10454 * i386obsd-tdep.c: Include "obsd-tdep.h".
10455 (i386obsd_init_abi): Call obsd_init_abi.
10456 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10457 (amd64obsd_init_abi): Call obsd_init_abi.
10458 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10459 obsd-tdep.c to gdb_target_obs.
10460
49caec94
JM
104612014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10462
10463 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10464 double float arguments to 16-byte in the argument slots.
10465
e1402065
DE
104662014-02-11 Doug Evans <xdje42@gmail.com>
10467
10468 * configure.ac: Don't crash if pkg-config is not found and guile
10469 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10470 in guile checks.
10471 * configure: Regenerate.
10472
edcc890f
YQ
104732014-02-11 Yao Qi <yao@codesourcery.com>
10474
10475 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10476 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10477 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10478 * gnu-nat.c (gnu_xfer_memory): Likewise.
10479 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10480 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10481 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10482 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10483
9b409511
YQ
104842014-02-11 Yao Qi <yao@codesourcery.com>
10485
10486 * target.h (enum target_xfer_error): Rename to ...
10487 (enum target_xfer_status): ... it. New. All users updated.
10488 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10489 New.
10490 (TARGET_XFER_STATUS_ERROR_P): New macro.
10491 (target_xfer_error_to_string): Remove declaration.
10492 (target_xfer_status_to_string): Declare.
10493 (target_xfer_partial_ftype): Adjust it.
10494 (struct target_ops) <to_xfer_partial>: Return
10495 target_xfer_status. Add argument xfered_len. Update
10496 comments.
10497 * target.c (target_xfer_error_to_string): Rename to ...
10498 (target_xfer_status_to_string): ... it. New. All callers
10499 updated.
10500 (target_read_live_memory): Likewise. Call target_xfer_partial
10501 instead of target_read.
10502 (memory_xfer_live_readonly_partial): Return
10503 target_xfer_status. Add argument xfered_len.
10504 (raw_memory_xfer_partial): Likewise.
10505 (memory_xfer_partial_1): Likewise.
10506 (memory_xfer_partial): Likewise.
10507 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10508 properly. Update debug message.
10509 (default_xfer_partial, current_xfer_partial): Likewise.
10510 (target_write_partial): Likewise.
10511 (target_read_partial): Likewise. All callers updated.
10512 (read_whatever_is_readable): Likewise.
10513 (target_write_with_progress): Likewise.
10514 (target_read_alloc_1): Likewise.
10515
10516 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10517 * auxv.c (procfs_xfer_auxv): Likewise.
10518 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10519 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10520 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10521 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10522 * corefile.c (read_memory): Adjust.
10523 * corelow.c (core_xfer_partial): Likewise.
10524 * ctf.c (ctf_xfer_partial): Likewise.
10525 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10526 updated.
10527 (darwin_xfer_partial): Likewise.
10528 * exec.c (section_table_xfer_memory_partial): Likewise. All
10529 callers updated.
10530 (exec_xfer_partial): Likewise.
10531 * exec.h (section_table_xfer_memory_partial): Update
10532 declaration.
10533 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10534 negative.
10535 (gnu_xfer_partial): Likewise.
10536 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10537 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10538 (ia64_hpux_xfer_solib_got): Likewise.
10539 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10540 type of 'partial_len' to ULONGEST.
10541 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10542 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10543 (linux_nat_xfer_partial): Likewise.
10544 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10545 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10546 * monitor.c (monitor_xfer_memory): Likewise.
10547 (monitor_xfer_partial): Likewise.
10548 * procfs.c (procfs_xfer_partial): Likewise.
10549 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10550 * record-full.c (record_full_xfer_partial): Likewise.
10551 (record_full_core_xfer_partial): Likewise.
10552 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10553 (gdbsim_xfer_partial): Likewise.
10554 * remote.c (remote_write_bytes_aux): Likewise. All callers
10555 updated.
10556 (remote_write_bytes, remote_read_bytes): Likewise. All
10557 callers updated.
10558 (remote_flash_erase): Likewise. All callers updated.
10559 (remote_write_qxfer): Likewise. All callers updated.
10560 (remote_read_qxfer): Likewise. All callers updated.
10561 (remote_xfer_partial): Likewise.
10562 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10563 (rs6000_xfer_shared_libraries): Likewise.
10564 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10565 (sol_thread_xfer_partial): Likewise.
10566 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10567 (sparc_xfer_partial): Likewise.
10568 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10569 updated.
10570 (spu_xfer_partial): Likewise.
10571 * spu-multiarch.c (spu_xfer_partial): Likewise.
10572 * tracepoint.c (tfile_xfer_partial): Likewise.
10573 * windows-nat.c (windows_xfer_memory): Likewise.
10574 (windows_xfer_shared_libraries): Likewise.
10575 (windows_xfer_partial): Likewise.
10576 * valprint.c: Replace 'target_xfer_error' with
10577 'target_xfer_status' in comments.
10578
a8e63083
JB
105792014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10580
10581 Checked in by Joel Brobecker <brobecker@adacore.com>.
10582 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10583
e86b67d3
JB
105842014-02-11 Joel Brobecker <brobecker@adacore.com>
10585
10586 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10587 function parameters.
10588
4b7d1f7f
WN
105892014-02-10 Will Newton <will.newton@linaro.org>
10590
10591 * elfread.c (elf_rel_plt_read): Look for a .got section if
10592 looking up .got.plt fails.
10593 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10594 on address passed to elf_gnu_ifunc_record_cache.
10595 (elf_gnu_ifunc_resolve_addr): Likewise.
10596 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10597
961842b2
JM
105982014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10599
10600 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10601 (X_RETTURN): New macro.
10602 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10603
10604 * sparc64-tdep.c (sparc64_init_abi): Hook
10605 sparc_in_function_epilogue_p.
10606
3f03e7b1
GB
106072014-02-10 Gary Benson <gbenson@redhat.com>
10608
10609 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10610 Rename name_matcher to symbol_matcher.
10611
96f861ef
GB
106122014-02-10 Gary Benson <gbenson@redhat.com>
10613
10614 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10615 Use expand_symtabs_file_matcher_ftype and
10616 expand_symtabs_symbol_matcher_ftype.
10617
ee01b665
JB
106182014-02-10 Joel Brobecker <brobecker@adacore.com>
10619
10620 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10621 (struct ada_symbol_cache): New.
10622 (ada_free_symbol_cache): Forward declare.
10623 (struct ada_pspace_data): New.
10624 (ada_pspace_data_handle): New static global.
10625 (get_ada_pspace_data, ada_pspace_data_cleanup)
10626 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10627 (cache_space, cache): Delete, now folded inside struct
10628 ada_pspace_data.
10629 (ada_get_symbol_cache): New function.
10630 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10631 implementation.
10632 (_initialize_ada_language): Remove initialization of cache_space.
10633 Move call to observer_attach_inferior_exit up, grouping it
10634 with the other observer registrations inside this function.
10635 Rename command to be more general. Add call to
10636 register_program_space_data_with_cleanup.
10637
143adbbf
JB
106382014-02-10 Joel Brobecker <brobecker@adacore.com>
10639
10640 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10641 ada_new_objfile_observer.
10642 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10643 (_initialize_tasks): Update uses of ada_new_objfile_observer
10644 and ada_tasks_normal_stop_observer.
10645
aa4fb036
JB
106462014-02-10 Joel Brobecker <brobecker@adacore.com>
10647
10648 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10649 returned by the 'Length attribute to integer.
10650
9dee8cc6
JB
106512014-02-10 Joel Brobecker <brobecker@adacore.com>
10652
10653 * ada-lang.c (_initialize_ada_language): Initialize
10654 cache_space obstack.
10655
3d9434b5
JB
106562014-02-10 Joel Brobecker <brobecker@adacore.com>
10657
10658 * ada-lang.c (HASH_SIZE): New macro.
10659 (struct cache_entry): New type.
10660 (cache_space, cache): New static globals.
10661 (ada_clear_symbol_cache, find_entry): New functions.
10662 (lookup_cached_symbol, cache_symbol): Implement.
10663 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10664 (_initialize_ada_language): Attach ada_new_objfile_observer
10665 and ada_free_objfile_observer.
10666
f0c5f9b2
JB
106672014-02-10 Joel Brobecker <brobecker@adacore.com>
10668
10669 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10670 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10671 struct block * parameter.
10672 (ada_lookup_symbol_list_worker): Constify local variable "block".
10673 Remove cast which is no longer necessary.
10674
ed3ef339
DE
106752014-02-10 Doug Evans <xdje42@gmail.com>
10676
10677 Add Guile as an extension language.
10678 * NEWS: Mention Guile scripting.
10679 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10680 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10681 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10682 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10683 (CLIBS): Add GUILE_LIBS.
10684 (install-guile): New rule.
10685 (guile.o): New rule.
10686 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10687 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10688 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10689 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10690 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10691 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10692 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10693 * configure.ac: New option --with-guile.
10694 * configure: Regenerate.
10695 * config.in: Regenerate.
10696 * auto-load.c: Remove #include "python/python.h". Add #include
10697 "gdb/section-scripts.h".
10698 (source_section_scripts): Handle Guile scripts.
10699 (_initialize_auto_load): Add name of Guile objfile script to
10700 scripts-directory help text.
10701 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10702 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10703 (struct breakpoint): New member scm_bp_object.
10704 * defs.h (enum command_control_type): New value guile_control.
10705 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10706 "extension.h".
10707 (show_user): Update comment.
10708 (_initialize_cli_cmds): Update help text for "show user". Update help
10709 text for max-user-call-depth.
10710 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10711 "extension.h".
10712 (multi_line_command_p): Add guile_control.
10713 (print_command_lines): Handle guile_control.
10714 (execute_control_command, recurse_read_control_structure): Ditto.
10715 (process_next_line): Recognize "guile" commands.
10716 * disasm.c (gdb_disassemble_info): Make non-static.
10717 * disasm.h: #include "dis-asm.h".
10718 (struct gdbarch): Add forward decl.
10719 (gdb_disassemble_info): Declare.
10720 * extension.c: #include "guile/guile.h".
10721 (extension_languages): Add guile.
10722 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10723 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10724 * gdbtypes.c (get_unsigned_type_max): New function.
10725 (get_signed_type_minmax): New function.
10726 * gdbtypes.h (get_unsigned_type_max): Declare.
10727 (get_signed_type_minmax): Declare.
10728 * guile/README: New file.
10729 * guile/guile-internal.h: New file.
10730 * guile/guile.c: New file.
10731 * guile/guile.h: New file.
10732 * guile/scm-arch.c: New file.
10733 * guile/scm-auto-load.c: New file.
10734 * guile/scm-block.c: New file.
10735 * guile/scm-breakpoint.c: New file.
10736 * guile/scm-disasm.c: New file.
10737 * guile/scm-exception.c: New file.
10738 * guile/scm-frame.c: New file.
10739 * guile/scm-gsmob.c: New file.
10740 * guile/scm-iterator.c: New file.
10741 * guile/scm-lazy-string.c: New file.
10742 * guile/scm-math.c: New file.
10743 * guile/scm-objfile.c: New file.
10744 * guile/scm-ports.c: New file.
10745 * guile/scm-pretty-print.c: New file.
10746 * guile/scm-safe-call.c: New file.
10747 * guile/scm-string.c: New file.
10748 * guile/scm-symbol.c: New file.
10749 * guile/scm-symtab.c: New file.
10750 * guile/scm-type.c: New file.
10751 * guile/scm-utils.c: New file.
10752 * guile/scm-value.c: New file.
10753 * guile/lib/gdb.scm: New file.
10754 * guile/lib/gdb/boot.scm: New file.
10755 * guile/lib/gdb/experimental.scm: New file.
10756 * guile/lib/gdb/init.scm: New file.
10757 * guile/lib/gdb/iterator.scm: New file.
10758 * guile/lib/gdb/printing.scm: New file.
10759 * guile/lib/gdb/types.scm: New file.
10760 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10761 (VPATH): Add $(GUILE_SRCDIR).
10762 (GUILE_DIR): New variable.
10763 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10764 (all): Add stamp-guile dependency.
10765 (stamp-guile): New rule.
10766 (clean-guile, install-guile, uninstall-guile): New rules.
10767 (install-only): Add install-guile dependency.
10768 (uninstall): Add uninstall-guile dependency.
10769 (clean): Add clean-guile dependency.
10770
ac020ec5
DE
107712014-02-09 Doug Evans <xdje42@gmail.com>
10772
10773 Revert this patch (which I approved, mea culpa).
10774
10775 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10776
10777 * Makefile.in (all-lib): Remove.
10778 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10779
2a081c59
JK
107802014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10781
10782 Fix Python stack corruption.
10783 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10784 gdb_py_longest.
10785
0a6bd22d
MK
107862014-02-08 Mark Kettenis <kettenis@gnu.org>
10787
10788 * Makefile.in (all-lib): Remove.
10789 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10790
1a860409
DE
107912014-02-07 Doug Evans <dje@google.com>
10792
10793 * extension-priv.h (extension_language_script_ops): Add comment.
10794 (extension_language_ops): Add comment.
caf5a491 10795 (active_ext_lang_state): Fix typo in comment.
1a860409 10796
d137e6dc
PA
107972014-02-07 Pedro Alves <palves@redhat.com>
10798
0dcb32c3 10799 PR breakpoints/16292
d137e6dc
PA
10800 * infrun.c (handle_signal_stop) <signal arrives while stepping
10801 over a breakpoint>: Switch back to the stepping thread.
10802
ce6d0892
YQ
108032014-02-07 Yao Qi <yao@codesourcery.com>
10804
10805 * target.c (target_xfer_partial): Return zero if LEN is zero.
10806
2ed4b548
YQ
108072014-02-07 Yao Qi <yao@codesourcery.com>
10808
10809 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10810 (ld_so_xfer_auxv): Likewise.
10811 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10812 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10813 * corelow.c (core_xfer_partial): Likewise.
10814 * ctf.c (ctf_xfer_partial): Likewise.
10815 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10816 (darwin_xfer_partial): Likewise.
10817 * exec.c (exec_xfer_partial): Likewise.
10818 * gnu-nat.c (gnu_xfer_partial): Likewise.
10819 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10820 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10821 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10822 * linux-nat.c (linux_xfer_siginfo): Likewise.
10823 (linux_proc_xfer_spu): Likewise.
10824 * procfs.c (procfs_xfer_partial): Likewise.
10825 * record-full.c (record_full_xfer_partial): Likewise.
10826 (record_full_core_xfer_partial): Likewise.
10827 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10828 * remote.c (remote_write_qxfer): Likewise.
10829 (remote_write_qxfer, remote_read_qxfer): Likewise.
10830 (remote_xfer_partial): Likewise.
10831 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10832 (rs6000_xfer_shared_libraries): Likewise.
10833 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10834 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10835 (spu_xfer_partial): Likewise.
10836 * target.c (memory_xfer_partial_1): Likewise.
10837 * tracepoint.c (tfile_xfer_partial): Likewise.
10838 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10839 (windows_xfer_partial): Likewise.
10840
c09f20e4
YQ
108412014-02-07 Yao Qi <yao@codesourcery.com>
10842
10843 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10844 comments.
10845 (core_xfer_shared_libraries_aix): Likewise.
10846 * gdbarch.c, gdbarch.h: Regenerated.
10847 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10848 ULONGEST. Change 'len_avail' type to ULONGEST.
10849 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10850 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10851 declaration.
10852 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10853
8635b3bf
YQ
108542014-02-07 Yao Qi <yao@codesourcery.com>
10855
10856 * corefile.c (memory_error): Get 'exception' from ERR and pass
10857 'exception' to throw_error.
10858
6dddc817
DE
108592014-02-06 Doug Evans <xdje42@gmail.com>
10860
10861 * configure.ac (libpython checking): Remove all but python.o from
10862 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10863 * configure: Regenerate.
10864
10865 * Makefile.in (SFILES): Add extension.c.
10866 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10867 (COMMON_OBS): Add extension.o.
10868 * extension.h: New file.
10869 * extension-priv.h: New file.
10870 * extension.c: New file.
10871
10872 * python/python-internal.h: #include "extension.h".
10873 (gdbpy_auto_load_enabled): Declare.
10874 (gdbpy_apply_val_pretty_printer): Declare.
10875 (gdbpy_apply_frame_filter): Declare.
10876 (gdbpy_preserve_values): Declare.
10877 (gdbpy_breakpoint_cond_says_stop): Declare.
10878 (gdbpy_breakpoint_has_cond): Declare.
10879 (void source_python_script_for_objfile): Delete.
10880 * python/python.c: #include "extension-priv.h".
10881 Delete inclusion of "observer.h".
10882 (extension_language_python): Moved here and renamed from
10883 script_language_python in py-auto-load.c.
10884 Redefined to be of type extension_language_defn.
10885 (python_extension_script_ops): New global.
10886 (python_extension_ops): New global.
10887 (struct python_env): New member previous_active.
10888 (restore_python_env): Call restore_active_ext_lang.
10889 (ensure_python_env): Call set_active_ext_lang.
10890 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10891 New arg extlang.
10892 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10893 New arg extlang.
10894 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10895 New arg extlang.
10896 (gdbpy_eval_from_control_command): Renamed from
10897 eval_python_from_control_command, made static. New arg extlang.
10898 (gdbpy_source_script) Renamed from source_python_script, made static.
10899 New arg extlang.
10900 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10901 result to int. New arg extlang.
10902 (gdbpy_source_objfile_script): Renamed from
10903 source_python_script_for_objfile, made static. New arg extlang.
10904 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10905 static. New args extlang, extlang_printers. Change result type to
10906 "void".
10907 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10908 static. New arg extlang. Rename arg printers to extlang_printers
10909 and change type to ext_lang_type_printers *.
10910 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10911 static. Replace argument arg with extlang, extlang_printers.
10912 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10913 (!HAVE_PYTHON, source_python_script): Delete.
10914 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10915 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10916 (!HAVE_PYTHON, start_type_printers): Delete.
10917 (!HAVE_PYTHON, apply_type_printers): Delete.
10918 (!HAVE_PYTHON, free_type_printers): Delete.
10919 (_initialize_python): Delete call to observer_attach_before_prompt.
10920 (finalize_python): Set/restore active extension language.
10921 (gdbpy_finish_initialization) Renamed from
10922 finish_python_initialization, made static. New arg extlang.
10923 (gdbpy_initialized): New function.
10924 * python/python.h: #include "extension.h". Delete #include
10925 "value.h", "mi/mi-cmds.h".
10926 (extension_language_python): Declare.
10927 (GDBPY_AUTO_FILE_NAME): Delete.
10928 (enum py_bt_status): Moved to extension.h and renamed to
10929 ext_lang_bt_status.
10930 (enum frame_filter_flags): Moved to extension.h.
10931 (enum py_frame_args): Moved to extension.h and renamed to
10932 ext_lang_frame_args.
10933 (finish_python_initialization): Delete.
10934 (eval_python_from_control_command): Delete.
10935 (source_python_script): Delete.
10936 (apply_val_pretty_printer): Delete.
10937 (apply_frame_filter): Delete.
10938 (preserve_python_values): Delete.
10939 (gdbpy_script_language_defn): Delete.
10940 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10941 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10942
10943 * auto-load.c: #include "extension.h".
10944 (GDB_AUTO_FILE_NAME): Delete.
10945 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10946 (script_language_gdb): Delete, moved to extension.c and renamed to
10947 extension_language_gdb.
10948 (source_gdb_script_for_objfile): Delete.
10949 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10950 (loaded_script): Change type of language member to
10951 struct extension_language_defn *.
10952 (init_loaded_scripts_info): Initialize
10953 unsupported_script_warning_printed.
10954 (maybe_add_script): Make static. Change type of language arg to
10955 struct extension_language_defn *.
10956 (clear_section_scripts): Reset unsupported_script_warning_printed.
10957 (auto_load_objfile_script_1): Rewrite to use extension language API.
10958 (auto_load_objfile_script): Make public. Remove support-compiled-in
10959 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10960 (source_section_scripts): Rewrite to use extension language API.
10961 (load_auto_scripts_for_objfile): Rewrite to use
10962 auto_load_scripts_for_objfile.
10963 (collect_matching_scripts_data): Change type of language member to
10964 struct extension_language_defn *.
10965 (auto_load_info_scripts): Change type of language arg to
10966 struct extension_language_defn *.
10967 (unsupported_script_warning_print): New function.
10968 (script_not_found_warning_print): Make static.
10969 (_initialize_auto_load): Rewrite construction of scripts-directory
10970 help.
10971 * auto-load.h (struct objfile): Add forward decl.
10972 (struct script_language): Delete.
10973 (struct auto_load_pspace_info): Add forward decl.
10974 (struct extension_language_defn): Add forward decl.
10975 (maybe_add_script): Delete.
10976 (auto_load_objfile_script): Declare.
10977 (script_not_found_warning_print): Delete.
10978 (auto_load_info_scripts): Update prototype.
10979 (auto_load_gdb_scripts_enabled): Declare.
10980 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10981 auto_load_python_scripts_enabled and made public.
10982 (script_language_python): Delete, moved to python.c.
10983 (gdbpy_script_language_defn): Delete.
10984 (info_auto_load_python_scripts): Update to use
10985 extension_language_python.
10986
10987 * breakpoint.c (condition_command): Replace call to
10988 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10989 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10990 with call to breakpoint_ext_lang_cond_says_stop.
10991 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10992 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10993 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10994 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10995 New arg slang.
10996 (local_setattro): Print name of extension language with existing
10997 stop condition.
10998
10999 * valprint.c (val_print, value_print): Update to call
11000 apply_ext_lang_val_pretty_printer.
11001 * cp-valprint.c (cp_print_value): Update call to
11002 apply_ext_lang_val_pretty_printer.
11003 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11004 (gdbpy_apply_val_pretty_printer): Renamed from
11005 apply_val_pretty_printer. New arg extlang.
11006 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11007
11008 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11009 extension language API.
11010 * cli/cli-script.c (execute_control_command): Update to call
11011 eval_ext_lang_from_control_command.
11012
11013 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11014 enum ext_lang_bt_status values. Update call to
11015 apply_ext_lang_frame_filter.
11016 (mi_cmd_stack_list_locals): Ditto.
11017 (mi_cmd_stack_list_args): Ditto.
11018 (mi_cmd_stack_list_variables): Ditto.
11019 * mi/mi-main.c: Delete #include "python/python-internal.h".
11020 Add #include "extension.h".
11021 (mi_cmd_list_features): Replace reference to python internal variable
11022 gdb_python_initialized with call to ext_lang_initialized_p.
11023
11024 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11025 Update to use enum ext_lang_frame_args. Update to call
11026 apply_ext_lang_frame_filter.
11027 * python/py-framefilter.c (extract_sym): Update to use enum
11028 ext_lang_bt_status.
11029 (extract_value, py_print_type, py_print_value): Ditto.
11030 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11031 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11032 (py_print_frame): Ditto.
11033 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11034 New arg extlang. Update to use enum ext_lang_bt_status.
11035
11036 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11037 finish_python_initialization. Replace with call to
11038 finish_ext_lang_initialization.
11039
11040 * typeprint.c (do_free_global_table): Update to call
11041 free_ext_lang_type_printers.
11042 (create_global_typedef_table): Update to call
11043 start_ext_lang_type_printers.
11044 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11045 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11046 (type_print_options): Change type of global_printers from "void *"
11047 to "struct ext_lang_type_printers *".
11048
11049 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11050 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11051 (gdbpy_preserve_values): Renamed from preserve_python_values.
11052 New arg extlang.
11053 (!HAVE_PYTHON, preserve_python_values): Delete.
11054
11055 * utils.c (quit_flag): Delete, moved to extension.c.
11056 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11057 extension.c.
11058
11059 * eval.c: Delete #include "python/python.h".
11060 * main.c: Delete #include "python/python.h".
11061
11062 * defs.h: Update comment.
11063
6af79985
JB
110642014-02-06 Joel Brobecker <brobecker@adacore.com>
11065
11066 GDB 7.7 released.
11067
12c5175d
MK
110682014-02-05 Mark Kettenis <kettenis@gnu.org>
11069
11070 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11071 defined.
11072
8dc5b319
YQ
110732014-02-05 Yao Qi <yao@codesourcery.com>
11074
11075 * remote.c (remote_pass_signals): Remove local 'buf' and use
11076 rs->buf.
11077 (remote_program_signals): Likewise.
11078
de7b2893
YQ
110792014-02-05 Yao Qi <yao@codesourcery.com>
11080
11081 * ctf.c: Include "inferior.h" and "gdbthread.h".
11082 (CTF_PID): A new macro.
11083 (ctf_open): Call inferior_appeared and add_thread_silent.
11084 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11085 (ctf_thread_alive): New function.
11086 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11087
66d032ac
YQ
110882014-02-05 Yao Qi <yao@codesourcery.com>
11089
11090 Revert this patch:
11091
11092 2013-05-24 Yao Qi <yao@codesourcery.com>
11093
11094 * tracepoint.c (TFILE_PID): Remove.
11095 (tfile_open): Don't add thread and inferior.
11096 (tfile_close): Don't set 'inferior_ptid'. Don't call
11097 exit_inferior_silent.
11098 (tfile_thread_alive): Remove.
11099 (init_tfile_ops): Don't set field 'to_thread_alive' of
11100 tfile_ops.
11101
f4ccffad
CE
111022014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11103
11104 * remote.c (remote_start_remote): Call remote_check_symbols even
11105 if only symbol-file (not file) has been given.
11106
591a12a1
UW
111072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11108
11109 * gdbarch.sh (skip_entrypoint): New callback.
11110 * gdbarch.c, gdbarch.h: Regenerate.
11111 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11112 * infrun.c (fill_in_stop_func): Likewise.
11113 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11114 (ppc_elfv2_elf_make_msymbol_special): New function.
11115 (ppc_elfv2_skip_entrypoint): Likewise.
11116 (ppc_linux_init_abi): Install them for ELFv2.
11117
cc0e89c5
UW
111182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11119
11120 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11121 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11122 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11123 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11124 structures returned in GPRs.
11125
52f548e4
UW
111262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11127
11128 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11129 offset to the stack parameter list for the ELFv2 ABI.
11130
d4094b6a
UW
111312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11132
11133 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11134 set_gdbarch_convert_from_func_ptr_addr and
11135 set_gdbarch_elf_make_msymbol_special for ELFv1.
11136 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11137 function descriptors on ELFv1.
11138 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11139 set up r12 at function entry.
11140
cd453cd0
UW
111412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11142
11143 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11144 (struct gdbarch_tdep): New member elf_abi.
11145
11146 * rs6000-tdep.c: Include "elf/ppc64.h".
11147 (rs6000_gdbarch_init): Detect ELF ABI version.
11148
0ff3e01f
UW
111492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11150
11151 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11152 within a register pair holding a DFP 128-bit value on little-endian.
11153 (ppc64_sysv_abi_return_value_base): Likewise.
11154 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11155 (dfp_pseudo_register_write): Likewise.
11156
5b757e5d
UW
111572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11158
11159 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11160 offset on little-endian when passing _Decimal32.
11161 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11162
084ee545
UW
111632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11164
11165 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11166 of the overlapped FP register within the VSX register on little-
11167 endian platforms.
11168 (efpr_pseudo_register_write): Likewise.
11169
d63167af
UW
111702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11171
11172 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11173 offset on little-endian when passing small structures.
11174
e765b44c
UW
111752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11176
11177 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11178 (struct ppc64_sysv_argpos): New data structure.
11179 (ppc64_sysv_abi_push_float): Remove.
11180 (ppc64_sysv_abi_push_val): New function.
11181 (ppc64_sysv_abi_push_integer): Likewise.
11182 (ppc64_sysv_abi_push_freg): Likewise.
11183 (ppc64_sysv_abi_push_vreg): Likewise.
11184 (ppc64_sysv_abi_push_param): Likewise.
11185 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11186 (ppc64_sysv_abi_return_value_base): New function.
11187 (ppc64_sysv_abi_return_value): Refactor to use it.
11188
36c24d95
UW
111892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11190
11191 * NEWS: Document new target powerpc64le-*-linux*.
11192
26fd9228
MK
111932014-02-04 Mark Kettenis <kettenis@gnu.org>
11194
11195 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11196 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11197 core dumps.
11198 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11199 register set used in ELF core dumps. Add floating-point register set.
11200
c5bb7362
KB
112012014-02-03 Kevin Buettner <kevinb@redhat.com>
11202
74228e77 11203 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11204 dwarf2_to_gdb[] table using symbolic constants. Adjust
11205 penultimate entry from number representing the PC register
11206 to symbolic constant representing the MDR register. Add
11207 constant for the PC register to the end of the table.
11208
af09351e
MK
112092014-02-03 Mark Kettenis <kettenis@gnu.org>
11210
11211 * bsd-kvm.c: Include <sys/param.h>
11212
8507e05d
MK
112132014-02-03 Mark Kettenis <kettenis@gnu.org>
11214
11215 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11216
ae56bfb8
JB
112172014-01-31 Joel Brobecker <brobecker@adacore.com>
11218
11219 * ada-lang.h (clear_ada_sym_cache): Delete.
11220
718ee4dc
UW
112212014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11222
11223 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11224
401e27fd
JM
112252014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11226
11227 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11228 the sigreturn register save area only if the syscall is
11229 sigreturn.
11230
a7c88acd
JB
112312014-01-29 Joel Brobecker <brobecker@adacore.com>
11232
11233 * valops.c (value_slice): Minor reformatting.
11234
fa0079ea
UW
112352014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11236
11237 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11238
c6044dd1
JB
112392014-01-28 Joel Brobecker <brobecker@adacore.com>
11240
11241 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11242 New static globals.
11243 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11244 (ada_ignore_descriptive_types_p): New static global.
11245 (find_parallel_type_by_descriptive_type): Return immediately
11246 if ada_ignore_descriptive_types_p is set.
11247 (_initialize_ada_language): Register new commands "maintenance
11248 set ada", "maintenance show ada", "maintenance set ada
11249 ignore-descriptive-types" and "maintenance show ada
11250 ignore-descriptive-types".
11251 * NEWS: Add entry for new "maint ada set/show
11252 ignore-descriptive-types" commands.
11253
568e808b
MM
112542014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11255
11256 * record-btrace.c (record_btrace_close): Call btrace_teardown
11257 for all threads.
11258
467d141b
JB
112592014-01-27 Joel Brobecker <brobecker@adacore.com>
11260
11261 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11262 "ui-out.h".
11263
fb151210
JB
112642014-01-27 Joel Brobecker <brobecker@adacore.com>
11265
11266 * ada-typeprint (type_is_full_subrange_of_target_type):
11267 New function.
11268 (print_range): Add parameter bounds_prefered_p. If not set,
11269 try printing range types using the name of their base type.
11270 (print_range_type): Add parameter bounds_prefered_p.
11271 Use it in call to print_range.
11272 (print_array_type, ada_print_type): Update calls to print_range
11273 and print_range_type.
11274
aba02109
JB
112752014-01-27 Joel Brobecker <brobecker@adacore.com>
11276
11277 * ada-typeprint.c (print_array_type, print_choices, print_range)
11278 (print_range_bound, print_dynamic_range_bound, print_range_type):
11279 Remove declaration.
11280
e62e21fd
JB
112812014-01-27 Joel Brobecker <brobecker@adacore.com>
11282
11283 * ada-typeprint.c (print_range): Add missing empty line
11284 after local declaration.
11285
859cf5d1
JB
112862014-01-27 Joel Brobecker <brobecker@adacore.com>
11287
11288 * ada-valprint.c (print_optional_low_bound): Get index_type's
11289 target type for as long as it is a TYPE_CODE_RANGE.
11290
25790f6f
JB
112912014-01-27 Joel Brobecker <brobecker@adacore.com>
11292
11293 * procfs.c (procfs_make_note_section): Remove assertion and
11294 associated comment.
11295
6b6aa828
YQ
112962014-01-24 Yao Qi <yao@codesourcery.com>
11297
11298 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11299 * corelow.c (get_core_siginfo): Likewise.
11300
5d6df423
YQ
113012014-01-24 Yao Qi <yao@codesourcery.com>
11302
11303 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11304 ULONGEST. Don't check 'len' is negative.
11305 (remote_write_bytes): Change type of 'len' to ULONGEST.
11306
83b645b8
TT
113072014-01-23 Tom Tromey <tromey@redhat.com>
11308
11309 PR python/16485:
11310 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11311 Handle exception from frame.block.
11312 (FrameVars.fetch_frame_locals): Likewise.
11313
0740f8d8
TT
113142014-01-23 Tom Tromey <tromey@redhat.com>
11315
11316 PR python/16487:
11317 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11318 on a NULL pointer. Move "goto error" to correct place.
11319
21909fa1
TT
113202014-01-23 Tom Tromey <tromey@redhat.com>
11321
11322 PR python/16491:
11323 * python/py-framefilter.c (apply_frame_filter): Call
11324 ensure_python_env after computing gdbarch.
11325
17fde6d0
YQ
113262014-01-23 Yao Qi <yao@codesourcery.com>
11327
11328 * target.c (raw_memory_xfer_partial): Change argument type
11329 from void * to gdb_byte *.
11330 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11331
87ce2a04
DE
113322014-01-22 Doug Evans <dje@google.com>
11333
11334 New gdbserver option --debug-format=timestamp.
11335 * NEWS: Mention it.
11336
237b092b
AA
113372014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11338
11339 * syscalls/s390x-linux.xml: New file.
11340 * syscalls/s390-linux.xml: New file.
11341 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11342 (XML_SYSCALL_FILENAME_S390X): Likewise.
11343 (op_svc): New enum value for SVC opcode.
11344 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11345 (s390_linux_get_syscall_number): New function.
11346 (s390_gdbarch_init): Register '*get_syscall_number' and the
11347 syscall xml file name.
11348 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11349 "s390-linux.xml" and "s390x-linux.xml".
11350 * NEWS: Announce new feature.
11351
54bff650
BS
113522014-01-22 Baruch Siach <baruch@tkos.co.il>
11353
11354 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11355
14e361d7
PA
113562014-01-22 Pedro Alves <palves@redhat.com>
11357
11358 * xtensa-config.c: Include defs.h.
11359
46bbb3ed
JB
113602014-01-22 Joel Brobecker <brobecker@adacore.com>
11361
11362 * common/common-utils.h: Add "ARI:" comment beside __func__
11363 reference.
11364
3a80edfc
JB
113652014-01-22 Joel Brobecker <brobecker@adacore.com>
11366
11367 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11368 documentation a bit.
11369
4869db5e
RM
113702014-01-21 Roland McGrath <mcgrathr@google.com>
11371
11372 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11373 * configure: Regenerate.
11374 * aclocal.m4: Regenerate.
11375 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11376 New substituted variables.
11377 (install-strip): New target.
11378 (INSTALL_SCRIPT): New substituted variable.
11379 (FLAGS_TO_PASS): Add it.
11380 (install-only): Use $(INSTALL_SCRIPT) rather than
11381 $(INSTALL_PROGRAM) for gcore.
11382
9ea4267d
TT
113832014-01-20 Tom Tromey <tromey@redhat.com>
11384
11385 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11386 together.
11387
1f2bdf09
TT
113882014-01-20 Tom Tromey <tromey@redhat.com>
11389
11390 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11391 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11392 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11393 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11394 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11395 (struct cmd_list_element) <flags>: Remove.
11396 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11397 doc_allocated>: New fields.
11398 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11399 bitfields.
11400 * maint.c (maintenance_do_deprecate): Update.
11401 * top.c (execute_command): Update.
11402
e671835b
BS
114032014-01-20 Baruch Siach <baruch@tkos.co.il>
11404
11405 * xtensa-linux-nat.c: Include asm/ptrace.h.
11406
50367cd2
IB
114072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11408
11409 * Makefile.in (SFILES): Add d-support.c.
11410 (COMMON_OBS): Add d-support.o.
11411 * d-lang.h (d_parse_symbol): Add comment, now defined in
11412 d-support.c.
11413 * d-lang.c (parse_call_convention)
11414 (parse_attributes, parse_function_types)
11415 (parse_function_args, parse_type, parse_identifier)
11416 (call_convention_p, d_parse_symbol): Move functions to ...
11417 * d-support.c: ... New file.
11418
ec9f644a
IB
114192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11420
11421 * d-lang.h (d_parse_symbol): Add declaration.
11422 * d-lang.c (extract_identifiers)
11423 (extract_type_info): Remove functions.
11424 (parse_call_convention, parse_attributes)
11425 (parse_function_types, parse_function_args)
11426 (parse_type, parse_identifier, call_convention_p)
11427 (d_parse_symbol): New functions.
11428 (d_demangle): Use d_parse_symbol to demangle D symbols.
11429
94b1b47e
IB
114302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11431
11432 * d-lang.h (struct builtin_d_type): New data type.
11433 (builtin_d_type): Add declaration.
11434 * d-lang.c (d_language_arch_info, build_d_types)
11435 (builtin_d_type): New functions.
11436 (enum d_primitive_types): New data type.
11437 (d_language_defn): Change c_language_arch_info to
11438 d_language_arch_info.
11439 (d_type_data): New static variable.
11440 (_initialize_d_language): Initialize d_type_data.
11441
63778547
IB
114422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11443
11444 * d-lang.h (d_main_name): Add declaration.
11445 * d-lang.c (d_main_name): New function.
11446 * symtab.c (find_main_name): Add call to d_main_name.
11447
3271ba66
IB
114482014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11449
11450 * d-lang.c (d_language_defn): Change macro_expansion_c to
11451 macro_expansion_no.
11452
d36b3012
IB
114532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11454
11455 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11456
c90a6fb7
SDJ
114572014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11458
11459 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11460 gdb_exception" declaration.
11461 * remote.c (getpkt_or_notif_sane): Likewise.
11462
749234e5
DE
114632014-01-17 Doug Evans <dje@google.com>
11464
11465 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11466 function, contents of dirnames_to_char_ptr_vec_append moved here.
11467 (delim_string_to_char_ptr_vec): New function.
11468 (dirnames_to_char_ptr_vec_append): Rewrite.
11469 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11470
df049a58
DE
114712014-01-17 Doug Evans <dje@google.com>
11472
11473 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11474 and moved here ...
11475 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11476 #include "common-utils.h".
11477 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11478 * common/vec.h (VEC_ASSERT_PASS): Update.
11479 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11480 (MACH_CHECK_ERROR): Update.
11481
69f97648
SM
114822014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11483
11484 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11485 comments.
11486 * gdbarch.h: Regenerate.
11487
98b1cfdc
TT
114882014-01-16 Tom Tromey <tromey@redhat.com>
11489
11490 * value.c (struct value) <regnum>: Move earlier.
11491
77a19445
TT
114922014-01-16 Tom Tromey <tromey@redhat.com>
11493
11494 * remote.c (extended_remote_create_inferior): Rename from
11495 extended_remote_create_inferior_1. Add "ops" argument. Remove
11496 old implementation.
11497
62261490
PA
114982014-01-16 Pedro Alves <palves@redhat.com>
11499
11500 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11501 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11502 the backchain.
11503
4d65956b
DE
115042014-01-16 Doug Evans <dje@google.com>
11505
11506 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11507
52834460
MM
115082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11509
11510 * btrace.h (btrace_thread_flag): New.
11511 (struct btrace_thread_info) <flags>: New.
11512 * record-btrace.c (record_btrace_resume_thread)
11513 (record_btrace_find_thread_to_move, btrace_step_no_history)
11514 (btrace_step_stopped, record_btrace_start_replaying)
11515 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11516 (record_btrace_find_resume_thread): New.
11517 (record_btrace_resume, record_btrace_wait): Extend.
11518 (record_btrace_can_execute_reverse): New.
11519 (record_btrace_open): Fail in non-stop mode.
11520 (record_btrace_set_replay): Split into this, ...
11521 (record_btrace_stop_replaying): ... this, ...
11522 (record_btrace_clear_histories): ... and this.
11523 (init_record_btrace_ops): Init to_can_execute_reverse.
11524 * NEWS: Announce it.
11525
118e6252
MM
115262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11527
11528 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11529 (forward_target_decr_pc_after_break)
11530 (target_decr_pc_after_break): New.
11531 * target.c (forward_target_decr_pc_after_break)
11532 (target_decr_pc_after_break): New.
11533 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11534 instead of gdbarch_decr_pc_after_break.
11535 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11536 instead of gdbarch_decr_pc_after_break.
11537 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11538 instead of gdbarch_decr_pc_after_break.
11539 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11540 instead of gdbarch_decr_pc_after_break.
11541 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11542 instead of gdbarch_decr_pc_after_break.
11543 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11544 instead of gdbarch_decr_pc_after_break.
11545
6e07b1d2
MM
115462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11547
11548 * btrace.c: Include regcache.h.
11549 (btrace_add_pc): New.
11550 (btrace_enable): Call btrace_add_pc.
11551 (btrace_is_empty): New.
11552 * btrace.h (btrace_is_empty): New.
11553 * record-btrace.c (require_btrace, record_btrace_info): Call
11554 btrace_is_empty.
11555
969c39fb
MM
115562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11557
11558 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11559 Support delta reads.
11560 (linux_disable_btrace): Change return type.
11561 * common/linux-btrace.h (linux_read_btrace): Change parameters
11562 and return type to allow error reporting. Update users.
11563 (linux_disable_btrace): Change return type. Update users.
11564 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11565 New.
11566 (btrace_error): New.
11567 (btrace_block) <begin>: Comment on BEGIN == 0.
11568 * btrace.c (btrace_compute_ftrace): Start from the end of
11569 the current trace.
11570 (btrace_stitch_trace, btrace_clear_history): New.
11571 (btrace_fetch): Read delta trace, return if replaying.
11572 (btrace_clear): Move clear history code to btrace_clear_history.
11573 (parse_xml_btrace): Throw an error if parsing failed.
11574 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11575 and return type to allow error reporting.
11576 (target_read_btrace): Change parameters and return type to allow
11577 error reporting.
11578 * target.c (target_read_btrace): Update.
11579 * remote.c (remote_read_btrace): Support delta reads. Pass
11580 errors on.
11581 * NEWS: Announce it.
11582
0b722aec
MM
115832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11584
11585 * record.h (record_btrace_frame_unwind)
11586 (record_btrace_tailcall_frame_unwind): New declarations.
11587 * dwarf2-frame: Include record.h
11588 (dwarf2_frame_cfa): Throw an error for btrace frames.
11589 * record-btrace.c: Include hashtab.h.
11590 (btrace_get_bfun_name): New.
11591 (btrace_call_history): Call btrace_get_bfun_name.
11592 (struct btrace_frame_cache): New.
11593 (bfcache): New.
11594 (bfcache_hash, bfcache_eq, bfcache_new): New.
11595 (btrace_get_frame_function): New.
11596 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11597 (record_btrace_frame_this_id): Compute own id.
11598 (record_btrace_frame_prev_register): Provide PC, throw_error
11599 for all other registers.
11600 (record_btrace_frame_sniffer): Detect btrace frames.
11601 (record_btrace_tailcall_frame_sniffer): New.
11602 (record_btrace_frame_dealloc_cache): New.
11603 (record_btrace_frame_unwind): Add new functions.
11604 (record_btrace_tailcall_frame_unwind): New.
11605 (_initialize_record_btrace): Allocate cache.
11606 * btrace.c (btrace_clear): Call reinit_frame_cache.
11607 * NEWS: Announce it.
11608
066ce621
MM
116092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11610
11611 * record-btrace.c (record_btrace_set_replay)
11612 (record_btrace_goto_begin, record_btrace_goto_end)
11613 (record_btrace_goto): New.
11614 (init_record_btrace_ops): Initialize them.
11615 * NEWS: Announce it.
11616
e2887aa3
MM
116172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11618
11619 * record-btrace.c (record_btrace_find_new_threads)
11620 (record_btrace_thread_alive): New.
11621 (init_record_btrace_ops): Initialize to_find_new_threads and
11622 to_thread_alive.
11623
b2f4cfde
MM
116242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11625
11626 * record-btrace.c (record_btrace_resume): New.
11627 (record_btrace_wait): New.
11628 (init_record_btrace_ops): Initialize to_wait and to_resume.
11629
633785ff
MM
116302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11631
11632 * record-btrace.c (record_btrace_xfer_partial)
11633 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11634 (record_btrace_allow_memory_access): New.
11635 (init_record_btrace_ops): Initialize new methods.
11636 * target.c (raw_memory_xfer_partial): Bail out if target reports
11637 that this memory is not available.
11638
3db08215
MM
116392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11640
11641 * target.h (target_ops) <to_insert_breakpoint>
11642 <to_remove_breakpoint>: Add target_ops parameter.
11643 (forward_target_insert_breakpoint): New.
11644 (forward_target_remove_breakpoint): New.
11645 (memory_remove_breakpoint, memory_insert_breakpoint):
11646 Add target_ops parameter.
11647 * target.c (target_insert_breakpoint): Split into this and ...
11648 (forward_target_insert_breakpoint): ... this.
11649 (target_remove_breakpoint): Split into this and ...
11650 (forward_target_remove_breakpoint): ... this.
11651 (debug_to_insert_breakpoint): Add target_ops parameter.
11652 Call forward_target_insert_breakpoint.
11653 (debug_to_remove_breakpoint): Add target_ops parameter.
11654 Call forward_target_remove_breakpoint.
11655 (update_current_target): Do not inherit or default to_insert_breakpoint
11656 and to_remove_breakpoint.
11657 * corelow.c (ignore): Add target_ops parameter.
11658 * exec.c (ignore): Add target_ops parameter.
11659 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11660 Add target_ops parameter.
11661 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11662 Add target_ops parameter.
11663 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11664 Add target_ops parameter.
11665 * record-full.c (record_full_beneath_to_insert_breakpoint)
11666 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11667 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11668 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11669 (record_full_core_remove_breakpoint): Add target_ops parameter.
11670 Update users.
11671 (record_full_beneath_to_insert_breakpoint_ops)
11672 (record_full_beneath_to_remove_breakpoint_ops)
11673 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11674 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11675 tmp_to_remove_breakpoint_ops,
11676 record_full_beneath_to_insert_breakpoint_ops, and
11677 record_full_beneath_to_remove_breakpoint_ops.
11678 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11679 (m32r_remove_breakpoint): Add target_ops parameter.
11680 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11681 Add target_ops parameter.
11682 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11683 Add target_ops parameter.
11684
cecac1ab
MM
116852014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11686 Markus Metzger <markus.t.metzger@intel.com>
11687
11688 * record-btrace.c: Include frame-unwind.h.
11689 (record_btrace_frame_unwind_stop_reason)
11690 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11691 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11692 New.
11693 (init_record_btrace_ops): Install it.
11694
824344ca
MM
116952014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11698 get_prev_frame_1.
11699
32261e52
MM
117002014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11701
11702 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11703 earlier.
11704
ea001bdc
MM
117052014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 * frame-unwind.c: Include target.h.
11708 (frame_unwind_try_unwinder): New function with code from ...
11709 (frame_unwind_find_by_frame): ... here. New variable
11710 unwinder_from_target, call also target_get_unwinder)
11711 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11712 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11713 * target.h (struct target_ops): New fields to_get_unwinder and
11714 to_get_tailcall_unwinder.
11715 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11716
1f3ef581
MM
117172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11718
11719 * record-btrace.c (record_btrace_fetch_registers)
11720 (record_btrace_store_registers)
11721 (record_btrace_to_prepare_to_store): New.
11722 (init_record_btrace_ops): Add the above.
11723
f32dbf8c
MM
117242014-01-16 Tom Tromey <tromey@redhat.com>
11725
11726 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11727 * target.h (struct target_ops) <to_prepare_to_store>: Add
11728 argument.
11729 (target_prepare_to_store): Add argument.
11730 * target.c (debug_to_prepare_to_store): Add argument.
11731 (update_current_target): Update.
11732 * remote.c (remote_prepare_to_store): Add 'self' argument.
11733 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11734 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11735 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11736 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11737 argument.
11738 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11739 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11740 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11741 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11742 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11743
07bbe694
MM
117442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11745
11746 * btrace.h (replay) <replay>: New.
11747 (btrace_is_replaying): New.
11748 * btrace.c (btrace_clear): Free replay iterator.
11749 (btrace_is_replaying): New.
11750 * record-btrace.c (record_btrace_is_replaying): New.
11751 (record_btrace_info): Print insn number if replaying.
11752 (record_btrace_insn_history): Start at replay position.
11753 (record_btrace_call_history): Start at replay position.
11754 (init_record_btrace_ops): Init to_record_is_replaying.
11755
0688d04e
MM
117562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11757
11758 * record-btrace.c (record_btrace_insn_history_range): Include
11759 end.
11760 (record_btrace_insn_history_from): Adjust range.
11761 (record_btrace_call_history_range): Include
11762 end.
11763 (record_btrace_call_history_from): Adjust range.
11764 * NEWS: Announce changes.
11765
8710b709
MM
117662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11767
11768 * record.h (enum record_print_flag)
11769 <record_print_indent_calls>: New.
11770 * record.c (get_call_history_modifiers): Recognize /c modifier.
11771 (_initialize_record): Document /c modifier.
11772 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11773 Reorder fields. Optionally indent the function name. Update
11774 all users.
11775 * NEWS: Announce changes.
11776
d0fa7535
MM
117772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11778
11779 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11780
5de9129b
MM
117812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11782
11783 * btrace.c (ftrace_new_function): Start counting at one.
11784 * record-btrace.c (record_btrace_info): Adjust number of calls
11785 and insns.
11786 * NEWS: Announce it.
11787
7acbe133
MM
117882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11789
11790 * record-btrace.c (btrace_call_history_insn_range): Print
11791 insn range as [begin, end].
11792
23a7fe75
MM
117932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11794
11795 * btrace.h (struct btrace_func_link): New.
11796 (enum btrace_function_flag): New.
11797 (struct btrace_inst): Rename to ...
11798 (struct btrace_insn): ...this. Update all users.
11799 (struct btrace_func) <ibegin, iend>: Remove.
11800 (struct btrace_func_link): New.
11801 (struct btrace_func): Rename to ...
11802 (struct btrace_function): ...this. Update all users.
11803 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11804 (number, level, flags>: New.
11805 (struct btrace_insn_iterator): Rename to ...
11806 (struct btrace_insn_history): ...this.
11807 Update all users.
11808 (struct btrace_insn_iterator, btrace_call_iterator): New.
11809 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11810 (struct btrace_target_info) <begin, end, level>
11811 <insn_history, call_history>: New.
11812 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11813 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11814 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11815 (btrace_call_number, btrace_call_begin, btrace_call_end)
11816 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11817 (btrace_find_function_by_number, btrace_set_insn_history)
11818 (btrace_set_call_history): New.
11819 * btrace.c (btrace_init_insn_iterator)
11820 (btrace_init_func_iterator, compute_itrace): Remove.
11821 (ftrace_print_function_name, ftrace_print_filename)
11822 (ftrace_skip_file): Change
11823 parameter to const.
11824 (ftrace_init_func): Remove.
11825 (ftrace_debug): Use new btrace_function fields.
11826 (ftrace_function_switched): Also consider gaining and
11827 losing symbol information).
11828 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11829 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11830 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11831 New.
11832 (ftrace_new_function): Move. Remove debug print.
11833 (ftrace_update_lines, ftrace_update_insns): New.
11834 (ftrace_update_function): Check for call, ret, and jump.
11835 (compute_ftrace): Renamed to ...
11836 (btrace_compute_ftrace): ...this. Rewritten to compute call
11837 stack.
11838 (btrace_fetch, btrace_clear): Updated.
11839 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11840 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11841 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11842 (btrace_call_number, btrace_call_begin, btrace_call_end)
11843 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11844 (btrace_find_function_by_number, btrace_set_insn_history)
11845 (btrace_set_call_history): New.
11846 * record-btrace.c (require_btrace): Use new btrace thread
11847 info fields.
11848 (record_btrace_info, btrace_insn_history)
11849 (record_btrace_insn_history, record_btrace_insn_history_range):
11850 Use new btrace thread info fields and new iterator.
11851 (btrace_func_history_src_line): Rename to ...
11852 (btrace_call_history_src_line): ...this. Use new btrace
11853 thread info fields.
11854 (btrace_func_history): Rename to ...
11855 (btrace_call_history): ...this. Use new btrace thread info
11856 fields and new iterator.
11857 (record_btrace_call_history, record_btrace_call_history_range):
11858 Use new btrace thread info fields and new iterator.
11859
8372a7cb
MM
118602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11861
11862 * frame.h (frame_id_build_unavailable_stack_special): New.
11863 * frame.c (frame_id_build_unavailable_stack_special): New.
11864
c2170eef
MM
118652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11866
11867 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11868 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11869 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11870 to gdbarch.
11871 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11872 (i386_insn_is_jump, i386_jmp_p): New.
11873 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11874 insn_is_jump to gdbarch.
11875 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11876 * gdbarch.h: Regenerated.
11877 * gdbarch.c: Regenerated.
11878 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11879 (default_insn_is_jump): New.
11880 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11881 (default_insn_is_jump): New.
11882
864089d2
MM
118832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11884
11885 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11886 Change to ...
11887 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11888 (btrace_read_type) <btrace_read_new>: Change to ...
11889 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11890
ed9edfb5
MM
118912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11892
11893 * common/linux-btrace.c (linux_read_btrace): Free trace from
11894 previous iteration.
11895
fbcbc3fd
DE
118962014-01-15 Doug Evans <dje@google.com>
11897
11898 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11899 uint32_t.
11900
3d548a53
TT
119012014-01-15 Tom Tromey <tromey@redhat.com>
11902
11903 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11904 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11905 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11906 (set_objfile_main_name): New function.
11907 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11908 language_of_main>: New fields.
11909 (set_objfile_main_name): Declare.
11910 * symtab.c (find_main_name): Loop over objfiles to find the main
11911 name and language.
11912 (set_main_name): Now static.
11913 (get_main_info): Add comment.
11914 * symtab.h (set_main_name): Don't declare.
11915
32ac0d11
TT
119162014-01-15 Tom Tromey <tromey@redhat.com>
11917
11918 * symtab.c (main_progspace_key): New global.
11919 (struct main_info): New.
11920 (name_of_main, language_of_main): Remove.
11921 (get_main_info, main_info_cleanup): New function.
11922 (set_main_name, main_name, main_language): Use get_main_info.
11923 (_initialize_symtab): Initialize main_progspace_key.
11924
9e6c82ad
TT
119252014-01-15 Tom Tromey <tromey@redhat.com>
11926
11927 * dbxread.c (process_one_symbol): Update.
11928 * dwarf2read.c (read_partial_die): Update.
11929 * symfile.c (set_initial_language): Call main_language.
11930 * symtab.c (language_of_main): Now static.
11931 (set_main_name): Add 'lang' parameter.
11932 (find_main_name): Update.
11933 (main_language): New function.
11934 (symtab_observer_executable_changed): Update.
11935 * symtab.h (set_main_name): Update.
11936 (language_of_main): Remove.
11937 (main_language): Declare.
11938
6ef55de7
TT
119392014-01-15 Tom Tromey <tromey@redhat.com>
11940
11941 * symfile.c (init_entry_point_info): Use new "initialized" field.
11942 Update.
11943 * objfiles.h (struct entry_point) <initialized>: New field.
11944 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11945 (struct objfile) <ei>: ...here. Remove.
11946 * objfiles.c (entry_point_address_query): Update.
11947
53eddfa6
TT
119482014-01-15 Tom Tromey <tromey@redhat.com>
11949
11950 * objfiles.c (entry_point_address_query): Relocate entry point
11951 address.
11952 (objfile_relocate1): Do not relocate entry point address.
11953 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11954 <the_bfd_section_index>: New field.
11955 * symfile.c (init_entry_point_info): Find the entry point's
11956 section.
11957
d56e56aa
TT
119582014-01-15 Tom Tromey <tromey@redhat.com>
11959
11960 * solib-frv.c (enable_break): Use entry_point_address_query.
11961
33a97bbe
OJ
119622014-01-15 Omair Javaid <omair.javaid@linaro.org>
11963
11964 * NEWS: Add note on improved process record-replay on
11965 arm*-linux* targets.
11966
c6ec2b30
OJ
119672014-01-15 Omair Javaid <omair.javaid@linaro.org>
11968
11969 * arm-tdep.c (enum arm_record_result): New enum.
11970 (arm_record_unsupported_insn): New function.
11971 (arm_record_coproc_data_proc): Removed.
11972 (thumb2_record_ld_st_multiple): New function.
11973 (thumb2_record_ld_st_dual_ex_tbb): New function.
11974 (thumb2_record_data_proc_sreg_mimm): New function.
11975 (thumb2_record_ps_dest_generic): New function.
11976 (thumb2_record_branch_misc_cntrl): New function.
11977 (thumb2_record_str_single_data): New function.
11978 (thumb2_record_ld_mem_hints): New function.
11979 (thumb2_record_ld_word): New function.
11980 (thumb2_record_lmul_lmla_div): New function.
11981 (thumb2_record_decode_insn_handler): New function.
11982 (decode_insn): Add thumb32 instruction handlers.
11983
97dfe206
OJ
119842014-01-15 Omair Javaid <omair.javaid@linaro.org>
11985
11986 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11987 (struct arm_linux_record_tdep): Declare.
11988 (arm_canonicalize_syscall): New function.
11989 (arm_all_but_pc_registers_record): New function.
11990 (arm_linux_syscall_record): New function.
11991 (arm_linux_init_abi): Add syscall recording constructs.
11992 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11993 decoding. (arm_record_coproc_data_proc): Update arm syscall
11994 decoding.
11995 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11996 <arm_syscall_record>: New field.
11997 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11998 gdb_target_obs.
11999
9904a494
OJ
120002014-01-15 Omair Javaid <omair.javaid@linaro.org>
12001
12002 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12003 register for push instruction recording.
12004
f969241e
OJ
120052014-01-15 Omair Javaid <omair.javaid@linaro.org>
12006
12007 * arm-tdep.c (thumb_record_misc): Update to correct logical
12008 error while recording ldm, ldmia and pop instructions.
12009
bfbbec00
OJ
120102014-01-15 Omair Javaid <omair.javaid@linaro.org>
12011
12012 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12013
e40adcc9
PA
120142014-01-15 Pedro Alves <palves@redhat.com>
12015
12016 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12017 (go32_resume, go32_fetch_registers, store_register)
12018 (go32_store_registers, go32_prepare_to_store)
12019 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12020 (go32_create_inferior, go32_can_run, go32_terminal_init)
12021 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12022 declarations.
12023
b0a16e66
TT
120242014-01-15 Tom Tromey <tromey@redhat.com>
12025
12026 * target.h (async_callback_ftype): New typedef.
12027 (struct target_ops) <to_async>: Use it.
12028
bf7105a4
JB
120292014-01-15 Joel Brobecker <brobecker@adacore.com>
12030
12031 * python/py-value.c (get_field_type): Remove unnecessary curly
12032 braces for single-statement if block.
12033
a8f35c2e
JB
120342014-01-15 Joel Brobecker <brobecker@adacore.com>
12035
12036 * python/py-type.c (convert_field): Add missing empty line
12037 after declarations.
12038
bb4142cf
DE
120392014-01-14 Doug Evans <dje@google.com>
12040
12041 * symfile.h (expand_symtabs_matching): Renamed from
12042 expand_partial_symbol_names. Update prototype.
12043 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12044 * symfile.c (expand_symtabs_matching): Renamed from
12045 expand_partial_symbol_names. New args file_matcher, kind.
12046 Rename arg fun to symbol_matcher.
12047 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12048 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12049 ada_expand_partial_symbol_name.
12050 (ada_make_symbol_completion_list): Update to call
12051 expand_symtabs_matching.
12052 (ada_add_global_exceptions): Call expand_symtabs_matching.
12053 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12054 call map_symbol_filenames.
12055 * symtab.c (sources_info): Update to call map_symbol_filenames.
12056 (search_symbols): Call expand_symtabs_matching.
12057 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12058 (default_make_symbol_completion_list_break_on): Update to call
12059 expand_symtabs_matching.
12060 (make_source_files_completion_list): Update to call
12061 map_symbol_filenames.
12062
206f2a57
DE
120632014-01-14 Doug Evans <dje@google.com>
12064
12065 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12066 (expand_symtabs_symbol_matcher_ftype): New typedef.
12067 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12068 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12069 * symfile.c (expand_partial_symbol_names): Update to use
12070 expand_symtabs_symbol_matcher_ftype.
12071 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12072 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12073 Arg name_matcher renamed to symbol_matcher.
12074 * psymtab.c (recursively_search_psymtabs): Update to use
12075 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12076 sym_matcher.
12077 (expand_symtabs_matching_via_partial): Update to use
12078 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12079 Arg name_matcher renamed to symbol_matcher.
12080
540c2971
DE
120812014-01-14 Doug Evans <dje@google.com>
12082
12083 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12084 (map_partial_symbol_filenames): Ditto.
12085 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12086 (map_partial_symbol_filenames): Ditto.
12087 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12088 (map_partial_symbol_filenames): Ditto.
12089 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12090 (map_partial_symbol_filenames): Ditto.
12091 * symtab.c: Delete #include "psymtab.h".
12092
8213266a
PA
120932014-01-14 Pedro Alves <palves@redhat.com>
12094 Tom Tromey <tromey@redhat.com>
12095
12096 * infrun.c (use_displaced_stepping): Use find_record_target
12097 instead of RECORD_IS_USED.
12098 (adjust_pc_after_break): Use record_full_is_used instead of
12099 RECORD_IS_USED.
12100 * record-btrace.c (record_btrace_open): Call record_preopen
12101 instead of checking RECORD_IS_USED.
12102 * record-full.c (record_full_shortname)
12103 (record_full_core_shortname): New globals.
12104 (record_full_is_used): New function.
12105 (find_full_open): Call record_preopen instead of checking
12106 RECORD_IS_USED.
12107 (init_record_full_ops): Set the target's shortname to
12108 record_full_shortname.
12109 (init_record_full_core_ops): Set the target's shortname to
12110 record_full_core_shortname.
12111 * record-full.h (record_full_is_used): Declare.
12112 * record.c (find_record_target): Make extern.
12113 (record_preopen): New function.
12114 * record.h (RECORD_IS_USED): Delete macro.
12115 (find_record_target, record_preopen): Declare functions.
12116
7ec1862d
YQ
121172014-01-14 Yao Qi <yao@codesourcery.com>
12118
12119 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12120 'len''s type to ULONGEST.
12121 (core_xfer_shared_libraries_aix): Likewise.
12122 * gdbarch.c, gdbarch.h: Regenerated.
12123 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12124 Change type of 'len' to ULONGEST.
12125 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12126 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12127
dea80a27
YQ
121282014-01-14 Yao Qi <yao@codesourcery.com>
12129
12130 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12131 type of 'len' to ULONGEST.
12132 (linux_xfer_osdata_processgroups): Likewise.
12133 (linux_xfer_osdata_threads): Likewise.
12134 (linux_xfer_osdata_fds): Likewise.
12135 (linux_xfer_osdata_isockets): Likewise.
12136 (linux_xfer_osdata_shm): Likewise.
12137 (linux_xfer_osdata_sem): Likewise.
12138 (linux_xfer_osdata_msg): Likewise.
12139 (linux_common_xfer_osdata): Likewise.
12140 (struct osdata_type) <getter>: Likewise.
12141 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12142 the declaration.
12143
b55e14c7
YQ
121442014-01-14 Yao Qi <yao@codesourcery.com>
12145
12146 * target.h (target_xfer_partial_ftype): Update.
12147 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12148 ULONGEST.
12149 * aix-thread.c (aix_thread_xfer_partial): Change type of
12150 argument 'len' to ULONGEST.
12151 * auxv.c (procfs_xfer_auxv): Likewise.
12152 (ld_so_xfer_auxv): Likewise.
12153 (memory_xfer_auxv): Likewise.
12154 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12155 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12156 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12157 * corelow.c (core_xfer_partial): Likewise.
12158 * ctf.c (ctf_xfer_partial): Likewise.
12159 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12160 '%u'.
12161 (darwin_read_dyld_info): Likewise.
12162 (darwin_xfer_partial): Likewise.
12163 * exec.c (section_table_xfer_memory_partial): Likewise.
12164 (exec_xfer_partial): Likewise.
12165 * exec.h (section_table_xfer_memory_partial): Update
12166 declaration.
12167 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12168 instead of plongest.
12169 (gnu_xfer_partial): Likewise.
12170 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12171 (ia64_hpux_xfer_solib_got): Likewise.
12172 (ia64_hpux_xfer_partial): Likewise.
12173 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12174 * inf-ptrace.c (inf_ptrace_xfer_partial):
12175 * inf-ttrace.c (inf_ttrace_xfer_partial):
12176 * linux-nat.c (linux_xfer_siginfo): Likewise.
12177 (linux_nat_xfer_partial): Likewise.
12178 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12179 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12180 * monitor.c (monitor_xfer_memory): Likewise.
12181 (monitor_xfer_partial): Likewise.
12182 * procfs.c (procfs_xfer_partial): Likewise.
12183 * record-full.c (record_full_xfer_partial): Likewise.
12184 (record_full_core_xfer_partial): Likewise.
12185 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12186 instead of plongest.
12187 (gdbsim_xfer_partial): Likewise.
12188 * remote.c (remote_xfer_partial): Likewise.
12189 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12190 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12191 declaration.
12192 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12193 (rs6000_xfer_shared_libraries): Likewise.
12194 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12195 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12196 (sparc_xfer_partial): Likewise.
12197 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12198 (spu_xfer_partial): Likewise.
12199 * spu-multiarch.c (spu_xfer_partial): Likewise.
12200 * target.c (target_read_live_memory): Likewise.
12201 (memory_xfer_live_readonly_partial): Likewise.
12202 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12203 (target_xfer_partial, default_xfer_partial): Likewise.
12204 (current_xfer_partial): Likewise.
12205 * tracepoint.c (tfile_xfer_partial): Likewise.
12206 * windows-nat.c (windows_xfer_memory): Likewise. Call
12207 pulongest instead of plongest.
12208 (windows_xfer_partial): Likewise.
12209 (windows_xfer_shared_libraries): Likewise.
12210
05804640
YQ
122112014-01-14 Yao Qi <yao@codesourcery.com>
12212
12213 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12214 target_xfer_partial_ftype.
12215
b5b08fb4
SC
122162014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12217
12218 PR python/15464
12219 PR python/16113
12220 * valops.c (value_struct_elt_bitpos): New function
12221 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12222 object to 'None' if the field name is an empty string ("").
12223 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12224 attribute to look for a field when 'name' is 'None'.
12225 (get_field_type): New function
12226
13aaf454
DE
122272014-01-13 Doug Evans <dje@google.com>
12228
12229 PR symtab/16426
12230 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12231 (try_open_dwop_file): Ditto.
12232 * gdb_bfd.c: #include "vec.h".
12233 (bfdp): New typedef.
12234 (struct gdb_bfd_data): New member included_bfds.
12235 (gdb_bfd_unref): Unref all included bfds.
12236 (gdb_bfd_record_inclusion): New function.
12237 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12238
c2cec97c
TT
122392014-01-13 Tom Tromey <tromey@redhat.com>
12240
12241 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12242
78e5999d
TT
122432014-01-13 Tom Tromey <tromey@redhat.com>
12244
12245 * defs.h (use_windows): Remove.
12246 * gdb.c (main): Update.
12247 * main.c (captured_main, gdb_main): Update.
12248 * main.h (struct captured_main_args) <use_windows>: Remove.
12249 * top.c (use_windows): Remove.
12250
f2052bbe
TT
122512014-01-13 Tom Tromey <tromey@redhat.com>
12252
12253 * defs.h (deprecated_flush_hook): Remove.
12254
fde4f8ed
JK
122552014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12256
12257 PR threads/16216
12258 * linux-thread-db.c (try_thread_db_load): Add parameter
12259 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12260 (try_thread_db_load_from_pdir_1): Move it there from here.
12261 (try_thread_db_load_from_sdir): Update caller.
12262 (try_thread_db_load_from_dir): Move it there from here.
12263
bdf61915
PP
122642014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12265
12266 * regformats/regdat.sh: Always rewrite the register file.
12267
f71e1a8d
PA
122682014-01-13 Pedro Alves <palves@redhat.com>
12269
12270 * Makefile.in (CHECK_HEADERS): New variable.
12271 (check-headers:): New rule.
12272
42c85435
TT
122732014-01-13 Tom Tromey <tromey@redhat.com>
12274
12275 * cli/cli-setshow.c (do_set_command): Update.
12276 * defs.h (deprecated_set_hook): Remove.
12277 * top.c (deprecated_set_hook): Remove.
12278
f8de5129
PA
122792014-01-13 Pedro Alves <palves@redhat.com>
12280
12281 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12282 the tracepoint if the PC is a pseudo-register.
12283
fc270c35
TT
122842014-01-13 Tom Tromey <tromey@redhat.com>
12285
12286 * defs.h (XCALLOC): Remove.
12287 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12288 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12289 * dwarf2loc.c (allocate_piece_closure): Likewise.
12290 * elfread.c (elf_symfile_segments): Likewise.
12291 (elf_symfile_segments): Likewise.
12292 * gdbtypes.c (copy_type_recursive): Likewise.
12293 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12294 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12295 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12296 XCALLOC.
12297 * mt-tdep.c (mt_gdbarch_init): Likewise.
12298 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12299 XCALLOC.
12300 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12301 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12302 * registry.c (registry_alloc_data): Likewise.
12303 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12304 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12305 * serial.c (serial_fdopen_ops): Likewise.
12306 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12307 XCALLOC.
12308 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12309 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12310 not XCALLOC.
12311
70ba0933
TT
123122014-01-13 Tom Tromey <tromey@redhat.com>
12313
12314 * defs.h (XMALLOC): Remove.
12315 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12316 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12317 * cli-out.c (struct ui_out *): Likewise.
12318 * cli/cli-dump.c (add_dump_command): Likewise.
12319 (add_dump_command): Likewise.
12320 * complaints.c (get_complaints): Likewise.
12321 (find_complaint): Likewise.
12322 * dwarf2-frame.c (execute_cfa_program): Likewise.
12323 * dwarf2read.c (abbrev_table_read_table): Likewise.
12324 * gdbarch.sh: Likewise.
12325 * gdbarch.c: Rebuild.
12326 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12327 * interps.c (interp_new): Likewise.
12328 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12329 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12330 * mi/mi-console.c (mi_console_file_new): Likewise.
12331 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12332 * mi/mi-out.c (mi_out_new): Likewise.
12333 * mi/mi-parse.c (mi_parse): Likewise.
12334 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12335 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12336 * observer.c (xalloc_observer_list_node): Likewise.
12337 * regcache.c (regcache_xmalloc_1): Likewise.
12338 * reggroups.c (reggroup_new): Likewise.
12339 (_initialize_reggroup): Likewise.
12340 * registry.c (register_data_with_cleanup): Likewise.
12341 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12342 * ser-base.c (serial_ttystate): Likewise.
12343 * ser-mingw.c (make_pipe_state): Likewise.
12344 * ser-pipe.c (pipe_open): Likewise.
12345 * serial.c (serial_open): Likewise.
12346 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12347 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12348 (tui_alloc_win_info): Likewise.
12349 (tui_add_content_elements): Likewise.
12350 * tui/tui-file.c (tui_file_new): Likewise.
12351 * tui/tui-out.c (tui_out_new): Likewise.
12352 * ui-file.c (mem_file_new): Likewise.
12353 * ui-out.c (push_level): Likewise.
12354 (make_cleanup_ui_out_end): Likewise.
12355 (append_header_to_list): Likewise.
12356 (ui_out_new): Likewise.
12357 * user-regs.c (user_reg_add_builtin): Likewise.
12358
41bf6aca
TT
123592014-01-13 Tom Tromey <tromey@redhat.com>
12360
12361 * defs.h (XZALLOC): Remove.
12362 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12363 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12364 (get_ada_tasks_inferior_data): Likewise.
12365 * auto-load.c (get_auto_load_pspace_data): Likewise.
12366 * auxv.c (get_auxv_inferior_data): Likewise.
12367 * bfd-target.c (target_bfd_reopen): Likewise.
12368 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12369 (deprecated_insert_raw_breakpoint): Likewise.
12370 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12371 * corelow.c (core_open): Likewise.
12372 * darwin-nat.c (darwin_check_new_threads): Likewise.
12373 (darwin_attach_pid): Likewise.
12374 * dummy-frame.c (dummy_frame_push): Likewise.
12375 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12376 * dwarf2loc.c (allocate_piece_closure): Likewise.
12377 * elfread.c (elf_symfile_segments): Likewise.
12378 * eval.c (ptrmath_type_p): Likewise.
12379 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12380 * gdbtypes.c (alloc_type_arch): Likewise.
12381 (alloc_type_instance): Likewise.
12382 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12383 * inf-child.c (inf_child_can_use_agent): Likewise.
12384 * inflow.c (get_inflow_inferior_data): Likewise.
12385 * infrun.c (save_infcall_suspend_state): Likewise.
12386 * jit.c (jit_reader_load): Likewise.
12387 (get_jit_objfile_data): Likewise.
12388 (get_jit_program_space_data): Likewise.
12389 (jit_object_open_impl): Likewise.
12390 (jit_symtab_open_impl): Likewise.
12391 (jit_block_open_impl): Likewise.
12392 (jit_frame_sniffer): Likewise.
12393 * linux-fork.c (add_fork): Likewise.
12394 * maint.c (make_command_stats_cleanup): Likewise.
12395 * objfiles.c (get_objfile_pspace_data): Likewise.
12396 * opencl-lang.c (struct lval_closure): Likewise.
12397 * osdata.c (osdata_start_osdata): Likewise.
12398 * progspace.c (new_address_space): Likewise.
12399 (add_program_space): Likewise.
12400 * remote-sim.c (get_sim_inferior_data): Likewise.
12401 * sh-tdep.c (sh_gdbarch_init): Likewise.
12402 * skip.c (Ignore): Likewise.
12403 (skip_delete_command): Likewise.
12404 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12405 (library_list_start_library): Likewise.
12406 (solib_aix_current_sos): Likewise.
12407 * solib-darwin.c (get_darwin_info): Likewise.
12408 (darwin_current_sos): Likewise.
12409 * solib-dsbt.c (get_dsbt_info): Likewise.
12410 * solib-ia64-hpux.c (new_so_list): Likewise.
12411 (ia64_hpux_get_solib_linkage_addr): Likewise.
12412 * solib-spu.c (append_ocl_sos): Likewise.
12413 (spu_current_sos): Likewise.
12414 * solib-svr4.c (get_svr4_info): Likewise.
12415 (svr4_keep_data_in_core): Likewise.
12416 (library_list_start_library): Likewise.
12417 (svr4_default_sos): Likewise.
12418 (svr4_read_so_list): Likewise.
12419 * solib-target.c (library_list_start_library): Likewise.
12420 (solib_target_current_sos): Likewise.
12421 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12422 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12423 * symfile.c (default_symfile_segments): Likewise.
12424 * target-descriptions.c (tdesc_data_init): Likewise.
12425 (tdesc_create_reg): Likewise.
12426 (struct tdesc_type *): Likewise.
12427 (tdesc_create_vector): Likewise.
12428 (tdesc_set_struct_size): Likewise.
12429 (struct tdesc_type *): Likewise.
12430 (tdesc_free_feature): Likewise.
12431 (tdesc_create_feature): Likewise.
12432 * windows-nat.c (windows_add_thread): Likewise.
12433 (windows_make_so): Likewise.
12434 * xml-support.c (gdb_xml_body_text): Likewise.
12435 (gdb_xml_create_parser_and_cleanup): Likewise.
12436 (xml_process_xincludes): Likewise.
12437 * xml-syscall.c (allocate_syscalls_info): Likewise.
12438 (syscall_create_syscall_desc): Likewise.
12439
5acfdbae
SDJ
124402014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12441
12442 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12443 function, with code from i386_stap_parse_special_token.
12444 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12445 (i386_stap_parse_special_token): Move code to the two functions
12446 above; simplify it.
12447
0000e5cc
PA
124482014-01-09 Pedro Alves <palves@redhat.com>
12449 Hui Zhu <hui@codesourcery.com>
12450
12451 PR gdb/16101
12452 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12453 bp_err_string. Don't mark the location shlib_disabled if the
12454 error thrown wasn't a generic or memory error. Catch errors
12455 thrown while inserting breakpoints in overlayed code. Output
12456 error message of software breakpoints.
12457 * remote.c (remote_insert_breakpoint): If this breakpoint has
12458 target-side commands but this stub doesn't support Z0 packets,
12459 throw NOT_SUPPORTED_ERROR error.
12460 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12461 * target.h (target_insert_breakpoint): Extend comment.
12462 (target_insert_hw_breakpoint): Add comment.
12463
b7ea362b
PA
124642014-01-08 Pedro Alves <palves@redhat.com>
12465
12466 * remote.c (remote_add_thread): Add threads silently if starting
12467 up.
12468 (remote_notice_new_inferior): If in all-stop, and starting up,
12469 don't call notice_new_inferior.
12470 (get_current_thread): New function, factored out from ...
12471 (add_current_inferior_and_thread): ... this. Adjust.
12472 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12473 found any thread, then select the remote's current thread as GDB's
12474 current thread too.
12475
b7bba001
JB
124762014-01-08 Joel Brobecker <brobecker@adacore.com>
12477
12478 * NEWS: Create a new section for the next release branch.
12479 Rename the section of the current branch, now that it has
12480 been cut.
12481
16dfbded
JB
124822014-01-08 Joel Brobecker <brobecker@adacore.com>
12483
12484 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12485 * version.in: Bump version to 7.7.50.DATE-cvs.
12486
22c90ac1
YQ
124872014-01-08 Yao Qi <yao@codesourcery.com>
12488
12489 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12490 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12491 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12492
d64ad97c
YQ
124932014-01-08 Yao Qi <yao@codesourcery.com>
12494
12495 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12496 return value of bfd_get_filename to symbol_file_add_from_bfd.
12497
f93ba80c
PM
124982014-01-08 Pierre Muller <muller@sourceware.org>
12499
12500 Fix PR16201.
12501 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12502 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12503 to prim_record_mininal_symbol_and_info.
12504 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12505 in call to prim_record_minimal_symbol_and_info.
12506 (read_pe_exported_syms): Set index field of section_data.
12507
a4d9ba85
AP
125082014-01-07 Andrew Pinski <apinski@cavium.com>
12509
12510 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12511 * features/aarch64.c: Regenerate.
12512
1b67eb02
AS
125132014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12514
12515 * target.c (return_null): Define.
12516 (update_current_target): Use it instead of return_zero for
12517 functions that return a pointer.
12518
5e3f4fab
EBM
125192014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12520
12521 * source.c (add_path): Fix check for duplicated paths in the previously
12522 included paths.
12523
e2616788
HK
125242014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12525
12526 * ada-lang.c: Remove duplicated include statements.
12527 * alphabsd-nat.c: Ditto.
12528 * amd64-darwin-tdep.c: Ditto.
12529 * amd64fbsd-nat.c: Ditto.
12530 * auto-load.c: Ditto.
12531 * ax-gdb.c: Ditto.
12532 * breakpoint.c: Ditto.
12533 * dbxread.c: Ditto.
12534 * fork-child.c: Ditto.
12535 * gdb_usleep.c: Ditto.
12536 * i386-darwin-tdep.c: Ditto.
12537 * i386fbsd-nat.c: Ditto.
12538 * infcmd.c: Ditto.
12539 * inferior.c: Ditto.
12540 * jv-lang.c: Ditto.
12541 * linux-nat.c: Ditto.
12542 * linux-tdep.c: Ditto.
12543 * m68kbsd-nat.c: Ditto.
12544 * m68klinux-nat.c: Ditto.
12545 * microblaze-tdep.c: Ditto.
12546 * mips-linux-tdep.c: Ditto.
12547 * mn10300-tdep.c: Ditto.
12548 * nto-tdep.c: Ditto.
12549 * opencl-lang.c: Ditto.
12550 * osdata.c: Ditto.
12551 * printcmd.c: Ditto.
12552 * regcache.c: Ditto.
12553 * remote-m32r-sdi.c: Ditto.
12554 * remote.c: Ditto.
12555 * symfile.c: Ditto.
12556 * symtab.c: Ditto.
12557 * tilegx-linux-nat.c: Ditto.
12558 * tilegx-tdep.c: Ditto.
12559 * tracepoint.c: Ditto.
12560 * valops.c: Ditto.
12561 * vaxbsd-nat.c: Ditto.
12562 * windows-nat.c: Ditto.
12563 * xtensa-tdep.c: Ditto.
12564
bd1f7788
YQ
125652014-01-07 Yao Qi <yao@codesourcery.com>
12566
12567 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12568
79301218
JB
125692014-01-07 Yao Qi <yao@codesourcery.com>
12570 Joel Brobecker <brobecker@adacore.com>
12571
12572 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12573 (pdc_write_regs): Likewise.
12574 (fetch_regs_kernel_thread): Likewise.
12575 (store_regs_kernel_thread): Likewise.
12576
125772014-01-07 Joel Brobecker <brobecker@adacore.com>
12578
12579 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12580 tagged type objects to their actual type.
12581
8e355c5d
JB
125822014-01-07 Joel Brobecker <brobecker@adacore.com>
12583
12584 * ada-valprint.c (print_field_values): Add "language" parameter.
12585 Update calls to print_field_values and print_variant_part.
12586 Pass new parameter "language" in call to val_print instead
12587 of "current_language". Replace call to ada_val_print by call
12588 to val_print.
12589 (print_variant_part): Add "language" parameter.
12590 (ada_val_print_struct_union): Update call to print_field_values.
12591
4fbf5aa5
JB
125922014-01-07 Joel Brobecker <brobecker@adacore.com>
12593
12594 * ada-valprint.c (ui_memcpy): Delete.
12595 (ada_print_floating): Update documentation. Add empty line
12596 between between function documentation and implementation.
12597 Delete variable "buffer". Use ui_file_xstrdup in place of
12598 ui_file_put. Minor adjustments following this change.
12599
71855601
JB
126002014-01-07 Joel Brobecker <brobecker@adacore.com>
12601
12602 * ada-valprint.c (ada_val_print_string): New function,
12603 extracted from ada_val_print_array.
12604 (ada_val_print_array): Replace extracted code by call
12605 to ada_val_print_string followed by a return. Move
12606 "else" branch to the function's top block.
12607
4eb27a30
JB
126082014-01-07 Joel Brobecker <brobecker@adacore.com>
12609
12610 * ada-valprint.c (ada_val_print_array): Move implementation
12611 down. Rename parameter "offset" and "val" into "offset_aligned"
12612 and "original_value" respectively. Add parameter "offset".
12613
34b27950
JB
126142014-01-07 Joel Brobecker <brobecker@adacore.com>
12615
12616 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12617 re-organizing the code. Change the "???" message printed
12618 when target type is a TYPE_CODE_UNDEF into
12619 "<ref to undefined type>".
12620
079e4591
JB
126212014-01-07 Joel Brobecker <brobecker@adacore.com>
12622
12623 * ada-valprint.c (print_record): Delete, implementation inlined...
12624 (ada_val_print_struct_union): ... here. Remove call to
12625 ada_check_typedef in inlined implementation.
12626
8004dfd1
JB
126272014-01-07 Joel Brobecker <brobecker@adacore.com>
12628
12629 * ada-valprint.c (ada_val_print_gnat_array): New function,
12630 extracted from ada_val_print_1;
12631 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12632 (ada_val_print_flt, ada_val_print_struct_union)
12633 (ada_val_print_ref): Likewise.
12634 (ada_val_print_1): Delete variables i and elttype.
12635 Replace extracted-out code by call to corresponding
12636 new functions.
12637
760a2db0
JB
126382014-01-07 Joel Brobecker <brobecker@adacore.com>
12639
12640 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12641
3a92c861
JB
126422014-01-07 Joel Brobecker <brobecker@adacore.com>
12643
12644 * ada-valprint.c (ada_val_print_1): Replace calls to
12645 ada_val_print_1 by calls to val_print.
12646
cd1630f9
JB
126472014-01-07 Joel Brobecker <brobecker@adacore.com>
12648
12649 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12650 Update calls to self accordingly. Replace calls to c_val_print
12651 by calls to val_print.
12652
bdf779a0
JB
126532014-01-07 Joel Brobecker <brobecker@adacore.com>
12654
12655 * ada-valprint.c (print_record): Delete declaration.
12656 (adjust_type_signedness, ada_val_print_1): Likewise.
12657 (ada_val_print): Move function implementation down.
12658 (print_variant_part, print_field_values, print_record):
12659 Move function implementation up.
12660
c0d48811
JB
126612014-01-07 Joel Brobecker <brobecker@adacore.com>
12662
12663 * python/py-type.c (typy_get_name): New function.
12664 (type_object_getset): Add entry for attribute "name".
12665 * NEWS: Add entry mentioning this new attribute.
12666
c26e9cbb
YQ
126672014-01-07 Yao Qi <yao@codesourcery.com>
12668
12669 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12670 statement.
12671
0cc6f43d
YQ
126722014-01-07 Yao Qi <yao@codesourcery.com>
12673
12674 * gnu-nat.c (info_port_rights): Add qualifier const to
12675 argument args.
12676
eec03155
YQ
126772014-01-07 Yao Qi <yao@codesourcery.com>
12678
12679 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12680
f04a82ef
YQ
126812014-01-07 Yao Qi <yao@codesourcery.com>
12682
12683 * gnu-nat.c (make_inf) Update declaration.
12684 (make_inf): Make it static.
12685 (inf_set_traced): Likewise.
12686 (inf_port_to_thread, inf_task_died_status): Likewise.
12687
d57dda0a
YQ
126882014-01-07 Yao Qi <yao@codesourcery.com>
12689
12690 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12691
3aa8c969
YQ
126922014-01-07 Yao Qi <yao@codesourcery.com>
12693
12694 * gnu-nat.c (_initialize_gnu_nat): Declare.
12695
94123b4f
YQ
126962014-01-07 Yao Qi <yao@codesourcery.com>
12697
12698 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12699 'enum bfd_endian'.
12700 (struct gdbarch_info) <byte_order>: Change type to
12701 'enum bfd_endian'.
12702 <byte_order_for_code>: Likewise.
12703 * gdbarch.c, gdbarch.h: Regenerated.
12704
dc81d70a
TT
127052014-01-06 Sasha Smundak <asmundak@google.com>
12706
12707 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12708
cc2f3c35
TT
127092014-01-06 Tom Tromey <tromey@redhat.com>
12710
12711 * doublest.c (convert_doublest_to_floatformat): Use const, not
12712 CONST.
12713 * somread.c (som_symtab_read): Likewise.
12714
adcf2eed
HZ
127152014-01-07 Hui Zhu <hui@codesourcery.com>
12716
12717 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12718 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12719 (gdb_bfd_fopen): Ditto.
12720 (gdb_bfd_openr): Ditto.
12721 (gdb_bfd_openw): Ditto.
12722 (gdb_bfd_openr_iovec): Ditto.
12723 (gdb_bfd_fdopenr): Ditto.
12724 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12725 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12726 with xstrdup.
12727 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12728 with xstrdup.
12729 * symfile-mem.c (symbol_file_add_from_memory): Removed
12730 gdb_bfd_stash_filename.
12731
50722198
DE
127322014-01-03 Doug Evans <dje@google.com>
12733
12734 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12735 output.
12736
2fa4b862
JB
127372014-01-01 Joel Brobecker <brobecker@adacore.com>
12738
12739 Update year range in copyright notice of all files.
12740
28498c42
JB
127412014-01-01 Joel Brobecker <brobecker@adacore.com>
12742
12743 * top.c (print_gdb_version): Set copyright year to 2014.
12744
7b6e1046
JB
127452014-01-01 Joel Brobecker <brobecker@adacore.com>
12746
12747 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12748
df96af55 12749For older changes see ChangeLog-2013.
c906108c
SS
12750\f
12751Local Variables:
12752mode: change-log
12753left-margin: 8
12754fill-column: 74
12755version-control: never
57da7796 12756coding: utf-8
c906108c 12757End:
This page took 2.163758 seconds and 4 git commands to generate.