Fix terminal state corruption when starting a program from within TUI
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9debeba0
DE
12014-08-25 Doug Evans <dje@google.com>
2
3 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4 Pass NULL instead of 0 for context pointer.
5
428fc5fc
YQ
62014-08-25 Yao Qi <yao@codesourcery.com>
7
8 * dwarf2read.c: Fix grammatical error.
9
cdc07690
YQ
102014-08-24 Yao Qi <yao@codesourcery.com>
11
12 * dwarf2read.c (scan_partial_symbols): Update comments.
13 Rename argument 'need_pc' with 'set_addrmap'.
14 (add_partial_namespace): Rename argument 'need_pc' with
15 'set_addrmap'.
16 (add_partial_module): Likewise.
17 (add_partial_subprogram): Likewise. Update comments.
18 (dwarf2_name): Fix typo.
19
a05a36a5
DE
202014-08-22 Doug Evans <dje@google.com>
21
22 PR 17276
23 * dwarf2read.c (dwarf_record_line_p): New function.
24 (dwarf_decode_lines_1): Ignore subsequent line number entries
25 for the same line if any entry had a non-zero discriminator.
26
252a6764
DE
272014-08-22 Doug Evans <dje@google.com>
28
29 * buildsym.h (record_line_ftype): New typedef.
30 (record_line): Use it.
31 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
32 (dwarf_decode_lines_1): Call them.
33
510db052
YQ
342014-08-22 Yao Qi <yao@codesourcery.com>
35
36 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
37 (ctf_end): Remove code.
38
22fd09ae
JK
392014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
42 (linux_make_corefile_notes): call update_thread_list, protected against
43 exceptions.
44
656e8868
PA
452014-08-21 Pedro Alves <palves@redhat.com>
46
47 * infcmd.c (attach_command): Remove comment.
48
de589d04
WN
492014-08-21 Bin Cheng <bin.cheng@arm.com>
50
51 * aarch64-linux-nat.c (dr_changed_t): Change the type from
52 unsigned LONGEST to ULONGEST.
53
2a31c623
PA
542014-08-20 Pedro Alves <palves@redhat.com>
55
56 * Makefile.in (check-read1): New rule.
57
d36430db
JB
582014-08-20 Joel Brobecker <brobecker@adacore.com>
59
60 * value.c (value_from_contents_and_address): Strip resolved_type's
61 typedef layers before checking its TYPE_DATA_LOCATION.
62
000339af
PA
632014-08-20 Pedro Alves <palves@redhat.com>
64
65 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
66
5f52445b
YQ
672014-08-20 Yao Qi <yao@codesourcery.com>
68
69 * amd64-tdep.c (amd64_classify): Add a blank line after the
70 example. Move "*/" to a new line.
71 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
72 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
73 * dwarf2read.c (psymtab_include_file_name): Likewise.
74
9a0dc9e3
PA
752014-08-19 Andrew Burgess <aburgess@broadcom.com>
76 Pedro Alves <palves@redhat.com>
77
78 PR symtab/14604
79 PR symtab/14605
80 * ada-lang.c (coerce_unspec_val_to_type): Use
81 value_contents_copy_raw.
82 * ada-valprint.c (val_print_packed_array_elements): Adjust.
83 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
84 * cp-valprint.c (cp_print_value_fields): Let the common printing
85 code handle optimized out values.
86 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
87 * d-valprint.c (dynamic_array_type): Use
88 value_bits_any_optimized_out.
89 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
90 check_any_valid fields.
91 (check_pieced_value_bits): Delete and inline ...
92 (check_pieced_synthetic_pointer): ... here.
93 (check_pieced_value_validity): Delete.
94 (check_pieced_value_invalid): Delete.
95 (pieced_value_funcs): Remove check_validity and check_any_valid
96 fields.
97 (read_pieced_value): Use mark_value_bits_optimized_out.
98 (write_pieced_value): Switch to use
99 mark_value_bytes_optimized_out.
100 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
101 of assuming the whole value is optimized out.
102 * findvar.c (read_frame_register_value): Remove special handling
103 of optimized out registers.
104 (value_from_register): Use mark_value_bytes_optimized_out.
105 * frame-unwind.c (frame_unwind_got_optimized): Use
106 mark_value_bytes_optimized_out.
107 * jv-valprint.c (java_value_print): Adjust.
108 (java_print_value_fields): Let the common printing code handle
109 optimized out values.
110 * mips-tdep.c (mips_print_register): Remove special handling of
111 optimized out registers.
112 * opencl-lang.c (lval_func_check_validity): Delete.
113 (lval_func_check_any_valid): Delete.
114 (opencl_value_funcs): Remove check_validity and check_any_valid
115 fields.
116 * p-valprint.c (pascal_object_print_value_fields): Let the common
117 printing code handle optimized out values.
118 * stack.c (read_frame_arg): Remove special handling of optimized
119 out values. Fetch both VAL and ENTRYVAL before comparing
120 contents. Adjust to value_available_contents_eq rename.
121 * valprint.c (valprint_check_validity)
122 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
123 (val_print_array_elements): Adjust.
124 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
125 (value_bits_any_optimized_out): New function.
126 (value_entirely_covered_by_range_vector): New function, factored
127 out from value_entirely_unavailable.
128 (value_entirely_unavailable): Reimplement.
129 (value_entirely_optimized_out): New function.
130 (insert_into_bit_range_vector): New function, factored out from
131 mark_value_bits_unavailable.
132 (mark_value_bits_unavailable): Reimplement.
133 (struct ranges_and_idx): New struct.
134 (find_first_range_overlap_and_match): New function, factored out
135 from value_available_contents_bits_eq.
136 (value_available_contents_bits_eq): Rename to ...
137 (value_contents_bits_eq): ... this. Check both unavailable
138 contents and optimized out contents.
139 (value_available_contents_eq): Rename to ...
140 (value_contents_eq): ... this.
141 (allocate_value_lazy): Remove reference to the old optimized_out
142 boolean.
143 (allocate_optimized_out_value): Use
144 mark_value_bytes_optimized_out.
145 (require_not_optimized_out): Adjust to check whether the
146 optimized_out vec is empty.
147 (ranges_copy_adjusted): New function, factored out from
148 value_contents_copy_raw.
149 (value_contents_copy_raw): Also copy the optimized out ranges.
150 Assert the destination ranges aren't optimized out.
151 (value_contents_copy): Update comment, remove call to
152 require_not_optimized_out.
153 (value_contents_equal): Adjust to check whether the optimized_out
154 vec is empty.
155 (set_value_optimized_out, value_optimized_out_const): Delete.
156 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
157 New functions.
158 (value_entirely_optimized_out, value_bits_valid): Delete.
159 (value_copy): Take a VEC copy of the 'optimized_out' field.
160 (value_primitive_field): Remove special handling of optimized out.
161 (value_fetch_lazy): Assert that lazy values have no unavailable
162 regions. Use value_bits_any_optimized_out. Remove some special
163 handling for optimized out values.
164 * value.h: Add intro comment about <optimized out> and
165 <unavailable>.
166 (struct lval_funcs): Remove check_validity and check_any_valid
167 fields.
168 (set_value_optimized_out, value_optimized_out_const): Remove.
169 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
170 New declarations.
171 (value_bits_any_optimized_out): New declaration.
172 (value_bits_valid): Delete declaration.
173 (value_available_contents_eq): Rename to ...
174 (value_contents_eq): ... this, and extend comments.
175
6694c411
JK
1762014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
177
178 Fix -fsanitize=address on unreadable inferior strings.
179 * valprint.c (val_print_string): Fix access before BUFFER.
180
89a1c21a
SM
1812014-08-19 Simon Marchi <simon.marchi@ericsson.com>
182
183 * target.c (target_struct_size): Remove.
184 (target_struct_allocsize): Remove.
185 (DEFAULT_ALLOCSIZE): Remove.
186 (target_ops_p): New typedef.
187 (DEF_VEC_P (target_ops_p)): New vector type.
188 (target_structs): Change type to VEC (target_ops_p).
189 (add_target_with_completer): Replace "push" code by VEC_safe_push.
190 (find_default_run_target): Rewrite for loop following changes to
191 target_structs.
192
cb417230
JB
1932014-08-19 Joel Brobecker <brobecker@adacore.com>
194
195 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
196 Adjust code accordingly. Adjust function description comment.
197
817e0957
YQ
1982014-08-19 Yao Qi <yao@codesourcery.com>
199
200 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
201 types.
202
2974be62
AM
2032014-08-19 Alan Modra <amodra@gmail.com>
204
205 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
206 * config.in: Regenerate.
207 * configure: Regenerate.
208
34abf635
GB
2092014-08-19 Tom Tromey <tromey@redhat.com>
210 Gary Benson <gbenson@redhat.com>
211
212 * common/common-debug.h: New file.
213 * common/common-debug.c: Likewise.
214 * debug.c: Likewise.
215 * Makefile.in (SFILES): Add common/common-debug.c.
216 (HFILES_NO_SRCDIR): Add common/common-debug.h.
217 (COMMON_OBS): Add common-debug.o and debug.o.
218 (common-debug.o): New rule.
219 * common/common-defs.h: Include common-debug.h.
220 * common/agent.c (debug_agent_printf): New function.
221 (DEBUG_AGENT): Redefine.
222 * nat/i386-dregs.c (debug_printf): Undefine.
223
f6e94d78
GB
2242014-08-19 Gary Benson <gbenson@redhat.com>
225
226 * common/common-defs.h: Include print-utils.h.
227 * utils.h: Do not include print-utils.h.
228
9239eeab
GB
2292014-08-19 Tom Tromey <tromey@redhat.com>
230 Gary Benson <gbenson@redhat.com>
231
232 * common/common-types.h: New file.
233 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
234 * common/common-defs.h: Include common-types.h.
235 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
236 (ULONGEST): Remove.
237
ef87c8bb
GB
2382014-08-19 Tom Tromey <tromey@redhat.com>
239 Gary Benson <gbenson@redhat.com>
240
241 * common/errors.h: New file.
242 * common/errors.c: Likewise.
243 * Makefile.in (SFILES): Add common/errors.c.
244 (HFILES_NO_SRCDIR): Add common/errors.h.
245 (COMMON_OBS): Add errors.o.
246 (errors.o): New rule.
247 * common/common-defs.h: Include errors.h.
248 * utils.h (perror_with_name, error, verror, warning, vwarning):
249 Don't declare.
250 * common/common-utils.h: (malloc_failure, internal_error):
251 Likewise.
252
196a707b
GB
2532014-08-19 Gary Benson <gbenson@redhat.com>
254
255 * utils.c (internal_vproblem): Always print the message.
256
ded4fc8f
DE
2572014-08-18 Doug Evans <dje@google.com>
258
259 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
260
950c97d8
JB
2612014-08-18 Joel Brobecker <brobecker@adacore.com>
262
263 * ada-typeprint.c (type_is_full_subrange_of_target_type):
264 Return 0 if TYPE is dynamic.
265 (print_range): Add handling of dynamic ranges.
266
3cdcd0ce
JB
2672014-08-18 Keven Boell <keven.boell@intel.com>
268 Joel Brobecker <brobecker@adacore.com>
269
270 * gdbtypes.h (struct main_type): Add field "data_location".
271 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
272 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
273 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
274 a dynamic data location.
275 (resolve_dynamic_type): Add DW_AT_data_location handling.
276 (copy_recursive, copy_type): Copy the data_location information
277 when present.
278 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
279 * value.c (value_from_contents_and_address): Add
280 DW_AT_data_location handling.
281
08412b07
JB
2822014-08-18 Keven Boell <keven.boell@intel.com>
283 Joel Brobecker <brobecker@adacore.com>
284
285 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
286 field "get_object_address".
287 * dwarf2expr.c (execute_stack_op): Add handling for
288 DW_OP_push_object_address.
289 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
290 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
291 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
292 (dwarf_expr_get_obj_addr): New function.
293 (dwarf_expr_ctx_funcs): Add get_object_address field.
294 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
295 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
296 (dwarf2_evaluate_property): Add parameter "address". Use it.
297 (needs_get_obj_addr): New function.
298 (needs_frame_ctx_funcs): Add get_object_address field.
299 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
300 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
301 (resolve_dynamic_array): Likewise.
302
84754697
JB
3032014-08-18 Joel Brobecker <brobecker@adacore.com>
304
305 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
306 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
307 fixed value for records and unions for which some GNAT encodings
308 are present.
309
da5c522f
JB
3102014-08-18 Joel Brobecker <brobecker@adacore.com>
311
312 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
313 rewrite to avoid "else if" and "else" constructs. Should be
314 a no-op in practice.
315
0d72a7c3
JB
3162014-08-18 Joel Brobecker <brobecker@adacore.com>
317
318 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
319 of lexical block.
320
e66d4446
SC
3212014-08-15 Siva Chandra Reddy <sivachandra@google.com>
322
323 PR c++/17132
324 * eval.c: Update all calls to find_overload_match.
325 * valarith.c: Likewise.
326 (value_user_defined_cpp_op, value_user_defined_op): New
327 argument NOSIDE. Update all callers.
328 * valops.c (find_overload_match): New argument NOSIDE.
329 * value.h (find_overload_match): Update signature.
330
940df408
SC
3312014-08-15 Siva Chandra Reddy <sivachandra@google.com>
332
333 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
334 'items' methods instead of 'iteritems' method on dictionaries.
335
699ca60a
DE
3362014-08-15 Doug Evans <dje@google.com>
337
338 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
339 closer to use.
340
37780ee5
DE
3412014-08-15 Doug Evans <dje@google.com>
342
343 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
344
0ad93d4f
DE
3452014-08-15 Doug Evans <dje@google.com>
346
347 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
348
20d8c372
DE
3492014-08-15 Doug Evans <dje@google.com>
350
351 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
352 unused.
353
cb039ba4
EZ
3542014-08-15 Eli Zaretskii <eliz@gnu.org>
355
356 * dcache.h: Include target.h, to avoid compile time warnings.
357
eb7a547a
JB
3582014-08-15 Joel Brobecker <brobecker@adacore.com>
359
360 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
361 frame_info" partial declaration.
362 * gdbarch.h: Regenerate.
363
783cecc8
YQ
3642014-08-15 Yao Qi <yao@codesourcery.com>
365
366 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
367 Add parameter 'decode_for_pst_p'. Callers update.
368
65c749e7
YQ
3692014-08-13 Yao Qi <yao@codesourcery.com>
370
371 PR build/17104
372 * configure.ac: Use local variable 'pos'.
373 * configure: Regenerated.
374
d769e349
DE
3752014-08-11 Doug Evans <dje@google.com>
376
377 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
378 message, it is redundant with "Reading symbols from ..." message.
379
24f1235e
DE
3802014-08-10 Doug Evans <xdje42@gmail.com>
381
382 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
383
dcd2e6ef
YQ
3842014-08-09 Yao Qi <yao@codesourcery.com>
385
386 PR remote/9053
387 * remote.c (remote_xfer_partial): Remove dead code.
388
070bdf0b
AA
3892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
390
391 * ia64-linux-tdep.c: Include "regset.h".
392 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
393 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
394 (ia64_linux_supply_fpregset): New function.
395 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
396 (ia64_linux_regset_from_core_section): New function.
397 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
398 method.
399
08f9f542
AA
4002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
401
402 * m68klinux-tdep.c: Include "regset.h".
403 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
404 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
405 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
406 (m68k_linux_regset_from_core_section): New function.
407 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
408 method.
409
8f1cee41
AA
4102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
411
412 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
413 function. Move logic to...
414 (tilegx_linux_regmap): ... this new register map.
415 (tilegx_linux_regset): Refer to register map, replace supply
416 method by regcache_supply_regset, and add collect method.
417 * tilegx-tdep.h (enum tilegx_regnum): New enum value
418 TILEGX_FIRST_EASY_REGNUM.
419
c5741217
AA
4202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
421
422 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
423 that calls regcache_supply_regset and handles the EPC register
424 separately. Move main logic to...
425 (score7_linux_gregmap): ... this new register map.
426 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
427 (score7_linux_gregset): Refer to register map. Add collect method.
428 (score7_linux_regset_from_core_section): Replace
429 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
430 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
431 (struct regset): Delete unused forward declaraction.
432 (struct pt_regs): Delete structure definition.
433 (elf_gregset_t): Delete typedef.
434
81580573
AA
4352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
436
437 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
438 (nios2_core_regset): Add collect method.
439
ba199d7d
AA
4402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
441
442 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
443 platform-independent and don't write to read-only input buffer.
444 (m32r_linux_collect_gregset): New function.
445 (m32r_linux_gregset): Add collect method.
446
0006a9da
AA
4472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
448
449 * hppa-linux-tdep.c (greg_map): Rename to...
450 (hppa_linux_gregmap): ... this. Also convert to
451 regcache_map_entry format.
452 (hppa_linux_supply_regset): Delete function.
453 (hppa_linux_supply_fpregset): Delete function. Move logic to...
454 (hppa_linux_fpregmap): ... this new register map.
455 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
456 register map, replace supply method by regcache_supply_regset, and
457 add collect method regcache_collect_regset.
458
901e1b23
AA
4592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
460
461 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
462 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
463 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
464 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
465 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
466 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
467 (frv_linux_supply_gregset): Replace main logic by call to
468 regcache_supply_regset, but keep clearing gr32-gr63.
469 (frv_linux_supply_fpregset): Delete function.
470 (frv_linux_gregset): Refer to appropriate register map and add
471 regcache_collect_regset as the collect method.
472 (frv_linux_fpregset): Likewise. Also exchange the supply method
473 by regcache_supply_regset.
474
1d6e7555
AA
4752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
476
477 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
478 by call to alpha_supply_int_regs.
479 (alpha_linux_collect_gregset): New function.
480 (alpha_linux_supply_fpregset): Replace logic by call to
481 alpha_supply_fp_regs.
482 (alpha_linux_collect_fpregset): New function.
483 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
484
d4d793bf
AA
4852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
486
487 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
488 by call to regcache_collect_regset.
489 (supply_gregset, supply_fpregset): Call regcache_supply_regset
490 instead of aarch64_linux_supply_gregset/_fpregset.
491 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
492 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
493 header file instead.
494 (aarch64_linux_supply_gregset, supply_gregset_from_core)
495 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
496 functions. Move logic to ...
497 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
498 register maps.
499 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
500 refer to new register maps, replace *_regset_from_core by
501 regcache_supply_regset, and also use regcache_collect_regset.
502 * aarch64-linux-tdep.h: Include "regset.h".
503 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
504 Delete prototypes.
505 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
506 macros, moved from C source file.
507 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
508 variable declarations.
509
99b7da5d
AA
5102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
511
512 * s390-linux-nat.c: Include "regset.h".
513 (regmap_gregset): Delete macro.
514 (s390_64_regmap_gregset): New register map for
515 regcache_supply/_collect_regset.
516 (s390_64_gregset): New regset.
517 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
518 (regmap_fpregset): Delete macro.
519 (s390_native_supply, s390_native_collect): Delete functions.
520 (supply_gregset, fill_gregset): Replace s390-specific regmap
521 handling by a call to regcache_supply/_collect_regset.
522 (supply_fpregset, fill_fpregset): Call regcache_supply/
523 _collect_regset instead of s390_native_supply/_collect.
524 (fetch_regset, store_regset): Likewise. Also change the last
525 parameter to a regset instead of a regmap.
526 (s390_linux_fetch_inferior_registers)
527 (390_linux_store_inferior_registers): Adjust last parameter in
528 calls to fetch_regset and store_regset.
529 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
530 (s390_gregmap): ... this. Also make static const and convert to
531 regcache_map_entry format.
532 (s390x_regmap_gregset): Delete.
533 (s390_regmap_fpregset): Rename to...
534 (s390_fpregmap): ... this. Make static const and convert to
535 regcache_map_entry format.
536 (s390_regmap_upper, s390_regmap_last_break)
537 (s390x_regmap_last_break, s390_regmap_system_call)
538 (s390_regmap_tdb): Likewise.
539 (s390_supply_regset, s390_collect_regset): Remove functions.
540 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
541 s390_supply_regset.
542 (s390_gregset, s390_fpregset, s390_upper_regset)
543 (s390_last_break_regset, s390x_last_break_regset)
544 (s390_system_call_regset, s390_tdb_regset): Make global and
545 replace s390_supply/_collect_regset by regcache_supply/
546 _collect_regset.
547 (s390x_gregset): Delete.
548 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
549 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
550 (s390_regmap_fpregset, s390_regmap_last_break)
551 (s390x_regmap_last_break, s390_regmap_system_call)
552 (s390_regmap_tdb): Delete global variable declarations.
553 (s390_gregset, s390_fpregset, s390_last_break_regset)
554 (s390x_last_break_regset, s390_system_call_regset)
555 (s390_tdb_regset): New global variable declarations.
556
0b309272
AA
5572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
558
559 * regcache.c: Include "regset.h".
560 (regcache_transfer_regset): New local function.
561 (regcache_supply_regset, regcache_collect_regset): New functions.
562 * regcache.h (struct regcache_map_entry): New structure.
563 (REGCACHE_MAP_SKIP): New enum value.
564 (regcache_supply_regset, regcache_collect_regset): New prototypes.
565
7fefa8d7
AA
5662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
567
568 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
569 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
570 (ppc_linux_collect_gregset ): Likewise.
571 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
572 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
573 (ppc_collect_vrregset): Likewise.
574 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
575 Likewise.
576
96c4f946
YQ
5772014-08-07 Yao Qi <yao@codesourcery.com>
578
579 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
580 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
581 * remote.c (remote_read_bytes): Likewise.
582
fffbe6a8
YQ
5832014-08-07 Yao Qi <yao@codesourcery.com>
584
585 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
586
5ee8a82c
YQ
5872014-08-07 Yao Qi <yao@codesourcery.com>
588
589 PR remote/17230
590 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
591 TARGET_XFER_OK instead of 0.
592
bb974a24
GB
5932014-08-07 Gary Benson <gbenson@redhat.com>
594
595 * common/common-defs.h: Include errno.h.
596 * defs.h: Do not include errno.h.
597 * ada-typeprint.c: Likewise.
598 * c-typeprint.c: Likewise.
599 * core-regset.c: Likewise.
600 * corefile.c: Likewise.
601 * corelow.c: Likewise.
602 * event-loop.c: Likewise.
603 * f-typeprint.c: Likewise.
604 * gnu-nat.c: Likewise.
605 * go32-nat.c: Likewise.
606 * i386gnu-nat.c: Likewise.
607 * m2-typeprint.c: Likewise.
608 * nat/linux-btrace.c: Likewise.
609 * p-typeprint.c: Likewise.
610 * procfs.c: Likewise.
611 * remote-sim.c: Likewise.
612 * rs6000-nat.c: Likewise.
613 * target.c: Likewise.
614 * typeprint.c: Likewise.
615 * ui-file.c: Likewise.
616 * valops.c: Likewise.
617 * valprint.c: Likewise.
618
6d3d12eb
GB
6192014-08-07 Gary Benson <gbenson@redhat.com>
620
621 * common/common-defs.h: Include string.h.
622 * aarch64-tdep.c: Do not include string.h.
623 * ada-exp.y: Likewise.
624 * ada-lang.c: Likewise.
625 * ada-lex.l: Likewise.
626 * ada-typeprint.c: Likewise.
627 * ada-valprint.c: Likewise.
628 * aix-thread.c: Likewise.
629 * alpha-linux-tdep.c: Likewise.
630 * alpha-mdebug-tdep.c: Likewise.
631 * alpha-nat.c: Likewise.
632 * alpha-osf1-tdep.c: Likewise.
633 * alpha-tdep.c: Likewise.
634 * alphanbsd-tdep.c: Likewise.
635 * amd64-dicos-tdep.c: Likewise.
636 * amd64-linux-tdep.c: Likewise.
637 * amd64-nat.c: Likewise.
638 * amd64-sol2-tdep.c: Likewise.
639 * amd64fbsd-tdep.c: Likewise.
640 * amd64obsd-tdep.c: Likewise.
641 * arch-utils.c: Likewise.
642 * arm-linux-nat.c: Likewise.
643 * arm-linux-tdep.c: Likewise.
644 * arm-tdep.c: Likewise.
645 * arm-wince-tdep.c: Likewise.
646 * armbsd-tdep.c: Likewise.
647 * armnbsd-nat.c: Likewise.
648 * armnbsd-tdep.c: Likewise.
649 * armobsd-tdep.c: Likewise.
650 * avr-tdep.c: Likewise.
651 * ax-gdb.c: Likewise.
652 * ax-general.c: Likewise.
653 * bcache.c: Likewise.
654 * bfin-tdep.c: Likewise.
655 * breakpoint.c: Likewise.
656 * build-id.c: Likewise.
657 * buildsym.c: Likewise.
658 * c-exp.y: Likewise.
659 * c-lang.c: Likewise.
660 * c-typeprint.c: Likewise.
661 * c-valprint.c: Likewise.
662 * charset.c: Likewise.
663 * cli-out.c: Likewise.
664 * cli/cli-cmds.c: Likewise.
665 * cli/cli-decode.c: Likewise.
666 * cli/cli-dump.c: Likewise.
667 * cli/cli-interp.c: Likewise.
668 * cli/cli-logging.c: Likewise.
669 * cli/cli-script.c: Likewise.
670 * cli/cli-setshow.c: Likewise.
671 * cli/cli-utils.c: Likewise.
672 * coffread.c: Likewise.
673 * common/agent.c: Likewise.
674 * common/buffer.c: Likewise.
675 * common/buffer.h: Likewise.
676 * common/common-utils.c: Likewise.
677 * common/filestuff.c: Likewise.
678 * common/filestuff.c: Likewise.
679 * common/format.c: Likewise.
680 * common/print-utils.c: Likewise.
681 * common/rsp-low.c: Likewise.
682 * common/signals.c: Likewise.
683 * common/vec.h: Likewise.
684 * common/xml-utils.c: Likewise.
685 * core-regset.c: Likewise.
686 * corefile.c: Likewise.
687 * corelow.c: Likewise.
688 * cp-abi.c: Likewise.
689 * cp-name-parser.y: Likewise.
690 * cp-support.c: Likewise.
691 * cp-valprint.c: Likewise.
692 * cris-tdep.c: Likewise.
693 * d-exp.y: Likewise.
694 * darwin-nat.c: Likewise.
695 * dbxread.c: Likewise.
696 * dcache.c: Likewise.
697 * demangle.c: Likewise.
698 * dicos-tdep.c: Likewise.
699 * disasm.c: Likewise.
700 * doublest.c: Likewise.
701 * dsrec.c: Likewise.
702 * dummy-frame.c: Likewise.
703 * dwarf2-frame.c: Likewise.
704 * dwarf2loc.c: Likewise.
705 * dwarf2read.c: Likewise.
706 * elfread.c: Likewise.
707 * environ.c: Likewise.
708 * eval.c: Likewise.
709 * event-loop.c: Likewise.
710 * exceptions.c: Likewise.
711 * exec.c: Likewise.
712 * expprint.c: Likewise.
713 * f-exp.y: Likewise.
714 * f-lang.c: Likewise.
715 * f-typeprint.c: Likewise.
716 * f-valprint.c: Likewise.
717 * fbsd-nat.c: Likewise.
718 * findcmd.c: Likewise.
719 * findvar.c: Likewise.
720 * fork-child.c: Likewise.
721 * frame.c: Likewise.
722 * frv-linux-tdep.c: Likewise.
723 * frv-tdep.c: Likewise.
724 * gdb.c: Likewise.
725 * gdb_bfd.c: Likewise.
726 * gdbarch.c: Likewise.
727 * gdbarch.sh: Likewise.
728 * gdbtypes.c: Likewise.
729 * gnu-nat.c: Likewise.
730 * gnu-v2-abi.c: Likewise.
731 * gnu-v3-abi.c: Likewise.
732 * go-exp.y: Likewise.
733 * go-lang.c: Likewise.
734 * go32-nat.c: Likewise.
735 * guile/guile.c: Likewise.
736 * guile/scm-auto-load.c: Likewise.
737 * hppa-hpux-tdep.c: Likewise.
738 * hppa-linux-nat.c: Likewise.
739 * hppanbsd-tdep.c: Likewise.
740 * hppaobsd-tdep.c: Likewise.
741 * i386-cygwin-tdep.c: Likewise.
742 * i386-dicos-tdep.c: Likewise.
743 * i386-linux-tdep.c: Likewise.
744 * i386-nto-tdep.c: Likewise.
745 * i386-sol2-tdep.c: Likewise.
746 * i386-tdep.c: Likewise.
747 * i386bsd-tdep.c: Likewise.
748 * i386gnu-nat.c: Likewise.
749 * i386nbsd-tdep.c: Likewise.
750 * i386obsd-tdep.c: Likewise.
751 * i387-tdep.c: Likewise.
752 * ia64-libunwind-tdep.c: Likewise.
753 * ia64-linux-nat.c: Likewise.
754 * inf-child.c: Likewise.
755 * inf-ptrace.c: Likewise.
756 * inf-ttrace.c: Likewise.
757 * infcall.c: Likewise.
758 * infcmd.c: Likewise.
759 * inflow.c: Likewise.
760 * infrun.c: Likewise.
761 * interps.c: Likewise.
762 * iq2000-tdep.c: Likewise.
763 * irix5-nat.c: Likewise.
764 * jv-exp.y: Likewise.
765 * jv-lang.c: Likewise.
766 * jv-typeprint.c: Likewise.
767 * jv-valprint.c: Likewise.
768 * language.c: Likewise.
769 * linux-fork.c: Likewise.
770 * linux-nat.c: Likewise.
771 * lm32-tdep.c: Likewise.
772 * m2-exp.y: Likewise.
773 * m2-typeprint.c: Likewise.
774 * m32c-tdep.c: Likewise.
775 * m32r-linux-nat.c: Likewise.
776 * m32r-linux-tdep.c: Likewise.
777 * m32r-rom.c: Likewise.
778 * m32r-tdep.c: Likewise.
779 * m68hc11-tdep.c: Likewise.
780 * m68k-tdep.c: Likewise.
781 * m68kbsd-tdep.c: Likewise.
782 * m68klinux-nat.c: Likewise.
783 * m68klinux-tdep.c: Likewise.
784 * m88k-tdep.c: Likewise.
785 * machoread.c: Likewise.
786 * macrocmd.c: Likewise.
787 * main.c: Likewise.
788 * mdebugread.c: Likewise.
789 * mem-break.c: Likewise.
790 * memattr.c: Likewise.
791 * memory-map.c: Likewise.
792 * mep-tdep.c: Likewise.
793 * mi/mi-cmd-break.c: Likewise.
794 * mi/mi-cmd-disas.c: Likewise.
795 * mi/mi-cmd-env.c: Likewise.
796 * mi/mi-cmd-stack.c: Likewise.
797 * mi/mi-cmd-var.c: Likewise.
798 * mi/mi-cmds.c: Likewise.
799 * mi/mi-console.c: Likewise.
800 * mi/mi-getopt.c: Likewise.
801 * mi/mi-interp.c: Likewise.
802 * mi/mi-main.c: Likewise.
803 * mi/mi-parse.c: Likewise.
804 * microblaze-rom.c: Likewise.
805 * microblaze-tdep.c: Likewise.
806 * mingw-hdep.c: Likewise.
807 * minidebug.c: Likewise.
808 * minsyms.c: Likewise.
809 * mips-irix-tdep.c: Likewise.
810 * mips-linux-tdep.c: Likewise.
811 * mips-tdep.c: Likewise.
812 * mips64obsd-tdep.c: Likewise.
813 * mipsnbsd-tdep.c: Likewise.
814 * mipsread.c: Likewise.
815 * mn10300-linux-tdep.c: Likewise.
816 * mn10300-tdep.c: Likewise.
817 * monitor.c: Likewise.
818 * moxie-tdep.c: Likewise.
819 * mt-tdep.c: Likewise.
820 * nat/linux-btrace.c: Likewise.
821 * nat/linux-osdata.c: Likewise.
822 * nat/linux-procfs.c: Likewise.
823 * nat/linux-ptrace.c: Likewise.
824 * nat/linux-waitpid.c: Likewise.
825 * nbsd-tdep.c: Likewise.
826 * nios2-linux-tdep.c: Likewise.
827 * nto-procfs.c: Likewise.
828 * nto-tdep.c: Likewise.
829 * objc-lang.c: Likewise.
830 * objfiles.c: Likewise.
831 * opencl-lang.c: Likewise.
832 * osabi.c: Likewise.
833 * osdata.c: Likewise.
834 * p-exp.y: Likewise.
835 * p-lang.c: Likewise.
836 * p-typeprint.c: Likewise.
837 * parse.c: Likewise.
838 * posix-hdep.c: Likewise.
839 * ppc-linux-nat.c: Likewise.
840 * ppc-sysv-tdep.c: Likewise.
841 * ppcfbsd-tdep.c: Likewise.
842 * ppcnbsd-tdep.c: Likewise.
843 * ppcobsd-tdep.c: Likewise.
844 * printcmd.c: Likewise.
845 * procfs.c: Likewise.
846 * prologue-value.c: Likewise.
847 * python/py-auto-load.c: Likewise.
848 * python/py-gdb-readline.c: Likewise.
849 * ravenscar-thread.c: Likewise.
850 * regcache.c: Likewise.
851 * registry.c: Likewise.
852 * remote-fileio.c: Likewise.
853 * remote-m32r-sdi.c: Likewise.
854 * remote-mips.c: Likewise.
855 * remote-notif.c: Likewise.
856 * remote-sim.c: Likewise.
857 * remote.c: Likewise.
858 * reverse.c: Likewise.
859 * rs6000-aix-tdep.c: Likewise.
860 * ser-base.c: Likewise.
861 * ser-go32.c: Likewise.
862 * ser-mingw.c: Likewise.
863 * ser-pipe.c: Likewise.
864 * ser-tcp.c: Likewise.
865 * ser-unix.c: Likewise.
866 * serial.c: Likewise.
867 * sh-tdep.c: Likewise.
868 * sh64-tdep.c: Likewise.
869 * shnbsd-tdep.c: Likewise.
870 * skip.c: Likewise.
871 * sol-thread.c: Likewise.
872 * solib-dsbt.c: Likewise.
873 * solib-frv.c: Likewise.
874 * solib-osf.c: Likewise.
875 * solib-som.c: Likewise.
876 * solib-spu.c: Likewise.
877 * solib-target.c: Likewise.
878 * solib.c: Likewise.
879 * somread.c: Likewise.
880 * source.c: Likewise.
881 * sparc-nat.c: Likewise.
882 * sparc-sol2-tdep.c: Likewise.
883 * sparc-tdep.c: Likewise.
884 * sparc64-tdep.c: Likewise.
885 * sparc64fbsd-tdep.c: Likewise.
886 * sparc64nbsd-tdep.c: Likewise.
887 * sparcnbsd-tdep.c: Likewise.
888 * spu-linux-nat.c: Likewise.
889 * spu-multiarch.c: Likewise.
890 * spu-tdep.c: Likewise.
891 * stabsread.c: Likewise.
892 * stack.c: Likewise.
893 * std-regs.c: Likewise.
894 * symfile.c: Likewise.
895 * symmisc.c: Likewise.
896 * symtab.c: Likewise.
897 * target.c: Likewise.
898 * thread.c: Likewise.
899 * tilegx-linux-nat.c: Likewise.
900 * tilegx-tdep.c: Likewise.
901 * top.c: Likewise.
902 * tracepoint.c: Likewise.
903 * tui/tui-command.c: Likewise.
904 * tui/tui-data.c: Likewise.
905 * tui/tui-disasm.c: Likewise.
906 * tui/tui-file.c: Likewise.
907 * tui/tui-layout.c: Likewise.
908 * tui/tui-out.c: Likewise.
909 * tui/tui-regs.c: Likewise.
910 * tui/tui-source.c: Likewise.
911 * tui/tui-stack.c: Likewise.
912 * tui/tui-win.c: Likewise.
913 * tui/tui-windata.c: Likewise.
914 * tui/tui-winsource.c: Likewise.
915 * typeprint.c: Likewise.
916 * ui-file.c: Likewise.
917 * ui-out.c: Likewise.
918 * user-regs.c: Likewise.
919 * utils.c: Likewise.
920 * v850-tdep.c: Likewise.
921 * valarith.c: Likewise.
922 * valops.c: Likewise.
923 * valprint.c: Likewise.
924 * value.c: Likewise.
925 * varobj.c: Likewise.
926 * vax-tdep.c: Likewise.
927 * vaxnbsd-tdep.c: Likewise.
928 * vaxobsd-tdep.c: Likewise.
929 * windows-nat.c: Likewise.
930 * xcoffread.c: Likewise.
931 * xml-support.c: Likewise.
932 * xstormy16-tdep.c: Likewise.
933 * xtensa-linux-nat.c: Likewise.
934
dccbb609
GB
9352014-08-07 Gary Benson <gbenson@redhat.com>
936
937 * common/common-defs.h: Include gdb_assert.h.
938 * aarch64-tdep.c: Do not include gdb_assert.h.
939 * addrmap.c: Likewise.
940 * aix-thread.c: Likewise.
941 * alpha-linux-tdep.c: Likewise.
942 * alpha-mdebug-tdep.c: Likewise.
943 * alphanbsd-tdep.c: Likewise.
944 * amd64-nat.c: Likewise.
945 * amd64-tdep.c: Likewise.
946 * amd64bsd-nat.c: Likewise.
947 * amd64fbsd-nat.c: Likewise.
948 * amd64fbsd-tdep.c: Likewise.
949 * amd64nbsd-nat.c: Likewise.
950 * amd64nbsd-tdep.c: Likewise.
951 * amd64obsd-nat.c: Likewise.
952 * amd64obsd-tdep.c: Likewise.
953 * arch-utils.c: Likewise.
954 * arm-tdep.c: Likewise.
955 * armbsd-tdep.c: Likewise.
956 * auxv.c: Likewise.
957 * bcache.c: Likewise.
958 * bfin-tdep.c: Likewise.
959 * blockframe.c: Likewise.
960 * breakpoint.c: Likewise.
961 * bsd-kvm.c: Likewise.
962 * bsd-uthread.c: Likewise.
963 * buildsym.c: Likewise.
964 * c-exp.y: Likewise.
965 * c-lang.c: Likewise.
966 * charset.c: Likewise.
967 * cleanups.c: Likewise.
968 * cli-out.c: Likewise.
969 * cli/cli-decode.c: Likewise.
970 * cli/cli-dump.c: Likewise.
971 * cli/cli-logging.c: Likewise.
972 * cli/cli-script.c: Likewise.
973 * cli/cli-utils.c: Likewise.
974 * coffread.c: Likewise.
975 * common/common-utils.c: Likewise.
976 * common/queue.h: Likewise.
977 * common/signals.c: Likewise.
978 * common/vec.h: Likewise.
979 * complaints.c: Likewise.
980 * completer.c: Likewise.
981 * corelow.c: Likewise.
982 * cp-abi.c: Likewise.
983 * cp-name-parser.y: Likewise.
984 * cp-namespace.c: Likewise.
985 * cp-support.c: Likewise.
986 * cris-tdep.c: Likewise.
987 * dbxread.c: Likewise.
988 * dictionary.c: Likewise.
989 * doublest.c: Likewise.
990 * dsrec.c: Likewise.
991 * dummy-frame.c: Likewise.
992 * dwarf2-frame-tailcall.c: Likewise.
993 * dwarf2-frame.c: Likewise.
994 * dwarf2expr.c: Likewise.
995 * dwarf2loc.c: Likewise.
996 * dwarf2read.c: Likewise.
997 * eval.c: Likewise.
998 * event-loop.c: Likewise.
999 * exceptions.c: Likewise.
1000 * expprint.c: Likewise.
1001 * f-valprint.c: Likewise.
1002 * fbsd-nat.c: Likewise.
1003 * findvar.c: Likewise.
1004 * frame-unwind.c: Likewise.
1005 * frame.c: Likewise.
1006 * frv-tdep.c: Likewise.
1007 * gcore.c: Likewise.
1008 * gdb-dlfcn.c: Likewise.
1009 * gdb_bfd.c: Likewise.
1010 * gdbarch.c: Likewise.
1011 * gdbarch.sh: Likewise.
1012 * gdbtypes.c: Likewise.
1013 * gnu-nat.c: Likewise.
1014 * gnu-v3-abi.c: Likewise.
1015 * go-lang.c: Likewise.
1016 * guile/scm-exception.c: Likewise.
1017 * guile/scm-gsmob.c: Likewise.
1018 * guile/scm-lazy-string.c: Likewise.
1019 * guile/scm-math.c: Likewise.
1020 * guile/scm-pretty-print.c: Likewise.
1021 * guile/scm-safe-call.c: Likewise.
1022 * guile/scm-utils.c: Likewise.
1023 * guile/scm-value.c: Likewise.
1024 * h8300-tdep.c: Likewise.
1025 * hppa-hpux-nat.c: Likewise.
1026 * hppa-tdep.c: Likewise.
1027 * hppanbsd-tdep.c: Likewise.
1028 * hppaobsd-tdep.c: Likewise.
1029 * i386-darwin-nat.c: Likewise.
1030 * i386-darwin-tdep.c: Likewise.
1031 * i386-nto-tdep.c: Likewise.
1032 * i386-tdep.c: Likewise.
1033 * i386bsd-nat.c: Likewise.
1034 * i386fbsd-tdep.c: Likewise.
1035 * i386gnu-nat.c: Likewise.
1036 * i386nbsd-tdep.c: Likewise.
1037 * i386obsd-tdep.c: Likewise.
1038 * i387-tdep.c: Likewise.
1039 * ia64-libunwind-tdep.c: Likewise.
1040 * ia64-tdep.c: Likewise.
1041 * inf-ptrace.c: Likewise.
1042 * inf-ttrace.c: Likewise.
1043 * infcall.c: Likewise.
1044 * infcmd.c: Likewise.
1045 * infrun.c: Likewise.
1046 * inline-frame.c: Likewise.
1047 * interps.c: Likewise.
1048 * jv-lang.c: Likewise.
1049 * jv-typeprint.c: Likewise.
1050 * linux-fork.c: Likewise.
1051 * linux-nat.c: Likewise.
1052 * linux-thread-db.c: Likewise.
1053 * m32c-tdep.c: Likewise.
1054 * m32r-linux-nat.c: Likewise.
1055 * m32r-tdep.c: Likewise.
1056 * m68k-tdep.c: Likewise.
1057 * m68kbsd-nat.c: Likewise.
1058 * m68kbsd-tdep.c: Likewise.
1059 * m88k-tdep.c: Likewise.
1060 * machoread.c: Likewise.
1061 * macroexp.c: Likewise.
1062 * macrotab.c: Likewise.
1063 * maint.c: Likewise.
1064 * mdebugread.c: Likewise.
1065 * memory-map.c: Likewise.
1066 * mep-tdep.c: Likewise.
1067 * mi/mi-common.c: Likewise.
1068 * microblaze-tdep.c: Likewise.
1069 * mingw-hdep.c: Likewise.
1070 * mips-linux-nat.c: Likewise.
1071 * mips-linux-tdep.c: Likewise.
1072 * mips-tdep.c: Likewise.
1073 * mips64obsd-tdep.c: Likewise.
1074 * mipsnbsd-tdep.c: Likewise.
1075 * mn10300-linux-tdep.c: Likewise.
1076 * mn10300-tdep.c: Likewise.
1077 * moxie-tdep.c: Likewise.
1078 * mt-tdep.c: Likewise.
1079 * nat/linux-btrace.c: Likewise.
1080 * nat/linux-osdata.c: Likewise.
1081 * nat/linux-ptrace.c: Likewise.
1082 * nat/mips-linux-watch.c: Likewise.
1083 * nios2-linux-tdep.c: Likewise.
1084 * nios2-tdep.c: Likewise.
1085 * objc-lang.c: Likewise.
1086 * objfiles.c: Likewise.
1087 * obsd-nat.c: Likewise.
1088 * opencl-lang.c: Likewise.
1089 * osabi.c: Likewise.
1090 * parse.c: Likewise.
1091 * ppc-linux-nat.c: Likewise.
1092 * ppc-sysv-tdep.c: Likewise.
1093 * ppcfbsd-nat.c: Likewise.
1094 * ppcfbsd-tdep.c: Likewise.
1095 * ppcnbsd-nat.c: Likewise.
1096 * ppcnbsd-tdep.c: Likewise.
1097 * ppcobsd-nat.c: Likewise.
1098 * ppcobsd-tdep.c: Likewise.
1099 * printcmd.c: Likewise.
1100 * procfs.c: Likewise.
1101 * prologue-value.c: Likewise.
1102 * psymtab.c: Likewise.
1103 * python/py-lazy-string.c: Likewise.
1104 * python/py-value.c: Likewise.
1105 * regcache.c: Likewise.
1106 * reggroups.c: Likewise.
1107 * registry.c: Likewise.
1108 * remote-sim.c: Likewise.
1109 * remote.c: Likewise.
1110 * rs6000-aix-tdep.c: Likewise.
1111 * rs6000-tdep.c: Likewise.
1112 * s390-linux-tdep.c: Likewise.
1113 * score-tdep.c: Likewise.
1114 * ser-base.c: Likewise.
1115 * ser-mingw.c: Likewise.
1116 * sh-tdep.c: Likewise.
1117 * sh64-tdep.c: Likewise.
1118 * solib-darwin.c: Likewise.
1119 * solib-spu.c: Likewise.
1120 * solib-svr4.c: Likewise.
1121 * source.c: Likewise.
1122 * sparc-nat.c: Likewise.
1123 * sparc-sol2-tdep.c: Likewise.
1124 * sparc-tdep.c: Likewise.
1125 * sparc64-sol2-tdep.c: Likewise.
1126 * sparc64-tdep.c: Likewise.
1127 * sparc64fbsd-tdep.c: Likewise.
1128 * sparc64nbsd-tdep.c: Likewise.
1129 * sparc64obsd-tdep.c: Likewise.
1130 * sparcnbsd-tdep.c: Likewise.
1131 * sparcobsd-tdep.c: Likewise.
1132 * spu-multiarch.c: Likewise.
1133 * spu-tdep.c: Likewise.
1134 * stabsread.c: Likewise.
1135 * stack.c: Likewise.
1136 * symfile.c: Likewise.
1137 * symtab.c: Likewise.
1138 * target-descriptions.c: Likewise.
1139 * target-memory.c: Likewise.
1140 * target.c: Likewise.
1141 * tic6x-linux-tdep.c: Likewise.
1142 * tic6x-tdep.c: Likewise.
1143 * tilegx-linux-nat.c: Likewise.
1144 * tilegx-tdep.c: Likewise.
1145 * top.c: Likewise.
1146 * tramp-frame.c: Likewise.
1147 * tui/tui-out.c: Likewise.
1148 * tui/tui-winsource.c: Likewise.
1149 * ui-out.c: Likewise.
1150 * user-regs.c: Likewise.
1151 * utils.c: Likewise.
1152 * v850-tdep.c: Likewise.
1153 * valops.c: Likewise.
1154 * value.c: Likewise.
1155 * varobj.c: Likewise.
1156 * vax-nat.c: Likewise.
1157 * xml-syscall.c: Likewise.
1158 * xml-tdesc.c: Likewise.
1159 * xstormy16-tdep.c: Likewise.
1160 * xtensa-linux-nat.c: Likewise.
1161 * xtensa-tdep.c: Likewise.
1162
e76df0d0
GB
11632014-08-07 Gary Benson <gbenson@redhat.com>
1164
1165 * common/common-defs.h: Include common-utils.h.
1166 * defs.h: Do not include common-utils.h.
1167 * common/gdb_assert.h: Likewise.
1168 * darwin-nat.h: Likewise.
1169 * nat/linux-btrace.c: Likewise.
1170 * target/waitstatus.h: Likewise.
1171
4cb9c816
GB
11722014-08-07 Gary Benson <gbenson@redhat.com>
1173
1174 * common/common-defs.h: Include ptid.h.
1175 * defs.h: Do not include ptid.h.
1176 * inferior.h: Likewise.
1177 * infrun.h: Likewise.
1178 * nat/linux-btrace.h: Likewise.
1179 * nat/linux-osdata.h: Likewise.
1180 * target/waitstatus.h: Likewise.
1181
3995eeee
GB
11822014-08-07 Gary Benson <gbenson@redhat.com>
1183
1184 * common/common-defs.h: Include gdb_locale.h.
1185 * defs.h: Do not include gdb_locale.h.
1186
cb9f1a9b
GB
11872014-08-07 Gary Benson <gbenson@redhat.com>
1188
1189 * common/common-defs.h: Include gdb/signals.h.
1190 * defs.h: Do not include gdb/signals.h.
1191
a5fceff8
GB
11922014-08-07 Gary Benson <gbenson@redhat.com>
1193
1194 * common/common-defs.h: Include pathmax.h.
1195 * defs.h: Do not include pathmax.h.
1196
b9391142
GB
11972014-08-07 Gary Benson <gbenson@redhat.com>
1198
1199 * common/common-defs.h: Include libiberty.h.
1200 * defs.h: Do not include libiberty.h.
1201 * common/queue.h: Likewise.
1202 * cp-name-parser.y: Likewise.
1203 * mi/mi-cmd-catch.c: Likewise.
1204 * python/python.c: Likewise.
1205
0e443c87
GB
12062014-08-07 Gary Benson <gbenson@redhat.com>
1207
1208 * common/common-defs.h: Include ansidecl.h.
1209 * defs.h: Do not include ansidecl.h.
1210 * common/buffer.h: Likewise.
1211 * common/common-utils.h: Likewise.
1212
8ebb3f56
GB
12132014-08-07 Gary Benson <gbenson@redhat.com>
1214
1215 * common/common-defs.h: Include stddef.h.
1216 * defs.h: Do not include stddef.h.
1217 * common/common-utils.h: Likewise.
1218 * amd64fbsd-nat.c: Likewise.
1219 * bcache.c: Likewise.
1220 * charset.c: Likewise.
1221 * common/buffer.h: Likewise.
1222 * common/vec.h: Likewise.
1223 * i386bsd-nat.c: Likewise.
1224 * nat/linux-btrace.h: Likewise.
1225 * ppcfbsd-nat.c: Likewise.
1226 * ppcnbsd-tdep.h: Likewise.
1227 * ppcobsd-nat.c: Likewise.
1228 * ppcobsd-tdep.h: Likewise.
1229 * python/py-gdb-readline.c: Likewise.
1230
8980bdf6
GB
12312014-08-07 Gary Benson <gbenson@redhat.com>
1232
1233 * common/common-defs.h: Include stdarg.h.
1234 * defs.h: Do not include stdarg.h.
1235 * ada-lang.c: Likewise.
1236 * common/common-utils.h: Likewise.
1237 * guile/scm-string.c: Likewise.
1238 * guile/scm-utils.c: Likewise.
1239 * m32c-tdep.c: Likewise.
1240
d7096f71
GB
12412014-08-07 Gary Benson <gbenson@redhat.com>
1242
1243 * common/common-defs.h: Include stdlib.h.
1244 * defs.h: Do not include stdlib.h.
1245 * addrmap.c: Likewise.
1246 * bcache.c: Likewise.
1247 * common/buffer.c: Likewise.
1248 * common/common-utils.c: Likewise.
1249 * cp-name-parser.y: Likewise.
1250 * go32-nat.c: Likewise.
1251 * mn10300-linux-tdep.c: Likewise.
1252 * nat/linux-osdata.c: Likewise.
1253 * tui/tui.c: Likewise.
1254 * windows-nat.c: Likewise.
1255
d02f550d
GB
12562014-08-07 Gary Benson <gbenson@redhat.com>
1257
1258 * common/common-defs.h: Include stdio.h.
1259 * defs.h: Do not include stdio.h.
1260 * ada-lang.c: Likewise.
1261 * common/buffer.c: Likewise.
1262 * common/common-utils.c: Likewise.
1263 * cp-name-parser.y: Likewise.
1264 * gnu-nat.c: Likewise.
1265 * go32-nat.c: Likewise.
1266 * i386gnu-nat.c: Likewise.
1267 * proc-api.c: Likewise.
1268 * proc-events.c: Likewise.
1269 * proc-flags.c: Likewise.
1270 * proc-why.c: Likewise.
1271 * python/python-internal.h: Likewise.
1272 * target-memory.c: Likewise.
1273 * tui/tui-io.c: Likewise.
1274 * tui/tui.c: Likewise.
1275
b6d7a4bf
SM
12762014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1277
1278 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1279 (scan_dyntag_auxv): Same.
1280
af19829b
YQ
12812014-08-06 Yao Qi <yao@codesourcery.com>
1282
1283 * amd64-linux-nat.c: Remove duplicated include
1284 "x86-linux-nat.h".
1285 * i386-linux-nat.c: Likewise.
1286
8e07a239
YQ
12872014-08-06 Yao Qi <yao@codesourcery.com>
1288
1289 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1290 operand" with "Special opcode" in comments.
1291
7bfe8241
GB
12922014-08-05 Gary Benson <gbenson@redhat.com>
1293
1294 * interps.c (initialize_interps): Remove prototype.
1295 (interpreter_initialized): Remove static global.
1296 (interp_add): Do not call initialize_interps.
1297 (initialize_interps): Remove function.
1298
d6c95504
GB
12992014-08-05 Gary Benson <gbenson@redhat.com>
1300
1301 * utils.c (vwarning): Remove spurious va_end.
1302
241fd515
AM
13032014-08-05 Alan Modra <amodra@gmail.com>
1304
1305 * charset.c (convert_between_encodings): Cast result of obstack_base.
1306 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1307 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1308 (read_unwind_info): Use size_t for some locals.
1309 * jit.c (finalize_symtab): Likewise.
1310 * utils.c (hashtab_obstack_allocate): Likewise.
1311 * symmisc.c (print_objfile_statistics): Update format strings.
1312
dc304a94
JK
13132014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1314
1315 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1316 (Changes in GDB 7.8): ... here.
1317
3cecbbbe
TT
13182014-08-04 Tom Tromey <tromey@redhat.com>
1319
1320 * target.c (set_targetdebug): New function.
1321 (initialize_targets): Pass set_targetdebug when creating "set
1322 debug target".
1323
6908c509
JB
13242014-08-01 Joel Brobecker <brobecker@adacore.com>
1325
1326 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1327 if detecting a variable-sized field that is not the last field.
1328 Fix struct type length computation.
1329
53e8f97d
JB
13302014-08-01 Joel Brobecker <brobecker@adacore.com>
1331
1332 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1333 Add debug trace.
1334
e068c55d
JB
13352014-08-01 Joel Brobecker <brobecker@adacore.com>
1336
1337 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1338 Remove "+ 8" offset in computation of CHAIN_VMA.
1339
4d4ca2a1
DE
13402014-07-31 Doug Evans <dje@google.com>
1341
1342 * inflow.c (child_terminal_inferior): Add comment.
1343 (child_terminal_ours_for_output): Add comment.
1344 (child_terminal_ours): Add comment.
1345 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1346 (linux_nat_terminal_ours): Add comment.
1347
462f517e
GB
13482014-07-31 Gary Benson <gbenson@redhat.com>
1349
1350 * common/btrace-common.h: Do not include defs.h or server.h.
1351 * nat/mips-linux-watch.h: Likewise.
1352 * gdb-dlfcn.h: Do not include defs.h.
1353 * tracefile.h: Likewise.
1354
74228e77
RM
13552014-07-30 Roland McGrath <mcgrathr@google.com>
1356
1357 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1358
014f9477
TT
13592014-07-30 Tom Tromey <tromey@redhat.com>
1360
1361 * bsd-kvm.c (bsd_kvm_open): Constify.
1362 * corelow.c (core_open): Constify.
1363 * ctf.c (ctf_open): Constify.
1364 * dbug-rom.c (dbug_open): Constify.
1365 * exec.c (exec_open): Constify.
1366 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1367 * microblaze-rom.c (picobug_open): Constify.
1368 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1369 Constify.
1370 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1371 * record-btrace.c (record_btrace_open): Constify.
1372 * record-full.c (record_full_core_open_1, record_full_open_1)
1373 (record_full_open): Constify.
1374 * remote-m32r-sdi.c (m32r_open): Constify.
1375 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1376 (rockhopper_open, lsi_open): Constify.
1377 * remote-sim.c (gdbsim_open): Constify.
1378 * remote.c (remote_open, extended_remote_open, remote_open_1):
1379 Constify.
1380 * target.h (struct target_ops) <to_open>: Make "arg" const.
1381 * tracefile-tfile.c (tfile_open): Constify.
1382
e799154c
TT
13832014-07-30 Tom Tromey <tromey@redhat.com>
1384
1385 * breakpoint.c (map_breakpoint_numbers): Update.
1386 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1387 (get_number_const): New function.
1388 (get_number): Rewrite using get_number_const.
1389 (init_number_or_range): Make "string" const.
1390 (number_is_in_list): Make "list" const.
1391 * cli/cli-utils.h (get_number_const): Declare.
1392 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1393 (init_number_or_range, number_is_in_list): Update.
1394 * printcmd.c (map_display_numbers): Update.
1395 * value.c (value_from_history_ref): Constify.
1396 * value.h (value_from_history_ref): Update.
1397
5f08566b
TT
13982014-07-30 Tom Tromey <tromey@redhat.com>
1399
1400 * corefile.c (hook_type, call_extra_exec_file_hooks)
1401 (specify_exec_file_hook): Constify.
1402 * exec.c (exec_file_attach): Make "filename" const.
1403 * gdbcore.h (deprecated_exec_file_display_hook)
1404 (specify_exec_file_hook, exec_file_attach): Constify.
1405 * main.c (captured_main): Use catch_command_errors_const.
1406
8981c758
TT
14072014-07-30 Tom Tromey <tromey@redhat.com>
1408
1409 * target.c (open_target): New function.
1410 (add_target_with_completer, add_deprecated_target_alias): Use
1411 set_cmd_sfunc, set_cmd_context.
1412 (debug_to_open): Remove.
1413 (setup_target_debug): Update.
1414
a1c7835a
YQ
14152014-07-30 Yao Qi <yao@codesourcery.com>
1416
1417 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1418 comments.
1419 * parse.c (exp_iterate): Update comments.
1420
976411d6
GB
14212014-07-30 Gary Benson <gbenson@redhat.com>
1422
1423 * common/common-defs.h: New file.
1424 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1425 * defs.h: Include common-defs.h.
1426 Do not include config.h or build-gnulib/config.h.
1427
5d4848a4
GB
14282014-07-30 Gary Benson <gbenson@redhat.com>
1429
1430 * common/common-utils.h: Do not include config.h.
1431 * nat/linux-btrace.h: Likewise.
1432
d41f6d8e
GB
14332014-07-30 Gary Benson <gbenson@redhat.com>
1434
1435 * btrace.c: Include defs.h.
1436 * common/ptid.c: Include defs.h or server.h as appropriate.
1437 * nat/mips-linux-watch.c: Likewise.
1438
84202f9c
TT
14392014-07-29 Tom Tromey <tromey@redhat.com>
1440
1441 * target.c (target_is_pushed): Simplify.
1442
2530441c
JB
14432014-07-29 Joel Brobecker <brobecker@adacore.com>
1444
1445 GDB 7.8 released.
1446
7e09a223
YQ
14472014-07-29 Yao Qi <yao@codesourcery.com>
1448
1449 PR gdb/17206
1450 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1451
7ebdbe92
DE
14522014-07-28 Doug Evans <xdje42@gmail.com>
1453
1454 PR guile/17203
1455 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1456 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1457 parameters.
1458
f347ffc9
WN
14592014-07-28 Will Newton <will.newton@linaro.org>
1460
1461 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1462 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1463 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1464 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1465 (THUMB2_EABI_SYSCALL): Likewise.
1466 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1467 struct tramp_frame.
1468 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1469 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1470
37c5f1f7
DE
14712014-07-27 Doug Evans <xdje42@gmail.com>
1472
1473 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1474
0c3abbc7
DE
14752014-07-27 Doug Evans <xdje42@gmail.com>
1476
1477 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1478
e76c5d17
DE
14792014-07-26 Ludovic Courtès <ludo@gnu.org>
1480 Doug Evans <xdje42@gmail.com>
1481
1482 PR guile/17146
1483 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1484 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1485 * configure.ac: Try to use guild to compile an scm file, if it fails
1486 then disable guile support.
1487 * configure: Regenerate.
1488 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1489 GUILE_FILE_LIST.
1490 (GUILE_COMPILED_FILES): New variable.
1491 (GUILE_FILES) Update.
1492 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1493 (stamp-guile): Compile scm files.
1494 * guile/guile.c (boot_guile_support): New function.
1495 (standard_throw_args_p): New function.
1496 (print_standard_throw_error, print_throw_error): New functions.
1497 (handle_boot_error): New function.
1498 (initialize_scheme_side): Rewrite to call boot_guile_support.
1499 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1500 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1501
186fcde0
DE
15022014-07-26 Ludovic Courtès <ludo@gnu.org>
1503 Doug Evans <xdje42@gmail.com>
1504
1505 PR guile/17146
1506 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1507 * guile/lib/gdb/support.scm: New file.
1508 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1509 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1510 All uses updated.
1511 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1512 All uses updated.
1513 (%assert-type): Ditto, and renamed to assert-type.
1514 (%exception-print-style): Delete.
1515
4df42755
DE
15162014-07-26 Doug Evans <xdje42@gmail.com>
1517
1518 PR build/17105
1519 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1520 * configure: Regenerate.
1521 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1522 PYTHON_FILES.
1523 (PYTHON_FILES): New variable.
1524 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1525 (GUILE_FILES): New variable.
1526 (stamp-python, install-python, uninstall-python): Handle empty
1527 file list.
1528 (stamp-guile, install-guile, uninstall-guile): Ditto.
1529
ee7333ae
DE
15302014-07-26 Doug Evans <xdje42@gmail.com>
1531
1532 PR guile/17177
1533 * guile/lib/gdb.scm (pretty-printers): Export.
1534 (set-pretty-printers!): Export.
1535 * guile/lib/gdb/printing.scm (gdb module): Update.
1536 (prepend-pretty-printer!, append-pretty-printer!): Update.
1537 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1538 (pretty_printer_list_var): Delete.
1539 (pretty_printer_list): New static global.
1540 (gdbscm_pretty_printers): New function.
1541 (gdbscm_set_pretty_printers_x): New function.
1542 (ppscm_find_pretty_printer_from_gdb): Update.
1543 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1544 (gdbscm_initialize_pretty_printers): Update.
1545
74edf516
DE
15462014-07-26 Doug Evans <xdje42@gmail.com>
1547
1548 PR 17185
1549 * configure.ac: Add check for header gc/gc.h.
1550 Add check for function setenv.
1551 * configure: Regenerate.
1552 * config.in: Regenerate.
1553 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1554
d54398a7
MR
15552014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1556
1557 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1558 variation in gdbarch matching.
1559
ab16fce8
TT
15602014-07-25 Tom Tromey <tromey@redhat.com>
1561
1562 * exec.c (using_exec_ops): Remove.
1563 (exec_close_1): Update. Remove extraneous block, reindent.
1564 (add_target_sections): Use target_is_pushed.
1565
88056fbb
PA
15662014-07-25 Pedro Alves <palves@redhat.com>
1567
1568 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1569 * monitor.c (monitor_create_inferior): Likewise.
1570 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1571 * remote-sim.c (gdbsim_create_inferior): Likewise.
1572 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1573 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1574 * windows-nat.c (do_initial_windows_stuff): Likewise.
1575
70509625
PA
15762014-07-25 Pedro Alves <palves@redhat.com>
1577
1578 * NEWS: Mention signal passing and "signal" command changes.
1579 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1580 comment.
1581 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1582 call.
1583 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1584 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1585 (jump_command): Adjust clear_proceed_status call.
1586 (signal_command): Warn if other thread that are resumed have
1587 signals that will be delivered. Adjust clear_proceed_status call.
1588 (until_next_command, finish_command)
1589 (proceed_after_attach_callback, attach_command_post_wait)
1590 (attach_command): Adjust clear_proceed_status call.
1591 * infrun.c (proceed_after_vfork_done): Likewise.
1592 (proceed_after_attach_callback): Adjust comment.
1593 (clear_proceed_status_thread): Clear stop_signal if not in pass
1594 state.
1595 (clear_proceed_status_callback): Delete.
1596 (clear_proceed_status): New 'step' parameter. Only clear the
1597 proceed status of threads the command being prepared is about to
1598 resume.
1599 (proceed): If passed in an explicit signal, override stop_signal
1600 with it. Don't pass the last stop signal to the thread we're
1601 resuming.
1602 (init_wait_for_inferior): Adjust clear_proceed_status call.
1603 (switch_back_to_stepped_thread): Clear the signal if it should not
1604 be passed.
1605 * infrun.h (clear_proceed_status): New 'step' parameter.
1606 (user_visible_resume_ptid): Add comment.
1607 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1608 signal is in pass state.
1609 * remote.c (append_pending_thread_resumptions): Likewise.
1610 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1611
d8be2939
TT
16122014-07-25 Tom Tromey <tromey@redhat.com>
1613
1614 * target.h (target_stopped_data_address)
1615 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1616 parentheses.
1617
7d0d9d2b
PL
16182014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1619
1620 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1621 comments.
1622 (avr_pointer_to_address): Likewise.
1623
e9e7f724
TT
16242014-07-24 Tom Tromey <tromey@redhat.com>
1625
1626 * monitor.c (compile_pattern): Update.
1627 * target.h (struct target_ops) <to_shortname, to_longname,
1628 to_doc>: Now const.
1629
1947513d
TT
16302014-07-24 Tom Tromey <tromey@redhat.com>
1631
1632 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1633 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1634 (add_info_alias, add_com): Make "doc" const.
1635 (print_doc_line): Make "str" const.
1636 (delete_cmd): Update.
1637 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1638 (print_doc_line): Update.
1639 * cli/cli-script.c (document_command): Update.
1640 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1641 (add_com, add_info, add_info_alias): Update.
1642 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1643 * python/py-cmd.c (cmdpy_destroyer): Update.
1644
64e61d29
TT
16452014-07-24 Tom Tromey <tromey@redhat.com>
1646
1647 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1648 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1649 (help_cmd_list): Constify.
1650 (lookup_cmd): Update.
1651 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1652 const.
1653 (help_cmd_list, apropos_cmd): Update.
1654 * cli/cli-script.c (show_user): Update.
1655 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1656 * cli/cli-setshow.h (cmd_show_list): Update.
1657 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1658 (cmd_show_list): Update.
1659 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1660 * python/py-cmd.c (cmdpy_destroyer): Update.
1661
429e55ea
TT
16622014-07-24 Tom Tromey <tromey@redhat.com>
1663
1664 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1665 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1666 const.
1667 * command.h (deprecate_cmd): Update.
1668 * maint.c (maintenance_do_deprecate): Add casts.
1669
64669f3b
TT
16702014-07-24 Tom Tromey <tromey@redhat.com>
1671
1672 * cli/cli-decode.c (help_cmd): Make parameter "const".
1673 * cli/cli-decode.h (help_cmd): Update.
1674
d3d3328b
TT
16752014-07-24 Tom Tromey <tromey@redhat.com>
1676
1677 * stack.c (up_silently_base, down_silently_base): Make argument
1678 const.
1679
414842dc
TT
16802014-07-24 Tom Tromey <tromey@redhat.com>
1681
1682 * solib.c (solib_add): Make "pattern" const.
1683 * solib.h (solib_add): Update.
1684
baa336ce
TT
16852014-07-24 Tom Tromey <tromey@redhat.com>
1686
1687 * remote.c (remote_serial_open, print_packet, putpkt)
1688 (putpkt_binary): Constify.
1689 * remote.h (putpkt): Update.
1690
5a19e2d0
TT
16912014-07-24 Tom Tromey <tromey@redhat.com>
1692
1693 * monitor.c (monitor_open): Make "args" const.
1694 * monitor.h (monitor_open): Update.
1695
fc4baa5e
TT
16962014-07-24 Tom Tromey <tromey@redhat.com>
1697
1698 * maint.c (match_bfd_flags): Make "string" const.
1699 (print_bfd_section_info): Remove casts.
1700 (print_objfile_section_info): Make "string" const.
1701
0d5f0dbe
TT
17022014-07-24 Tom Tromey <tromey@redhat.com>
1703
1704 * inf-child.c (inf_child_open_target): Make "arg" const.
1705 * inf-child.h (inf_child_open_target): Update.
1706
41c77899
TT
17072014-07-24 Tom Tromey <tromey@redhat.com>
1708
1709 * environ.c (unset_in_environ): Make "var" const.
1710 * environ.h (unset_in_environ): Update.
1711
93db0d79
TT
17122014-07-24 Tom Tromey <tromey@redhat.com>
1713
1714 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1715 Make "cmd" const.
1716 (scan_filename_with_cleanup): Likewise.
1717 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1718 Make arguments const.
1719 (restore_command): Update.
1720
36d6eb95
PA
17212014-07-24 Pedro Alves <palves@redhat.com>
1722
1723 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1724
8009206a
TT
17252014-07-24 Tom Tromey <tromey@redhat.com>
1726 Gary Benson <gbenson@redhat.com>
1727
1728 * nat/linux-ptrace.c (additional_flags): New global.
1729 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1730 additional_flags; don't check GDBSERVER.
1731 (linux_ptrace_set_additional_flags): New function.
1732 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1733 Declare.
1734 * linux-nat.c (_initialize_linux_nat): Call
1735 linux_ptrace_set_additional_flags.
1736
a7068b60
TT
17372014-07-24 Tom Tromey <tromey@redhat.com>
1738
1739 * make-target-delegates (munge_type, write_debugmethod): New
1740 functions.
1741 (debug_names): New global.
1742 ($TARGET_DEBUG_PRINTER): New global.
1743 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1744 name.
1745 Write debug methods. Generate init_debug_target.
1746 * target-debug.h: New file.
1747 * target-delegates.c: Rebuild.
1748 * target.c: Include target-debug.h.
1749 (debug_target): Hoist definition.
1750 (target_kill, target_get_section_table, target_memory_map)
1751 (target_flash_erase, target_flash_done, target_detach)
1752 (target_disconnect, target_wait, target_resume)
1753 (target_pass_signals, target_program_signals, target_follow_fork)
1754 (target_mourn_inferior, target_search_memory)
1755 (target_thread_address_space, target_close)
1756 (target_find_new_threads, target_core_of_thread)
1757 (target_verify_memory, target_insert_mask_watchpoint)
1758 (target_remove_mask_watchpoint): Remove targetdebug code.
1759 (debug_to_post_attach, debug_to_prepare_to_store)
1760 (debug_to_files_info, debug_to_insert_breakpoint)
1761 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1762 (debug_to_region_ok_for_hw_watchpoint)
1763 (debug_to_can_accel_watchpoint_condition)
1764 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1765 (debug_to_watchpoint_addr_within_range)
1766 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1767 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1768 (debug_to_terminal_init, debug_to_terminal_inferior)
1769 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1770 (debug_to_terminal_save_ours, debug_to_terminal_info)
1771 (debug_to_load, debug_to_post_startup_inferior)
1772 (debug_to_insert_fork_catchpoint)
1773 (debug_to_remove_fork_catchpoint)
1774 (debug_to_insert_vfork_catchpoint)
1775 (debug_to_remove_vfork_catchpoint)
1776 (debug_to_insert_exec_catchpoint)
1777 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1778 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1779 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1780 (setup_target_debug): Call init_debug_target.
1781 * target.h (TARGET_DEBUG_PRINTER): New macro.
1782 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1783 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1784
2c51604d
GB
17852014-07-24 Gary Benson <gbenson@redhat.com>
1786
1787 * exceptions.h (throw_vfatal): Renamed to...
1788 (throw_vquit): New declaration.
1789 (throw_quit): Likewise.
1790 * exceptions.c (throw_vfatal): Renamed to...
1791 (throw_vquit): New function.
1792 (throw_quit): Likewise.
1793 (throw_error): Call throw_verror rather than throw_it.
1794 * utils.h (vfatal): Removed.
1795 (fatal): Likewise.
1796 * utils.c (vfatal): Removed.
1797 (fatal): Likewise.
1798 (internal_verror): Replaced call to fatal with call to throw_quit.
1799 (quit): Replaced calls to fatal with calls to throw_quit.
1800
34211963
ME
18012014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1802
1803 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1804 target_read_code.
1805
a52b4d3e
ME
18062014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1807
1808 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1809 less than zero in conditional expression.
1810
a8bdc56b
TT
18112014-07-23 Tom Tromey <tromey@redhat.com>
1812
1813 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1814 ($INTRO_PART): Don't match whitespace.
1815 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1816 argument matching.
1817 ($METHOD): Add $METHOD_TRAILER.
1818 (trim): Rewrite.
1819 (scan_target_h): New sub.
1820 Change main loop not to collect state.
1821 * target-delegates.c: Rebuild.
1822
91b52240
GB
18232014-07-23 Gary Benson <gbenson@redhat.com>
1824
1825 * cp-support.c (gdb_demangle): Fix build on systems without
1826 sigaltstack.
1827
45326f6f
JK
18282014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1829
1830 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1831 for reference entry value target data value.
1832
e214cf6c
JK
18332014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1834
1835 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1836 value_available_contents_eq.
1837
bddbbedd
PA
18382014-07-22 Pedro Alves <palves@redhat.com>
1839
1840 * value.c (allocate_optimized_out_value): Don't mark value as
1841 non-lazy.
1842
45c71484
JW
18432014-07-22 Jiong Wang <jiong.wang@arm.com>
1844
1845 * MAINTAINERS (Write After Approval): Update my email address.
1846
9597b22a
DE
18472014-07-20 Doug Evans <dje@google.com>
1848
1849 PR server/17147
1850 * remote.c (putpkt_binary): Add text to error message.
1851
91101fe5
YQ
18522014-07-20 Yao Qi <yao@codesourcery.com>
1853
1854 * eval.c: Remove "Chill" from comments.
1855 * gdbtypes.h: Likewise.
1856 * symtab.h: Likewise.
1857
c9402c95
YQ
18582014-07-20 Yao Qi <yao@codesourcery.com>
1859
1860 * std-operator.def: Update comments to TERNOP_SLICE.
1861
ae8fddda
YQ
18622014-07-20 Yao Qi <yao@codesourcery.com>
1863
1864 * std-operator.def: Remove BINOP_RANGE.
1865 * breakpoint.c (watchpoint_exp_is_const): Update.
1866 * expprint.c (dump_subexp_body_standard): Likewise.
1867 * eval.c (init_array_element): Remove dead code.
1868 (evaluate_subexp_standard): Likewise.
1869
9c816640
YQ
18702014-07-20 Yao Qi <yao@codesourcery.com>
1871
1872 * std-operator.def: Remove BINOP_IN.
1873 * breakpoint.c (watchpoint_exp_is_const): Update.
1874 * eval.c (evaluate_subexp_standard): Likewise.
1875 * expprint.c (dump_subexp_body_standard): Likewise.
1876
164224e9
ME
18772014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1878
1879 * microblaze-tdep.c (microblaze_register_names): Add
1880 the rshr and rslr register names.
1881 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1882 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1883 Use of tdesc_numbered_register. Use of
1884 microblaze_register_g_packet_guesses. Use of
1885 tdesc_use_registers. Use of set_gdbarch_register_type.
1886 (microblaze_register_g_packet_guesses): New.
1887 * microblaze-tdep.h (microblaze_reg_num): Add
1888 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1889 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1890 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1891 * features/microblaze-core.xml: New file.
1892 * features/microblaze-stack-protect.xml: New file.
1893 * features/microblaze-with-stack-protect.c: New file.
1894 * features/microblaze-with-stack-protect.xml: New file.
1895 * features/microblaze.xml: New file.
1896 * features/microblaze.c: New file.
1897 * features/Makefile (microblaze-with-stack-protect): Add
1898 microblaze-with-stack-protect microblaze and microblaze-expedite.
1899 * regformats/microblaze-with-stack-protect.dat: New file.
1900 * regformats/microblaze.dat: New file.
1901 * doc/gdb.texinfo (MicroBlaze Features): Added.
1902
e8b2341c
TT
19032014-07-18 Tom Tromey <tromey@redhat.com>
1904
1905 * exec.c (exec_ops): Now static.
1906 * exec.h (exec_ops): Don't declare.
1907
44e89118
TT
19082014-07-18 Tom Tromey <tromey@redhat.com>
1909
1910 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1911 to find_target_beneath.
1912 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1913 find_target_beneath.
1914 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1915
b0ed115f
TT
19162014-07-18 Tom Tromey <tromey@redhat.com>
1917
1918 PR gdb/17130:
1919 * utils.c (quit): Use target_supports_terminal_ours.
1920 * target.h (target_supports_terminal_ours): Declare.
1921 * target.c (target_supports_delete_record): Don't check
1922 to_delete_record against NULL.
1923 (target_supports_terminal_ours): New function.
1924
e75fdfca
TT
19252014-07-18 Tom Tromey <tromey@redhat.com>
1926
1927 PR gdb/17130:
1928 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1929 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1930 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1931 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1932 * windows-nat.c (windows_xfer_partial): Always delegate.
1933 * record-btrace.c (record_btrace_xfer_partial): Simplify
1934 delegation.
1935 (record_btrace_fetch_registers, record_btrace_store_registers)
1936 (record_btrace_prepare_to_store, record_btrace_resume)
1937 (record_btrace_wait, record_btrace_find_new_threads)
1938 (record_btrace_thread_alive): Likewise.
1939 * procfs.c (procfs_xfer_partial): Always delegate.
1940 * corelow.c (core_xfer_partial): Always delegate.
1941 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1942
83814951
TT
19432014-07-18 Tom Tromey <tromey@redhat.com>
1944
1945 * exec.c (exec_make_note_section): Move earlier.
1946
b8b8facf
DE
19472014-07-17 Doug Evans <dje@google.com>
1948
74b49205 1949 PR gdb/17170
b8b8facf
DE
1950 * maint.c (count_symtabs_and_blocks): Handle NULL
1951 current_program_space.
1952 (report_command_stats): Check global enabled flag in addition to
1953 recorded enabled flag.
1954 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1955
69ff6be5
PA
19562014-07-16 Pedro Alves <palves@redhat.com>
1957
1958 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1959
252db1b5
TT
19602014-07-16 Tom Tromey <tromey@redhat.com>
1961
1962 * target.h (struct target_ops) <to_delete_record>: Reformat
1963 comment.
1964
a432721e
TT
19652014-07-16 Tom Tromey <tromey@redhat.com>
1966
1967 * target-delegates.c: Rebuild.
1968
487d9753
PL
19692014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1970
1971 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1972 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1973 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1974 (avr_pointer_to_address): Likewise.
1975 (avr_address_class_type_flags): New function.
1976 (avr_address_class_type_flags_to_name): Likewise.
1977 (avr_address_class_name_to_type_flags): Likewise.
1978 (avr_gdbarch_init): Set address_class_type_flags,
1979 address_class_type_flags_to_name and
1980 address_class_name_to_type_flags.
1981
57745c90
PA
19822014-07-15 Pedro Alves <palves@redhat.com>
1983
1984 * linux-nat.c (kill_callback): Save errno and work with saved
1985 copy.
1986
2d40be18
SM
19872014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1988
1989 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1990
572f6555
EBM
19912014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1992
1993 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1994 breakpoint support correctly.
1995
cc1c52ad
PA
19962014-07-14 Pedro Alves <palves@redhat.com>
1997
1998 * utils.c (prompt_for_continue): Call target_terminal_ours.
1999
1e973570
PA
20002014-07-14 Pedro Alves <palves@redhat.com>
2001
2002 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2003 catch_errors. Don't re-enable stdin or notify observers where,
2004 and rethrow error.
2005 (fetch_inferior_event_wrapper): Delete.
2006
93d6eb10
PA
20072014-07-14 Pedro Alves <palves@redhat.com>
2008
2009 PR gdb/17072
2010 * top.c: Include "inf-loop.h".
2011 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2012 field.
2013 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2014 was async before.
2015 (gdb_readline_wrapper): Store whether the target is async, and
2016 make it sync.
2017
0017922d
PA
20182014-07-14 Pedro Alves <palves@redhat.com>
2019
2020 PR gdb/17072
2021 * top.c (gdb_readline_wrapper_line): Tweak comment.
2022 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2023 the input handler callback.
2024
94696ad3
PA
20252014-07-14 Pedro Alves <palves@redhat.com>
2026
2027 PR gdb/17072
2028 * main.c: Include event-top.h.
2029 (handle_command_errors): New function.
2030 (catch_command_errors, catch_command_errors_const): Use it.
2031
9d1e69a2
PA
20322014-07-14 Pedro Alves <palves@redhat.com>
2033
2034 * exceptions.c (catch_command_errors, catch_command_errors_const):
2035 Moved to main.c.
2036 * exceptions.h (catch_command_errors_ftype)
2037 (catch_command_errors_const_ftype): Moved to main.c.
2038 (catch_command_errors, catch_command_errors_const): Delete
2039 declarations.
2040 * main.c (catch_command_errors_ftype)
2041 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2042 (catch_command_errors, catch_command_errors_const)): Moved here
2043 from exceptions.c and make static.
2044
feefc97b
PA
20452014-07-14 Pedro Alves <palves@redhat.com>
2046
2047 * exceptions.c (print_any_exception): Delete.
2048 (catch_exceptions_with_msg): Use exception_print instead of
2049 print_any_exception.
2050 (catch_errors): Use exception_fprintf instead of
2051 print_any_exception.
2052 (catch_command_errors, catch_command_errors_const): Use
2053 exception_print instead of print_any_exception.
2054
c933f875
PA
20552014-07-14 Pedro Alves <palves@redhat.com>
2056
2057 * infcall.c (run_inferior_call): Set 'sync_execution' while
2058 running the inferior call.
2059
feb6f816
PA
20602014-07-14 Pedro Alves <palves@redhat.com>
2061
2062 * value.c (value_contents_equal): Delete function.
2063 * value.h (value_contents_equal): Delete declaration.
2064
d98b7a16
TT
20652014-07-14 Tom Tromey <tromey@redhat.com>
2066
2067 PR exp/17106:
2068 * gdbtypes.c (is_dynamic_type_internal): New function, from
2069 is_dynamic_type.
2070 (is_dynamic_type): Rewrite.
2071 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2072 (resolve_dynamic_struct): Likewise.
2073 (resolve_dynamic_type_internal): New function, from
2074 resolve_dynamic_type.
2075 (resolve_dynamic_type): Rewrite.
2076
548740d6
TT
20772014-07-14 Tom Tromey <tromey@redhat.com>
2078
2079 * target.c (target_require_runnable): Also check record_stratum.
2080 Update comment.
2081
808f7ab1
YQ
20822014-07-11 Yao Qi <yao@codesourcery.com>
2083
2084 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2085 thumb_instruction_restores_sp return true.
2086
540314bd
YQ
20872014-07-11 Yao Qi <yao@codesourcery.com>
2088
2089 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2090 (thumb_in_function_epilogue_p): Call
2091 thumb_instruction_restores_sp.
2092
1db01f22
YQ
20932014-07-11 Yao Qi <yao@codesourcery.com>
2094
2095 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2096 'add sp, #imm'.
2097 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2098
3116063b
GB
20992014-07-11 Gary Benson <gbenson@redhat.com>
2100
2101 * amd64-linux-nat.c (gdbcore.h): Remove include.
2102 (regset.h): Likewise.
2103 (nat/linux-btrace.h): Likewise.
2104 (btrace.h): Likewise.
2105 (gdb_assert.h): Likewise.
2106 (string.h): Likewise.
2107 (sys/uio.h): Likewise.
2108 (sys/debugreg.h): Likewise.
2109 (sys/syscall.h): Likewise.
2110 (sys/procfs.h): Likewise.
2111 (sys/user.h): Likewise.
2112 (asm/ptrace.h): Likewise.
2113 (i386-nat.h): Likewise.
2114 * i386-linux-nat.c (i386-nat.h): Likewise.
2115 (regset.h): Likewise.
2116 (target.h): Likewise.
2117 (linux-nat.h): Likewise.
2118 (nat/linux-btrace.h): Likewise.
2119 (btrace.h): Likewise.
2120 (gdb_assert.h): Likewise.
2121 (string.h): Likewise.
2122 (sys/uio.h): Likewise.
2123 (sys/user.h): Likewise.
2124 (sys/procfs.h): Likewise.
2125 (sys/reg.h): Likewise.
2126 (sys/debugreg.h): Likewise.
2127 (ORIG_EAX): Remove definition.
2128
040baaf6
GB
21292014-07-11 Gary Benson <gbenson@redhat.com>
2130
2131 * i386-linux-nat.h: New file.
2132 * x86-linux-nat.h: Likewise.
2133 * x86-linux-nat.c: Likewise.
2134 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2135 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2136 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2137 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2138 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2139 (PTRACE_SETREGSET): Likewise.
2140 (arch_lwp_info): Now in x86-linux-nat.c.
2141 (have_ptrace_getregset): Now in x86-linux-nat.h.
2142 (x86_linux_dr_get): Now in x86-linux-nat.c.
2143 (x86_linux_dr_set): Likewise.
2144 (x86_linux_dr_get_addr): Likewise.
2145 (x86_linux_dr_get_control): Likewise.
2146 (x86_linux_dr_get_status): Likewise.
2147 (update_debug_registers_callback): Likewise.
2148 (x86_linux_dr_set_control): Likewise.
2149 (x86_linux_dr_set_addr): Likewise.
2150 (x86_linux_prepare_to_resume): Likewise.
2151 (x86_linux_new_thread): Likewise.
2152 (x86_linux_new_fork): Likewise.
2153 (x86_linux_get_thread_area): Likewise.
2154 (super_post_startup_inferior): Likewise.
2155 (x86_linux_child_post_startup_inferior): Likewise.
2156 (AMD64_LINUX_USER64_CS): Likewise.
2157 (AMD64_LINUX_X32_DS): Likewise.
2158 (x86_linux_read_description): Likewise.
2159 (x86_linux_enable_btrace): Likewise.
2160 (x86_linux_disable_btrace): Likewise.
2161 (x86_linux_teardown_btrace): Likewise.
2162 (x86_linux_read_btrace): Likewise.
2163 (x86_linux_create_target): Likewise.
2164 (x86_linux_add_target): Likewise.
2165 * i386-linux-nat.c (x86-linux-nat.h): New include.
2166 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2167 (PTRACE_SETREGSET): Likewise.
2168 (arch_lwp_info): Now in x86-linux-nat.c.
2169 (have_ptrace_getregset): Now in x86-linux-nat.h.
2170 (x86_linux_dr_get): Now in x86-linux-nat.c.
2171 (x86_linux_dr_set): Likewise.
2172 (x86_linux_dr_get_addr): Likewise.
2173 (x86_linux_dr_get_control): Likewise.
2174 (x86_linux_dr_get_status): Likewise.
2175 (update_debug_registers_callback): Likewise.
2176 (x86_linux_dr_set_control): Likewise.
2177 (x86_linux_dr_set_addr): Likewise.
2178 (x86_linux_prepare_to_resume): Likewise.
2179 (x86_linux_new_thread): Likewise.
2180 (x86_linux_new_fork): Likewise.
2181 (x86_linux_get_thread_area): Likewise.
2182 (super_post_startup_inferior): Likewise.
2183 (x86_linux_child_post_startup_inferior): Likewise.
2184 (AMD64_LINUX_USER64_CS): Likewise.
2185 (AMD64_LINUX_X32_DS): Likewise.
2186 (x86_linux_read_description): Likewise.
2187 (x86_linux_enable_btrace): Likewise.
2188 (x86_linux_disable_btrace): Likewise.
2189 (x86_linux_teardown_btrace): Likewise.
2190 (x86_linux_read_btrace): Likewise.
2191 (x86_linux_create_target): Likewise.
2192 (x86_linux_add_target): Likewise.
2193
1aa7e42c
GB
21942014-07-11 Gary Benson <gbenson@redhat.com>
2195
2196 * amd64-linux-nat.c: Comment and whitespace changes.
2197 * i386-linux-nat.c: Comment and whitespace changes.
2198
c1e246a0
GB
21992014-07-11 Gary Benson <gbenson@redhat.com>
2200
2201 * amd64-linux-nat.c (x86_linux_create_target): New function.
2202 (x86_linux_add_target): Likewise.
2203 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2204 * i386-linux-nat.c (x86_linux_create_target): New function.
2205 (x86_linux_add_target): Likewise.
2206 (_initialize_i386_linux_nat): Delegate to the above new functions.
2207
8c420b8d
GB
22082014-07-11 Gary Benson <gbenson@redhat.com>
2209
2210 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2211 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2212 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2213 (ps_get_thread_area): Delegate to the above.
2214
cb1da100
GB
22152014-07-11 Gary Benson <gbenson@redhat.com>
2216
2217 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2218 x86_linux_read_description. All uses updated. amd64-specific
2219 code conditionalized. Conditionalized i386-specific code added.
2220 Redundant cast removed.
2221 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2222 x86_linux_read_description. All uses updated. i386-specific
2223 code conditionalized. Conditionalized amd64-specific code added.
2224 One sizeof replaced with the actual type it is describing.
2225
2acf3cd0
GB
22262014-07-11 Gary Benson <gbenson@redhat.com>
2227
2228 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2229 x86_linux_dr_get. All uses updated.
2230 (amd64_linux_dr_set): Renamed to
2231 x86_linux_dr_set. All uses updated.
2232 (amd64_linux_dr_get_addr): Renamed to
2233 x86_linux_dr_get_addr. All uses updated.
2234 (amd64_linux_dr_get_control): Renamed to
2235 x86_linux_dr_get_control. All uses updated.
2236 (amd64_linux_dr_get_status): Renamed to
2237 x86_linux_dr_get_status. All uses updated.
2238 (amd64_linux_dr_set_control): Renamed to
2239 x86_linux_dr_set_control. All uses updated.
2240 (amd64_linux_dr_set_addr): Renamed to
2241 x86_linux_dr_set_addr. All uses updated.
2242 (amd64_linux_prepare_to_resume): Renamed to
2243 x86_linux_prepare_to_resume. All uses updated.
2244 (amd64_linux_new_thread): Renamed to
2245 x86_linux_new_thread. All uses updated.
2246 (amd64_linux_new_fork): Renamed to
2247 x86_linux_new_fork. All uses updated.
2248 (amd64_linux_child_post_startup_inferior): Renamed to
2249 x86_linux_child_post_startup_inferior. All uses updated.
2250 (amd64_linux_enable_btrace): Renamed to
2251 x86_linux_enable_btrace. All uses updated.
2252 (amd64_linux_disable_btrace): Renamed to
2253 x86_linux_disable_btrace. All uses updated.
2254 (amd64_linux_teardown_btrace): Renamed to
2255 x86_linux_teardown_btrace. All uses updated.
2256 (amd64_linux_read_btrace): Renamed to
2257 x86_linux_read_btrace. All uses updated.
2258 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2259 x86_linux_dr_get. All uses updated.
2260 (i386_linux_dr_set): Renamed to
2261 x86_linux_dr_set. All uses updated.
2262 (i386_linux_dr_get_addr): Renamed to
2263 x86_linux_dr_get_addr. All uses updated.
2264 (i386_linux_dr_get_control): Renamed to
2265 x86_linux_dr_get_control. All uses updated.
2266 (i386_linux_dr_get_status): Renamed to
2267 x86_linux_dr_get_status. All uses updated.
2268 (i386_linux_dr_set_control): Renamed to
2269 x86_linux_dr_set_control. All uses updated.
2270 (i386_linux_dr_set_addr): Renamed to
2271 x86_linux_dr_set_addr. All uses updated.
2272 (i386_linux_prepare_to_resume): Renamed to
2273 x86_linux_prepare_to_resume. All uses updated.
2274 (i386_linux_new_thread): Renamed to
2275 x86_linux_new_thread. All uses updated.
2276 (i386_linux_new_fork): Renamed to
2277 x86_linux_new_fork. All uses updated.
2278 (i386_linux_child_post_startup_inferior): Renamed to
2279 x86_linux_child_post_startup_inferior. All uses updated.
2280 (i386_linux_enable_btrace): Renamed to
2281 x86_linux_enable_btrace. All uses updated.
2282 (i386_linux_disable_btrace): Renamed to
2283 x86_linux_disable_btrace. All uses updated.
2284 (i386_linux_teardown_btrace): Renamed to
2285 x86_linux_teardown_btrace. All uses updated.
2286 (i386_linux_read_btrace): Renamed to
2287 x86_linux_read_btrace. All uses updated.
2288
b9c1d481
AS
22892014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2290
2291 * remote.c (extended_remote_post_attach): New function.
2292 (init_extended_remote_ops): Install it as to_post_attach method.
2293
7180e04a
PA
22942014-07-09 Pedro Alves <palves@redhat.com>
2295
2296 * infcmd.c (attach_command_post_wait): Don't call
2297 target_terminal_inferior here.
2298 (attach_command): Call it here instead.
2299
9a9a7608
AB
23002014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2303 field.
2304 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2305 from varobj.c, with additional checks.
2306 (c_varobj_ops): Fill in is_path_expr_parent field.
2307 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2308 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2309 field.
2310 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2311 ops method.
2312 (varobj_default_is_path_expr_parent): New function.
2313 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2314 (varobj_default_is_path_expr_parent): Declare new function.
2315
1f267ae3
MM
23162014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2317
2318 * infcmd.c (finish_backward): Turn internal error into normal error.
2319
b2ee242b
PA
23202014-07-07 Pedro Alves <palves@redhat.com>
2321
8a869bca 2322 PR gdb/17096
b2ee242b
PA
2323 * remote.c (async_handle_remote_sigint)
2324 (async_handle_remote_sigint_twice): Call
2325 gdb_call_async_signal_handler instead of
2326 mark_async_signal_handler.
2327
38e229b2
TT
23282014-07-07 Tom Tromey <tromey@redhat.com>
2329
2330 * target-delegates.c: Rebuild.
2331 * target.c (target_info_record): Remove.
2332 * record.c (info_record_command): Unconditionally call
2333 to_info_record.
2334 * target.h (struct target_ops) <to_info_record>: Use
2335 TARGET_DEFAULT_IGNORE.
2336 (target_info_record): Remove.
2337
f0f9ff95
TT
23382014-07-07 Tom Tromey <tromey@redhat.com>
2339
2340 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2341 TARGET_DEFAULT_NORETURN.
2342 * target.c (generic_tls_error): New function.
2343 (target_translate_tls_address): Don't search target stack.
2344 * target-delegates.c: Rebuild.
2345 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2346 stack.
2347 * linux-thread-db.c (thread_db_get_thread_local_address):
2348 Unconditionally call beneath target.
2349
4a5be5ee
MK
23502014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2351
2352 * cli/cli-logging.c (pop_output_files): Assign targerr to
2353 gdb_stdtargerr.
2354
92c3b204
AB
23552014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * MAINTAINERS (Write After Approval): Update my email address.
2358
9b11e3a7
GB
23592014-07-02 Gary Benson <gbenson@redhat.com>
2360
2361 * proc-service.c (ps_xfer_memory): Update comment.
2362 (ps_pstop): Remove unused function.
2363 (ps_pcontinue): Likewise.
2364 (ps_lstop): Likewise.
2365 (ps_lcontinue): Likewise.
2366 (ps_lgetxregsize): Likewise.
2367 (ps_lgetxregs): Likewise.
2368 (ps_lsetxregs): Likewise.
2369 (ps_plog): Likewise.
2370 (ps_ptread): Likewise.
2371 (ps_ptwrite): Likewise.
2372
cf363f18
MW
23732014-07-01 Mark Wielaard <mjw@redhat.com>
2374
2375 * dwarf2read.c (add_array_cv_type): New function.
2376 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2377 (read_tag_volatile_type): Likewise.
2378
82ae6c8d
TT
23792014-07-01 Tom Tromey <tromey@redhat.com>
2380
2381 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2382 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2383 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2384 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2385 * command.h (cmd_cfunc_ftype): Move earlier.
2386 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2387 (add_com, add_info): Use cmd_cfunc_ftype.
2388
96142726
TT
23892014-06-30 Tom Tromey <tromey@redhat.com>
2390
2391 * symtab.c (operator_chars): Make parameters and return type
2392 const.
2393 (file_matches): Make "files" const.
2394 (struct search_symbols_data) <files>: Now const.
2395 (search_symbols): Make "regexp" and "files" parameters const.
2396 Update.
2397 (symtab_symbol_info): Remove cast.
2398 (rbreak_command): Update.
2399 * symtab.h (search_symbols): Update.
2400
b67a2c6f
YQ
24012014-06-27 Yao Qi <yao@codesourcery.com>
2402
2403 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2404 Change parameter type to 'struct thread_info *'. Caller
2405 updated.
2406 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2407 Update declaration.
2408 * dummy-frame.c (struct dummy_frame_id): New.
2409 (dummy_frame_id_eq): New function.
2410 (struct dummy_frame) <id>: Change its type to 'struct
2411 dummy_frame_id'.
2412 (dummy_frame_push): Add parameter ptid and save it in
2413 dummy_frame_id.
2414 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2415 inferior_ptid.
2416 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2417 to inferior_ptid.
2418 (lookup_dummy_frame): Change parameter type to 'struct
2419 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2420 instead of frame_id_eq.
2421 (dummy_frame_pop): Add parameter ptid. Callers updated.
2422 Update comments. Compose dummy_frame_id and pass it to
2423 lookup_dummy_frame.
2424 (dummy_frame_discard): Add parameter ptid.
2425 (dummy_frame_sniffer): Compose dummy_frame_id and call
2426 dummy_frame_id_eq instead of frame_id_eq.
2427 (fprint_dummy_frames): Print ptid.
2428 * dummy-frame.h: Remove comments.
2429 (dummy_frame_push): Add ptid in declaration.
2430 (dummy_frame_pop, dummy_frame_discard): Likewise.
2431
5b10184c
TT
24322014-06-26 Tom Tromey <tromey@redhat.com>
2433
2434 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2435 * command.h (error_no_arg): Update.
2436
06900326
TT
24372014-06-26 Tom Tromey <tromey@redhat.com>
2438
2439 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2440 (do_show_command): Make "arg" const.
2441 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2442
c2bcbb1d
TT
24432014-06-26 Tom Tromey <tromey@redhat.com>
2444
2445 * record-full.c (record_full_get_bookmark): Make "args" const.
2446 (record_full_goto_bookmark): Make "raw_bookmark" const.
2447 * record.c (record_goto): New function.
2448 (cmd_record_goto): Use it. Now static.
2449 * record.h (record_goto): Declare.
2450 (cmd_record_goto): Remove declaration.
2451 * target-delegates.c: Rebuild.
2452 * target.h (struct target_ops) <to_get_bookmark,
2453 to_goto_bookmark>: Make parameter const.
2454
9cbe5fff
TT
24552014-06-26 Tom Tromey <tromey@redhat.com>
2456
2457 * defs.h (generic_load): Update.
2458 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2459 * monitor.c (monitor_load): Make "args" const.
2460 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2461 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2462 const.
2463 (mips_load): Make "file" const.
2464 * remote-sim.c (gdbsim_load): Make "args" const.
2465 * remote.c (remote_load): Make "name" const.
2466 * symfile.c (generic_load): Make "args" const.
2467 * target-delegates.c: Rebuild.
2468 * target.c (target_load): Make "arg" const.
2469 (debug_to_load): Make "args" const.
2470 * target.h (struct target_ops) <to_load>: Make parameter const.
2471 (target_load): Update.
2472
34a68019
TT
24732014-06-26 Tom Tromey <tromey@redhat.com>
2474
2475 PR symtab/16902:
2476 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2477 (dwarf2_physname, read_partial_die)
2478 (guess_partial_die_structure_name, fixup_partial_die)
2479 (guess_full_die_structure_name, anonymous_struct_prefix)
2480 (dwarf2_name): Use per-BFD obstack.
2481
efc889c1
YQ
24822014-06-26 Yao Qi <yao@codesourcery.com>
2483
2484 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2485 dummyframe and this_id into inner block below.
2486
4395285e
YQ
24872014-06-26 Yao Qi <yao@codesourcery.com>
2488
2489 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2490 with "signal_pass[0]" in the initialization of signal_pass.
2491
aef92902
MM
24922014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2493
2494 * record-btrace.c (record_btrace_generating_corefile)
2495 (record_btrace_prepare_to_generate_core)
2496 (record_btrace_done_generating_core): New.
2497 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2498 (record_btrace_store_registers, record_btrace_prepare_to_store):
2499 Forward request when generating a core file.
2500 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2501 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2502 to_done_generating_core.
2503
5fff78c4
MM
25042014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2505
2506 * target.h (target_ops) <to_prepare_to_generate_core>
2507 <to_done_generating_core>: New.
2508 (target_prepare_to_generate_core, target_done_generating_core): New.
2509 * target.c (target_prepare_to_generate_core)
2510 (target_done_generating_core): New.
2511 * target-delegates.c: Regenerate.
2512 * gcore.c: (write_gcore_file): Rename to ...
2513 (write_gcore_file_1): ...this.
2514 (write_gcore_file): Call target_prepare_to_generate_core
2515 and target_done_generating_core.
2516
1d1f1ccb
MM
25172014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2518
2519 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2520 * gcore.c (write_gcore_file): Free memory returned from
2521 make_corefile_notes.
2522 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2523 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2524
3343ef86
YQ
25252014-06-24 Yao Qi <yao@codesourcery.com>
2526
2527 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2528 (arm_linux_init_abi): Set skip_trampoline_code with
2529 gdbarch_skip_trampoline_code instead of
2530 find_solib_trampoline_target.
2531
18d18ac8
YQ
25322014-06-24 Yao Qi <yao@codesourcery.com>
2533
2534 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2535 arm_skip_bx_reg returns non-zero.
2536
80d8d390
YQ
25372014-06-24 Yao Qi <yao@codesourcery.com>
2538
2539 * arm-tdep.c (arm_skip_bx_reg): New function.
2540 (arm_skip_stub): Call arm_skip_bx_reg.
2541
6a18a01c
DB
25422014-06-23 Don Breazeal <donb@codesourcery.com>
2543
2544 * MAINTAINERS: Add myself as write-after-approval maintainer.
2545
8e9db26e
PA
25462014-06-23 Pedro Alves <palves@redhat.com>
2547
2548 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2549 DR_CONTROL before setting DR0..DR3.
2550 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2551 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2552 bits of DR_CONTROL related to the debug register slot being
2553 disabled. If all slots are vacant, clear local slowdown as well,
2554 and assert DR_CONTROL is 0.
2555
70afc5b7
SC
25562014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2557
2558 * python/lib/gdb/command/xmethods.py
2559 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2560 current progspace only if the string "progspace" matches LOCUS_RE.
2561
840ed64d
JK
25622014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 Fix --with-system-readline with readline-6.3 patch 5.
2565 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2566 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2567 types.
2568
26f2dc30
TT
25692014-06-20 Tom Tromey <tromey@redhat.com>
2570
2571 * dwarf2read.c (dw2_get_real_path): Use correct type in
2572 OBSTACK_CALLOC.
2573 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2574
125f8a3d
GB
25752014-06-20 Gary Benson <gbenson@redhat.com>
2576
2577 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2578 * common/glibc_thread_db.h: Likewise.
2579 * common/i386-cpuid.h: Likewise.
2580 * common/i386-gcc-cpuid.h: Likewise.
2581 * common/linux-btrace.h: Likewise.
2582 * common/linux-osdata.h: Likewise.
2583 * common/linux-procfs.h: Likewise.
2584 * common/linux-ptrace.h: Likewise.
2585 * common/mips-linux-watch.h: Likewise.
2586 * common/linux-btrace.c: Moved to nat.
2587 * common/linux-osdata.c: Likewise.
2588 * common/linux-procfs.c: Likewise.
2589 * common/linux-ptrace.c: Likewise.
2590 * common/mips-linux-watch.c: Likewise.
2591 * nat/gdb_thread_db.h: Moved from common.
2592 * nat/glibc_thread_db.h: Likewise.
2593 * nat/i386-cpuid.h: Likewise.
2594 * nat/i386-gcc-cpuid.h: Likewise.
2595 * nat/linux-btrace.c: Likewise.
2596 * nat/linux-btrace.h: Likewise.
2597 * nat/linux-osdata.c: Likewise.
2598 * nat/linux-osdata.h: Likewise.
2599 * nat/linux-procfs.c: Likewise.
2600 * nat/linux-procfs.h: Likewise.
2601 * nat/linux-ptrace.c: Likewise.
2602 * nat/linux-ptrace.h: Likewise.
2603 * nat/mips-linux-watch.c: Likewise.
2604 * nat/mips-linux-watch.h: Likewise.
2605 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2606 (object file files): Reordered.
2607 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2608 of glibc_thread_db.h.
2609
42995dbd
GB
26102014-06-20 Gary Benson <gbenson@redhat.com>
2611
2612 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2613 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2614 (i386_dr_low): Likewise.
2615 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2616 (i386_dr_low_set_addr): Likewise.
2617 (i386_dr_low_get_addr): Likewise.
2618 (i386_dr_low_can_set_control): Likewise.
2619 (i386_dr_low_set_control): Likewise.
2620 (i386_dr_low_get_control): Likewise.
2621 (i386_dr_low_get_status): Likewise.
2622 (i386_get_debug_register_length): Likewise.
2623 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2624 (i386_dr_low): Likewise.
2625 * nat/i386-dregs.c (i386-low.h): Remove include.
2626 (i386-nat.h): Likewise.
2627 (nat/i386-dregs.h): New include.
2628 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2629 (i386_dr_low_set_addr): Likewise.
2630 (i386_dr_low_get_addr): Likewise.
2631 (i386_dr_low_can_set_control): Likewise.
2632 (i386_dr_low_set_control): Likewise.
2633 (i386_dr_low_get_control): Likewise.
2634 (i386_dr_low_get_status): Likewise.
2635 (i386_get_debug_register_length): Likewise.
2636 (debug_hw_points): Likewise.
2637
3ed9baed
IB
26382014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2639
2640 * Makefile.in (SFILES): Add d-exp.y.
2641 (YYFILES): Add d-exp.c.
2642 (YYOBJ): Add d-exp.o.
2643 (local-maintainer-clean): Delete d-exp.c.
2644 * d-exp.y: New file.
2645 * d-lang.h (d_parse): New declaration.
2646 (d_error): New declaration.
2647 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2648 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2649 PREC_ORDER operators.
2650 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2651
78c164b0
YQ
26522014-06-19 Yao Qi <yao@codesourcery.com>
2653
2654 * gdbthread.h (any_running): Remove the declaration.
2655 * thread.c (any_running): Remove.
2656
f6e29b6e
YQ
26572014-06-19 Yao Qi <yao@codesourcery.com>
2658
2659 * gdbthread.h (struct thread_info) <state>: Change its type to
2660 'enum thread_state'. Update comments.
2661
034f788c
PA
26622014-06-19 Pedro Alves <palves@redhat.com>
2663
2664 * gdbthread.h (ALL_THREADS): Delete.
2665 (ALL_NON_EXITED_THREADS): New macro.
2666 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2667 instead of ALL_THREADS.
2668 * infrun.c (find_thread_needs_step_over)
2669 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2670 instead of ALL_THREADS.
2671 * record-btrace.c (record_btrace_open)
2672 (record_btrace_stop_recording, record_btrace_close)
2673 (record_btrace_is_replaying, record_btrace_resume)
2674 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2675 * remote.c (append_pending_thread_resumptions): Likewise.
2676 * thread.c (thread_apply_all_command): Likewise.
2677
46e33252
GB
26782014-06-19 Gary Benson <gbenson@redhat.com>
2679
2680 * i386-nat.c (i386_stopped_by_watchpoint):
2681 Use i386_dr_stopped_by_watchpoint.
2682 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2683 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2684
3a8ee006
GB
26852014-06-19 Gary Benson <gbenson@redhat.com>
2686
2687 * nat/i386-dregs.c: New file.
2688 * Makefile.in (i386-dregs.o): New rule.
2689 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2690 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2691 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2692 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2693 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2694 * config/i386/go32.mh (NATDEPFILES): Likewise.
2695 * config/i386/linux.mh (NATDEPFILES): Likewise.
2696 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2697 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2698 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2699 * i386-nat.h (debug_hw_points): New declaration.
2700 * i386-nat.c (breakpoint.h): Remove include.
2701 (command.h): Likewise.
2702 (target.h): Likewise.
2703 (gdb_assert.h): Likewise.
2704 (debug_hw_points): Made nonstatic.
2705 (debug_printf): Now in i386-dregs.c.
2706 (TARGET_HAS_DR_LEN_8): Likewise.
2707 (DR_CONTROL_SHIFT): Likewise.
2708 (DR_CONTROL_SIZE): Likewise.
2709 (DR_RW_EXECUTE): Likewise.
2710 (DR_RW_WRITE): Likewise.
2711 (DR_RW_READ): Likewise.
2712 (DR_RW_IORW): Likewise.
2713 (DR_LEN_1): Likewise.
2714 (DR_LEN_2): Likewise.
2715 (DR_LEN_4): Likewise.
2716 (DR_LEN_8): Likewise.
2717 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2718 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2719 (DR_ENABLE_SIZE): Likewise.
2720 (DR_LOCAL_SLOWDOWN): Likewise.
2721 (DR_GLOBAL_SLOWDOWN): Likewise.
2722 (DR_CONTROL_RESERVED): Likewise.
2723 (I386_DR_CONTROL_MASK): Likewise.
2724 (I386_DR_VACANT): Likewise.
2725 (I386_DR_LOCAL_ENABLE): Likewise.
2726 (I386_DR_GLOBAL_ENABLE): Likewise.
2727 (I386_DR_DISABLE): Likewise.
2728 (I386_DR_SET_RW_LEN): Likewise.
2729 (I386_DR_GET_RW_LEN): Likewise.
2730 (I386_DR_WATCH_HIT): Likewise.
2731 (i386_wp_op_t): Likewise.
2732 (i386_show_dr): Likewise.
2733 (i386_length_and_rw_bits): Likewise.
2734 (i386_insert_aligned_watchpoint): Likewise.
2735 (i386_remove_aligned_watchpoint): Likewise.
2736 (i386_handle_nonaligned_watchpoint): Likewise.
2737 (i386_update_inferior_debug_regs): Likewise.
2738 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2739 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2740 (i386_region_ok_for_watchpoint):
2741 Use i386_dr_region_ok_for_watchpoint.
2742 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2743
322a8e06
GB
27442014-06-19 Gary Benson <gbenson@redhat.com>
2745
2746 * i386-nat.c (i386_insert_hw_breakpoint): Use
2747 i386_insert_watchpoint.
2748 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2749
8f26655c
GB
27502014-06-19 Gary Benson <gbenson@redhat.com>
2751
2752 * i386-nat.c (i386_dr_show): Renamed to
2753 i386_show_dr and made static. All uses updated.
2754 (i386_dr_length_and_rw_bits): Renamed to
2755 i386_length_and_rw_bits and made static.
2756 All uses updated.
2757 (i386_dr_insert_aligned_watchpoint): Renamed to
2758 i386_insert_aligned_watchpoint and made static.
2759 All uses updated.
2760 (i386_dr_remove_aligned_watchpoint): Renamed to
2761 i386_remove_aligned_watchpoint and made static.
2762 All uses updated.
2763 (i386_dr_update_inferior_debug_regs): Renamed to
2764 i386_update_inferior_debug_regs and made static.
2765 All uses updated.
2766 * nat/i386-dregs.h (i386_dr_show): Removed.
2767 (i386_dr_length_and_rw_bits): Likewise.
2768 (i386_dr_insert_aligned_watchpoint): Likewise.
2769 (i386_dr_remove_aligned_watchpoint): Likewise.
2770 (i386_dr_update_inferior_debug_regs): Likewise.
2771
992c7d70
GB
27722014-06-19 Gary Benson <gbenson@redhat.com>
2773
2774 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2775 * configure: Regenerate.
2776 * config.in: Likewise.
2777 * main.c (signal.h): New include.
2778 (setup_alternate_signal_stack): New function.
2779 (captured_main): Call the above.
2780 * cp-support.c (signal.h): New include.
2781 (catch_demangler_crashes): New flag.
2782 (SIGJMP_BUF): New define.
2783 (SIGSETJMP): Likewise.
2784 (SIGLONGJMP): Likewise.
2785 (gdb_demangle_jmp_buf): New static global.
2786 (gdb_demangle_attempt_core_dump): Likewise.
2787 (gdb_demangle_signal_handler): New function.
2788 (gdb_demangle): If catch_demangler_crashes is set, install the
2789 above signal handler before calling bfd_demangle, and restore
2790 the original signal handler afterwards. Display the offending
2791 symbol and call demangler_warning the first time a segmentation
2792 fault is caught.
2793 (_initialize_cp_support): New maint set/show command.
2794
eae7090b
GB
27952014-06-19 Gary Benson <gbenson@redhat.com>
2796
2797 * utils.h (resource_limit_kind): New enum.
2798 (can_dump_core): New declaration.
2799 (warn_cant_dump_core): Likewise.
2800 (dump_core): Likewise.
2801 * utils.c (dump_core): Made nonstatic. Added new
2802 parameter "limit_kind".
2803 (can_dump_core): Made nonstatic. Moved printing code to...
2804 (warn_cant_dump_core): New function.
2805 (can_dump_core_warn): Likewise.
2806 (internal_vproblem): Replace calls to can_dump_core with
2807 calls to can_dump_core_warn. Supply new argument to each.
2808
57fcfb1b
GB
28092014-06-19 Gary Benson <gbenson@redhat.com>
2810
2811 * utils.h (demangler_vwarning): New declaration.
2812 (demangler_warning): Likewise.
2813 * utils.c (struct internal_problem)
2814 <user_settable_should_quit>: New field.
2815 <user_settable_should_dump_core>: Likewise
2816 (internal_error_problem): Add values for above new fields.
2817 (internal_warning_problem): Likewise.
2818 (demangler_warning_problem): New static global.
2819 (demangler_vwarning): New function.
2820 (demangler_warning): Likewise.
2821 (add_internal_problem_command): Selectively add commands.
2822 (_initialize_utils): New internal problem command.
2823 * maint.c (maintenance_demangler_warning): New function.
2824 (_initialize_maint_cmds): New command.
2825
17a40b44
TT
28262014-06-18 Tom Tromey <tromey@redhat.com>
2827
2828 * f-valprint.c (info_common_command_for_block): Update.
2829 * symtab.h (struct general_symbol_info) <common_block>: Now
2830 const.
2831
346d1dfe
TT
28322014-06-18 Tom Tromey <tromey@redhat.com>
2833
2834 * symtab.h (struct symtab) <blockvector>: Now const.
2835 * ada-lang.c (ada_add_global_exceptions): Update.
2836 * buildsym.c (augment_type_symtab): Update.
2837 * dwarf2read.c (dw2_lookup_symbol): Update.
2838 * jit.c (finalize_symtab): Update.
2839 * jv-lang.c (add_class_symtab_symbol): Update.
2840 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2841 Update.
2842 * objfiles.c (objfile_relocate1): Update.
2843 * psymtab.c (lookup_symbol_aux_psymtabs)
2844 (maintenance_check_psymtabs): Update.
2845 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2846 Update.
2847 * spu-tdep.c (spu_catch_start): Update.
2848 * symmisc.c (dump_symtab_1): Update.
2849 * symtab.c (lookup_global_symbol_from_objfile)
2850 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2851 (basic_lookup_transparent_type_quick)
2852 (basic_lookup_transparent_type, find_pc_sect_symtab)
2853 (find_pc_sect_line, search_symbols): Update.
2854 * block.c (find_block_in_blockvector): Make "bl" const.
2855 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2856 const.
2857 (blockvector_contains_pc): Make "bv" const.
2858 (block_for_pc_sect): Update.
2859 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2860 (blockvector_contains_pc): Update.
2861 * breakpoint.c (resolve_sal_pc): Update.
2862 * inline-frame.c (block_starting_point_at): Update.
2863
1834676b
TT
28642014-06-18 Tom Tromey <tromey@redhat.com>
2865
2866 * completer.c (complete_line): Make "line_buffer" const.
2867 * completer.h (complete_line): Update.
2868
ac1a991b
TT
28692014-06-18 Tom Tromey <tromey@redhat.com>
2870
2871 * symtab.c (add_macro_name): Remove unneeded cast.
2872
5bc98e52
TT
28732014-06-18 Tom Tromey <tromey@redhat.com>
2874
2875 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2876 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2877
8236def8
TT
28782014-06-18 Tom Tromey <tromey@redhat.com>
2879
2880 * probe.c (info_probes_for_ops): Make "arg" const.
2881 * probe.h (info_probes_for_ops): Update.
2882
3977b71f
TT
28832014-06-18 Tom Tromey <tromey@redhat.com>
2884
2885 * varobj.c (varobj_create): Update.
2886 * valops.c (value_of_this): Update.
2887 * tracepoint.c (add_local_symbols, scope_info): Update.
2888 * symtab.h (struct general_symbol_info) <block>: Now const.
2889 * symtab.c (skip_prologue_sal)
2890 (default_make_symbol_completion_list_break_on)
2891 (skip_prologue_using_sal): Update.
2892 * stack.h (iterate_over_block_locals)
2893 (iterate_over_block_local_vars): Update.
2894 * stack.c (print_frame_args): Update.
2895 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2896 parameter const.
2897 (get_selected_block): Make return type const.
2898 * python/py-frame.c (frapy_block): Update.
2899 * python/py-block.c (gdbpy_block_for_pc): Update.
2900 * p-exp.y (%union) <bval>: Now const.
2901 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2902 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2903 * m2-exp.y (%union) <bval>: Now const.
2904 * linespec.c (get_current_search_block): Make return type const.
2905 (create_sals_line_offset, find_label_symbols): Update.
2906 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2907 Update.
2908 (block_starting_point_at): Make "block" const.
2909 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2910 (check_exception_resume): Update.
2911 * guile/scm-frame.c (gdbscm_frame_block): Update.
2912 * guile/scm-block.c (gdbscm_lookup_block): Update.
2913 * frame.h (get_frame_block): Update.
2914 (get_selected_block): Make return type const.
2915 * frame.c (frame_id_inner): Update.
2916 * f-valprint.c (info_common_command_for_block)
2917 (info_common_command): Update.
2918 * dwarf2loc.c (dwarf2_find_location_expression)
2919 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2920 (locexpr_describe_location_piece): Update.
2921 * c-exp.y (%union) <bval>: Now const.
2922 * breakpoint.c (resolve_sal_pc): Update.
2923 * blockframe.c (get_frame_block):Make return type const.
2924 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2925 (block_innermost_frame): Update.
2926 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2927 (block_for_pc, block_for_pc_sect): Update.
2928 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2929 'pblock' const.
2930 (block_for_pc_sect, block_for_pc): Make return type const.
2931 * ax-gdb.c (gen_expr): Update.
2932 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2933 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2934 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2935 (ada_read_var_value): Update.
2936 * ada-exp.y (struct name_info) <block>: Now const.
2937 (%union): Likewise.
2938 (block_lookup): Constify.
2939
b9228891
GB
29402014-06-18 Gary Benson <gbenson@redhat.com>
2941
2942 * nat/i386-dregs.h: New file.
2943 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2944 * i386-nat.h (i386-dregs.h): New include.
2945 (DR_FIRSTADDR): Now in i386-dregs.h.
2946 (DR_LASTADDR): Likewise.
2947 (DR_NADDR): Likewise.
2948 (DR_STATUS): Likewise.
2949 (DR_CONTROL): Likewise.
2950 (i386_debug_reg_state): Likewise.
2951 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2952
a1aa2221
LM
29532014-06-18 Don Breazeal <donb@codesourcery.com>
2954
2955 * breakpoint.c (set_longjmp_breakpoint): Call
2956 momentary_breakpoint_from_master with additional argument.
2957 (set_longjmp_breakpoint_for_call_dummy): Call
2958 momentary_breakpoint_from_master with additional argument.
2959 (set_std_terminate_breakpoint): Call
2960 momentary_breakpoint_from_master with additional argument.
2961 (momentary_breakpoint_from_master): Add argument to function
2962 definition and use it to initialize structure member flag.
74228e77 2963 (clone_momentary_breakpoint): Call
a1aa2221
LM
2964 momentary_breakpoint_from_master with additional argument.
2965 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2966 member flags set in momentary_breakpoint_from_master.
2967
4be83cc2
GB
29682014-06-18 Gary Benson <gbenson@redhat.com>
2969
2970 * i386-nat.c (i386_show_dr): Renamed to
2971 i386_dr_show and made nonstatic. All uses updated.
2972 (i386_length_and_rw_bits): Renamed to
2973 i386_dr_length_and_rw_bits and made nonstatic.
2974 All uses updated.
2975 (i386_insert_aligned_watchpoint): Renamed to
2976 i386_dr_insert_aligned_watchpoint and made nonstatic.
2977 All uses updated.
2978 (i386_remove_aligned_watchpoint): Renamed to
2979 i386_dr_remove_aligned_watchpoint and made nonstatic.
2980 All uses updated.
2981 (i386_update_inferior_debug_regs): Renamed to
2982 i386_dr_update_inferior_debug_regs and made nonstatic.
2983 All uses updated.
2984
131aa0d4
GB
29852014-06-18 Gary Benson <gbenson@redhat.com>
2986
2987 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2988 (i386_dr_low_can_set_control): Likewise.
2989 (i386_dr_low_set_addr): Likewise.
2990 (i386_dr_low_set_control): Likewise.
2991 (i386_dr_low_get_addr): Likewise.
2992 (i386_dr_low_get_status): Likewise.
2993 (i386_dr_low_get_control): Likewise.
2994 (i386_insert_aligned_watchpoint): Use new macros.
2995 (i386_update_inferior_debug_regs): Likewise.
2996 (i386_stopped_data_address): Likewise.
2997
d9305f7f
GB
29982014-06-18 Gary Benson <gbenson@redhat.com>
2999
3000 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3001 New parameter. All uses updated.
3002
ea008da4
GB
30032014-06-18 Gary Benson <gbenson@redhat.com>
3004
3005 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3006 All uses updated.
3007
1b6d4134
GB
30082014-06-18 Gary Benson <gbenson@redhat.com>
3009
3010 * i386-nat.c (debug_printf): New macro.
3011 (i386_get_debug_register_length): Likewise.
3012 (TARGET_HAS_DR_LEN_8): Use above macro.
3013 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3014 and printf_unfiltered. Use phex to format values.
3015
9b4550ef
GB
30162014-06-18 Gary Benson <gbenson@redhat.com>
3017
3018 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3019 Make const.
3020
6e62758f
GB
30212014-06-18 Gary Benson <gbenson@redhat.com>
3022
3023 * i386-nat.c: Comment changes.
3024
51c79e94
GB
30252014-06-18 Gary Benson <gbenson@redhat.com>
3026
3027 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3028
3e11889a
GB
30292014-06-18 Gary Benson <gbenson@redhat.com>
3030
3031 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3032 (i386_insert_aligned_watchpoint): Likewise.
3033 (i386_remove_aligned_watchpoint): Likewise.
3034 (i386_handle_nonaligned_watchpoint): Likewise.
3035
fc6e2f03
GB
30362014-06-18 Gary Benson <gbenson@redhat.com>
3037
3038 * i386-nat.c: Whitespace changes.
3039
2afe7d50
SB
30402014-06-17 Samuel Bronson <naesten@gmail.com>
3041
3042 * MAINTAINERS: Update Roland McGrath's email address.
3043 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3044 Red Hat a while ago, and giving me a current address.
2afe7d50 3045
3bca49ee
TT
30462014-06-17 Tom Tromey <tromey@redhat.com>
3047
3048 * utils.h (savestring): Remove declaration.
3049
6e366df1
TT
30502014-06-17 Tom Tromey <tromey@redhat.com>
3051
3052 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3053
6be47f0c
KS
30542014-06-16 Keith Seitz <keiths@redhat.com>
3055
3056 PR mi/15863
3057 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3058 to update the varobj if inferior_ptid is null_ptid.
3059
7bc112c1
TT
30602014-06-16 Tom Tromey <tromey@redhat.com>
3061
3062 * target.h (struct target_ops) <to_info_proc>: Make parameter
3063 const.
3064 (target_info_proc): Update.
3065 * target.c (target_info_proc): Make "args" const.
3066 * procfs.c (procfs_info_proc): Update.
3067 * linux-tdep.c (linux_info_proc): Update.
3068 (linux_core_info_proc_mappings): Make "args" const.
3069 (linux_core_info_proc): Update.
3070 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3071 * gdbarch.c: Rebuild.
3072 * gdbarch.h: Rebuild.
3073 * corelow.c (core_info_proc): Update.
3074
fee354ee
TT
30752014-06-16 Tom Tromey <tromey@redhat.com>
3076
3077 * target.h (struct target_ops) <to_disconnect>: Make parameter
3078 const.
3079 (target_disconnect): Update.
3080 * target.c (target_disconnect): Make "args" const.
3081 * target-delegates.c: Rebuild.
3082 * remote.c (remote_disconnect): Update.
3083 * record.h (record_disconnect): Update.
3084 * record.c (record_disconnect): Update.
3085 * inf-child.c (inf_child_disconnect): Update.
3086
a30bf1f1
TT
30872014-06-16 Tom Tromey <tromey@redhat.com>
3088
3089 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3090 * target.c (debug_to_rcmd, default_rcmd): Update.
3091 * target-delegates.c: Rebuild.
3092 * remote.c (remote_rcmd): Update.
3093 * monitor.c (monitor_rcmd): Update.
3094
d03de421
PA
30952014-06-16 Pedro Alves <palves@redhat.com>
3096
3097 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3098 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3099 have OBJF_SHARED set.
3100 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3101 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3102 instead of OBJF_USERLOADED.
3103 * objfiles.h (OBJF_SHARED): Update comment.
3104 (userloaded_objfile_contains_address_p): Rename to ...
3105 (shared_objfile_contains_address_p): ... this, and update
3106 comments.
3107 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3108 new objfile.
3109 (remove_symbol_file_command): Skip objfiles that don't have
3110 OBJF_SHARED set.
3111
99f4262f
TT
31122014-06-16 Tom Tromey <tromey@redhat.com>
3113
3114 * minsyms.h (prim_record_minimal_symbol)
3115 (prim_record_minimal_symbol_and_info): Update comments.
3116
97d66cc6
EZ
31172014-06-14 Eli Zaretskii <eliz@gnu.org>
3118
3119 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3120 or --without-guile, according to how GDB was built.
3121
635c7e8a
TT
31222014-06-13 Tom Tromey <tromey@redhat.com>
3123
3124 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3125 to help_list.
3126 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3127 to help_list.
3128 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3129 help_list.
3130 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3131 help_list.Pass all_commands, not -1, to help_list.
3132 * cli/cli-dump.c (dump_command, append_command)
3133 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3134 (binary_dump_command, binary_append_command): Pass all_commands,
3135 not -1, to help_list.
3136 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3137 -1, to help_list.
3138 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3139 -1, to help_list.
3140 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3141 help_list.
3142 * top.c (set_history): Pass all_commands, not -1, to help_list.
3143 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3144 all_commands, not -1, to help_list.
3145 * symfile.c (overlay_command): Pass all_commands, not -1, to
3146 help_list.
3147 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3148 help_list.
3149 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3150 help_list.
3151 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3152 -1, to help_list.
3153 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3154 not -1, to help_list.
3155 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3156 not -1, to help_list.
3157 * maint.c (maintenance_command, maintenance_info_command)
3158 (maintenance_print_command, maintenance_set_cmd): Pass
3159 all_commands, not -1, to help_list.
3160 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3161 help_list.
3162 * language.c (set_check): Pass all_commands, not -1, to help_list.
3163 * infcmd.c (unset_command): Pass all_commands, not -1, to
3164 help_list.
3165 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3166 help_list.
3167 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3168 help_list.
3169 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3170 help_list.
3171 * breakpoint.c (save_command): Pass all_commands, not -1, to
3172 help_list.
3173 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3174 all_commands, not -1, to help_list.
3175
b94ade42
PL
31762014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3177
3178 * regcache.c (struct register_to_invalidate): New structure.
3179 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3180 functions.
3181 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3182
31f628ae
YQ
31832014-06-12 Yao Qi <yao@codesourcery.com>
3184
3185 * varobj.c (varobj_get_num_children): Call
3186 varobj_is_dynamic_p.
3187 (varobj_list_children): Likewise.
3188 (varobj_update): Likewise. Update comments.
3189
cde5ef40
YQ
31902014-06-12 Yao Qi <yao@codesourcery.com>
3191
3192 * varobj.c (varobj_pretty_printed_p): Rename to ...
3193 (varobj_is_dynamic_p): ... this. New function.
3194 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3195 (varobj_is_dynamic_p): Declare.
3196 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3197 (mi_print_value_p, varobj_update_one): Likewise.
3198
576ea091
YQ
31992014-06-12 Pedro Alves <pedro@codesourcery.com>
3200 Yao Qi <yao@codesourcery.com>
3201
3202 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3203 (varobj_get_iterator): Wrap up code for pretty-printer by
3204 "#if HAVE_PYTHON" and "#endif".
3205 (update_dynamic_varobj_children): Likewise.
3206
827f100c
YQ
32072014-06-12 Pedro Alves <pedro@codesourcery.com>
3208 Yao Qi <yao@codesourcery.com>
3209
3210 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3211 gdb_python_initialized is false. Move some code from varobj.c.
3212 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3213 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3214 (struct varobj_item): Moved to varobj-iter.h".
3215 (varobj_clear_saved_item): New function.
3216 (update_dynamic_varobj_children): Move python-related code to
3217 py-varobj.c.
3218 (free_variable): Call varobj_clear_saved_item and
3219 varobj_iter_delete.
3220
e5250216
YQ
32212014-06-12 Pedro Alves <pedro@codesourcery.com>
3222 Yao Qi <yao@codesourcery.com>
3223
3224 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3225 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3226 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3227 (py-varobj.o): New rule.
3228 * python/py-varobj.c: New file.
3229 * python/python-internal.h (py_varobj_get_iterator): Declare.
3230 * varobj-iter.h: New file.
3231 * varobj.c: Include "varobj-iter.h"
3232 (struct varobj) <child_iter>: Change its type from "PyObject *"
3233 to "struct varobj_iter *".
3234 <saved_item>: Likewise.
3235 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3236 [HAVE_PYTHON] (varobj_get_iterator): New function.
3237 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3238 python-specific code to python/py-varobj.c.
3239 (install_visualizer): Call varobj_iter_delete instead of
3240 Py_XDECREF.
3241 * varobj.h (varobj_ensure_python_env): Declare.
3242
5a2e0d6e
YQ
32432014-06-12 Yao Qi <yao@codesourcery.com>
3244
3245 * varobj.c (struct varobj_item): New structure.
3246 (create_child_with_value): Update declaration.
3247 (varobj_add_child): Replace arguments 'name' and 'value' with
3248 'item'. All callers updated.
3249 (install_dynamic_child): Likewise.
3250 (update_dynamic_varobj_children): Likewise.
3251 (varobj_add_child): Likewise.
3252 (create_child_with_value): Likewise.
3253
919b9a93
JB
32542014-06-11 Joel Brobecker <brobecker@adacore.com>
3255
3256 * NEWS: Create a new section for the next release branch.
3257 Rename the section of the current branch, now that it has
3258 been cut.
3259
71a55bdf
JB
32602014-06-11 Joel Brobecker <brobecker@adacore.com>
3261
3262 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3263 * version.in: Bump version to 7.8.50.DATE-cvs.
3264
364fe1f7
PA
32652014-06-11 Pedro Alves <palves@redhat.com>
3266
3267 PR remote/17028
3268 * ser-mingw.c (net_windows_socket_check_pending): New function.
3269 (net_windows_select_thread): Ignore spurious wakeups. Use
3270 net_windows_socket_check_pending.
3271 (net_windows_wait_handle): Check for pending events with
3272 ioctlsocket, through net_windows_socket_check_pending, instead of
3273 checking the socket's event.
3274
5a6c7709
SC
32752014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3276
3277 * python/python-internal.h (gdb_PyObject_GetAttrString)
3278 (gdb_PyObject_HasAttrString): New inline function definitions.
3279 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3280 char * of the second argument to PyObject_GetAttrString.
74228e77 3281
0e58ee40
JB
32822014-06-10 Joel Brobecker <brobecker@adacore.com>
3283
3284 * serial.c (serial_write): Fix index of character to be printed
3285 in call to serial_logchar when serial debug traces are enabled.
3286
d190df30
JB
32872014-06-10 Joel Brobecker <brobecker@adacore.com>
3288
3289 * gdbtypes (resolve_dynamic_range): Add function description.
3290
b4b01d36
PA
32912014-06-09 Pedro Alves <palves@redhat.com>
3292
3293 * linux-nat.c (linux_child_follow_fork): Initialize status with
3294 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3295 inner block. Only pass the signal to PTRACE_DETACH if in pass
3296 state.
3297
3657956b
GB
32982014-06-09 Gary Benson <gbenson@redhat.com>
3299
3300 * common/signals.c (gdb_signal_from_host): Reorder to separate
3301 the always-available ANSI-standard signals from the signals that
3302 require checking.
3303 (do_gdb_signal_to_host): Likewise.
3304 * proc-events.c (signal_table): Likewise.
3305
c077881a
HZ
33062014-06-08 Hui Zhu <hui@codesourcery.com>
3307
3308 * common/linux-ptrace.c (linux_disable_event_reporting): New
3309 function.
3310 * common/linux-ptrace.h (linux_disable_event_reporting): New
3311 declaration.
3312 * linux-nat.c (linux_child_follow_fork): Do a single step before
3313 detach.
3314
4186eb54
KS
33152014-06-07 Keith Seitz <keiths@redhat.com>
3316
3317 Revert:
3318 PR c++/16253
3319 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3320 from symbol_matches_domain in symtab.c. All local callers
3321 of symbol_matches_domain updated.
3322 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3323 search STRUCT_DOMAIN.
3324 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3325 independently. standard_lookup will do that automatically.
3326 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3327 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3328 (cp_lookup_symbol_in_namespace): Likewise.
3329 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3330 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3331 may return a STRUCT_DOMAIN match.
3332 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3333 * cp-support.c: Include language.h.
3334 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3335 VAR_DOMAIN.
3336 * psymtab.c (match_partial_symbol): Compare the requested
3337 domain with the symbol's domain directly.
3338 (lookup_partial_symbol): Likewise.
3339 * symtab.c (lookup_symbol_in_language): Explain when/why
3340 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3341 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3342 appropriate languages.
3343 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3344 and moved to ada-lang.c
3345 (lookup_block_symbol): Explain that this function only returns
3346 symbol matching the requested DOMAIN.
3347 Compare the requested domain with the symbol's domain directly.
3348 (iterate_over_symbols): Compare the requested domain with the
3349 symbol's domain directly.
3350 * symtab.h (symbol_matches_domain): Remove.
3351
25326a28 33522014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3353
3354 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3355 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3356 (gdbscm_guile_version_is_at_least): Declare.
3357 (gdbscm_scm_string_to_int): Declare.
3358 * guile/guile.c (gdbscm_guile_major_version): New global.
3359 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3360 (guile_datadir): New static global.
3361 (gdbscm_guile_data_directory): New function.
3362 (initialize_scheme_side): Update.
3363 (misc_guile_functions): Add guile-data-directory.
3364 (initialize_gdb_module): Fetch guile version number.
3365 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3366 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3367 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3368 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3369 comments.
3370 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3371 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3372 * guile/scm-value.c (gdbscm_value_to_string): Only call
3373 scm_port_conversion_strategy if Guile version >= 2.0.6.
3374
0a770bb2 33752014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3376
3377 * main.c (print_gdb_help): Add -q and --silent.
3378
73ba372c
GB
33792014-06-06 Gary Benson <gbenson@redhat.com>
3380
3381 * common/signals.c: Remove preprocessor conditionals for
3382 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3383 SIGSEGV and SIGTERM.
3384 * proc-events.c: Likewise.
3385
c33b2f12
MM
33862014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3387
3388 * symfile.c (symfile_free_objfile): Remove restriction to
3389 OBJF_USERLOADED.
3390 * symfile-mem.c (symbol_file_add_from_memory): Call
3391 add_target_sections_of_objfile.
3392
fb934770
LC
33932014-06-05 Ludovic Courtès <ludo@gnu.org>
3394
3395 * guile/scm-value.c (gdbscm_history_append_x): Use
3396 'vlscm_get_value_smob_arg_unsafe' instead of
3397 'vlscm_scm_to_value'.
3398
6ef284bd
SM
33992014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3400
3401 PR mi/15806
3402 * utils.c (printchar): Don't escape at all if quoter is NUL.
3403 Update function documentation to clarify effect of parameter
3404 QUOTER.
3405 * remote.c (escape_buffer): Pass '\\' as the quoter to
3406 fputstrn_unfiltered.
3407 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3408 generate the output.
3409 (mi_solib_unloaded): Same.
3410
270c9937
JB
34112014-06-05 Joel Brobecker <brobecker@adacore.com>
3412
3413 * development.sh: Delete.
3414 * Makefile.in (config.status): Adjust dependency on development.sh.
3415 * configure.ac: Adjust development.sh source call.
3416 * configure: Regenerate.
3417
16f691fb
DE
34182014-06-04 Doug Evans <xdje42@gmail.com>
3419
3420 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3421 is_scheme_bkpt, spec.
3422 (bpscm_make_breakpoint_smob): Initialize new members.
3423 (gdbscm_create_breakpoint_x): Split into two ...
3424 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3425 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3426 (scheme_function breakpoint_functions): Update.
3427 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3428 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3429 register-breakpoint!.
3430
ef7cab6b
JB
34312014-06-04 Joel Brobecker <brobecker@adacorer.com>
3432
3433 PR server/17023
3434 * mem-break.c (z_type_supported): Return zero if
3435 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3436
012370f6
TT
34372014-06-04 Tom Tromey <tromey@redhat.com>
3438
3439 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3440 value_from_contents_and_address_unresolved.
3441 (ada_template_to_fixed_record_type_1): Likewise.
3442 (ada_which_variant_applies): Likewise.
3443 * value.h (value_from_contents_and_address_unresolved): Declare.
3444 * value.c (value_from_contents_and_address_unresolved): New
3445 function.
3446 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3447 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3448 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3449
92e2a17f
TT
34502014-06-04 Tom Tromey <tromey@redhat.com>
3451
3452 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3453
c0939df1
TT
34542014-06-04 Tom Tromey <tromey@redhat.com>
3455
3456 * procfs.c (procfs_attach): Make "args" const.
3457 * windows-nat.c (windows_attach): Make "args" const.
3458 * nto-procfs.c (procfs_attach): Make "args" const.
3459 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3460 * go32-nat.c (go32_attach): Make "args" const.
3461 * gnu-nat.c (gnu_attach): Make "args" const.
3462 * darwin-nat.c (darwin_attach): Make "args" const.
3463 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3464 * linux-nat.c (linux_nat_attach): Make "args" const.
3465 * remote.c (extended_remote_attach_1, extended_remote_attach):
3466 Make "args" const.
3467 * target.h (struct target_ops) <to_attach>: Make "args" const.
3468 (find_default_attach): Likewise.
3469 * utils.c (parse_pid_to_attach): Make "args" const.
3470 * utils.h (parse_pid_to_attach): Update.
3471
8eaff7cd
TT
34722014-06-04 Tom Tromey <tromey@redhat.com>
3473
3474 * target-delegates.c: Rebuild.
3475 * target.c (default_thread_address_space): New function.
3476 (target_thread_address_space): Simplify.
3477 * target.h (struct target_ops) <to_thread_address_space>: Add
3478 TARGET_DEFAULT_FUNC.
3479
1913f160
DE
34802014-06-04 Doug Evans <xdje42@gmail.com>
3481
3482 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3483
70ad5bff
MM
34842014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3485
3486 * record-btrace.c: Include event-loop.h and inf-loop.h.
3487 (record_btrace_resume_exec_dir)
3488 (record_btrace_async_inferior_event_handler)
3489 (record_btrace_handle_async_inferior_event): New.
3490 (record_btrace_open): Create async event handler.
3491 (record_btrace_close): Delete async event handler.
3492 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3493 Mark async event handler.
3494 (record_btrace_execution_direction): New.
3495 (init_record_btrace_ops): Initialize to_execution_direction.
3496
b6210538
DE
34972014-06-03 Doug Evans <xdje42@gmail.com>
3498
3499 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3500 (gdbscm_make_parameter): Ditto.
3501
a5b1fd27
DE
35022014-06-03 Doug Evans <dje@google.com>
3503
3504 * exec.c (exec_close_1): Call clear_section_table instead of
3505 resize_section_table.
3506 (clear_section_table): New function.
3507 (resize_section_table): Make static. Rename arg num_added to
3508 adjustment.
3509 * exec.h (clear_section_table): Declare.
3510 (resize_section_table): Delete.
3511 * progspace.c (release_program_space): Call clear_section_table
3512 instead of resize_section_table.
3513
0c6e92a5
SC
35142014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3515
3516 * NEWS (Python Scripting): Add entry about the new xmethods
3517 feature.
3518
883964a7
SC
35192014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3520
3521 * python/py-xmethods.c: New file.
3522 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3523 (objfpy_dealloc): XDECREF on the new xmethods field.
3524 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3525 field.
3526 (objfpy_get_xmethods): New function.
3527 (objfile_getset): New entry 'xmethods'.
3528 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3529 (pspy_dealloc): XDECREF on the new xmethods field.
3530 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3531 field.
3532 (pspy_get_xmethods): New function.
3533 (pspace_getset): New entry 'xmethods'.
3534 * python/python-internal.h: Add declarations for new functions.
3535 * python/python.c (_initialize_python): Invoke
3536 gdbpy_initialize_xmethods.
3537 * python/lib/gdb/__init__.py (xmethods): New
3538 attribute.
3539 * python/lib/gdb/xmethod.py: New file.
3540 * python/lib/gdb/command/xmethods.py: New file.
3541
58992dc5
SC
35422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3543
3544 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3545 best match method returned by find_overload_match is an xmethod.
3546 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3547 the best matching operator returned by find_overload_match is an
3548 xmethod.
3549 * valops.c: #include "extension.h".
3550 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3551 Return void. The list of matching source methods is returned in
3552 "fn_list" and a vector of matching debug method workers is
3553 returned in "xm_worker_vec". Update all callers.
3554 (value_find_oload_method_list): Likewise.
3555 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3556 non-NULL, then the index of the best matching method in this
3557 vector is returned. Update all callers.
3558 (find_overload_match): Include xmethods while performing overload
3559 resolution.
3560
e81e7f5e
SC
35612014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3562
3563 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3564 * extension-priv.h (struct extension_language_ops): Add the
3565 xmethod interface.
3566 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3567 get_matching_xmethod_workers, get_xmethod_argtypes,
3568 invoke_xmethod, free_xmethod_worker,
3569 free_xmethod_worker_vec): New functions.
3570 * extension.h: #include "common/vec.h".
3571 New function declarations.
3572 (struct xmethod_worker): New struct.
3573 (VEC (xmethod_worker_ptr)): New vector type.
3574 (xmethod_worker_ptr): New typedef.
3575 (xmethod_worker_vec): Likewise.
3576 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3577 builtin_type.
3578 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3579 (struct builtin_type): New field "xmethod".
3580 * valarith.c (value_ptradd): Assert that the value argument is not
3581 lval_xcallable.
3582 * valops.c (value_must_coerce_to_target): Return 0 for
3583 lval_xcallable values.
3584 * value.c (struct value): New field XM_WORKER in the field
3585 LOCATION.
3586 (value_address, value_raw_address): Return 0 for lval_xcallable
3587 values.
3588 (set_value_address): Assert that the value is not an
3589 lval_xcallable.
3590 (value_free): Free the associated xmethod worker when freeing
3591 lval_xcallable values.
3592 (set_value_component_location): Assert that the WHOLE value is not
3593 lval_xcallable.
3594 (value_of_xmethod, call_xmethod): New functions.
3595 * value.h: Declare "struct xmethod_worker".
3596 Declare new functions value_of_xmethod, call_xmethod.
3597
ef370185
JB
35982014-06-03 Joel Brobecker <brobecker@adacore.com>
3599 Pedro Alves <palves@redhat.com>
3600
3601 PR breakpoints/17000
3602 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3603 New function, extracted from software_breakpoint_inserted_here_p.
3604 (software_breakpoint_inserted_here_p): Replace factored out code
3605 by call to find_non_raw_software_breakpoint_inserted_here.
3606 (bp_target_info_copy_insertion_state): New function.
3607 (bkpt_insert_location): Handle the case of a single-step
3608 breakpoint already inserted at the same address.
3609 (bkpt_remove_location): Handle the case of a single-step
3610 breakpoint still inserted at the same address.
3611 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3612 breakpoint already inserted at the same address.
3613 (deprecated_remove_raw_breakpoint): Handle the case of a
3614 non-raw breakpoint still inserted at the same address.
3615 (find_single_step_breakpoint): New function, extracted from
3616 single_step_breakpoint_inserted_here_p.
3617 (find_single_step_breakpoint): New function,
3618 factored out from single_step_breakpoint_inserted_here_p.
3619 (single_step_breakpoint_inserted_here_p): Reimplement.
3620
1e2ccb61
BM
36212014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3622
3623 Pushed by Joel Brobecker <brobecker@adacore.com>
3624 * source.c (show_substitute_path_command): Fix display of matching
3625 substitution rules.
3626
d3448d85
GB
36272014-06-03 Gary Benson <gbenson@redhat.com>
3628
3629 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3630
06eb1586
DE
36312014-06-02 Doug Evans <xdje42@gmail.com>
3632
3633 Add parameter support for Guile.
3634 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3635 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3636 (scm-param.o): New rule.
3637 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3638 (gdbscm_misc_error): Declare.
3639 (gdbscm_canonicalize_command_name): Declare.
3640 (gdbscm_scm_to_host_string): Declare.
3641 (gdbscm_scm_from_host_string): Declare.
3642 (gdbscm_initialize_parameters): Declare.
3643 * guile/guile.c (initialize_gdb_module): Call
3644 gdbscm_initialize_parameters.
3645 * guile/lib/gdb.scm: Export parameter symbols.
3646 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3647 cmdscm_canonicalize_name and made public. All callers updated.
3648 * guile/scm-exception.c (gdbscm_misc_error): New function.
3649 * guile/scm-param.c: New file.
3650 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3651 (gdbscm_scm_to_host_string): New function.
3652 (gdbscm_scm_from_host_string): New function.
3653 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3654
e698b8c4
DE
36552014-06-02 Doug Evans <xdje42@gmail.com>
3656
3657 Add command support for Guile.
3658 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3659 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3660 (scm-cmd.o): New rule.
3661 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3662 (gdbscm_user_error_p): Declare.
3663 (gdbscm_parse_command_name): Declare.
3664 (gdbscm_valid_command_class_p): Declare.
3665 (gdbscm_initialize_commands): Declare.
3666 * guile/guile.c (initialize_gdb_module): Call
3667 gdbscm_initialize_commands.
3668 * guile/lib/gdb.scm: Export command symbols.
3669 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3670 (throw-user-error): New function.
3671 * guile/scm-cmd.c: New file.
3672 * guile/scm-exception.c (user_error_symbol): New static global.
3673 (gdbscm_user_error_p): New function.
3674 (gdbscm_initialize_exceptions): Set user_error_symbol.
3675 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3676
fb1f94b0
PM
36772014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3678
3679 * top.c (command_loop): Handle comments here...
3680 (command_line_input): ... not here.
3681
ded03782
DE
36822014-06-02 Doug Evans <xdje42@gmail.com>
3683
3684 Add progspace support for Guile.
3685 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3686 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3687 (scm-progspace.o): New rule.
3688 * guile/guile-internal.h (pspace_smob): New typedef.
3689 (psscm_pspace_smob_pretty_printers): Declare.
3690 (psscm_pspace_smob_from_pspace): Declare.
3691 (psscm_scm_from_pspace): Declare.
3692 * guile/guile.c (initialize_gdb_module): Call
3693 gdbscm_initialize_pspaces.
3694 * guile/lib/gdb.scm: Export progspace symbols.
3695 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3696 support.
3697 (append-pretty-printer!): Ditto.
3698 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3699 Implement.
3700 * guile/scm-progspace.c: New file.
3701
397998fc
AM
37022014-06-03 Alan Modra <amodra@gmail.com>
3703
3704 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3705 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3706
6aa5f3a6
DE
37072014-06-02 Doug Evans <dje@google.com>
3708
3709 Add support for skeletonless type units.
3710 * dwarf2read.c (struct dwarf2_per_objfile): New member
3711 n_allocated_type_units.
3712 (struct dwarf2_per_objfile) <tu_stats>: New member
3713 nr_all_type_units_reallocs.
3714 (create_signatured_type_table_from_index): Initialize
3715 n_allocated_type_units
3716 (create_all_type_units): Ditto.
3717 (add_type_unit): Move up in file. New arg slot.
3718 All callers updated. Increase space for all_type_units more
3719 efficiently.
3720 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3721 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3722 (lookup_dwp_signatured_type): Ditto.
3723 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3724 All callers updated.
3725 (build_type_psymtabs_1): Leave type_unit_groups as
3726 NULL if no TUs present.
3727 (print_tu_stats): New function.
3728 (process_skeletonless_type_unit): New function.
3729 (process_dwo_file_for_skeletonless_type_units): New
3730 function.
3731 (process_skeletonless_type_units): New function.
3732 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3733 Call print tu_stats if debugging enabled.
3734
41fac0cf
PA
37352014-06-02 Pedro Alves <palves@redhat.com>
3736
3737 * breakpoint.c (build_target_command_list): Don't build a command
3738 list if we have any duplicate location that isn't a dprintf.
3739
cd1608cc
PA
37402014-06-02 Pedro Alves <palves@redhat.com>
3741
3742 * breakpoint.c (dprintf_breakpoint_hit): New function.
3743 (initialize_breakpoint_ops): Install it as dprintf's
3744 breakpoint_hit method.
3745
486ef3b9
JB
37462014-06-02 Joel Brobecker <brobecker@adacore.com>
3747
3748 * source.c (substitute_path_rule_matches): Simplify using
3749 filename_ncmp instead of FILENAME_CMP.
3750
230cd560
JB
37512014-06-02 Joel Brobecker <brobecker@adacore.com>
3752
3753 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3754
16954d5d
LC
37552014-06-01 Ludovic Courtès <ludo@gnu.org>
3756
3757 * configure.ac: When Guile is available, check for the
3758 availability of 'scm_new_smob'.
3759 * configure, config.h.in: Regenerate.
3760 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3761 function.
3762
53e8a631
AB
37632014-05-30 Andrew Burgess <aburgess@broadcom.com>
3764
3765 * frame.c (struct frame_info): Add stop_string field.
3766 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3767 (get_prev_frame_always): Old content moved into
3768 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3769 TRY_CATCH, handle MEMORY_ERROR exceptions.
3770 (frame_stop_reason_string): New function definition.
3771 * frame.h (unwind_stop_reason_to_string): Extend comment to
3772 mention frame_stop_reason_string.
3773 (frame_stop_reason_string): New function declaration.
3774 * stack.c (frame_info): Switch to frame_stop_reason_string.
3775 (backtrace_command_1): Switch to frame_stop_reason_string.
3776 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3777 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3778 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3779
70e38b8e
AB
37802014-05-30 Andrew Burgess <aburgess@broadcom.com>
3781
3782 * frame.c (frame_stop_reason_string): Rename to ...
3783 (unwind_stop_reason_to_string): this.
3784 * frame.h (frame_stop_reason_string): Rename to ...
3785 (unwind_stop_reason_to_string): this.
3786 * stack.c (frame_info): Update call to frame_stop_reason_string.
3787 (backtrace_command_1): Likewise.
3788 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3789 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3790
938f0e2f
AB
37912014-05-30 Andrew Burgess <aburgess@broadcom.com>
3792
3793 * frame.c (remove_prev_frame): New function.
3794 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3795 remove_prev_frame.
3796
a09dd441
PA
37972014-05-29 Pedro Alves <palves@redhat.com>
3798
3799 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3800 and make it const. When a single-step decays to a continue,
3801 clear 'step', not 'hw_step'. Pass whether the caller wanted
3802 to step to user_visible_resume_ptid, not what we ask the
3803 target to do.
3804
bdc36728
PA
38052014-05-29 Pedro Alves <palves@redhat.com>
3806
3807 * infrun.c (process_event_stop_test, handle_step_into_function)
3808 (handle_step_into_function_backward): Adjust.
3809 Don't set the even thread's stop_step and call stop_waiting before
3810 calling end_stepping_range. Instead do that ...
3811 (end_stepping_range): ... here. Take an ecs pointer parameter.
3812
22bcd14b
PA
38132014-05-29 Pedro Alves <palves@redhat.com>
3814
3815 * infrun.c (stop_stepping): Rename to ...
3816 (stop_waiting): ... this.
3817 (proceed): Update comment.
3818 (process_event_stop_test, handle_inferior_event)
3819 (handle_signal_stop, handle_step_into_function)
3820 (handle_step_into_function_backward): Update.
3821
4ae57c05
PA
38222014-05-29 Pedro Alves <palves@redhat.com>
3823
3824 * infcall.c (run_inferior_call): Don't check whether the current
3825 thread is running after the proceed call.
3826
329ea579
PA
38272014-05-29 Pedro Alves <palves@redhat.com>
3828 Tom Tromey <tromey@redhat.com>
3829
3830 * NEWS: Mention "maint set target-async", "set mi-async", and that
3831 background execution commands are now always available.
3832 * target.h (target_async_permitted): Update comment.
3833 * target.c (target_async_permitted, target_async_permitted_1):
3834 Default to 1.
3835 (set_target_async_command): Rename to ...
3836 (maint_set_target_async_command): ... this.
3837 (show_target_async_command): Rename to ...
3838 (maint_show_target_async_command): ... this.
3839 (_initialize_target): Adjust.
3840 * infcmd.c (prepare_execution_command): Make extern.
3841 * inferior.h (prepare_execution_command): Declare.
3842 * infrun.c (set_observer_mode): Leave target async alone.
3843 * mi/mi-interp.c (mi_interpreter_init): Install
3844 mi_on_sync_execution_done as sync_execution_done observer.
3845 (mi_on_sync_execution_done): New function.
3846 (mi_execute_command_input_handler): Don't print the prompt if we
3847 just started a synchronous command with an async target.
3848 (mi_on_resume): Check sync_execution before printing prompt.
3849 * mi/mi-main.h (mi_async_p): Declare.
3850 * mi/mi-main.c: Include gdbcmd.h.
3851 (mi_async_p): New function.
3852 (mi_async, mi_async_1): New globals.
3853 (set_mi_async_command, show_mi_async_command, mi_async): New
3854 functions.
3855 (exec_continue): Call prepare_execution_command.
3856 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3857 (mi_execute_async_cli_command): Use mi_async_p.
3858 (_initialize_mi_main): Install "set mi-async". Make
3859 "target-async" a deprecated alias.
3860
92bcb5f9
PA
38612014-05-29 Pedro Alves <palves@redhat.com>
3862
3863 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3864 (_initialize_cli_interp): Adjust.
3865 * event-loop.c: Include "observer.h".
3866 (start_event_loop): Notify 'command_error' observers instead of
3867 calling display_gdb_prompt. Remove FIXME comment.
3868 * event-top.c (display_gdb_prompt): Remove call into the
3869 interpreters.
3870 * inf-loop.c: Include "observer.h".
3871 (inferior_event_handler): Notify 'command_error' observers instead
3872 of calling display_gdb_prompt.
3873 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3874 observers instead of calling display_gdb_prompt.
3875 * interps.c (interp_set): Don't call display_gdb_prompt.
3876 (current_interp_display_prompt_p): Delete.
3877 * interps.h (interp_prompt_p): Delete declaration.
3878 (interp_prompt_p_ftype): Delete.
3879 (struct interp_procs) <prompt_proc_p>: Delete field.
3880 (current_interp_display_prompt_p): Delete declaration.
3881 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3882 (_initialize_mi_interp): Adjust.
3883 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3884 'command_error' observers.
3885 (tui_on_sync_execution_done, tui_on_command_error): New
3886 functions.
3887 (tui_display_prompt_p): Delete.
3888 (_initialize_tui_interp): Adjust.
3889
fd664c91
PA
38902014-05-29 Pedro Alves <palves@redhat.com>
3891
3892 PR gdb/13860
3893 * cli/cli-interp.c: Include infrun.h and observer.h.
3894 (cli_uiout, cli_interp): New globals.
3895 (cli_on_signal_received, cli_on_end_stepping_range)
3896 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3897 functions.
3898 (cli_interpreter_init): Install them as 'end_stepping_range',
3899 'signal_received' 'signal_exited', 'exited' and 'no_history'
3900 observers.
3901 (_initialize_cli_interp): Remove cli_interp local.
3902 * infrun.c (handle_inferior_event): Call the several stop reason
3903 observers instead of printing the stop reason directly.
3904 (end_stepping_range): New function.
3905 (print_end_stepping_range_reason, print_signal_exited_reason)
3906 (print_exited_reason, print_signal_received_reason)
3907 (print_no_history_reason): Make static, and add an uiout
3908 parameter. Print to that instead of to CURRENT_UIOUT.
3909 * infrun.h (print_end_stepping_range_reason)
3910 (print_signal_exited_reason, print_exited_reason)
3911 (print_signal_received_reason print_no_history_reason): New
3912 declarations.
3913 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3914 'mi_uiout'.
3915 <cli_uiout>: New field.
3916 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3917 uiout for CLI output. Install 'signal_received',
3918 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3919 observers.
3920 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3921 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3922 (mi_on_no_history): New functions.
3923 (ui_out_free_cleanup): Delete function.
3924 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3925 instead use the one already stored in the MI interpreter data.
3926 (mi_ui_out): Adjust.
3927 * tui/tui-interp.c: Include infrun.h and observer.h.
3928 (tui_interp): New global.
3929 (tui_on_signal_received, tui_on_end_stepping_range)
3930 (tui_on_signal_exited, tui_on_exited)
3931 (tui_on_no_history): New functions.
3932 (tui_init): Install them as 'end_stepping_range',
3933 'signal_received' 'signal_exited', 'exited' and 'no_history'
3934 observers.
3935 (_initialize_tui_interp): Delete tui_interp local.
3936
8817a6f2
PA
39372014-05-29 Pedro Alves <palves@redhat.com>
3938
3939 PR gdb/15713
3940 * linux-nat.c (linux_nat_resume_callback): Rename the second
3941 parameter to 'except'. Skip LP if it points to EXCEPT.
3942 (linux_nat_resume): Don't mark the event lwp as not stopped
3943 before resuming sibling lwps. Instead ask
3944 linux_nat_resume_callback to skip the event lwp. Mark it as not
3945 stopped after actually resuming it.
3946 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3947 resuming it.
3948 (wait_lwp): Mark the lwp as stopped here.
3949 (stop_wait_callback): Mark the lwp as not stopped right after
3950 resuming it. Don't mark lwps as stopped here.
3951 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3952 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3953
251bde03
PA
39542014-05-29 Pedro Alves <palves@redhat.com>
3955
3956 PR PR15693
3957 * infrun.c (resume): Determine how much to resume depending on
3958 whether the caller wanted a step, not whether we can hardware step
3959 the target. Mark all threads that we intend to run as running,
3960 unless we're calling an inferior function.
3961 (normal_stop): If the thread is running an infcall, don't finish
3962 thread state.
3963 * target.c (target_resume): Don't mark threads as running here.
3964
7f3c0343
JB
39652014-05-28 Joel Brobecker <brobecker@adacore.com>
3966
3967 * serial.c (_initialize_serial): Remove support for
3968 the "set remotebaud" and "show remotebaud" commands.
3969 * NEWS: Add entry documenting the removal of that command.
3970
ee34b3f9
YQ
39712014-05-28 Yao Qi <yao@codesourcery.com>
3972
3973 * charset.c: Fix typo in comments.
3974
add6c04d
GB
39752014-05-27 Gary Benson <gbenson@redhat.com>
3976
3977 * utils.c (internal_vproblem): Prompt for a bug report.
3978
92c48fc5
AW
39792014-05-26 Andy Wingo <wingo@igalia.com>
3980
3981 * guile/scm-arch.c (arscm_mark_arch_smob):
3982 * guile/scm-block.c (bkscm_mark_block_smob)
3983 (bkscm_mark_block_syms_progress_smob):
3984 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3985 * guile/scm-exception.c (exscm_mark_exception_smob):
3986 * guile/scm-frame.c (frscm_mark_frame_smob):
3987 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3988 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3989 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3990 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3991 (ppscm_mark_pretty_printer_worker_smob):
3992 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3993 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3994 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3995 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3996 mark functions.
3997 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3998 function.
3999
b2715b27
AW
40002014-05-26 Andy Wingo <wingo@igalia.com>
4001 Doug Evans <xdje42@gmail.com>
4002
4003 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4004 empty_base_class. All uses updated.
4005 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4006 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4007 Adapt all callers.
4008 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4009 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4010 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4011 (gdbscm_gsmob_has_property_p, add_property_name)
4012 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4013 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4014 (gdb-object-has-property?, gdb-object-properties): Remove.
4015 (gdb-object-kind): Renamed from gsmob-kind.
4016
214ab2da
AW
40172014-05-26 Andy Wingo <wingo@igalia.com>
4018
4019 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4020 * configure: Regenerate.
4021
589fdceb
MM
40222014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4023
4024 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4025
67b5c0c1
MM
40262014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4027
4028 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4029 (replay_memory_access_read_only, replay_memory_access_read_write)
4030 (replay_memory_access_types, replay_memory_access)
4031 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4032 (cmd_set_record_btrace, cmd_show_record_btrace)
4033 (cmd_show_replay_memory_access): New.
4034 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4035 (record_btrace_remove_breakpoint): Replace
4036 record_btrace_allow_memory_access with replay_memory_access.
4037 (_initialize_record_btrace): Add commands.
4038 * NEWS: Announce it.
4039
036cd381
RR
40402014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4041
4042 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4043
c77c1e42
RR
40442014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4045
4046 * MAINTAINERS (Write After Approval): Move self back from
4047 paper trail.
4048
45741a9c
PA
40492014-05-22 Pedro Alves <palves@redhat.com>
4050
4051 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4052 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4053 (disable_randomization, enum exec_direction_kind)
4054 (execution_direction, stop_registers, start_remote)
4055 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4056 (wait_for_inferior, normal_stop, get_last_target_status)
4057 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4058 (insert_step_resume_breakpoint_at_sal)
4059 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4060 (set_step_info, print_stop_event, signal_stop_state)
4061 (signal_print_state, signal_pass_state, signal_stop_update)
4062 (signal_print_update, signal_pass_update)
4063 (update_signals_program_target, clear_exit_convenience_vars)
4064 (displaced_step_dump_bytes, update_observer_mode)
4065 (signal_catch_update, gdb_signal_from_command): Move
4066 declarations ...
4067 * infrun.h: ... to this new file.
4068 * amd64-tdep.c: Include infrun.h.
4069 * annotate.c: Include infrun.h.
4070 * arch-utils.c: Include infrun.h.
4071 * arm-linux-tdep.c: Include infrun.h.
4072 * arm-tdep.c: Include infrun.h.
4073 * break-catch-sig.c: Include infrun.h.
4074 * breakpoint.c: Include infrun.h.
4075 * common/agent.c: Include infrun.h instead of inferior.h.
4076 * corelow.c: Include infrun.h.
4077 * event-top.c: Include infrun.h.
4078 * go32-nat.c: Include infrun.h.
4079 * i386-tdep.c: Include infrun.h.
4080 * inf-loop.c: Include infrun.h.
4081 * infcall.c: Include infrun.h.
4082 * infcmd.c: Include infrun.h.
4083 * infrun.c: Include infrun.h.
4084 * linux-fork.c: Include infrun.h.
4085 * linux-nat.c: Include infrun.h.
4086 * linux-thread-db.c: Include infrun.h.
4087 * monitor.c: Include infrun.h.
4088 * nto-tdep.c: Include infrun.h.
4089 * procfs.c: Include infrun.h.
4090 * record-btrace.c: Include infrun.h.
4091 * record-full.c: Include infrun.h.
4092 * remote-m32r-sdi.c: Include infrun.h.
4093 * remote-mips.c: Include infrun.h.
4094 * remote-notif.c: Include infrun.h.
4095 * remote-sim.c: Include infrun.h.
4096 * remote.c: Include infrun.h.
4097 * reverse.c: Include infrun.h.
4098 * rs6000-tdep.c: Include infrun.h.
4099 * s390-linux-tdep.c: Include infrun.h.
4100 * solib-irix.c: Include infrun.h.
4101 * solib-osf.c: Include infrun.h.
4102 * solib-svr4.c: Include infrun.h.
4103 * target.c: Include infrun.h.
4104 * top.c: Include infrun.h.
4105 * windows-nat.c: Include infrun.h.
4106 * mi/mi-interp.c: Include infrun.h.
4107 * mi/mi-main.c: Include infrun.h.
4108 * python/py-threadevent.c: Include infrun.h.
4109
98eb56a4
PA
41102014-05-22 Pedro Alves <palves@redhat.com>
4111
4112 * infrun.c (handle_inferior_event): Store the exit code for
4113 --return-child-result here, instead of ...
4114 (print_exited_reason): ... here.
4115
17b2616c
PA
41162014-05-21 Pedro Alves <palves@redhat.com>
4117
4118 PR gdb/13860
4119 * gdbthread.h (struct thread_control_state): New field
4120 `command_interp'.
4121 * infrun.c (follow_fork): Copy the new thread control field to the
4122 child fork thread.
4123 (clear_proceed_status_thread): Clear the new thread control field.
4124 (proceed): Set the new thread control field.
4125 * interps.h (command_interp): Declare.
4126 * interps.c (command_interpreter): New global.
4127 (command_interp): New function.
4128 (interp_exec): Set `command_interpreter' while here.
4129 * cli-out.c (cli_uiout_dtor): New function.
4130 (cli_ui_out_impl): Install it.
4131 * mi/mi-interp.c: Include cli-out.h.
4132 (mi_cmd_interpreter_exec): Add comment.
4133 (restore_current_uiout_cleanup): New function.
4134 (ui_out_free_cleanup): New function.
4135 (mi_on_normal_stop): If finishing an execution command started by
4136 a CLI command, or any kind of breakpoint-like event triggered,
4137 print the stop event to the output (CLI) stream.
4138 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4139
5166082f
PA
41402014-05-21 Pedro Alves <palves@redhat.com>
4141
4142 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4143 current source line having changed.
4144 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4145 * infrun.c (normal_stop): Adjust call to
4146 set_current_sal_from_frame.
4147 * source.c (clear_lines_listed_range): New function.
4148 (set_current_source_symtab_and_line, identify_source_line): Clear
4149 the lines listed range.
4150 (line_info): Handle the first "info line" after the current source
4151 line having changed.
4152 * stack.c (print_stack_frame): Remove center handling.
4153 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4154 center sal.line.
4155
c1ee2fb3
PA
41562014-05-21 Pedro Alves <palves@redhat.com>
4157
4158 * inf-child.c (inf_child_mourn_inferior): New function.
4159 * inf-child.h (inf_child_mourn_inferior): New declaration.
4160 * darwin-nat.c (darwin_mourn_inferior): Use
4161 inf_child_mourn_inferior.
4162 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4163 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4164 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4165 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4166 * windows-nat.c (windows_mourn_inferior): Likewise.
4167
5c6d4fb2
DE
41682014-05-21 Doug Evans <xdje42@gmail.com>
4169
250748cb 4170 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4171
4a2722c5
DE
41722014-05-21 Doug Evans <xdje42@gmail.com>
4173
17292b30 4174 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4175 (gdbscm_out_of_range_error): Ditto.
4176 (gdbscm_memory_error): Ditto.
250748cb
DE
4177 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4178 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4179 (gdbscm_out_of_range_error): Update.
4180 (gdbscm_memory_error): Update.
4181 (gdbscm_scm_to_target_string_unsafe): Delete.
4182
6a3cb8e8
PA
41832014-05-21 Pedro Alves <palves@redhat.com>
4184
4185 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4186 globals.
4187 (inf_child_open_target): New function.
4188 (inf_child_open): Use inf_child_open_target to push the target
4189 instead of erroring out.
4190 (inf_child_disconnect, inf_child_close)
4191 (inf_child_maybe_unpush_target): New functions.
4192 (inf_child_target): Install inf_child_disconnect and
4193 inf_child_close. Store a pointer to the returned object.
4194 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4195 declarations.
4196 * target.c (auto_connect_native_target): New global.
4197 (show_default_run_target): New function.
4198 (find_default_run_target): Return NULL if automatically connecting
4199 to the native target is disabled.
4200 (_initialize_target): Install set/show auto-connect-native-target.
4201 * NEWS: Mention "set auto-connect-native-target", and "target
4202 native".
4203 * linux-nat.c (super_close): New global.
4204 (linux_nat_close): Call super_close.
4205 (linux_nat_add_target): Store a pointer to the base class's
4206 to_close method.
4207 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4208 inf_child_maybe_unpush.
4209 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4210 already pushed.
4211 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4212 the inferior. Use inf_child_maybe_unpush_target.
4213 (inf_ttrace_attach): Don't push the target if it is already
4214 pushed.
4215 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4216 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4217 after mourning the inferior. Use inf_child_maybe_unpush_target.
4218 (darwin_attach_pid): Don't push the target if it is already
4219 pushed.
4220 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4221 mourning the inferior. Use inf_child_maybe_unpush_target.
4222 (gnu_detach): Use inf_child_maybe_unpush_target.
4223 * go32-nat.c (go32_create_inferior): Don't push the target if it
4224 is already pushed.
4225 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4226 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4227 (procfs_open): Rename to ...
4228 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4229 comments. Can target_preopen before changing node. Call
4230 inf_child_open_target to push the target explicitly.
4231 (procfs_attach): Don't push the target if it is already pushed.
4232 (procfs_detach): Use inf_child_maybe_unpush_target.
4233 (procfs_create_inferior): Don't push the target if it is already
4234 pushed.
4235 (nto_native_ops): New global.
4236 (procfs_open): Reimplement.
4237 (procfs_native_open): New function.
4238 (init_procfs_targets): Install procfs_native_open as to_open of
4239 "target native". Store a pointer to the "native" target in
4240 nto_native_ops.
4241 * procfs.c (procfs_attach): Don't push the target if it is already
4242 pushed.
4243 (procfs_detach): Use inf_child_maybe_unpush_target.
4244 (procfs_mourn_inferior): Only unpush the target after mourning the
4245 inferior. Use inf_child_maybe_unpush_target.
4246 (procfs_init_inferior): Don't push the target if it is already
4247 pushed.
4248 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4249 if it is already pushed.
4250
930ee1b1
PA
42512014-05-21 Pedro Alves <palves@redhat.com>
4252
4253 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4254 and "procfs" targets are now called "native" instead.
4255
1f5d1b13
PA
42562014-05-21 Pedro Alves <palves@redhat.com>
4257
4258 * go32-nat.c (go32_open): Delete.
4259 (go32_target): Don't override the to_open method.
4260
132f8e03
PA
42612014-05-21 Pedro Alves <palves@redhat.com>
4262
4263 * nto-procfs.c (procfs_can_run): New function.
4264 (nto_procfs_ops): New global.
4265 (init_procfs_targets): New, based on procfs_target. Install
4266 "target native" in addition to "target procfs".
4267 (_initialize_procfs): Call init_procfs_targets instead of adding
4268 the target here.
4269
03c136c3
PA
42702014-05-21 Pedro Alves <palves@redhat.com>
4271
4272 * windows-nat.c (windows_target): Don't override to_shortname,
4273 to_longname or to_doc.
4274
a635d0f3
PA
42752014-05-21 Pedro Alves <palves@redhat.com>
4276
4277 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4278 to_doc.
4279
4f9b5133
PA
42802014-05-21 Pedro Alves <palves@redhat.com>
4281
4282 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4283 to_shortname, to_longname or to_doc.
4284
bc85afde
PA
42852014-05-21 Pedro Alves <palves@redhat.com>
4286
4287 * go32-nat.c (go32_target): Don't override to_shortname,
4288 to_longname or to_doc.
4289
4ebfc96e
PA
42902014-05-21 Pedro Alves <palves@redhat.com>
4291
4292 * inf-child.c (inf_child_open): Remove mention of "child".
4293 (inf_child_target): Rename target to "native" instead of "child".
4294
2648dfed
AA
42952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4296
4297 * Makefile.in (SFILES): Delete "regset.c".
4298 (COMMON_OBS): Delete "regset.o".
4299 * regset.c: Remove.
4300 * regset.h (regset_alloc): Delete prototype.
4301
b13feb94
AA
43022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4303
4304 * sparc-linux-tdep.c (sparc32_linux_gregset)
4305 (sparc32_linux_fpregset): New static regset structures.
4306 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4307 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4308 'fpregset' fields.
4309 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4310 (sparc64_linux_fpregset): New static regset structures.
4311 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4312 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4313 New static regset structures.
4314 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4315 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4316 New static regset structures.
4317 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4318 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4319 New static regset structures.
4320 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4321 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4322 New static regset structures.
4323 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4324
b4fd25c9
AA
43252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4326
4327 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4328 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4329 register maps ("regmaps") from "*regset" to "*regmap". Do this
4330 for all regmap types and variables.
4331 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4332 (sparc32_linux_supply_core_gregset)
4333 (sparc32_linux_collect_core_gregset)
4334 (sparc32_linux_supply_core_fpregset)
4335 (sparc32_linux_collect_core_fpregset): Likewise.
4336 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4337 (sparc_gregmap, sparc_fpregmap): ... these.
4338 (sparc_supply_gregset, sparc_collect_gregset)
4339 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4340 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4341 (_initialize_sparc_nat): Rename regmaps.
4342 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4343 (sparc_gregmap, sparc_fpregmap): ... these.
4344 (sparc_supply_gregset, sparc_collect_gregset)
4345 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4346 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4347 Rename macros to...
4348 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4349 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4350 Likewise.
4351 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4352 Rename to...
4353 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4354 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4355 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4356 regmaps.
4357 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4358 (sparc32_bsd_fpregset): Rename to...
4359 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4360 (sparc32_bsd_fpregmap): ... these.
4361 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4362 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4363 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4364 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4365 (struct sparc_gregmap, struct sparc_fpregmap)
4366 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4367 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4368 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4369 (sparc32_supply_regset, sparc32_collect_gregset)
4370 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4371 prototypes.
4372 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4373 (sparc64_linux_ptrace_gregmap): ... this.
4374 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4375 (_initialize_sparc64_linux_nat): Rename regmaps.
4376 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4377 (sparc64_linux_core_gregmap): ... this.
4378 (sparc64_linux_supply_core_gregset)
4379 (sparc64_linux_collect_core_gregset)
4380 (sparc64_linux_supply_core_fpregset)
4381 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4382 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4383 (sparc64_sol2_fpregset): Rename to...
4384 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4385 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4386 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4387 regmaps.
4388 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4389 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4390 (sparc64_bsd_fpregset): Rename to...
4391 (struct sparc_gregmap, sparc64_sol2_gregmap)
4392 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4393 (sparc64_bsd_fpregmap): ... these.
4394 (sparc64_supply_gregset, sparc64_collect_gregset)
4395 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4396 prototypes.
4397 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4398 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4399 (sparc64fbsd_gregmap): ... this.
4400 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4401 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4402 Rename regmaps.
4403 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4404 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4405 (sparc64nbsd_collect_fpregset): Likewise.
4406 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4407 (sparc64nbsd_gregmap): ... this.
4408 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4409 regmaps.
4410 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4411 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4412 (sparc64obsd_gregmap): ... this.
4413 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4414 regmaps.
4415 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4416 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4417 (sparc32nbsd_gregmap): ... this.
4418 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4419 regmaps.
4420
8fea3224
AA
44212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4422
4423 * score-tdep.c (score7_linux_gregset): New static regset
4424 structure.
4425 (score7_linux_regset_from_core_section): Remove dynamic regset
4426 allocation.
4427 (score_gdbarch_init): Drop allocation of tdep structure.
4428 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4429
24534243
AA
44302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4431
4432 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4433 regset structures.
4434 (am33_regset_from_core_section): Remove dynamic regset
4435 allocations.
4436
b7195f27
AA
44372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4438
4439 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4440 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4441 structures.
4442 (mips_linux_regset_from_core_section): Remove dynamic regset
4443 allocations.
4444 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4445 'gregset64', 'fpregset', and 'fpregset64'.
4446 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4447 deleted tdep fields.
4448
ecc37a5a
AA
44492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4450
4451 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4452 regset structures.
4453 (amd64_regset_from_core_section): Remove dynamic regset
4454 allocations.
4455 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4456 structure.
4457 (amd64obsd_regset_from_core_section): Remove dynamic regset
4458 allocation.
4459 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4460 Likewise.
4461 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4462 x86-common regset supply function.
4463 * i386-tdep.c (i386_collect_gregset): Make static.
4464 (i386_gregset): New global regset structure.
4465 (i386_fpregset, i386_xstateregset): New static regset structures.
4466 (i386_regset_from_core_section): Remove dynamic regset
4467 allocations.
4468 (i386_gdbarch_init): Remove initialization of tdep fields
4469 'gregset', 'fpregset', and 'xstateregset'.
4470 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4471 'fpregset', and 'xstateregset'.
4472 (i386_collect_gregset): Remove prototype.
4473 (i386_gregset): New declaration.
4474 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4475 structure.
4476 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4477 allocation.
4478
b7611c43
AA
44792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4480
4481 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4482 (arm_linux_vfpregset): New static regset structures.
4483 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4484 regset structures.
4485 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4486 and 'vfpregset' fields.
4487
a069a2bd
AA
44882014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4489
4490 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4491 (aarch64_linux_fpregset): New static regset structures.
4492 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4493 of regset structures.
4494 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4495 'fpregset' fields.
4496
09424cff
AA
44972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4498
4499 * regset.h (struct regset): Remove gdbarch field.
4500 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4501 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4502 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4503 Likewise.
4504 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4505 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4506 (ppc32_linux_vsxregset): Likewise.
4507 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4508 via the regcache instead of the regset.
4509 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4510 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4511 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4512 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4513 Likewise.
4514
3ca7dae4
AA
45152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4516
4517 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4518 Constify structures.
4519 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4520 (alphanbsd_aout_gregset): Likewise.
4521 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4522 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4523 Likewise.
4524 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4525 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4526 Likewise.
4527 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4528 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4529 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4530 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4531 * m88k-tdep.c (m88k_gregset): Likewise.
4532 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4533 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4534 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4535 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4536 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4537 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4538 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4539 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4540 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4541 Likewise.
4542 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4543 * sh-tdep.h (sh_corefile_gregset): Likewise.
4544 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4545 * vax-tdep.c (vax_gregset): Likewise.
4546
5876f503
JK
45472014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4548
4549 Fix TLS access for -static -pthread.
4550 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4551 (try_thread_db_load_1): Initialize it.
4552 (thread_db_get_thread_local_address): Call it if LM is zero.
4553 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4554 * target.h (struct target_ops) (to_get_thread_local_address): Add
4555 load_module_addr comment.
4556
0256a6ac
PA
45572014-05-21 Pedro Alves <palves@redhat.com>
4558
4559 * dcache.c (dcache_read_memory_partial): If reading the cache line
4560 fails, fallback to reading just the memory the caller wanted.
4561
227533ac
DE
45622014-05-20 Doug Evans <dje@google.com>
4563
4564 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4565 instead of get_current_arch.
4566
936d2992
PA
45672014-05-20 Pedro Alves <palves@redhat.com>
4568
4569 * NEWS: Mention that compare-sections now works with all targets.
4570
4571 * remote.c (PACKET_qCRC): New enum value.
4572 (remote_verify_memory): Don't send qCRC if the target has no
4573 execution. Use packet_support/packet_ok. If the target doesn't
4574 support the qCRC packet, fallback to a deep memory copy.
4575 (compare_sections_command): Say "target image" instead of "remote
4576 executable".
4577 (_initialize_remote): Add PACKET_qCRC to the list of config
4578 packets that have no associated command. Extend comment.
4579 * target.c (simple_verify_memory, default_verify_memory): New
4580 function.
4581 * target.h (struct target_ops) <to_verify_memory>: Default to
4582 default_verify_memory.
4583 (simple_verify_memory): New declaration.
4584 * target-delegates.c: Regenerate.
4585
e59fa00f
MM
45862014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4587
4588 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4589
f2205de0
HZ
45902014-05-20 Hui Zhu <hui@codesourcery.com>
4591 Yao Qi <yao@codesourcery.com>
4592
4593 PR backtrace/16558
4594 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4595 and change address of sp and pc.
4596
c4e54771
TT
45972014-05-19 Tom Tromey <tromey@redhat.com>
4598
4599 * gdbtypes.c (rank_function): Use XNEWVEC.
4600 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4601
73051182
DE
46022014-05-19 Doug Evans <dje@google.com>
4603
4604 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4605 build_type_unit_groups and moved closer to only caller. Remove
4606 arguments. All references updated. Remove outdated .gdb_index
4607 comment.
4608 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4609 build_type_psymtabs_1.
4610
8832e7e3
DE
46112014-05-19 Doug Evans <dje@google.com>
4612
4613 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4614 n_type_unit_groups, all_type_unit_groups. All uses removed.
4615 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4616 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4617 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4618 (add_type_unit_group_to_table): Delete.
4619
cd8ae15e
DE
46202014-05-19 Doug Evans <dje@google.com>
4621
4622 * eval.c (evaluate_subexp_standard): Add some comments.
4623
08f4850b
DE
46242014-05-17 Doug Evans <xdje42@gmail.com>
4625
4626 * progspace.c (remove_program_space): Delete, unused.
4627 * progspace.h (remove_program_space): Ditto.
4628
bed8455c
DE
46292014-05-17 Doug Evans <xdje42@gmail.com>
4630
4631 * inferior.c (prune_inferiors): Fix comment.
4632 (remove_inferior_command): Call prune_program_spaces.
4633
8d551b02
DE
46342014-05-16 Doug Evans <dje@google.com>
4635
4636 New command line option -D.
4637 * NEWS: Mention it.
4638 * main.c (set_gdb_data_directory): New function.
4639 (captured_main): Recognize -D. Flag error for --data-directory "".
4640 Call set_gdb_data_directory.
4641 (print_gdb_help): Print --data-directory, -D.
4642 * main.h (set_gdb_data_directory): Declare.
4643 * top.c (staged_gdb_datadir): New static global.
4644 (set_gdb_datadir): Call set_gdb_data_directory
4645 (show_gdb_datadir): New function.
4646 (init_main): Update init of data-directory parameter.
4647
18848e28
GF
46482014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4649
4650 Import the "dirfd" gnulib module.
4651 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4652 * gnulib/aclocal.m4: Update.
4653 * gnulib/config.in: Update.
4654 * gnulib/configure: Update.
4655 * gnulib/import/Makefile.am: Update.
4656 * gnulib/import/Makefile.in: Update.
4657 * gnulib/import/dirfd.c: New.
4658 * gnulib/import/m4/dirfd.m4: New.
4659 * gnulib/import/m4/gnulib-cache.m4: Update.
4660 * gnulib/import/m4/gnulib-comp.m4: Update.
4661
95c64f92
YQ
46622014-05-16 Pierre Muller <muller@sourceware.org>
4663 Yao Qi <yao@codesourcery.com>
4664
4665 * valprint.c (print_wchar): Move the code on checking whether
4666 W is a printable wide char to the default branch of switch
4667 statement below. Call wchar_printable instead of gdb_iswprint.
4668
cac395ea
TM
46692014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4670
19679eca 4671 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4672 ldr.w and ldrd instructions.
4673
83655187
DE
46742014-05-15 Doug Evans <dje@google.com>
4675
4676 * dwarf2read.c (read_structure_type): Delete outdated comments.
4677
dd756689
TT
46782014-05-14 Tom Tromey <tromey@redhat.com>
4679
4680 * macrocmd.c (print_macro_definition): Reindent.
4681
75ddda77
DE
46822014-05-13 Doug Evans <xdje42@gmail.com>
4683
4684 * python/py-cmd.c (cmdpy_completer): Add comment.
4685 (completers): Make const.
4686
b0f16a3e
SM
46872014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4688
4689 * infrun.c (resume): Remove should_resume (unused). Move up
4690 declaration of resume_ptid.
4691
033c3379
TT
46922014-05-13 Tom Tromey <tromey@redhat.com>
4693
4694 * language.h (unop_type_check): Remove.
4695 (binop_type_check): Don't declare.
4696
9b44a3a5
AA
46972014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4698
4699 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4700 call to regcache_raw_collect.
4701
303a33fa
SM
47022014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4703
4704 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4705 mi_console->quote as the quoting character.
4706
196100a0
SM
47072014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4708
4709 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4710
f989a1c8
TT
47112014-04-29 Tom Tromey <tromey@redhat.com>
4712
4713 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4714 "show debug varobj".
4715
9404b58f
KM
47162014-05-07 Kyle McMartin <kyle@redhat.com>
4717
4718 Pushed by Joel Brobecker <brobecker@adacore.com>.
4719 * aarch64-tdep.c (aarch64_software_single_step): New function.
4720 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4721 with aarch64_software_single_step.
4722
5e49ba57
JB
47232014-05-05 Joel Brobecker <brobecker@adacore.com>
4724
4725 GDB 7.7.1 released.
4726
c888a17d
KS
47272014-05-05 Keith Seitz <keiths@redhat.com>
4728
4729 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4730 variable or history value is successfully parsed.
4731
290a839c
YQ
47322014-05-05 Yao Qi <yao@codesourcery.com>
4733 Pedro Alves <palves@redhat.com>
4734
4735 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4736 address of blocks that intersects the requested range. Trim
4737 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4738 sections.
4739 * ctf.c (ctf_xfer_partial): Likewise.
4740
91256dc2
YQ
47412014-05-05 Yao Qi <yao@codesourcery.com>
4742
4743 * printcmd.c (display_command): Remove the check to
4744 target_has_execution.
4745
07284463
MK
47462014-05-03 Mark Kettenis <kettenis@gnu.org>
4747
4748 * ppcobsd-nat.c: Include "obsd-nat.h".
4749 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4750 add_target.
4751 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4752
30a1e6cc
SDJ
47532014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4754
4755 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4756 and 16-bit signed and unsigned arguments. Update comment.
4757 (stap_parse_probe_arguments): Extend code to handle such
4758 arguments. Use warning instead of complaint to notify about
4759 unrecognized bitness.
4760
f33da99a
SDJ
47612014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4762
4763 PR breakpoints/16889
4764 * stap-probe.c (stap_parse_probe_arguments): Simplify
4765 check for non-prefixed probes (i.e., probes whose
4766 arguments do not start with "N@"). Always set the
4767 argument type to a sane value.
4768
95cf3b38
DT
47692014-05-01 David Taylor <dtaylor@emc.com>
4770
4771 * remote.c (compare_sections_command): Add -r option to compare
4772 all loadable read-only sections.
4773
1cfdf534
SC
47742014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4775
4776 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4777 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4778 Update all callers.
4779 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4780 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4781 Remove unused CORE_ADDR argument. Update all callers.
4782
ca4f7f8b
PA
47832014-04-29 Pedro Alves <palves@redhat.com>
4784
4785 * remote.c (struct packet_config) <detect>: Extend comment.
4786 (add_packet_config_cmd): Don't set the config's detect or support
4787 fields here.
4788 (init_all_packet_configs): Also initialize the config's 'detect'
4789 field.
4790 (reset_all_packet_configs_support): New function.
4791 (remote_open_1): Call reset_all_packet_configs_support instead of
4792 init_all_packet_configs.
4793 (_initialize_remote): Initialize all packet configs. Assert that
4794 all packets have an associated command, except a few known
4795 outliers.
4796
11c1ba78
JB
47972014-04-28 Joel Brobecker <brobecker@adacore.com>
4798
4799 * dwarf2read.c (read_subrange_type): Handle dynamic
4800 DW_AT_lower_bound attributes.
4801
8739bc53
JB
48022014-04-28 Joel Brobecker <brobecker@adacore.com>
4803
4804 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4805 dynamic bounds before computing its upper bound.
4806 (ada_discrete_type_low_bound): Same as above with the lower bound.
4807
6f8a3220
JB
48082014-04-28 Joel Brobecker <brobecker@adacore.com>
4809
4810 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4811 range types. Adjust the array handling implementation to
4812 take advantage of this change.
4813 (resolve_dynamic_range): New function, mostly extracted from
4814 resolve_dynamic_bounds.
4815 (resolve_dynamic_array): New function, mostly extracted from
4816 resolve_dynamic_bounds.
4817 (resolve_dynamic_bounds): Delete.
4818 (resolve_dynamic_type): Reimplement. Add handling of
4819 TYPE_CODE_RANGE types.
4820
4d072ce4
JB
48212014-04-28 Joel Brobecker <brobecker@adacore.com>
4822
4823 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4824 handling of parallel ___XA types.
4825
52865325
JB
48262014-04-28 Joel Brobecker <brobecker@adacore.com>
4827
4828 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4829 unnecessary second call to static_unwrap_type.
4830
433e77fa
HZ
48312014-04-27 Hui Zhu <hui@codesourcery.com>
4832
4833 * stack.c (print_frame_info): Call do_gdb_disassembly with
4834 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4835
b51a69ee
DE
48362014-04-26 Doug Evans <xdje42@gmail.com>
4837
4838 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4839
7ae1a6a6
PA
48402014-04-25 Pedro Alves <palves@redhat.com>
4841
4842 PR server/16255
4843 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4844 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4845 and newline from built string.
4846 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4847 (linux_ptrace_attach_fail_reason): ... this.
4848 * linux-nat.c (linux_nat_attach): Adjust to use
4849 linux_ptrace_attach_fail_reason.
4850
4082afcc
PA
48512014-04-25 Pedro Alves <palves@redhat.com>
4852
4853 * remote.c (struct remote_state): Remove multi_process_aware,
4854 non_stop_aware, cond_tracepoints, cond_breakpoints,
4855 breakpoint_commands, fast_tracepoints, static_tracepoints,
4856 install_in_trace, disconnected_tracing,
4857 enable_disable_tracepoints, string_tracing, and
4858 augmented_libraries_svr4_read fields.
4859 (remote_multi_process_p): Move further below in the file.
4860 (struct packet_config): Add comments.
4861 (update_packet_config): Delete function.
4862 (show_packet_config_cmd): Use packet_config_support.
4863 (add_packet_config_cmd): Use NULL as set callback.
4864 (packet_ok): "set remote foo-packet"-style commands no longer
4865 change config->supported -- adjust.
4866 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4867 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4868 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4869 (PACKET_QNonStop, PACKET_multiprocess_feature)
4870 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4871 (PACKET_DisconnectedTracing_feature)
4872 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4873 (set_remote_protocol_packet_cmd): Delete function.
4874 (packet_config_support, packet_support): New functions.
4875 (set_remote_protocol_Z_packet_cmd): Don't call
4876 update_packet_config.
4877 (remote_query_attached, remote_pass_signals)
4878 (remote_program_signals, remote_threads_info)
4879 (remote_threads_extra_info, remote_start_remote): Use
4880 packet_support.
4881 (remote_start_remote): Use packet_config_support and
4882 packet_support.
4883 (init_all_packet_configs): Set all packets to unknown support,
4884 instead of calling update_packet_config.
4885 (remote_check_symbols): Use packet_support.
4886 (remote_supported_packet): Unconditionally set the packet config's
4887 support status.
4888 (remote_multi_process_feature, remote_non_stop_feature)
4889 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4890 (remote_breakpoint_commands_feature)
4891 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4892 (remote_install_in_trace_feature)
4893 (remote_disconnected_tracing_feature)
4894 (remote_enable_disable_tracepoint_feature)
4895 (remote_string_tracing_feature)
4896 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4897 (remote_protocol_features): Adjust to use remote_supported_packet
4898 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4899 "ConditionalTracepoints", "ConditionalBreakpoints",
4900 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4901 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4902 "EnableDisableTracepoints", and "tracenz".
4903 (remote_query_supported): Use packet_support.
4904 (remote_open_1): Adjust.
4905 (extended_remote_attach_1): Use packet_support. Switch on the
4906 result of packet_ok instead of checking whether the packet ended
4907 up disabled.
4908 (remote_vcont_resume): Use packet_support.
4909 (remote_resume, remote_stop_ns, fetch_register_using_p)
4910 (remote_prepare_to_store, store_register_using_P)
4911 (check_binary_download, remote_write_bytes): Use packet_support.
4912 (remote_vkill): Use packet_support. Switch on the result of
4913 packet_ok instead of checking whether the packet ended up
4914 disabled.
4915 (extended_remote_supports_disable_randomization): Use
4916 packet_support.
4917 (extended_remote_run): Switch on the result of packet_ok instead
4918 of checking whether the packet ended up disabled.
4919 (remote_insert_breakpoint, remote_remove_breakpoint)
4920 (remote_insert_watchpoint, remote_remove_watchpoint)
4921 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4922 packet_support.
4923 (remote_search_memory): Use packet_config_support.
4924 (remote_get_thread_local_address, remote_get_tib_address)
4925 (remote_hostio_send_command, remote_can_execute_reverse): Use
4926 packet_support.
4927 (remote_supports_cond_tracepoints)
4928 (remote_supports_cond_breakpoints)
4929 (remote_supports_fast_tracepoints)
4930 (remote_supports_static_tracepoints)
4931 (remote_supports_install_in_trace)
4932 (remote_supports_enable_disable_tracepoint)
4933 (remote_supports_string_tracing)
4934 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4935 the packet config says the feature is enabled or disabled.
4936 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4937 (remote_get_trace_status): Use packet_support.
4938 (remote_set_disconnected_tracing): Adjust to check whether the
4939 feature is enabled with packet_support.
4940 (remote_set_trace_buffer_size, remote_use_agent)
4941 (remote_can_use_agent, remote_supports_btrace): Use
4942 packet_support.
4943 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4944 Use packet_config_support.
4945 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4946 the packet config says the feature is enabled or disabled.
4947 (set_range_stepping): Use packet_support.
4948
bdb52a22
TT
49492014-04-25 Tom Tromey <tromey@redhat.com>
4950
4951 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4952 argument.
4953
e9475ead
SA
49542014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4955
4956 * NEWS: Mention support for C99 variable length arrays.
4957
82eacd52
JB
49582014-04-24 Joel Brobecker <brobecker@adacore.com>
4959
4960 * ada-lang.c (standard_exc): Expand introductory comment.
4961
01f9f808
MS
49622014-04-24 Michael Sturm <michael.sturm@mintel.com>
4963 Walfred Tedeschi <walfred.tedeschi@intel.com>
4964
4965 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4966 AVX512 registers.
4967 (amd64_linux_read_description): Add code to handle AVX512 xstate
4968 mask and return respective tdesc.
4969 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4970 and features/i386/x32-avx512-linux.c.
4971 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4972 (amd64_linux_core_read_description): Add code to handle AVX512
4973 xstate mask and return respective tdesc.
4974 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4975 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4976 calculation.
4977 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4978 (tdesc_amd64_avx512_linux): New prototype.
4979 (tdesc_x32_avx512_linux): Likewise.
4980 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4981 features/i386/x32-avx512.c.
4982 (amd64_ymm_avx512_names): New register names for pseudo
4983 registers YMM16-31.
4984 (amd64_ymmh_avx512_names): New register names for raw registers
4985 YMMH16-31.
4986 (amd64_k_names): New register names for K registers.
4987 (amd64_zmmh_names): New register names for ZMM raw registers.
4988 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4989 (amd64_xmm_avx512_names): New register names for XMM16-31
4990 registers.
4991 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4992 registers.
4993 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4994 if feature is present.
4995 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4996 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4997 (AMD64_NUM_REGS): Adjust to new number of registers.
4998 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4999 registers supplied via XSTATE by AVX512 registers.
5000 (i386_linux_read_description): Add case for AVX512.
5001 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5002 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5003 (i386_linux_core_read_description): Add case for AVX512.
5004 (i386_linux_init_abi): Install supported register note section
5005 for AVX512.
5006 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5007 AVX512.
5008 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5009 registers to be number of zmm7h + 1.
5010 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5011 * i386-tdep.c: Include features/i386/i386-avx512.c.
5012 (i386_zmm_names): Add ZMM pseudo register names array.
5013 (i386_zmmh_names): Add ZMM raw register names array.
5014 (i386_k_names): Add K raw register names array.
5015 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5016 registers. AVX512 has 16 more ZMM registers than there are YMM
5017 registers.
5018 (i386_zmmh_regnum_p): Add function to look up register number of
5019 ZMM raw registers.
5020 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5021 (i386_k_regnum_p): Likewise for K raw registers.
5022 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5023 registers added by AVX512.
5024 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5025 registers added by AVX512.
5026 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5027 added by AVX512.
5028 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5029 (i386_pseudo_register_name): Add ZMM pseudo registers.
5030 (i386_zmm_type): Construct and return vector registers type for ZMM
5031 registers.
5032 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5033 ZMM0-31 pseudo registers and K registers.
5034 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5035 and YMM16-31 registers from register cache.
5036 (i386_pseudo_register_write): Add code to write K, ZMM and
5037 YMM16-31 registers.
5038 (i386_register_reggroup_p): Add code to include/exclude AVX512
5039 registers in/from respective register groups.
5040 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5041 registers if feature is present in xcr0.
5042 (i386_gdbarch_init): Add code to initialize AVX512 feature
5043 variables in tdep structure, wire in pseudo registers and call
5044 initialize_tdesc_i386_avx512.
5045 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5046 variables.
5047 (i386_regnum): Add AVX512 registers.
5048 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5049 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5050 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5051 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5052 512 bits wide.
5053 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5054 (i386_ymm_avx512_regnum_p): Likewise.
5055 (i386_k_regnum_p): Likewise.
5056 (i386_zmm_regnum_p): Likewise.
5057 (i386_zmmh_regnum_p): Likewise.
5058 * i387-tdep.c : Update year in copyright notice.
5059 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5060 XSAVE buffer.
5061 (XSAVE_YMM_AVX512_ADDR): New macro.
5062 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5063 XSAVE buffer.
5064 (XSAVE_XMM_AVX512_ADDR): New macro.
5065 (xsave_avx512_k_offset): New table for K register offsets in
5066 XSAVE buffer.
5067 (XSAVE_AVX512_K_ADDR): New macro.
5068 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5069 in XSAVE buffer.
5070 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5071 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5072 buffer.
5073 (i387_collect_xsave): Add code to collect AVX512 registers from
5074 XSAVE buffer.
5075 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5076 of XMM16-31 registers.
5077 (I387_NUM_K_REGS): New define for number of K registers.
5078 (I387_K0_REGNUM): New define for K0 register number.
5079 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5080 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5081 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5082 registers.
5083 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5084 (I387_XMM16_REGNUM): New define for XMM16 register number.
5085 (I387_YMM0_REGNUM): New define for YMM0 register number.
5086 (I387_KEND_REGNUM): New define for last K register number.
5087 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5088 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5089 number.
5090 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5091 number.
5092 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5093 size.
5094 * features/Makefile: Add AVX512 related files.
5095 * features/i386/32bit-avx512.xml: New file.
5096 * features/i386/64bit-avx512.xml: Likewise.
5097 * features/i386/amd64-avx512-linux.c: Likewise.
5098 * features/i386/amd64-avx512-linux.xml: Likewise.
5099 * features/i386/amd64-avx512.c: Likewise.
5100 * features/i386/amd64-avx512.xml: Likewise.
5101 * features/i386/i386-avx512-linux.c: Likewise.
5102 * features/i386/i386-avx512-linux.xml: Likewise.
5103 * features/i386/i386-avx512.c: Likewise.
5104 * features/i386/i386-avx512.xml: Likewise.
5105 * features/i386/x32-avx512-linux.c: Likewise.
5106 * features/i386/x32-avx512-linux.xml: Likewise.
5107 * features/i386/x32-avx512.c: Likewise.
5108 * features/i386/x32-avx512.xml: Likewise.
5109 * regformats/i386/amd64-avx512-linux.dat: New file.
5110 * regformats/i386/amd64-avx512.dat: Likewise.
5111 * regformats/i386/i386-avx512-linux.dat: Likewise.
5112 * regformats/i386/i386-avx512.dat: Likewise.
5113 * regformats/i386/x32-avx512-linux.dat: Likewise.
5114 * regformats/i386/x32-avx512.dat: Likewise.
5115 * NEWS: Add note about new support for AVX512.
5116
5117
08351840
PA
51182014-04-23 Pedro Alves <palves@redhat.com>
5119
5120 * breakpoint.c (insert_bp_location): Tolerate errors if the
5121 breakpoint is set in a user-loaded objfile.
5122 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5123 location is marked shlib_disabled. If the breakpoint is set in a
5124 user-loaded objfile is a GDB-side memory breakpoint, validate it
5125 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5126 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5127 flag.
5128 * mem-break.c (memory_validate_breakpoint): New function.
5129 * objfiles.c (userloaded_objfile_contains_address_p): New
5130 function.
5131 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5132 * target.h (memory_validate_breakpoint): New declaration.
5133
076855f9
PA
51342014-04-23 Pedro Alves <palves@redhat.com>
5135
5136 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5137 the breakpoint is set in a shared library, only suppress
5138 errors for software breakpoints, not hardware breakpoints.
5139
483805cf
PA
51402014-04-22 Pedro Alves <palves@redhat.com>
5141
5142 * infrun.c (schedlock_applies): New function, factored out from
5143 find_thread_needs_step_over.
5144 (find_thread_needs_step_over): Use it.
5145 (switch_back_to_stepped_thread): Always clear trap_expected if the
5146 step over is finished. Return early if scheduler locking applies.
5147 Look for the stepping thread and a potential step-over thread with
5148 a single loop.
5149 (currently_stepping_or_nexting_callback): Delete.
5150
a75fef0e
NC
51512014-04-22 Nick Clifton <nickc@redhat.com>
5152
5153 * NEWS: Mention that ARM sim now supports tracing.
5154
48b6e87e
YQ
51552014-04-22 Yao Qi <yao@codesourcery.com>
5156
5157 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5158 to ...
5159 * tracefile.c (tracefile_fetch_registers): ... it. New
5160 function.
5161 * tracefile.h (tracefile_fetch_registers): Declare.
5162 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5163 tracefile_fetch_registers.
5164
17617f2d
EZ
51652014-04-19 Eli Zaretskii <eliz@gnu.org>
5166
5167 PR gdb/14018
5168 * windows-nat.c (thread_rec): Don't display a warning when
5169 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5170 fails for any reason, set th->suspended to -1, so that we don't
5171 try to resume such a thread. Also, don't return NULL in these
5172 cases, to avoid completely ruin the session due to "PC register is
5173 not available" error.
5174 (do_windows_fetch_inferior_registers): Check errors in
5175 GetThreadContext call.
5176 (windows_continue): Accept an additional argument KILLED; if not
5177 zero, ignore errors in the SetThreadContext call, since the
5178 inferior was killed and is shutting down.
5179 (windows_resume, get_windows_debug_event)
5180 (windows_create_inferior, windows_mourn_inferior)
5181 (windows_kill_inferior): All callers of windows_continue changed
5182 to adjust to its new calling sequence.
5183
5723a6fd
YQ
51842014-04-19 Yao Qi <yao@codesourcery.com>
5185
5186 * ctf.c (ctf_open): Call post_create_inferior.
5187
614d5099
YQ
51882014-04-19 Yao Qi <yao@codesourcery.com>
5189
5190 * ctf.c (handle_id): New static variable.
5191 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5192 value. Get the declaration of event "register" and get length
5193 of field "contents".
5194
dac3e710
YQ
51952014-04-19 Yao Qi <yao@codesourcery.com>
5196
5197 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5198
2bca57ba
SC
51992014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5200
5201 * valops.c (oload_method_static): Remove unnecessary argument
5202 METHOD. Update all callers.
5203
51d48146
PA
52042014-04-18 Pedro alves <palves@redhat.com>
5205 Tom Tromey <tromey@redhat.com>
5206
5207 PR backtrace/15558
5208 * frame.c (get_prev_frame_1): Rename to ...
5209 (get_prev_frame_always): ... this, and make extern. Adjust.
5210 (skip_artificial_frames): Use get_prev_frame_always.
5211 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5212 (get_frame_unwind_stop_reason): Adjust to rename.
5213 * frame.h (get_prev_frame_always): Declare.
5214 * inline-frame.c: Include frame.h.
5215 (inline_frame_this_id): Use get_prev_frame_always.
5216
1bdad2e0
TG
52172014-04-18 Tristan Gingold <gingold@adacore.com>
5218
5219 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5220 code by using bfd_mach_o_get_base_address.
5221
7ce16bd4
UW
52222014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5223
5224 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5225 (spu_ax_pseudo_register_collect): New function.
5226 (spu_ax_pseudo_register_push_stack): Likewise.
5227 (spu_dwarf_reg_to_regnum): Likewise.
5228 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5229
2ed3c037
UW
52302014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5231
5232 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5233 Replace FRAME argument with FRAME_ID.
5234 * gdbarch.c, gdbarch.h: Regenerate.
5235 * findvar.c (default_value_from_register): Add GDBARCH argument;
5236 replace FRAME by FRAME_ID. No longer call get_frame_id.
5237 (value_from_register): Update call to gdbarch_value_from_register.
5238 * value.h (default_value_from_register): Update prototype.
5239 * s390-linux-tdep.c (s390_value_from_register): Update interface
5240 and call to default_value_from_register.
5241 * spu-tdep.c (spu_value_from_register): Likewise.
5242
5243 * findvar.c (address_from_register): Remove TYPE argument.
5244 Do not call value_from_register; use gdbarch_value_from_register
5245 with null_frame_id instead.
5246 * value.h (address_from_register): Update prototype.
5247 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5248 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5249 address_from_register interface change.
5250
71e50e83
YQ
52512014-04-17 Yao Qi <yao@codesourcery.com>
5252
5253 * gdbtypes.h: Update comments to link to types and macros'
5254 definitions.
5255
7a23c549
SC
52562014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5257
5258 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5259
22869d73
KS
52602014-04-16 Keith Seitz <keiths@redhat.com>
5261
5262 PR gdb/15827
5263 * dwarf2read.c (skip_one_die): Check that all relative-offset
5264 sibling DIEs fall within range of the current reader's buffer.
5265 (read_partial_die): Likewise.
5266
c4f87ca6
KS
52672014-04-16 Keith Seitz <keiths@redhat.com>
5268
5269 PR c++/16597
5270 * cp-namespace.c (lookup_symbol_file): If the type name of
5271 `this' is NULL, return immediately.
5272
b50c8614
KS
52732014-04-14 Keith Seitz <keiths@redhat.com>
5274
5275 PR c++/16253
5276 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5277 from symbol_matches_domain in symtab.c. All local callers
5278 of symbol_matches_domain updated.
5279 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5280 search STRUCT_DOMAIN.
5281 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5282 independently. standard_lookup will do that automatically.
5283 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5284 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5285 (cp_lookup_symbol_in_namespace): Likewise.
5286 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5287 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5288 may return a STRUCT_DOMAIN match.
5289 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5290 * cp-support.c: Include language.h.
5291 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5292 VAR_DOMAIN.
5293 * psymtab.c (match_partial_symbol): Compare the requested
5294 domain with the symbol's domain directly.
5295 (lookup_partial_symbol): Likewise.
5296 * symtab.c (lookup_symbol_in_language): Explain when/why
5297 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5298 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5299 appropriate languages.
5300 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5301 and moved to ada-lang.c
5302 (lookup_block_symbol): Explain that this function only returns
5303 symbol matching the requested DOMAIN.
5304 Compare the requested domain with the symbol's domain directly.
5305 (iterate_over_symbols): Compare the requested domain with the
5306 symbol's domain directly.
5307 * symtab.h (symbol_matches_domain): Remove.
5308
3d567982
TT
53092014-04-14 Tom Tromey <tromey@redhat.com>
5310
5311 PR c++/15246:
5312 * c-exp.y (type_aggregate_p): New function.
5313 (qualified_name, classify_inner_name): Use it.
5314 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5315 and TYPE_TARGET_TYPE of an enum type.
5316 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5317 an enum type.
5318 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5319 handle TYPE_DECLARED_CLASS.
5320 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5321 types.
5322 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5323 * valops.c (enum_constant_from_type): New function.
5324 (value_aggregate_elt): Use it.
5325 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5326 TYPE_CODE_ENUM.
5327
c848d642
TT
53282014-04-14 Tom Tromey <tromey@redhat.com>
5329
5330 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5331 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5332 const.
5333 * value.h (value_aggregate_elt): Update.
5334
0626fc76
TT
53352014-04-14 Tom Tromey <tromey@redhat.com>
5336
5337 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5338
5ecaaa66
SA
53392014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5340
5341 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5342 (evaluate_subexp_standard): Pass noside argument.
5343 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5344 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5345 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5346 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5347 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5348
1612e0c0
SA
53492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5350
5351 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5352 points to a constant blob.
5353
c451ebe5
SA
53542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5355
5356 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5357 property and store it as the high bound and flag the range accordingly.
5358 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5359 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5360 * gdbtypes.h (enum range_flags): New enum.
5361 (struct range_bounds): Add flags member.
5362
1d42e4c4
SA
53632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5364
5365 * c-typeprint.c (c_type_print_varspec_suffix): Added
5366 check for not yet resolved high bound. If unresolved, print
5367 "variable length" string to the console instead of random
5368 length.
5369
9f1f738a
SA
53702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5371
5372 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5373 value.
5374 (ada_template_to_fixed_record_type_1): Likewise.
5375 (ada_to_fixed_type_1): Likewise.
5376 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5377 (cp_print_value): Likewise.
5378 * d-valprint.c (dynamic_array_type): Likewise.
5379 * findvar.c (address_of_variable): Likewise.
5380 * jv-valprint.c (java_value_print): Likewise.
5381 * valops.c (value_ind): Likewise.
5382 * value.c (coerce_ref): Likewise.
5383
3c8452d4
SA
53842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5385
5386 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5387 value and retrieve the dynamic type size.
5388
4ad88275
SA
53892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5390
5391 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5392 passed to sizeof is dynamic evaluate the argument to compute the length.
5393
80180f79
SA
53942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5395 Joel Brobecker <brobecker@adacore.com>
5396
5397 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5398 (dwarf2_evaluate_property): New function.
5399 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5400 * dwarf2read.c (attr_to_dynamic_prop): New function.
5401 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5402 attribute.
5403 * gdbtypes.c: Include dwarf2loc.h.
5404 (is_dynamic_type): New function.
5405 (resolve_dynamic_type): New function.
5406 (resolve_dynamic_bounds): New function.
5407 (get_type_length): New function.
5408 (check_typedef): Use get_type_length to compute type length.
5409 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5410 (TYPE_LOW_BOUND_KIND): New macro.
5411 (is_dynamic_type): New function prototype.
5412 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5413 to resolve dynamic properties of the type. Update comment.
5414 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5415
a1556843
RH
54162014-04-14 Richard Henderson <rth@redhat.com>
5417
5418 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5419
0be03e84
DE
54202014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5421 Doug Evans <xdje42@gmail.com>
5422
5423 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5424 dereference TYPE_CODE_REF values.
5425
6b662e19
JB
54262014-04-11 Joel Brobecker <brobecker@adacore.com>
5427
5428 Revert the following changes due to regressions:
5429
5430 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5431 (dwarf2_evaluate_property): New function.
5432 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5433 * dwarf2read.c (attr_to_dynamic_prop): New function.
5434 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5435 attribute.
5436 * gdbtypes.c: Include dwarf2loc.h.
5437 (is_dynamic_type): New function.
5438 (resolve_dynamic_type): New function.
5439 (resolve_dynamic_bounds): New function.
5440 (get_type_length): New function.
5441 (check_typedef): Use get_type_length to compute type length.
5442 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5443 (TYPE_LOW_BOUND_KIND): New macro.
5444 (is_dynamic_type): New function prototype.
5445 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5446 to resolve dynamic properties of the type. Update comment.
5447 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5448
5449 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5450 passed to sizeof is dynamic evaluate the argument to compute the length.
5451
5452 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5453 value and retrieve the dynamic type size.
5454
5455 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5456 (ada_template_to_fixed_record_type_1): Likewise.
5457 (ada_to_fixed_type_1): Likewise.
5458 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5459 (cp_print_value): Likewise.
5460 * d-valprint.c (dynamic_array_type): Likewise.
5461 * eval.c (evaluate_subexp_with_coercion): Likewise.
5462 * findvar.c (address_of_variable): Likewise.
5463 * jv-valprint.c (java_value_print): Likewise.
5464 * valops.c (value_ind): Likewise.
5465 * value.c (coerce_ref): Likewise.
5466
5467 * c-typeprint.c (c_type_print_varspec_suffix): Added
5468 check for not yet resolved high bound. If unresolved, print
5469 "variable length" string to the console instead of random
5470 length.
5471
5472 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5473 property and store it as the high bound and flag the range accordingly.
5474 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5475 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5476 * gdbtypes.h (enum range_flags): New enum.
5477 (struct range_bounds): Add flags member.
5478
5479 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5480 points to a constant blob.
5481
5482 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5483 (evaluate_subexp_standard): Pass noside argument.
5484 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5485 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5486 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5487 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5488 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5489
245a5f0b
KS
54902014-04-11 Keith Seitz <keiths@redhat.com>
5491
5492 PR c++/16675
5493 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5494 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5495 reference types.
5496
3bce8237
SA
54972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5498
5499 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5500 (evaluate_subexp_standard): Pass noside argument.
5501 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5502 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5503 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5504 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5505 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5506
92b09522
SA
55072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5508
5509 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5510 points to a constant blob.
5511
e1969afb
SA
55122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5513
5514 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5515 property and store it as the high bound and flag the range accordingly.
5516 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5517 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5518 * gdbtypes.h (enum range_flags): New enum.
5519 (struct range_bounds): Add flags member.
5520
b86138fb
SA
55212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5522
5523 * c-typeprint.c (c_type_print_varspec_suffix): Added
5524 check for not yet resolved high bound. If unresolved, print
5525 "variable length" string to the console instead of random
5526 length.
5527
bcd629a4
SA
55282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5529
5530 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5531 (ada_template_to_fixed_record_type_1): Likewise.
5532 (ada_to_fixed_type_1): Likewise.
5533 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5534 (cp_print_value): Likewise.
5535 * d-valprint.c (dynamic_array_type): Likewise.
5536 * eval.c (evaluate_subexp_with_coercion): Likewise.
5537 * findvar.c (address_of_variable): Likewise.
5538 * jv-valprint.c (java_value_print): Likewise.
5539 * valops.c (value_ind): Likewise.
5540 * value.c (coerce_ref): Likewise.
5541
04b19544
SA
55422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5543
5544 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5545 value and retrieve the dynamic type size.
5546
26cb189f
SA
55472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5548
5549 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5550 passed to sizeof is dynamic evaluate the argument to compute the length.
5551
37c1ab67
SA
55522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5553
5554 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5555 (dwarf2_evaluate_property): New function.
5556 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5557 * dwarf2read.c (attr_to_dynamic_prop): New function.
5558 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5559 attribute.
5560 * gdbtypes.c: Include dwarf2loc.h.
5561 (is_dynamic_type): New function.
5562 (resolve_dynamic_type): New function.
5563 (resolve_dynamic_bounds): New function.
5564 (get_type_length): New function.
5565 (check_typedef): Use get_type_length to compute type length.
5566 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5567 (TYPE_LOW_BOUND_KIND): New macro.
5568 (is_dynamic_type): New function prototype.
5569 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5570 to resolve dynamic properties of the type. Update comment.
5571 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5572
729efb13
SA
55732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5574
5575 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5576 declaring high/low bounds and change uses accordingly. Call
5577 create_range_type instead of create_static_range_type.
5578 * gdbtypes.c (create_range_type): New function.
5579 (create_range_type): Convert bounds into struct bound_prop and pass
5580 them to create_range_type.
5581 * gdbtypes.h (struct bound_prop): New struct.
5582 (create_range_type): New function prototype.
5583 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5584 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5585 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5586 part of the bound.
5587 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5588
0c9c3474
SA
55892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5590
5591 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5592 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5593 * ada-lang.c: All uses of create_range_type updated.
5594 * coffread.c: All uses of create_range_type updated.
5595 * dwarf2read.c: All uses of create_range_type updated.
5596 * f-exp.y: All uses of create_range_type updated.
5597 * m2-valprint.c: All uses of create_range_type updated.
5598 * mdebugread.c: All uses of create_range_type updated.
5599 * stabsread.c: All uses of create_range_type updated.
5600 * valops.c: All uses of create_range_type updated.
5601 * valprint.c: All uses of create_range_type updated.
5602
9d497a19
PA
56032014-04-10 Pedro Alves <palves@redhat.com>
5604
5605 * breakpoint.c (single_step_breakpoints)
5606 (single_step_gdbarch): Move up in the file.
5607 (one_breakpoint_xfer_memory): New function, factored out from ...
5608 (breakpoint_xfer_memory): ... here. Also process single-step
5609 breakpoints.
5610
15a9128a
TG
56112014-04-09 Tristan Gingold <gingold@adacore.com>
5612
5613 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5614 comments.
5615 (darwin_decode_exception_message): Free port only after use.
5616
9c97a070
PL
56172014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5618
5619 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5620 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5621 when setting the size of call_length.
5622
7af389b8
SC
56232014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5624
5625 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5626 dereference TYPE_CODE_REF values.
5627
86ad98c3
JB
56282014-04-07 Joel Brobecker <brobecker@adacore.com>
5629
5630 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5631 end of warning message.
5632
b0aeadb3
DE
56332014-04-03 Doug Evans <dje@google.com>
5634
5635 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5636 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5637
5979d6b6
AM
56382014-04-02 Alan Modra <amodra@gmail.com>
5639
5640 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5641 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5642 (struct symbol_file_add_from_memory_args): Add size field.
5643 (find_vdso_size): New function.
5644 (add_vsyscall_page): Attempt to find vdso size.
5645
0d60c288
DE
56462014-04-01 Doug Evans <dje@google.com>
5647
5648 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5649
a41f2563
TG
56502014-04-01 Tristan Gingold <gingold@adacore.com>
5651
5652 * darwin-nat.c (darwin_encode_reply): Add prototype.
5653 (darwin_decode_exception_message): Reply to unknown inferiors.
5654 (darwin_decode_message): Handle message by id. Ignore message
5655 to unknown inferior.
5656 (darwin_wait): Discard unknown messages, add debug trace.
5657
11a865c8
DE
56582014-03-31 Doug Evans <dje@google.com>
5659
5660 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5661 comp_dir_string.
5662
770e7fc7
DE
56632014-03-31 Doug Evans <dje@google.com>
5664
5665 New option "set print symbol-loading".
5666 * NEWS: Mention it.
5667 * solib.c (solib_read_symbols): Only print symbol loading messages
5668 if requested.
5669 (solib_add): If symbol loading is in "brief" mode, notify user
5670 symbols are being loaded.
5671 (reload_shared_libraries_1): Ditto.
5672 * symfile.c (print_symbol_loading_off): New static global.
5673 (print_symbol_loading_brief): New static global.
5674 (print_symbol_loading_full): New static global.
5675 (print_symbol_loading_enums): New static global.
5676 (print_symbol_loading): New static global.
5677 (print_symbol_loading_p): New function.
5678 (symbol_file_add_with_addrs): Only print symbol loading messages
5679 if requested.
5680 (_initialize_symfile): Register "print symbol-loading" set/show
5681 command.
5682 * symfile.h (print_symbol_loading_p): Declare.
5683
c32c64b7
DE
56842014-03-30 Doug Evans <xdje42@gmail.com>
5685
5686 * infrun.c (set_last_target_status): New function.
5687 (handle_inferior_event): Call it.
5688
7c0bc051
DE
56892014-03-30 Doug Evans <xdje42@gmail.com>
5690
5691 * inferior.h (enum stop_kind): Improve comment.
5692
8776cfe9
JB
56932014-03-28 Joel Brobecker <brobecker@adacore.com>
5694
5695 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5696 a reference, strip the reference layer before calling
5697 the lang_ops value_has_mutated callback.
5698
410a0ff2
SDJ
56992014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5700
5701 Remove some globals from our parser.
5702 * language.c (unk_lang_parser): Add "struct parser_state"
5703 argument.
5704 * language.h (struct language_defn) <la_parser>: Likewise.
5705 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5706 (initialize_expout): Add "struct parser_state" argument.
5707 Rewrite function to use the parser state.
5708 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5709 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5710 write_exp_elt_longcst, write_exp_elt_dblcst,
5711 write_exp_elt_decfloatcst, write_exp_elt_type,
5712 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5713 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5714 write_dollar_variable): Likewise.
5715 (parse_exp_in_context_1): Use parser state.
5716 (insert_type_address_space): Add "struct parser_state" argument.
5717 Use parser state.
5718 (increase_expout_size): New function.
5719 * parser-defs.h: Forward declare "struct language_defn" and
5720 "struct parser_state".
5721 (expout, expout_size, expout_ptr): Remove extern declarations.
5722 (parse_gdbarch, parse_language): Rewrite macro declarations to
5723 accept the parser state.
5724 (struct parser_state): New struct.
5725 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5726 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5727 write_exp_elt_decfloatcst, write_exp_elt_type,
5728 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5729 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5730 write_exp_msymbol, write_dollar_variable,
5731 mark_struct_expression, insert_type_address_space): Add "struct
5732 parser_state" argument.
5733 (increase_expout_size): New function.
5734 * utils.c (do_clear_parser_state): New function.
5735 (make_cleanup_clear_parser_state): Likewise.
5736 * utils.h (make_cleanup_clear_parser_state): New function
5737 prototype.
5738 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5739 Update calls to write_exp* in order to pass the parser state.
5740 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5741 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5742 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5743 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5744 * stap-probe.c (stap_parse_register_operand): Likewise.
5745 (stap_parse_single_operand): Likewise.
5746 (stap_parse_argument_1): Likewise.
5747 (stap_parse_argument): Use parser state.
5748 * stap-probe.h: Include "parser-defs.h".
5749 (struct stap_parse_info) <pstate>: New field.
5750 * c-exp.y (parse_type): Rewrite to use parser state.
5751 (yyparse): Redefine to c_parse_internal.
5752 (pstate): New global variable.
5753 (parse_number): Add "struct parser_state" argument.
5754 (write_destructor_name): Likewise.
5755 (type_exp): Update calls to write_exp* and similars in order to
5756 use parser state.
5757 (exp1, exp, variable, qualified_name, space_identifier,
5758 typename, typebase): Likewise.
5759 (write_destructor_name, parse_number, lex_one_token,
5760 classify_name, classify_inner_name, c_parse): Add "struct
5761 parser_state" argument. Update function to use parser state.
5762 * c-lang.h: Forward declare "struct parser_state".
5763 (c_parse): Add "struct parser_state" argument.
5764 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5765 (yyparse): Redefine macro to ada_parse_internal.
5766 (pstate): New variable.
5767 (write_int, write_object_renaming, write_var_or_type,
5768 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5769 type_int, type_long, type_long_long, type_float, type_double,
5770 type_long_double, type_char, type_boolean, type_system_address):
5771 Add "struct parser_state" argument.
5772 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5773 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5774 var_or_type, aggregate, aggregate_component_list,
5775 positional_list, others, component_group,
5776 component_associations): Update calls to write_exp* and similar
5777 functions in order to use parser state.
5778 (ada_parse, write_var_from_sym, write_int,
5779 write_exp_op_with_string, write_object_renaming,
5780 find_primitive_type, write_selectors, write_ambiguous_var,
5781 write_var_or_type, write_name_assoc, type_int, type_long,
5782 type_long_long, type_float, type_double, type_long_double,
5783 type_char, type_boolean, type_system_address): Add "struct
5784 parser_state" argument. Adjust function to use parser state.
5785 * ada-lang.c (parse): Likewise.
5786 * ada-lang.h: Forward declare "struct parser_state".
5787 (ada_parse): Add "struct parser_state" argument.
5788 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5789 calls to both functions.
5790 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5791 parser state.
5792 (yyparse): Redefine macro to f_parse_internal.
5793 (pstate): New variable.
5794 (parse_number): Add "struct parser_state" argument.
5795 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5796 and similars in order to use parser state.
5797 (parse_number): Adjust code to use parser state.
5798 (yylex): Likewise.
5799 (f_parse): New function.
5800 * f-lang.h: Forward declare "struct parser_state".
5801 (f_parse): Add "struct parser_state" argument.
5802 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5803 parser state.
5804 (yyparse): Redefine macro for java_parse_internal.
5805 (pstate): New variable.
5806 (push_expression_name, push_expression_name, insert_exp): Add
5807 "struct parser_state" argument.
5808 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5809 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5810 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5811 PostIncrementExpression, PostDecrementExpression,
5812 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5813 UnaryExpressionNotPlusMinus, CastExpression,
5814 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5815 RelationalExpression, EqualityExpression, AndExpression,
5816 ExclusiveOrExpression, InclusiveOrExpression,
5817 ConditionalAndExpression, ConditionalOrExpression,
5818 ConditionalExpression, Assignment, LeftHandSide): Update
5819 calls to write_exp* and similars in order to use parser state.
5820 (parse_number): Ajust code to use parser state.
5821 (yylex): Likewise.
5822 (java_parse): New function.
5823 (push_variable): Add "struct parser_state" argument. Adjust
5824 code to user parser state.
5825 (push_fieldnames, push_qualified_expression_name,
5826 push_expression_name, insert_exp): Likewise.
5827 * jv-lang.h: Forward declare "struct parser_state".
5828 (java_parse): Add "struct parser_state" argument.
5829 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5830 parser state.
5831 (yyparse): Redefine macro to m2_parse_internal.
5832 (pstate): New variable.
5833 (type_exp, exp, fblock, variable, type): Update calls to
5834 write_exp* and similars to use parser state.
5835 (yylex): Likewise.
5836 (m2_parse): New function.
5837 * m2-lang.h: Forward declare "struct parser_state".
5838 (m2_parse): Add "struct parser_state" argument.
5839 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5840 * objc-lang.h: Forward declare "struct parser_state".
5841 (end_msglist): Add "struct parser_state" argument.
5842 * p-exp.y (parse_type): Rewrite macro to use parser state.
5843 (yyparse): Redefine macro to pascal_parse_internal.
5844 (pstate): New variable.
5845 (parse_number): Add "struct parser_state" argument.
5846 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5847 write_exp* and similars in order to use parser state.
5848 (parse_number, yylex): Adjust code to use parser state.
5849 (pascal_parse): New function.
5850 * p-lang.h: Forward declare "struct parser_state".
5851 (pascal_parse): Add "struct parser_state" argument.
5852 * go-exp.y (parse_type): Rewrite macro to use parser state.
5853 (yyparse): Redefine macro to go_parse_internal.
5854 (pstate): New variable.
5855 (parse_number): Add "struct parser_state" argument.
5856 (type_exp, exp1, exp, variable, type): Update calls to
5857 write_exp* and similars in order to use parser state.
5858 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5859 to use parser state.
5860 (go_parse): Likewise.
5861 * go-lang.h: Forward declare "struct parser_state".
5862 (go_parse): Add "struct parser_state" argument.
5863
342587c4
DE
58642014-03-27 Doug Evans <dje@google.com>
5865
5866 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5867
33e80786
DE
58682014-03-27 Doug Evans <dje@google.com>
5869
5870 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5871 Remove argument abbrev_section. All callers updated.
5872
1dbab08b
DE
58732014-03-27 Doug Evans <dje@google.com>
5874
5875 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5876 addr_base, ranges_base.
5877
318d3177
KS
58782014-03-26 Keith Seitz <keiths@redhat.com>
5879
5880 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5881 types, not VAR_DOMAIN.
5882
1e54db15
SL
58832014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5884
5885 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5886 "ra" registers.
5887 * features/nios2-linux.c: Regenerated.
5888 * features/nios2.c: Regenerated.
5889
d3839ede
PA
58902014-03-25 Pedro Alves <palves@redhat.com>
5891
5892 * cli/cli-script.c (script_from_file): Force the interpreter to
5893 sync mode.
5894
7588d2ec
PL
58952014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5896
5897 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5898 small stack allocation.
5899
a6290449
TG
59002014-03-24 Tristan Gingold <gingold@adacore.com>
5901
5902 * darwin-nat.c (exc_server): Remove unused prototype.
5903 (darwin_dump_message): Correctly display data on x86_64.
5904 (darwin_encode_reply): Fix style.
5905 Add comments and fix indentation.
5906
31ae9d24 59072014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5908
5909 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5910
6339bfc4
DE
59112014-03-22 Doug Evans <xdje42@gmail.com>
5912
5913 * infcmd.c: Whitespace fixes.
5914 (interrupt_command): Merge two function comments into one.
5915
0a07590b
DE
59162014-03-22 Doug Evans <xdje42@gmail.com>
5917
5918 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5919 All uses updated.
5920
b55fbac4
YQ
59212014-03-22 Yao Qi <yao@codesourcery.com>
5922
5923 * remote.c (target_read_live_memory): Remove.
5924 (memory_xfer_live_readonly_partial): Rename it to
5925 remote_xfer_live_readonly_partial. Remove argument 'object'.
5926 All callers updated. Call remote_read_bytes_1
5927 instead of target_read_live_memory.
5928 * tracepoint.c (set_traceframe_number): Remove.
5929 (make_cleanup_restore_traceframe_number): Likewise .
5930 * tracepoint.h (set_traceframe_number): Remove declaration.
5931 (make_cleanup_restore_traceframe_number): Likewise.
5932
9217e74e
YQ
59332014-03-22 Yao Qi <yao@codesourcery.com>
5934
5935 * remote.c (remote_read_bytes): Move code on reading from the
5936 remote stub to ...
5937 (remote_read_bytes_1): ... here. New function.
5938
8acf9577
YQ
59392014-03-22 Yao Qi <yao@codesourcery.com>
5940
5941 * ctf.c (ctf_xfer_partial): Check the return value of
5942 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5943 return TARGET_XFER_UNAVAILABLE.
5944 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5945 * target.c (target_read_live_memory): Move it to remote.c.
5946 (memory_xfer_live_readonly_partial): Likewise.
5947 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5948 * remote.c (target_read_live_memory): Moved from target.c.
5949 (memory_xfer_live_readonly_partial): Likewise.
5950 (remote_read_bytes): Factored out from
5951 memory_xfer_partial_1.
5952
feef67ab
DE
59532014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5954
5955 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5956 NULL pointer.
5957
b65dc60b
PA
59582014-03-21 Pedro Alves <palves@redhat.com>
5959
5960 * infrun.c (normal_stop): Extend comment.
5961
b4ab256d
HZ
59622014-03-21 Hui Zhu <hui@codesourcery.com>
5963 Pedro Alves <palves@redhat.com>
5964
5965 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5966 static buffer.
5967 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5968 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5969 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5970
deba7593
MR
59712014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5972
5973 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5974 `z' formatted output modifier.
5975
1bff71c3
SDJ
59762014-03-20 Tom Tromey <tromey@redhat.com>
5977 Sergio Durigan Junior <sergiodj@redhat.com>
5978
5979 * probe.c (parse_probes): Turn assert into an ordinary error.
5980 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5981 exceptions when parsing probes. Rearrange the code for clarity.
5982
90e28950
TT
59832014-03-20 Tom Tromey <tromey@redhat.com>
5984
5985 PR gdb/14135
5986 * top.c (execute_command): Only dispatch events if the command
5987 started the target.
5988
beb460e8
PA
59892014-03-20 Tom Tromey <tromey@redhat.com>
5990
5991 PR cli/15718
5992 * infcall.c: Include event-top.h.
5993 (run_inferior_call): Call async_disable_stdin if needed.
5994
99619bea
PA
59952014-03-20 Pedro Alves <palves@redhat.com>
5996
5997 * infrun.c (prepare_to_proceed): Delete.
5998 (thread_still_needs_step_over): New function.
5999 (find_thread_needs_step_over): New function.
6000 (proceed): If the current thread needs a step-over, set its
6001 steping_over_breakpoint flag. Adjust to use
6002 find_thread_needs_step_over instead of prepare_to_proceed.
6003 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6004 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6005 breakpoint.
6006 (switch_back_to_stepped_thread): Step over breakpoints of all
6007 threads not the stepping thread, before switching back to the
6008 stepping thread.
6009
2adfaa28
PA
60102014-03-20 Pedro Alves <palves@redhat.com>
6011
6012 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6013 extern.
6014 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6015 * infrun.c (saved_singlestep_ptid)
6016 (stepping_past_singlestep_breakpoint): Delete.
6017 (resume): Remove stepping_past_singlestep_breakpoint handling.
6018 (proceed): Store the prev_pc of the stepping thread too.
6019 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6020 singlestep_pc.
6021 (enum infwait_states): Delete infwait_thread_hop_state.
6022 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6023 field.
6024 (handle_inferior_event): Adjust.
6025 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6026 handling and the thread-hop code. Before removing single-step
6027 breakpoints, check whether the thread hit a single-step breakpoint
6028 of another thread. If it did, the trap is not a random signal.
6029 (switch_back_to_stepped_thread): If the event thread hit a
6030 single-step breakpoint, unblock it before switching to the
6031 stepping thread. Handle the case of the stepped thread having
6032 advanced already.
6033 (keep_going): Handle the case of the current thread moving past a
6034 single-step breakpoint.
6035
31e77af2
PA
60362014-03-20 Pedro Alves <palves@redhat.com>
6037
6038 PR breakpoints/7143
6039 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6040 are being stepped over.
6041 (breakpoint_address_match): Make extern.
6042 * breakpoint.h (breakpoint_address_match): New declaration.
6043 * inferior.h (stepping_past_instruction_at): New declaration.
6044 * infrun.c (struct step_over_info): New type.
6045 (step_over_info): New global.
6046 (set_step_over_info, clear_step_over_info)
6047 (stepping_past_instruction_at): New functions.
6048 (handle_inferior_event): Clear the step-over info when
6049 trap_expected is cleared.
6050 (resume): Remove now stale comment.
6051 (clear_proceed_status): Clear step-over info.
6052 (proceed): Adjust step-over handling to set or clear the step-over
6053 info instead of removing all breakpoints.
6054 (handle_signal_stop): When setting up a thread-hop, don't remove
6055 breakpoints here.
6056 (stop_stepping): Clear step-over info.
6057 (keep_going): Adjust step-over handling to set or clear step-over
6058 info and then always inserting breakpoints, instead of removing
6059 all breakpoints when stepping over one.
6060
b9f437de
PA
60612014-03-20 Pedro Alves <palves@redhat.com>
6062
6063 * infrun.c (previous_inferior_ptid): Adjust comment.
6064 (deferred_step_ptid): Delete.
6065 (infrun_thread_ptid_changed, prepare_to_proceed)
6066 (init_wait_for_inferior): Adjust.
6067 (handle_signal_stop): Delete deferred_step_ptid handling.
6068
06c868a8
JK
60692014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6070
6071 PR gdb/15358
6072 * defs.h (sync_quit_force_run): New declaration.
6073 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6074 * event-top.c (async_sigterm_handler): New declaration.
6075 (async_sigterm_token): New variable.
6076 (async_init_signals): Create also async_sigterm_token.
6077 (async_sigterm_handler): New function.
6078 (sync_quit_force_run): New variable.
6079 (handle_sigterm): Replace quit_force call by other calls.
6080 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6081
dea80df0
MR
60822014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6083
6084 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6085 offset into SPE pseudo registers.
6086
0c7e1a46
PA
60872014-03-18 Pedro Alves <palves@redhat.com>
6088
6089 PR gdb/13860
6090 * inferior.h (print_stop_event): Declare.
6091 * infrun.c (print_stop_event): New, factored out from ...
6092 (normal_stop): ... this.
6093 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6094 of bpstat_print/print_stack_frame.
6095
9c1fcd01
TT
60962014-03-17 Tom Tromey <tromey@redhat.com>
6097
6098 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6099
11aa919a
PMR
61002014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6101
6102 * ada-lang.c (decode_constrained_packed_array): Perform a
6103 minimal coercion for reference with coerce_ref instead of
6104 ada_coerce_ref.
6105
d4ccb5e0
TG
61062014-03-17 Tristan Gingold <gingold@adacore.com>
6107
6108 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6109 (darwin_solib_create_inferior_hook): Emit a warning if version
6110 is unhandled.
6111
49840f2a
UW
61122014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6113
6114 * python/py-value.c (get_field_flag): Cast flag_name argument to
6115 PyObject_GetAttrString to support Python 2.4.
6116
ed4123e5
JK
61172014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6118
6119 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6120 (Global Maintainers): Remove Jan Kratochvil.
6121
d6b64346
PA
61222014-03-14 Pedro Alves <palves@redhat.com>
6123
6124 * inferior.h (terminal_ours_for_output): Rename to ...
6125 (child_terminal_ours_for_output): ... this.
6126 (terminal_save_ours): Rename to ...
6127 (child_terminal_save_ours): ... this.
6128 (terminal_ours): Rename to ...
6129 (child_terminal_ours): ... this.
6130 (terminal_inferior): Rename to ...
6131 (child_terminal_inferior): ... this.
6132 (terminal_init_inferior): Rename to ...
6133 (child_terminal_init_inferior): ... this.
6134 (terminal_init_inferior_with_pgrp): Rename to ...
6135 (child_terminal_init_inferior_with_pgrp): ... this.
6136 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6137 (child_terminal_init_with_pgrp): ... this.
6138 (terminal_save_ours): Rename to ...
6139 (child_terminal_save_ours): ... this.
6140 (terminal_init_inferior): Rename to ...
6141 (child_terminal_init): ... this. Adjust.
6142 (terminal_inferior): Rename to ...
6143 (child_terminal_inferior): ... this.
6144 (terminal_ours_for_output): Rename to ...
6145 (child_terminal_ours_for_output): ... this. Adjust.
6146 (terminal_ours): Rename to ...
6147 (child_terminal_ours): ... this.
6148 (terminal_ours_1): Rename to ...
6149 (child_terminal_ours_1): ... this. Adjust.
6150 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6151 * windows-nat.c (do_initial_windows_stuff): Adjust.
6152 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6153 (gnu_terminal_init): ... this. Adjust.
6154 (gnu_target): Adjust.
6155 * inf-child.c (inf_child_target): Adjust.
6156
5a1e8c7a
DE
61572014-03-13 Doug Evans <xdje42@gmail.com>
6158
6159 PR guile/16612
6160 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6161 new eq?-hashtab.
6162
350e1a76
DE
61632014-03-13 Doug Evans <xdje42@gmail.com>
6164
6165 * value.c (record_latest_value): Call release_value_or_incref
6166 instead of release_value.
6167
a69900ae
PA
61682014-03-13 Pedro Alves <palves@redhat.com>
6169
6170 * procfs.c (procfs_target): Don't override to_shortname,
6171 to_longname or to_doc.
6172
5db9f0bd
PA
61732014-03-13 Pedro Alves <palves@redhat.com>
6174
6175 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6176 Unix in user visible strings.
6177
5e3a2c38
SS
61782014-03-12 Stan Shebs <stan@codesourcery.com>
6179
6180 * gdbtypes.h: Annotate comments for Doxygen, add a page
6181 block comment with some general info.
6182
8bc2fe48
PA
61832014-03-12 Pedro Alves <palves@redhat.com>
6184
6185 * infcmd.c (prepare_execution_command): New function, factored out
6186 from several execution commands.
6187 (run_command_1, continue_command, step_1, jump_command)
6188 (signal_command, until_command, advance_command, finish_command)
6189 (attach_command): Use prepare_execution_command.
6190
638c5f49
OJ
61912014-03-12 Omair Javaid <omair.javaid@linaro.org>
6192
6193 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6194 (MAX_BPTS): Define.
6195 (MAX_WPTS): Define.
6196 (struct arm_linux_thread_points): Removed.
6197 (struct arm_linux_process_info): New.
6198 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6199 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6200 (arm_linux_find_breakpoints_by_tid): Removed.
6201 (struct arch_lwp_info): New.
6202 (arm_linux_find_process_pid): New functions.
6203 (arm_linux_add_process): New functions.
6204 (arm_linux_process_info_get): New functions.
6205 (arm_linux_forget_process): New function.
6206 (arm_linux_get_debug_reg_state): New function.
6207 (struct update_registers_data): New.
6208 (update_registers_callback): New function.
6209 (arm_linux_insert_hw_breakpoint1): Updated.
6210 (arm_linux_remove_hw_breakpoint1): Updated.
6211 (arm_linux_insert_hw_breakpoint): Updated.
6212 (arm_linux_remove_hw_breakpoint): Updated.
6213 (arm_linux_insert_watchpoint): Updated.
6214 (arm_linux_remove_watchpoint): Updated.
6215 (arm_linux_new_thread): Updated.
6216 (arm_linux_prepare_to_resume): New function.
6217 (arm_linux_new_fork): New function.
6218 (_initialize_arm_linux_nat): Updated.
6219
6d03af93
PA
62202014-03-12 Pedro Alves <palves@redhat.com>
6221
6222 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6223
b3ccfe11
TT
62242014-03-12 Tom Tromey <tromey@redhat.com>
6225
6226 * inf-child.c (return_zero): New function.
6227 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6228 * aix-thread.c (aix_thread_inferior_created): New function.
6229 (aix_thread_attach): Remove.
6230 (init_aix_thread_ops): Don't set to_attach.
6231 (_initialize_aix_thread): Register inferior_created observer.
6232 * corelow.c (init_core_ops): Don't set to_attach or
6233 to_create_inferior.
6234 * exec.c (init_exec_ops): Don't set to_attach or
6235 to_create_inferior.
6236 * infcmd.c (run_command_1): Use find_run_target. Make direct
6237 target calls.
6238 (attach_command): Use find_attach_target. Make direct target
6239 calls.
6240 * record-btrace.c (init_record_btrace_ops): Don't set
6241 to_create_inferior.
6242 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6243 Remove.
6244 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6245 set to_create_inferior.
6246 * target.c (complete_target_initialization): Add assertion.
6247 (target_create_inferior): Remove.
6248 (find_default_attach, find_default_create_inferior): Remove.
6249 (find_attach_target, find_run_target): New functions.
6250 (find_default_is_async_p, find_default_can_async_p)
6251 (target_supports_non_stop, target_attach): Remove.
6252 (init_dummy_target): Don't set to_create_inferior or
6253 to_supports_non_stop.
6254 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6255 TARGET_DEFAULT_FUNC.
6256 <to_create_inferior>: Add comment.
6257 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6258 TARGET_DEFAULT_RETURN.
6259 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6260 (find_attach_target, find_run_target): Declare.
6261 (target_create_inferior): Remove.
6262 (target_has_execution_1): Update comment.
6263 (target_supports_non_stop): Remove.
6264 * target-delegates.c: Rebuild.
6265
91f83b02
PA
62662014-03-12 Pedro Alves <palves@redhat.com>
6267
6268 * inf-child.h: Update comment to not mention Unix.
6269
f1aea813
PA
62702014-03-12 Pedro Alves <palves@redhat.com>
6271
6272 * inf-child.c: Update top comment to not mention Unix. Add
6273 generic comment describing how this target is meant to be used.
6274 (inf_child_post_attach, inf_child_post_startup_inferior)
6275 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6276 Unix in comment.
6277
ee8e9165
PA
62782014-03-12 Pedro Alves <palves@redhat.com>
6279
6280 * nto-procfs.c: Include inf-child.h.
6281 (procfs_ops): Delete global.
6282 (procfs_can_run): Delete method.
6283 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6284 target pointer instead of referencing procfs_ops.
6285 (procfs_prepare_to_store): Delete.
6286 (init_procfs_ops): Delete function.
6287 (procfs_target): New function, based on init_procfs_ops, but
6288 inherit inf_child_target.
6289 (_initialize_procfs): Use procfs_target.
6290
51a9c8c5
PA
62912014-03-12 Pedro Alves <palves@redhat.com>
6292
6293 * windows-nat.c: Include inf-child.h.
6294 (windows_ops): Delete global.
6295 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6296 methods.
6297 (init_windows_ops): Delete function.
6298 (windows_target): New function, based on init_windows_ops, but
6299 inherit inf_child_target.
6300 (_initialize_windows_nat): Use windows_target. Install x86
6301 specific target methods here.
6302
c1966e26
DE
63032014-03-10 Doug Evans <xdje42@gmail.com>
6304
6305 * guile/guile.c (call_initialize_gdb_module): New function.
6306 (initialize_guile): Replace call to scm_init_guile with call to
6307 scm_with_guile.
6308
023db19c
JB
63092014-03-10 Joel Brobecker <brobecker@adacore.com>
6310
6311 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6312 in call to TYPE_CODE macro.
6313
5ec18f2b
JG
63142014-03-10 Jerome Guitton <guitton@adacore.com>
6315
8668be63
JB
6316 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6317 Resolve tagged types to full view.
5ec18f2b 6318
7d03f2eb
HZ
63192014-03-10 Hui Zhu <hui@codesourcery.com>
6320
6321 * target.h (target_insert_breakpoint): Remove "hardware" from its
6322 comments.
6323
c5164cbc
DE
63242014-03-07 Doug Evans <dje@google.com>
6325
6326 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6327
c4a3fee2
DE
63282014-03-07 Doug Evans <dje@google.com>
6329
6330 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6331 Remove unused local comp_dir_attr. Assert exactly one of
6332 stub_comp_unit_die, stub_comp_dir is non-NULL.
6333
3156469c
JB
63342014-03-07 Joel Brobecker <brobecker@adacore.com>
6335
6336 * target.h (complete_target_initialization, add_target):
6337 Add comment.
6338
c1a7b7c6
PA
63392014-03-07 Pedro Alves <palves@redhat.com>
6340
6341 * go32-nat.c: Include inf-child.h.
6342 (go32_ops): Delete global.
6343 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6344 Delete methods.
6345 (go32_create_inferior): Push the passed in target pointer instead
6346 of referencing go32_ops.
6347 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6348 (go32_target): New function, based on init_go32_ops, but inherit
6349 inf_child_target.
6350 (_initialize_go32_nat): Use go32_target. Move parts of
6351 init_go32_ops here.
6352
d3c1a85f
JB
63532014-03-06 Joel Brobecker <brobecker@adacore.com>
6354
6355 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6356 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6357 SYMBOL_VALUE_ADDRESS.
6358 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6359
5fa1d40e
YQ
63602014-03-06 Yao Qi <yao@codesourcery.com>
6361
6362 * breakpoint.c (get_tracepoint_by_number): Remove argument
6363 optional_p. All callers updated. Adjust comments. Update
6364 output message.
6365 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6366
0c13193f
YQ
63672014-03-06 Yao Qi <yao@codesourcery.com>
6368
6369 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6370 early if get_number returns zero. Use 'p' instead of 'args'.
6371
2217da06
YQ
63722014-03-06 Yao Qi <yao@codesourcery.com>
6373
6374 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6375 message.
6376
cc3da688
YQ
63772014-03-06 Yao Qi <yao@codesourcery.com>
6378
6379 PR breakpoints/16508
6380 * tracepoint.c (check_trace_running): New function.
6381 (trace_find_command): Move code to check_trace_running and
6382 call check_trace_running.
6383 (trace_find_pc_command): Likewise.
6384 (trace_find_tracepoint_command): Likewise.
6385 (trace_find_line_command): Likewise.
6386 (trace_find_range_command): Likewise.
6387 * tracepoint.h (check_trace_running): Likewise.
6388 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6389
6a5f844b
YQ
63902014-03-06 Yao Qi <yao@codesourcery.com>
6391
6392 * target.h (struct target_ops) <to_traceframe_info>: Use
6393 TARGET_DEFAULT_NORETURN (tcomplain ()).
6394 * target-delegates.c: Regenerated.
6395
0f26cec1
PA
63962014-03-05 Pedro Alves <palves@redhat.com>
6397
6398 PR gdb/16575
6399 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6400 void. Update comment.
6401 (dcache_xfer_memory): Delete.
6402 (dcache_read_memory_partial): New, based on the read bits of
6403 dcache_xfer_memory.
6404 (dcache_update): Add status parameter. Use ULONGEST for len, and
6405 adjust. Discard cache lines if the reason for the update was
6406 error.
6407 * dcache.h (dcache_xfer_memory): Delete declaration.
6408 (dcache_read_memory_partial): New declaration.
6409 (dcache_update): Update prototype.
6410 * target.c (raw_memory_xfer_partial): Update the dcache here.
6411 (memory_xfer_partial_1): Don't handle dcache writes here.
6412
b2b255bd
MF
64132014-03-05 Mike Frysinger <vapier@gentoo.org>
6414
6415 * remote-sim.c (gdbsim_load): Add const to prog.
6416
5d9cf8a4
TT
64172014-03-03 Tom Tromey <tromey@redhat.com>
6418
6419 * elfread.c (probe_key): Change to bfd_data.
6420 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6421 now per-BFD, not per-objfile.
6422 * stap-probe.c (stap_probe_destroy): Update comment.
6423 (handle_stap_probe): Allocate on the per-BFD obstack.
6424
729662a5
TT
64252014-03-03 Tom Tromey <tromey@redhat.com>
6426
6427 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6428 * breakpoint.c (create_longjmp_master_breakpoint): Use
6429 get_probe_address.
6430 (add_location_to_breakpoint, bkpt_probe_insert_location)
6431 (bkpt_probe_remove_location): Update.
6432 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6433 * elfread.c (elf_symfile_relocate_probe): Remove.
6434 (elf_probe_fns): Update.
6435 (insert_exception_resume_breakpoint): Change type of "probe"
6436 parameter to bound_probe.
6437 (check_exception_resume): Update.
6438 * objfiles.c (objfile_relocate1): Don't relocate probes.
6439 * probe.c (bound_probe_s): New typedef.
6440 (parse_probes): Use get_probe_address. Set sal's objfile.
6441 (find_probe_by_pc): Return a bound_probe.
6442 (collect_probes): Return a VEC(bound_probe_s).
6443 (compare_probes): Update.
6444 (gen_ui_out_table_header_info): Change type of "probes"
6445 parameter. Update.
6446 (info_probes_for_ops): Update.
6447 (get_probe_address): New function.
6448 (probe_safe_evaluate_at_pc): Update.
6449 * probe.h (struct probe_ops) <get_probe_address>: New field.
6450 <set_semaphore, clear_semaphore>: Add objfile parameter.
6451 (struct probe) <objfile>: Remove field.
6452 <arch>: New field.
6453 <address>: Update comment.
6454 (struct bound_probe): New.
6455 (find_probe_by_pc): Return a bound_probe.
6456 (get_probe_address): Declare.
6457 * solib-svr4.c (struct probe_and_action) <address>: New field.
6458 (hash_probe_and_action, equal_probe_and_action): Update.
6459 (register_solib_event_probe): Add address parameter.
6460 (solib_event_probe_at): Update.
6461 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6462 get_probe_address.
6463 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6464 (stap_get_probe_address): New function.
6465 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6466 (compile_probe_arg): Update.
6467 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6468 address.
6469 (handle_stap_probe): Don't relocate the probe.
6470 (stap_relocate): Remove.
6471 (stap_gen_info_probes_table_values): Update.
6472 (stap_probe_ops): Remove stap_relocate.
6473 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6474 (debug_sym_probe_fns): Update.
6475 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6476 * symtab.c (init_sal): Use memset.
6477 * symtab.h (struct symtab_and_line) <objfile>: New field.
6478 * tracepoint.c (start_tracing, stop_tracing): Update.
6479
ff887920
TT
64802014-03-03 Tom Tromey <tromey@redhat.com>
6481
6482 * probe.h (parse_probes, find_probe_by_pc)
6483 (find_probes_in_objfile): Fix comments.
6484
f0407826
DE
64852014-03-02 Doug Evans <xdje42@gmail.com>
6486
6487 * infrun.c (handle_signal_stop): Replace test for
6488 TARGET_WAITKIND_STOPPED with an assert.
6489
35e6a711
DE
64902014-03-02 Doug Evans <xdje42@gmail.com>
6491
6492 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6493
667f9d0b
DE
64942014-03-02 Doug Evans <xdje42@gmail.com>
6495
6496 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6497
dc92ace0
MK
64982014-03-01 Mark Kettenis <kettenis@gnu.org>
6499
6500 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6501
a900370f
MK
65022014-03-01 Mark Kettenis <kettenis@gnu.org>
6503
6504 * i386obsd-nat.c: Include "obsd-nat.h".
6505 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6506 add_target.
6507 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6508
b72a7981
MK
65092014-03-01 Mark Kettenis <kettenis@gnu.org>
6510
6511 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6512
96c70aba
MK
65132014-03-01 Mark Kettenis <kettenis@gnu.org>
6514
6515 * mips64obsd-nat.c: Include "obsd-nath".
6516 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6517 add_target
6518 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6519
874a80af
MK
65202014-03-01 Mark Kettenis <kettenis@gnu.org>
6521
8fd408f1
MK
6522 * amd64obsd-nat.c: Include "obsd-nat,h.
6523 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6524 add_target.
874a80af
MK
6525 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6526
9cf95373
SC
65272014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6528
6529 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6530 (find_overload_match): Update call to find_oload_champ.
6531 (find_oload_champ_namespace_loop): Likewise
6532
863e4da4
MK
65332014-02-28 Mark Kettenis <kettenis@gnu.org>
6534
025cac40
MK
6535 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6536
1ed586ce
MK
6537 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6538 * config/sparc/obsd64.mh: New file.
6539 * sparc64obsd-nat.c: New file.
6540
863e4da4
MK
6541 * obsd-nat.h: New file.
6542 * obsd-nat.c: New file.
6543 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6544 (ALLDEPFILES): Add obsd-nat.c.
6545
89de4da4
TT
65462014-02-28 Tom Tromey <tromey@redhat.com>
6547
6548 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6549 * cli-out.h (cli_ui_out_impl): Now const.
6550 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6551 * ui-out.c (struct ui_out) <impl>: Now const.
6552 (default_ui_out_impl): Now const.
6553 (ui_out_new): Make 'impl' parameter const.
6554 * ui-out.h (ui_out_new): Update.
6555
c725e7b6
MK
65562014-02-27 Mark Kettenis <kettenis@gnu.org>
6557
6558 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6559
670b46b3
MK
65602014-02-27 Mark Kettenis <kettenis@gnu.org>
6561
6562 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6563
c91550fc
JK
65642014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6565
6566 Additional PR 8882 fix.
6567 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6568
2fa0369e
PA
65692014-02-27 Pedro Alves <palves@redhat.com>
6570
6571 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6572 isn't set.
6573
d632a097
PA
65742014-02-27 Pedro Alves <palves@redhat.com>
6575
6576 PR 12702
6577 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6578 * nat/linux-waitpid.c: Include string.h.
6579 (status_to_str): Moved here and made extern.
6580 * nat/linux-waitpid.h (status_to_str): New declaration.
6581
2ebd5a35
HZ
65822014-02-27 Hui Zhu <hui@codesourcery.com>
6583
6584 PR 12702
6585 * infrun.c (ptid_match): Move ...
6586 * common/ptid.c (ptid_match): ... here.
6587 * inferior.h (ptid_match): Move ...
6588 * common/ptid.h (ptid_match): ... here.
6589
3cdd631f
MK
65902014-02-27 Mark Kettenis <kettenis@gnu.org>
6591
6592 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6593 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6594 gdb_target_obs.
6595
bee30a64
MK
65962014-02-27 Mark Kettenis <kettenis@gnu.org>
6597
6598 * obsd-tdep.c (obsd_auxv_parse): New function.
6599 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6600
6601 * gdbarch.sh (auxv_parse): New.
6602 * gdbarch.h: Regenerated.
6603 * gdbarch.c: Regenerated.
6604 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6605
7a5a839f
LC
66062014-02-26 Ludovic Courtès <ludo@gnu.org>
6607
6608 * guile/scm-value.c (gdbscm_history_append_x): New function.
6609 (value_functions): Add it.
6610
31aa7e4e
JB
66112014-02-27 Joel Brobecker <brobecker@adacore.com>
6612
6613 * dwarf2read.c (attr_value_as_address): New function.
6614 (dwarf2_find_base_address, read_call_site_scope): Use
6615 attr_value_as_address in place of DW_ADDR.
6616 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6617 the low and high addresses. Slight rework of the handling
6618 of the high pc being a constant form, and limit it to
6619 DWARF verson 4 or higher.
6620 (dwarf2_record_block_ranges): Likewise.
6621 (read_partial_die): Likewise.
6622 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6623
9b333ba3
TT
66242014-02-26 Tom Tromey <tromey@redhat.com>
6625
6626 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6627
5f6cac40
TT
66282014-02-26 Tom Tromey <tromey@redhat.com>
6629
6630 * elfread.c (elf_read_minimal_symbols): Return early if
6631 minimal symbols have already been read. Add "ei" parameter.
6632 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6633 * minsyms.c (prim_record_minimal_symbol_full): Update.
6634 * objfiles.h (struct objstats) <n_minsyms>: Move...
6635 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6636 * symmisc.c (print_objfile_statistics): Update.
6637
2750ef27
TT
66382014-02-26 Tom Tromey <tromey@redhat.com>
6639
6640 * elfread.c (elf_read_minimal_symbols): New function, from
6641 elf_symfile_read.
6642 (elf_symfile_read): Call it.
6643
34643a32
TT
66442014-02-26 Tom Tromey <tromey@redhat.com>
6645
6646 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6647 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6648 (lookup_minimal_symbol_solib_trampoline)
6649 (lookup_minimal_symbol_by_pc_section_1)
6650 (lookup_minimal_symbol_and_objfile): Update.
6651 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6652 Don't allocate a minimal symbol if minsyms have already been read.
6653 (build_minimal_symbol_hash_tables): Update.
6654 (install_minimal_symbols): Do nothing if minsyms already read.
6655 Use the per-BFD obstack.
6656 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6657 * objfiles.c (allocate_objfile): Call
6658 terminate_minimal_symbol_table later.
6659 (have_minimal_symbols): Update.
6660 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6661 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6662 Move from struct objfile.
6663 <minsyms_read>: New field.
6664 (struct objfile) <msymbols, minimal_symbol_count,
6665 msymbol_hash, msymbol_demangled_hash>: Move.
6666 (ALL_OBJFILE_MSYMBOLS): Update.
6667 * symfile.c (read_symbols): Set minsyms_read.
6668 (reread_symbols): Update.
6669 * symmisc.c (dump_objfile, dump_msymbols): Update.
6670
2273f0ac
TT
66712014-02-26 Tom Tromey <tromey@redhat.com>
6672
6673 * minsyms.c (msymbols_sort): Remove.
6674 * minsyms.h (msymbols_sort): Remove.
6675 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6676 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6677 * elfread.c (elf_symtab_read): Don't add section offsets.
6678 * xcoffread.c (record_minimal_symbol): Don't add section offset
6679 to minimal symbol address.
6680 * somread.c (text_offset, data_offset): Remove.
6681 (som_symtab_read): Don't add section offsets to minimal symbol
6682 addresses.
6683 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6684 Don't add section offsets to minimal symbols.
6685 * coffread.c (coff_symtab_read): Don't add section offsets
6686 to minimal symbol addresses.
6687 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6688 to minimal symbol addresses.
6689 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6690 section offset to minimal symbol addresses.
6691 * mdebugread.c (parse_partial_symbols): Don't add section
6692 offset to minimal symbol addresses.
6693 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6694 offset to minimal symbol addresses.
6695
77e371c0
TT
66962014-02-26 Tom Tromey <tromey@redhat.com>
6697
6698 * ada-lang.c (ada_main_name): Update.
6699 (ada_add_standard_exceptions): Update.
6700 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6701 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6702 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6703 * auxv.c (ld_so_xfer_auxv): Update.
6704 * avr-tdep.c (avr_scan_prologue): Update.
6705 * ax-gdb.c (gen_var_ref): Update.
6706 * blockframe.c (get_pc_function_start)
6707 (find_pc_partial_function_gnu_ifunc): Update.
6708 * breakpoint.c (create_overlay_event_breakpoint)
6709 (create_longjmp_master_breakpoint)
6710 (create_std_terminate_master_breakpoint)
6711 (create_exception_master_breakpoint): Update.
6712 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6713 * c-valprint.c (c_val_print): Update.
6714 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6715 * common/agent.c (agent_look_up_symbols): Update.
6716 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6717 * dwarf2loc.c (call_site_to_target_addr): Update.
6718 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6719 * elfread.c (elf_gnu_ifunc_record_cache)
6720 (elf_gnu_ifunc_resolve_by_got): Update.
6721 * findvar.c (default_read_var_value): Update.
6722 * frame.c (inside_main_func): Update.
6723 * frv-tdep.c (frv_frame_this_id): Update.
6724 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6725 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6726 Update.
6727 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6728 (hppa_hpux_find_dummy_bpaddr): Update.
6729 * hppa-tdep.c (hppa_symbol_address): Update.
6730 * infcmd.c (until_next_command): Update.
6731 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6732 Update.
6733 * linespec.c (minsym_found, add_minsym): Update.
6734 * linux-nat.c (get_signo): Update.
6735 * linux-thread-db.c (inferior_has_bug): Update.
6736 * m32c-tdep.c (m32c_return_value)
6737 (m32c_m16c_address_to_pointer): Update.
6738 * m32r-tdep.c (m32r_frame_this_id): Update.
6739 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6740 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6741 * maint.c (maintenance_translate_address): Update.
6742 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6743 (frob_address): New function.
6744 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6745 frob_address. Rename parameter to "pc_in".
6746 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6747 addresses.
6748 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6749 Update.
6750 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6751 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6752 * objc-lang.c (find_objc_msgsend): Update.
6753 * objfiles.c (objfile_relocate1): Update.
6754 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6755 * p-valprint.c (pascal_val_print): Update.
6756 * parse.c (write_exp_msymbol): Update.
6757 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6758 (ppc_elfv2_skip_entrypoint): Update.
6759 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6760 * printcmd.c (build_address_symbolic, msym_info)
6761 (address_info): Update.
6762 * proc-service.c (ps_pglobal_lookup): Update.
6763 * psymtab.c (find_pc_sect_psymtab_closer)
6764 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6765 Change msymbol parameter to bound_minimal_symbol.
6766 * ravenscar-thread.c (get_running_thread_id): Update.
6767 * remote.c (remote_check_symbols): Update.
6768 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6769 address.
6770 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6771 * solib-dsbt.c (lm_base): Update.
6772 * solib-frv.c (lm_base, main_got): Update.
6773 * solib-irix.c (locate_base): Update.
6774 * solib-som.c (som_solib_create_inferior_hook)
6775 (link_map_start): Update.
6776 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6777 * solib-svr4.c (elf_locate_base, enable_break): Update.
6778 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6779 (flush_ea_cache): Update.
6780 * stabsread.c (define_symbol, scan_file_globals): Update.
6781 * stack.c (find_frame_funname): Update.
6782 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6783 (debug_qf_find_pc_sect_symtab): Update.
6784 * symfile.c (simple_read_overlay_table)
6785 (simple_overlay_update): Update.
6786 * symfile.h (struct quick_symbol_functions)
6787 <find_pc_sect_symtab>: Change type of msymbol to
6788 bound_minimal_symbol.
6789 * symmisc.c (dump_msymbols): Update.
6790 * symtab.c (find_pc_sect_symtab_via_partial)
6791 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6792 (search_symbols, print_msymbol_info): Update.
6793 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6794 (MSYMBOL_VALUE_ADDRESS): Redefine.
6795 (BMSYMBOL_VALUE_ADDRESS): New macro.
6796 * tracepoint.c (scope_info): Update.
6797 * tui/tui-disasm.c (tui_find_disassembly_address)
6798 (tui_get_begin_asm_address): Update.
6799 * valops.c (find_function_in_inferior): Update.
6800 * value.c (value_static_field, value_fn_field): Update.
6801
3b7344d5
TT
68022014-02-26 Tom Tromey <tromey@redhat.com>
6803
6804 * ada-lang.c (ada_update_initial_language): Update.
6805 (ada_main_name, ada_has_this_exception_support): Update.
6806 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6807 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6808 * arm-tdep.c (arm_skip_stub): Update.
6809 * auxv.c (ld_so_xfer_auxv): Update.
6810 * avr-tdep.c (avr_scan_prologue): Update.
6811 * ax-gdb.c (gen_var_ref): Update.
6812 * breakpoint.c (struct breakpoint_objfile_data)
6813 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6814 type to bound_minimal_symbol.
6815 (create_overlay_event_breakpoint)
6816 (create_longjmp_master_breakpoint)
6817 (create_std_terminate_master_breakpoint)
6818 (create_exception_master_breakpoint): Update.
6819 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6820 * c-exp.y (classify_name): Update.
6821 * coffread.c (coff_symfile_read): Update.
6822 * common/agent.c (agent_look_up_symbols): Update.
6823 * d-lang.c (d_main_name): Update.
6824 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6825 * dec-thread.c (enable_dec_thread): Update.
6826 * dwarf2loc.c (call_site_to_target_addr): Update.
6827 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6828 * eval.c (evaluate_subexp_standard): Update.
6829 * findvar.c (struct minsym_lookup_data) <result>: Change type
6830 to bound_minimal_symbol.
6831 <objfile>: Remove.
6832 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6833 * frame.c (inside_main_func): Update.
6834 * frv-tdep.c (frv_frame_this_id): Update.
6835 * gcore.c (call_target_sbrk): Update.
6836 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6837 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6838 Update.
6839 * go-lang.c (go_main_name): Update.
6840 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6841 (hppa_hpux_find_import_stub_for_addr): Update.
6842 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6843 Update. Change return type.
6844 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6845 type.
6846 * jit.c (jit_breakpoint_re_set_internal): Update.
6847 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6848 Update.
6849 * linux-nat.c (get_signo): Update.
6850 * linux-thread-db.c (inferior_has_bug): Update
6851 * m32c-tdep.c (m32c_return_value)
6852 (m32c_m16c_address_to_pointer): Update.
6853 * m32r-tdep.c (m32r_frame_this_id): Update.
6854 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6855 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6856 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6857 lookup_minimal_symbol. Change return type.
6858 (lookup_minimal_symbol): Remove.
6859 (lookup_bound_minimal_symbol): Update.
6860 (lookup_minimal_symbol_text): Change return type.
6861 (lookup_minimal_symbol_solib_trampoline): Change return type.
6862 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6863 (lookup_minimal_symbol_solib_trampoline): Change return type.
6864 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6865 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6866 (value_nsstring, find_imps): Update.
6867 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6868 * p-lang.c (pascal_main_name): Update.
6869 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6870 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6871 * proc-service.c (ps_pglobal_lookup): Update.
6872 * ravenscar-thread.c (get_running_thread_msymbol): Change
6873 return type.
6874 (has_ravenscar_runtime, get_running_thread_id): Update.
6875 * remote.c (remote_check_symbols): Update.
6876 * sol-thread.c (ps_pglobal_lookup): Update.
6877 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6878 * solib-dsbt.c (lm_base): Update.
6879 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6880 Update.
6881 * solib-irix.c (locate_base): Update.
6882 * solib-som.c (som_solib_create_inferior_hook)
6883 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6884 Update.
6885 * solib-spu.c (spu_enable_break): Update.
6886 * solib-svr4.c (elf_locate_base, enable_break): Update.
6887 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6888 (flush_ea_cache): Update.
6889 * stabsread.c (define_symbol): Update.
6890 * symfile.c (simple_read_overlay_table): Update.
6891 * symtab.c (find_pc_sect_line): Update.
6892 * tracepoint.c (scope_info): Update.
6893 * tui-disasm.c (tui_get_begin_asm_address): Update.
6894 * value.c (value_static_field): Update.
6895
40c1a007
TT
68962014-02-26 Tom Tromey <tromey@redhat.com>
6897
6898 * minsyms.c (prim_record_minimal_symbol_full): Use
6899 SET_MSYMBOL_VALUE_ADDRESS.
6900 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6901 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6902 SET_MSYMBOL_VALUE_ADDRESS.
6903 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6904 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6905
efd66ac6
TT
69062014-02-26 Tom Tromey <tromey@redhat.com>
6907
6908 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6909 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6910 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6911 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6912 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6913 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6914 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6915 * ada-lang.c (ada_main_name): Update.
6916 (ada_lookup_simple_minsym): Update.
6917 (ada_make_symbol_completion_list): Update.
6918 (ada_add_standard_exceptions): Update.
6919 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6920 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6921 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6922 * arm-tdep.c (skip_prologue_function): Update.
6923 (arm_skip_stack_protector, arm_skip_stub): Update.
6924 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6925 (arm_wince_skip_main_prologue): Update.
6926 * auxv.c (ld_so_xfer_auxv): Update.
6927 * avr-tdep.c (avr_scan_prologue): Update.
6928 * ax-gdb.c (gen_var_ref): Update.
6929 * block.c (call_site_for_pc): Update.
6930 * blockframe.c (get_pc_function_start): Update.
6931 (find_pc_partial_function_gnu_ifunc): Update.
6932 * breakpoint.c (create_overlay_event_breakpoint): Update.
6933 (create_longjmp_master_breakpoint): Update.
6934 (create_std_terminate_master_breakpoint): Update.
6935 (create_exception_master_breakpoint): Update.
6936 (resolve_sal_pc): Update.
6937 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6938 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6939 Update.
6940 * c-valprint.c (c_val_print): Update.
6941 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6942 * coffread.c (coff_symfile_read): Update.
6943 * common/agent.c (agent_look_up_symbols): Update.
6944 * dbxread.c (find_stab_function_addr): Update.
6945 (end_psymtab): Update.
6946 * dwarf2loc.c (call_site_to_target_addr): Update.
6947 (func_verify_no_selftailcall): Update.
6948 (tailcall_dump): Update.
6949 (call_site_find_chain_1): Update.
6950 (dwarf_expr_reg_to_entry_parameter): Update.
6951 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6952 (elf_gnu_ifunc_resolve_by_got): Update.
6953 * f-valprint.c (info_common_command): Update.
6954 * findvar.c (read_var_value): Update.
6955 * frame.c (get_prev_frame_1): Update.
6956 (inside_main_func): Update.
6957 * frv-tdep.c (frv_skip_main_prologue): Update.
6958 (frv_frame_this_id): Update.
6959 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6960 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6961 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6962 (gnuv3_skip_trampoline): Update.
6963 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6964 (hppa64_hpux_in_solib_call_trampoline): Update.
6965 (hppa_hpux_skip_trampoline_code): Update.
6966 (hppa64_hpux_search_dummy_call_sequence): Update.
6967 (hppa_hpux_find_import_stub_for_addr): Update.
6968 (hppa_hpux_find_dummy_bpaddr): Update.
6969 * hppa-tdep.c (hppa_symbol_address)
6970 (hppa_lookup_stub_minimal_symbol): Update.
6971 * i386-tdep.c (i386_skip_main_prologue): Update.
6972 (i386_pe_skip_trampoline_code): Update.
6973 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6974 * infcall.c (get_function_name): Update.
6975 * infcmd.c (until_next_command): Update.
6976 * jit.c (jit_breakpoint_re_set_internal): Update.
6977 (jit_inferior_init): Update.
6978 * linespec.c (minsym_found): Update.
6979 (add_minsym): Update.
6980 * linux-fork.c (info_checkpoints_command): Update.
6981 * linux-nat.c (get_signo): Update.
6982 * linux-thread-db.c (inferior_has_bug): Update.
6983 * m32c-tdep.c (m32c_return_value): Update.
6984 (m32c_m16c_address_to_pointer): Update.
6985 (m32c_m16c_pointer_to_address): Update.
6986 * m32r-tdep.c (m32r_frame_this_id): Update.
6987 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6988 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6989 * maint.c (maintenance_translate_address): Update.
6990 * minsyms.c (add_minsym_to_hash_table): Update.
6991 (add_minsym_to_demangled_hash_table): Update.
6992 (msymbol_objfile): Update.
6993 (lookup_minimal_symbol): Update.
6994 (iterate_over_minimal_symbols): Update.
6995 (lookup_minimal_symbol_text): Update.
6996 (lookup_minimal_symbol_by_pc_name): Update.
6997 (lookup_minimal_symbol_solib_trampoline): Update.
6998 (lookup_minimal_symbol_by_pc_section_1): Update.
6999 (lookup_minimal_symbol_and_objfile): Update.
7000 (prim_record_minimal_symbol_full): Update.
7001 (compare_minimal_symbols): Update.
7002 (compact_minimal_symbols): Update.
7003 (build_minimal_symbol_hash_tables): Update.
7004 (install_minimal_symbols): Update.
7005 (terminate_minimal_symbol_table): Update.
7006 (find_solib_trampoline_target): Update.
7007 (minimal_symbol_upper_bound): Update.
7008 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7009 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7010 (mips_skip_pic_trampoline_code): Update.
7011 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7012 * objc-lang.c (selectors_info): Update.
7013 (classes_info): Update.
7014 (find_methods): Update.
7015 (find_imps): Update.
7016 (find_objc_msgsend): Update.
7017 * objfiles.c (objfile_relocate1): Update.
7018 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7019 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7020 * p-valprint.c (pascal_val_print): Update.
7021 * parse.c (write_exp_msymbol): Update.
7022 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7023 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7024 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7025 * printcmd.c (build_address_symbolic): Update.
7026 (sym_info): Update.
7027 (address_info): Update.
7028 * proc-service.c (ps_pglobal_lookup): Update.
7029 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7030 (find_pc_sect_psymtab): Update.
7031 * python/py-framefilter.c (py_print_frame): Update.
7032 * ravenscar-thread.c (get_running_thread_id): Update.
7033 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7034 Update.
7035 * remote.c (remote_check_symbols): Update.
7036 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7037 (rs6000_skip_trampoline_code): Update.
7038 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7039 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7040 * solib-dsbt.c (lm_base): Update.
7041 * solib-frv.c (lm_base): Update.
7042 (main_got): Update.
7043 * solib-irix.c (locate_base): Update.
7044 * solib-som.c (som_solib_create_inferior_hook): Update.
7045 (som_solib_desire_dynamic_linker_symbols): Update.
7046 (link_map_start): Update.
7047 * solib-spu.c (spu_enable_break): Update.
7048 (ocl_enable_break): Update.
7049 * solib-svr4.c (elf_locate_base): Update.
7050 (enable_break): Update.
7051 * spu-tdep.c (spu_get_overlay_table): Update.
7052 (spu_catch_start): Update.
7053 (flush_ea_cache): Update.
7054 * stabsread.c (define_symbol): Update.
7055 (scan_file_globals): Update.
7056 * stack.c (find_frame_funname): Update.
7057 (frame_info): Update.
7058 * symfile.c (simple_read_overlay_table): Update.
7059 (simple_overlay_update): Update.
7060 * symmisc.c (dump_msymbols): Update.
7061 * symtab.c (fixup_section): Update.
7062 (find_pc_sect_line): Update.
7063 (skip_prologue_sal): Update.
7064 (search_symbols): Update.
7065 (print_msymbol_info): Update.
7066 (rbreak_command): Update.
7067 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7068 (completion_list_objc_symbol): Update.
7069 (default_make_symbol_completion_list_break_on): Update.
7070 * tracepoint.c (scope_info): Update.
7071 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7072 (tui_get_begin_asm_address): Update.
7073 * valops.c (find_function_in_inferior): Update.
7074 * value.c (value_static_field): Update.
7075 (value_fn_field): Update.
7076
50e65b17
TT
70772014-02-26 Tom Tromey <tromey@redhat.com>
7078
7079 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7080 bound minimal symbols. Move code that knows about minsym
7081 table layout...
7082 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7083 function.
7084 * minsyms.h (minimal_symbol_upper_bound): Declare.
7085 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7086 minimal_symbol_upper_bound.
7087
1b588015
JB
70882014-02-27 Joel Brobecker <brobecker@adacore.com>
7089
7090 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7091 Use the type's name if its basic type does not have a tag.
7092
dbb9c2b1
JB
70932014-02-27 Joel Brobecker <brobecker@adacore.com>
7094
7095 * dwarf2read.c (read_subrange_type): Add comment.
7096
55426c9d
JB
70972014-02-27 Joel Brobecker <brobecker@adacore.com>
7098
7099 * dwarf2read.c (update_enumeration_type_from_children): New
7100 function, mostly extracted from process_structure_scope.
7101 (read_enumeration_type): Call update_enumeration_type_from_children.
7102 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7103 and flag_flag_enum fields.
7104
f2fce0ca
PA
71052014-02-26 Pedro Alves <palves@redhat.com>
7106
7107 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7108 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7109 to_xfer_partial method.
7110
7a44e40e
PA
71112014-02-26 Pedro Alves <palves@redhat.com>
7112
7113 * target.c (complete_target_initialization): Don't install
7114 default_xfer_partial as to_xfer_partial hook.
7115 (nomemory): Delete.
7116 (update_current_target): Don't INHERIT nor de_fault
7117 deprecated_xfer_memory. Delete de_fault macro.
7118 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7119 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7120 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7121 field.
7122
bd265cd0
PA
71232014-02-26 Pedro Alves <palves@redhat.com>
7124
7125 * go32-nat.c (my_write_child): New function.
7126 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7127 (go32_xfer_partial): New function.
7128 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7129 Instead install a to_xfer_partial hook.
7130
9d46c4e5
PA
71312014-02-26 Pedro Alves <palves@redhat.com>
7132
7133 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7134 to_xfer_partial helper. Rewrite.
7135 (procfs_xfer_partial): New function.
7136 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7137 Install a to_xfer_partial hook.
7138
a1583b1f
PA
71392014-02-26 Pedro Alves <palves@redhat.com>
7140
7141 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7142 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7143 (m32r_xfer_partial): New function.
7144 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7145 Install a to_xfer_partial hook.
7146
6df1b29f
PA
71472014-02-26 Pedro Alves <palves@redhat.com>
7148
7149 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7150 helper.
7151 (mips_xfer_partial): New function.
7152 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7153 hook. Install a to_xfer_partial hook.
7154
dc53a7ad
JB
71552014-02-26 Joel Brobecker <brobecker@adacore.com>
7156
7157 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7158 * gdbtypes.c (create_array_type_with_stride): New function,
7159 renaming create_array_type, but with an added parameter
7160 called "bit_stride".
7161 (create_array_type): Re-implement using
7162 create_array_type_with_stride.
7163 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7164 and DW_AT_bit_stride attributes.
7165
12ab52e9
PA
71662014-02-26 Pedro Alves <palves@redhat.com>
7167
7168 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7169 task-specific breakpoints.
7170
d16461ae
PA
71712014-02-25 Pedro Alves <palves@redhat.com>
7172
7173 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7174 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7175
a8b16220
SS
71762014-02-25 Stan Shebs <stan@codesourcery.com>
7177
7178 * defs.h: Annotate comments for Doxygen.
7179
b9e795ee
TT
71802014-02-25 Tom Tromey <tromey@redhat.com>
7181
7182 * target.h (target_ignore): Don't declare.
7183 * target.c (target_ignore): Remove.
7184
849c862e
JK
71852014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7186
7187 PR gdb/16626
7188 * auto-load.c (auto_load_objfile_script_1): Change filename to
7189 debugfile.
7190
475109d8
JB
71912014-02-25 Joel Brobecker <brobecker@adacore.com>
7192
7193 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7194 documentation. Adjust prototype to match the target_ops
7195 to_xfer_partial method. Adjust implementation accordingly.
7196
e186c3bd
HZ
71972014-02-25 Hui Zhu <hui@codesourcery.com>
7198
7199 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7200 to_traceframe_info.
7201
6d451942
KB
72022014-02-25 Kevin Buettner <kevinb@redhat.com>
7203
041ab8b4 7204 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7205 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7206 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7207 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7208 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7209 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7210 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7211 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7212 New constants.
7213 (rl78_register_type): Use a data pointer type for SP and
7214 new pseudo registers mentioned above. Use a 16 bit integer
7215 type for all other register pairs.
7216 (rl78_register_name, rl78_g10_register_name): Update for
7217 new pseudo registers.
7218 (rl78_pseudo_register_read): Likewise.
7219 (rl78_pseudo_register_write): Likewise.
7220 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7221 to the newly added pseudo registers.
7222
eddf0bae
DE
72232014-02-24 Doug Evans <dje@google.com>
7224
7225 * value.c (record_latest_value): Fix comment.
7226 * printcmd.c (print_command_1): Remove code to handle -1 return from
7227 record_latest_value.
7228
e96027e0
PA
72292014-02-24 Pedro Alves <palves@redhat.com>
7230
7231 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7232 deprecated_xfer_memory hook.
7233 (procfs_xfer_partial): Call procfs_xfer_memory instead
7234 of the deprecated_xfer_memory target hook.
7235 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7236 helper.
7237
0837c976
YZ
72382014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7239
7240 * windows-nat.c (windows_xfer_shared_libraries): Return
7241 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7242 requested object is TARGET_OBJECT_LIBRARIES.
7243
bc113b4e
YQ
72442014-02-24 Yao Qi <yao@codesourcery.com>
7245
7246 * target.h (enum target_xfer_status)
7247 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7248 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7249 explicitly. New.
7250 * corefile.c (memory_error_message): User updated.
7251 * exec.c (section_table_read_available_memory): Likewise.
7252 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7253 * target.c (target_xfer_status_to_string): Likewise.
7254 (raw_memory_xfer_partial): Likewise.
7255 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7256 * valops.c (read_value_memory): Likewise.
7257 * exec.h: Update comments.
7258
01cb8804
YQ
72592014-02-24 Yao Qi <yao@codesourcery.com>
7260
7261 * target.c (target_xfer_status_to_string): Rename argument err
7262 to status.
7263 * target.h (target_xfer_status_to_string): Update declaration.
7264 Replace target_xfer_error_to_string with
7265 target_xfer_status_to_string in comment.
7266
93063aa6
YQ
72672014-02-24 Yao Qi <yao@codesourcery.com>
7268
7269 * mips-linux-nat.c (super_close): Update its type.
7270 (mips_linux_close): Pass 'self' to super_close.
7271
5c328c05
YQ
72722014-02-24 Yao Qi <yao@codesourcery.com>
7273
7274 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7275 * corefile.c (read_memory): Adjusted.
7276 * target.c (target_write_with_progress): Adjusted.
7277
f73023dd
YQ
72782014-02-23 Yao Qi <yao@codesourcery.com>
7279
7280 Revert two patches:
7281
7282 2013-10-25 Yao Qi <yao@codesourcery.com>
7283
7284 * remote.c (remote_traceframe_info): Return early if
7285 traceframe is not selected.
7286
7287 2013-07-19 Yao Qi <yao@codesourcery.com>
7288
7289 * target.c (update_current_target): Change the default action
7290 of 'to_traceframe_info' from tcomplain to return_zero.
7291 * target.h (struct target_ops) <to_traceframe_info>: Add more
7292 comments.
7293
5a2eb0ef
YQ
72942014-02-23 Yao Qi <yao@codesourcery.com>
7295
7296 * valops.c (read_value_memory): Rewrite it. Call
7297 target_xfer_partial in a loop.
7298 * exec.h (section_table_available_memory): Remove declaration.
7299 Move comments to ...
7300 * exec.c (section_table_available_memory): ... here. Make it
7301 static.
7302
1ee79381
YQ
73032014-02-23 Yao Qi <yao@codesourcery.com>
7304
7305 * exec.c (section_table_read_available_memory): New function.
7306 * exec.h (section_table_read_available_memory): Declare.
7307 * ctf.c (ctf_xfer_partial): Call
7308 section_table_read_available_memory.
7309 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7310
1ca49d37
YQ
73112014-02-23 Yao Qi <yao@codesourcery.com>
7312
7313 * ctf.c (ctf_xfer_partial): Move code to ...
7314 * exec.c (exec_read_partial_read_only): ... it. New function.
7315 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7316 * tracefile.c: Include "exec.h".
7317 * exec.h (exec_read_partial_read_only): Declare.
7318
a283690e
YQ
73192014-02-23 Yao Qi <yao@codesourcery.com>
7320
7321 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7322 (tfile_has_memory): Remove.
7323 (init_tfile_ops): Don't set fields to_has_all_memory and
7324 to_has_memory of tfile_ops.
7325 * tracefile.c (tracefile_has_all_memory): New function.
7326 (tracefile_has_memory): New function.
7327 (init_tracefile_ops): Initialize fields to_has_all_memory and
7328 to_has_memory of 'ops'.
7329
12e03cd0
YQ
73302014-02-23 Yao Qi <yao@codesourcery.com>
7331
7332 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7333 (ctf_thread_alive, ctf_get_trace_status): Remove.
7334 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7335 init_tracefile_ops.
7336 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7337 (tfile_has_stack, tfile_has_registers): Remove.
7338 (tfile_thread_alive): Remove.
7339 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7340 init_tracefile_ops.
7341 * tracefile.c (tracefile_has_stack): New function.
7342 (tracefile_has_registers): New function.
7343 (tracefile_thread_alive): New function.
7344 (tracefile_get_trace_status): New function.
7345 (init_tracefile_ops): New function.
7346 * tracefile.h (init_tracefile_ops): Declare.
7347
11395323
YQ
73482014-02-23 Yao Qi <yao@codesourcery.com>
7349
7350 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7351 (O_LARGEFILE): Likewise.
7352 (tfile_ops): Likewise.
7353 (TRACE_HEADER_SIZE): Likewise.
7354 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7355 (cur_data_size): Likewise.
7356 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7357 (tfile_close, tfile_files_info): Likewise.
7358 (tfile_get_trace_status): Likewise.
7359 (tfile_get_tracepoint_status): Likewise.
7360 (tfile_get_traceframe_address): Likewise.
7361 (tfile_trace_find, match_blocktype): Likewise.
7362 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7363 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7364 (tfile_get_trace_state_variable_value): Likewise.
7365 (tfile_has_all_memory, tfile_has_memory): Likewise.
7366 (tfile_has_stack, tfile_has_registers): Likewise.
7367 (tfile_thread_alive, build_traceframe_info): Likewise.
7368 (tfile_traceframe_info, init_tfile_ops): Likewise.
7369 (_initialize_tracepoint): Don't call init_tfile_ops
7370 and add_target_with_completer.
7371 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7372 exec.h, completer.h and filenames.h.
7373 (_initialize_tracefile_tfile): New function.
7374
7951c4eb
YQ
73752014-02-23 Yao Qi <yao@codesourcery.com>
7376
7377 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7378 tracefile-tfile.o.
7379 (HFILES_NO_SRCDIR): Add tracefile.h.
7380 * ctf.c: Include "tracefile.h".
7381 * tracefile.h: New file.
7382 * tracefile.c: New file
7383 * tracefile-tfile.c: New file.
7384 * tracepoint.c: Include "tracefile.h".
7385 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7386 (stop_reason_names): Add const.
7387 (trace_file_writer_xfree): Move it to tracefile.c.
7388 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7389 (trace_save_ctf): Likewise.
7390 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7391 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7392 (tfile_write_header, tfile_write_regblock_type): Likewise.
7393 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7394 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7395 (tfile_write_raw_data, tfile_end): Likewise.
7396 (tfile_trace_file_writer_new): Likewise.
7397 (free_uploaded_tp): Make it extern.
7398 (free_uploaded_tsv): Make it extern.
7399 (_initialize_tracepoint): Move code to register command 'tsave'
7400 to tracefile.c.
7401 * tracepoint.h (stop_reason_names): Declare.
7402 (struct trace_frame_write_ops): Move it to tracefile.h.
7403 (struct trace_file_write_ops): Likewise.
7404 (struct trace_file_writer): Likewise.
7405 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7406
184cd072
JK
74072014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7408
7409 PR gdb/16594
7410 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7411 process name.
7412 (get_cores_used_by_process): New parameter num_cores, use it.
7413 (linux_xfer_osdata_processes): Pass num_cores to it.
7414 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7415 process name.
7416
c63528fc
AK
74172014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7418
7419 * target.c (memory_xfer_partial): Fix length arg in call to
7420 breakpoint_xfer_memory.
7421
d7b30f67
SDJ
74222014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7423
7424 PR tdep/16397
7425 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7426 number comes after the + or - signs. Adjust length of register
7427 name to be extracted.
7428
8838afaf
TT
74292014-02-20 Tom Tromey <tromey@redhat.com>
7430
7431 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7432 (ada_varobj_ops): Mark "extern".
7433
05227d14
TT
74342014-02-20 Tom Tromey <tromey@redhat.com>
7435
7436 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7437
1254eefc
DE
74382014-02-20 Doug Evans <xdje42@gmail.com>
7439
7440 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7441 All callers updated.
7442 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7443 All callers updated.
7444 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7445 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7446
adde2bff
DE
74472014-02-20 lin zuojian <manjian2006@gmail.com>
7448 Joel Brobecker <brobecker@adacore.com>
7449 Doug Evans <xdje42@gmail.com>
7450
7451 PR symtab/16581
7452 * dwarf2read.c (struct die_info): New member in_process.
7453 (reset_die_in_process): New function.
7454 (process_die): Set it at the start, reset when returning.
7455 (inherit_abstract_dies): Only call process_die if origin_child_die
7456 not already being processed.
7457
3be75f87
JB
74582014-02-20 Joel Brobecker <brobecker@adacore.com>
7459
7460 * windows-nat.c (handle_unload_dll): Add function documentation.
7461 (do_initial_windows_stuff): Add comment explaining why we wait
7462 until after inferior initialization has finished before
7463 processing all DLLs.
7464
47f7ffdb
JB
74652014-02-20 Joel Brobecker <brobecker@adacore.com>
7466
7467 * windows-nat.c (get_module_name): Delete.
7468 (windows_get_exec_module_filename): New function, mostly
7469 inspired from get_module_name.
7470 (windows_pid_to_exec_file): Replace call to get_module_name
7471 by call to windows_get_exec_module_filename.
7472
1cd9feab
JB
74732014-02-20 Joel Brobecker <brobecker@adacore.com>
7474
7475 * windows-nat.c (handle_load_dll): Rewrite this function's
7476 introductory comment. Remove code using get_module_name
7477 to get the DLL's name.
7478
ea39ad35
JB
74792014-02-20 Joel Brobecker <brobecker@adacore.com>
7480
7481 * windows-nat.c (get_windows_debug_event): Ignore
7482 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7483 if windows_initialization_done == 0.
7484 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7485 Adjust implementation to always load all DLLs.
7486 (do_initial_windows_stuff): Replace call to
7487 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7488
95060284
JB
74892014-02-20 Joel Brobecker <brobecker@adacore.com>
7490
7491 * windows-nat.c (_initialize_windows_nat): Deprecate the
7492 "dll-symbols" command. Turn the "add-shared-symbol-files"
7493 and "assf" aliases into commands, and deprecate them as well.
7494 * NEWS: Add entry explaining that "dll-symbols" and its two
7495 aliases are now deprecated.
7496
8d4fdb12
JB
74972014-02-20 Joel Brobecker <brobecker@adacore.com>
7498
7499 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7500 new-line in debug string. Remove trailing spaces.
7501
1b281443
SS
75022014-02-19 Stan Shebs <stan@codesourcery.com>
7503
7504 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7505
f7bd0f78
SC
75062014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7507
7508 * NEWS: Add entry for the new feature
7509 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7510 and class values.
7511
399ebc3d
SS
75122014-02-19 Stan Shebs <stan@codesourcery.com>
7513
7514 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7515
c658158d
PA
75162014-02-19 Pedro Alves <palves@redhat.com>
7517
7518 * common/ptid.h (struct ptid): Mention that process_stratum
7519 targets should prefer ptid.lwp.
7520
ba348170
PA
75212014-02-19 Pedro Alves <palves@redhat.com>
7522
7523 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7524 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7525 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7526 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7527 store remote thread ids rather than ptid.tid.
7528 (_initialize_remote): Adjust.
7529
ac01945b
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * target.c (target_get_unwinder): Rewrite.
7533 (target_get_tailcall_unwinder): Rewrite.
7534 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7535 (record_btrace_to_get_tailcall_unwinder): New function.
7536 (init_record_btrace_ops): Update.
7537 * target.h (struct target_ops) <to_get_unwinder,
7538 to_get_tailcall_unwinder>: Now function pointers. Use
7539 TARGET_DEFAULT_RETURN.
7540
8476dc92
TT
75412014-02-19 Tom Tromey <tromey@redhat.com>
7542
7543 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7544 argument.
7545 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7546
c0eca49f
TT
75472014-02-19 Tom Tromey <tromey@redhat.com>
7548
7549 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7550 directly.
7551 * target-delegates.c: Rebuild.
7552 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7553 TARGET_DEFAULT_FUNC.
7554 * target.c (default_target_decr_pc_after_break): Rename from
7555 forward_target_decr_pc_after_break. Simplify.
7556 (target_decr_pc_after_break): Rely on delegation.
7557
596b6b39
TT
75582014-02-19 Tom Tromey <tromey@redhat.com>
7559
7560 * target.c (update_current_target): Do not INHERIT to_doc or
7561 to_magic. Do not de_fault to_open or to_close.
7562
b427c1bc
TT
75632014-02-19 Tom Tromey <tromey@redhat.com>
7564
7565 * gcore.h (objfile_find_memory_regions): Declare.
7566 * gcore.c (objfile_find_memory_regions): No longer static. Add
7567 "self" argument.
7568 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7569 * exec.c: Include gcore.h.
7570 (exec_set_find_memory_regions): Remove.
7571 (exec_find_memory_regions): Remove.
7572 (exec_do_find_memory_regions): Remove.
7573 (init_exec_ops): Update.
7574 * defs.h (exec_set_find_memory_regions): Remove.
7575
9b144037
TT
75762014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target-delegates.c: Rebuild.
7579 * target.h (struct target_ops) <to_extra_thread_info,
7580 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7581 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7582 not 0, in TARGET_DEFAULT_RETURN.
7583
555bbdeb
TT
75842014-02-19 Tom Tromey <tromey@redhat.com>
7585
7586 * target.c (complete_target_initialization): Remove casts. Use
7587 return_zero_has_execution.
7588 (return_zero): Add "ignore" argument.
7589 (return_zero_has_execution): New function.
7590 (init_dummy_target): Remove casts. Use
7591 return_zero_has_execution.
7592
be4ddd36
TT
75932014-02-19 Tom Tromey <tromey@redhat.com>
7594
7595 * target.c (update_current_target): Update comments. Do not
7596 INHERIT to_stratum.
7597
2117c711
TT
75982014-02-19 Tom Tromey <tromey@redhat.com>
7599
7600 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7601 needed.
7602 * corelow.c (core_read_description): Delegate when needed.
7603 * remote.c (remote_read_description): Delegate when needed.
7604 * target-delegates.c: Rebuild.
7605 * target.c (target_read_description): Rewrite.
7606 * target.h (struct target_ops) <to_read_description>: Update
7607 comment. Use TARGET_DEFAULT_RETURN.
7608
e88ef65c
TT
76092014-02-19 Tom Tromey <tromey@redhat.com>
7610
7611 * target-delegates.c: Rebuild.
7612 * target.c (update_current_target): Don't inherit or default
7613 to_can_run.
7614 (find_default_run_target): Check against delegate_can_run.
7615 * target.h (struct target_ops) <to_can_run>: Use
7616 TARGET_DEFAULT_RETURN.
7617
86a0854a
TT
76182014-02-19 Tom Tromey <tromey@redhat.com>
7619
7620 * target-delegates.c: Rebuild.
7621 * target.c (target_disconnect): Unconditionally delegate.
7622 * target.h (struct target_ops) <to_disconnect>: Use
7623 TARGET_DEFAULT_NORETURN.
7624
ee97f592
TT
76252014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * record.c (record_stop): Unconditionally delegate.
7628 * target-delegates.c: Rebuild.
7629 * target.c (target_stop_recording): Unconditionally delegate.
7630 * target.h (struct target_ops) <to_stop_recording>: Use
7631 TARGET_DEFAULT_IGNORE.
7632
6dc7fcf4
TT
76332014-02-19 Tom Tromey <tromey@redhat.com>
7634
7635 * target-delegates.c: Rebuild.
7636 * target.c (target_enable_btrace): Unconditionally delegate.
7637 * target.h (struct target_ops) <to_enable_btrace>: Use
7638 TARGET_DEFAULT_NORETURN.
7639
eb5b20d4
TT
76402014-02-19 Tom Tromey <tromey@redhat.com>
7641
7642 * target-delegates.c: Rebuild.
7643 * target.c (target_read_btrace): Unconditionally delegate.
7644 * target.h (struct target_ops) <to_read_btrace>: Use
7645 TARGET_DEFAULT_NORETURN.
7646
9ace480d
TT
76472014-02-19 Tom Tromey <tromey@redhat.com>
7648
7649 * target-delegates.c: Rebuild.
7650 * target.c (target_teardown_btrace): Unconditionally delegate.
7651 * target.h (struct target_ops) <to_teardown_btrace>: Use
7652 TARGET_DEFAULT_NORETURN.
7653
8dc292d3
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * target-delegates.c: Rebuild.
7657 * target.c (target_disable_btrace): Unconditionally delegate.
7658 * target.h (struct target_ops) <to_disable_btrace>: Use
7659 TARGET_DEFAULT_NORETURN.
7660
58a5184e
TT
76612014-02-19 Tom Tromey <tromey@redhat.com>
7662
7663 * target-delegates.c: Rebuild.
7664 * target.c (default_search_memory): New function.
7665 (simple_search_memory): Update comment.
7666 (target_search_memory): Unconditionally delegate.
7667 * target.h (struct target_ops) <to_search_memory>: Use
7668 TARGET_DEFAULT_FUNC.
7669
8de71aab
TT
76702014-02-19 Tom Tromey <tromey@redhat.com>
7671
7672 * auxv.c (default_auxv_parse): No longer static.
7673 (target_auxv_parse): Unconditionally delegate.
7674 * auxv.h (default_auxv_parse): Declare.
7675 * target-delegates.c: Rebuild.
7676 * target.c: Include auxv.h.
7677 * target.h (struct target_ops) <to_auxv_parse>: Use
7678 TARGET_DEFAULT_FUNC.
7679
6b2c5a57
TT
76802014-02-19 Tom Tromey <tromey@redhat.com>
7681
7682 * target-delegates.c: Rebuild.
7683 * target.c (target_memory_map): Unconditionally delegate.
7684 * target.h (struct target_ops) <to_memory_map>: Use
7685 TARGET_DEFAULT_RETURN.
7686
cbffc065
TT
76872014-02-19 Tom Tromey <tromey@redhat.com>
7688
7689 * target-delegates.c: Rebuild.
7690 * target.c (target_thread_alive): Unconditionally delegate.
7691 * target.h (struct target_ops) <to_thread_alive>: Use
7692 TARGET_DEFAULT_RETURN.
7693
f09e2107
TT
76942014-02-19 Tom Tromey <tromey@redhat.com>
7695
7696 * target-delegates.c: Rebuild.
7697 * target.c (target_save_record): Unconditionally delegate.
7698 * target.h (struct target_ops) <to_save_record>: Use
7699 TARGET_DEFAULT_NORETURN.
7700
07366925
TT
77012014-02-19 Tom Tromey <tromey@redhat.com>
7702
7703 * target-delegates.c: Rebuild.
7704 * target.c (target_delete_record): Unconditionally delegate.
7705 * target.h (struct target_ops) <to_delete_record>: Use
7706 TARGET_DEFAULT_NORETURN.
7707
dd2e9d25
TT
77082014-02-19 Tom Tromey <tromey@redhat.com>
7709
7710 * target-delegates.c: Rebuild.
7711 * target.c (target_record_is_replaying): Unconditionally
7712 delegate.
7713 * target.h (struct target_ops) <to_record_is_replaying>: Use
7714 TARGET_DEFAULT_RETURN.
7715
671e76cc
TT
77162014-02-19 Tom Tromey <tromey@redhat.com>
7717
7718 * target-delegates.c: Rebuild.
7719 * target.c (target_goto_record_begin): Unconditionally delegate.
7720 * target.h (struct target_ops) <to_goto_record_begin>: Use
7721 TARGET_DEFAULT_NORETURN.
7722
e9179bb3
TT
77232014-02-19 Tom Tromey <tromey@redhat.com>
7724
7725 * target-delegates.c: Rebuild.
7726 * target.c (target_goto_record_end): Unconditionally delegate.
7727 * target.h (struct target_ops) <to_goto_record_end>: Use
7728 TARGET_DEFAULT_NORETURN.
7729
05969c84
TT
77302014-02-19 Tom Tromey <tromey@redhat.com>
7731
7732 * target-delegates.c: Rebuild.
7733 * target.c (target_goto_record): Unconditionally delegate.
7734 * target.h (struct target_ops) <to_goto_record>: Use
7735 TARGET_DEFAULT_NORETURN.
7736
3679abfa
TT
77372014-02-19 Tom Tromey <tromey@redhat.com>
7738
7739 * target-delegates.c: Rebuild.
7740 * target.c (target_insn_history): Unconditionally delegate.
7741 * target.h (struct target_ops) <to_insn_history>: Use
7742 TARGET_DEFAULT_NORETURN.
7743
8444ab58
TT
77442014-02-19 Tom Tromey <tromey@redhat.com>
7745
7746 * target-delegates.c: Rebuild.
7747 * target.c (target_insn_history_from): Unconditionally delegate.
7748 * target.h (struct target_ops) <to_insn_history_from>: Use
7749 TARGET_DEFAULT_NORETURN.
7750
c29302cc
TT
77512014-02-19 Tom Tromey <tromey@redhat.com>
7752
7753 * target-delegates.c: Rebuild.
7754 * target.c (target_insn_history_range): Unconditionally delegate.
7755 * target.h (struct target_ops) <to_insn_history_range>: Use
7756 TARGET_DEFAULT_NORETURN.
7757
170049d4
TT
77582014-02-19 Tom Tromey <tromey@redhat.com>
7759
7760 * target-delegates.c: Rebuild.
7761 * target.c (target_call_history): Unconditionally delegate.
7762 * target.h (struct target_ops) <to_call_history>: Use
7763 TARGET_DEFAULT_NORETURN.
7764
16fc27d6
TT
77652014-02-19 Tom Tromey <tromey@redhat.com>
7766
7767 * target-delegates.c: Rebuild.
7768 * target.c (target_call_history_from): Unconditionally delegate.
7769 * target.h (struct target_ops) <to_call_history_from>: Use
7770 TARGET_DEFAULT_NORETURN.
7771
115d9817
TT
77722014-02-19 Tom Tromey <tromey@redhat.com>
7773
7774 * target-delegates.c: Rebuild.
7775 * target.c (target_call_history_range): Unconditionally delegate.
7776 * target.h (struct target_ops) <to_call_history_range>: Use
7777 TARGET_DEFAULT_NORETURN.
7778
eb276a6b
TT
77792014-02-19 Tom Tromey <tromey@redhat.com>
7780
7781 * target-delegates.c: Rebuild.
7782 * target.c (target_verify_memory): Unconditionally delegate.
7783 * target.h (struct target_ops) <to_verify_memory>: Use
7784 TARGET_DEFAULT_NORETURN.
7785
9e538d0d
TT
77862014-02-19 Tom Tromey <tromey@redhat.com>
7787
7788 * target-delegates.c: Rebuild.
7789 * target.c (target_core_of_thread): Unconditionally delegate.
7790 * target.h (struct target_ops) <to_core_of_thread>: Use
7791 TARGET_DEFAULT_RETURN.
7792
f6fb2925
TT
77932014-02-19 Tom Tromey <tromey@redhat.com>
7794
7795 * target-delegates.c: Rebuild.
7796 * target.c (target_flash_done): Unconditionally delegate.
7797 * target.h (struct target_ops) <to_flash_done>: Use
7798 TARGET_DEFAULT_NORETURN.
7799
e8a6c6ac
TT
78002014-02-19 Tom Tromey <tromey@redhat.com>
7801
7802 * target-delegates.c: Rebuild.
7803 * target.c (target_flash_erase): Unconditionally delegate.
7804 * target.h (struct target_ops) <to_flash_erase>: Use
7805 TARGET_DEFAULT_NORETURN.
7806
7e35c012
TT
78072014-02-19 Tom Tromey <tromey@redhat.com>
7808
7809 * target-delegates.c: Rebuild.
7810 * target.c (target_get_section_table): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_get_section_table>: Use
7812 TARGET_DEFAULT_RETURN.
7813
770234d3
TT
78142014-02-19 Tom Tromey <tromey@redhat.com>
7815
7816 * target-delegates.c: Rebuild.
7817 * target.c (target_pid_to_str): Unconditionally delegate.
7818 (init_dummy_target): Don't initialize to_pid_to_str.
7819 (default_pid_to_str): Rename from dummy_pid_to_str.
7820 * target.h (struct target_ops) <to_pid_to_str>: Use
7821 TARGET_DEFAULT_FUNC.
7822
09b0dc2b
TT
78232014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target-delegates.c: Rebuild.
7826 * target.c (target_find_new_threads): Unconditionally delegate.
7827 * target.h (struct target_ops) <to_find_new_threads>: Use
7828 TARGET_DEFAULT_RETURN.
7829
7d4f8efa
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_program_signals): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_program_signals>: Use
7835 TARGET_DEFAULT_IGNORE.
7836
035cad7f
TT
78372014-02-19 Tom Tromey <tromey@redhat.com>
7838
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_pass_signals): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_pass_signals>: Use
7842 TARGET_DEFAULT_IGNORE.
7843
8d657035
TT
78442014-02-19 Tom Tromey <tromey@redhat.com>
7845
7846 * target-delegates.c: Rebuild.
7847 * target.c (default_mourn_inferior): New function.
7848 (target_mourn_inferior): Unconditionally delegate.
7849 * target.h (struct target_ops) <to_mourn_inferior>: Use
7850 TARGET_DEFAULT_FUNC.
7851
098dba18
TT
78522014-02-19 Tom Tromey <tromey@redhat.com>
7853
7854 * target-delegates.c: Rebuild.
7855 * target.c (default_follow_fork): New function.
7856 (target_follow_fork): Unconditionally delegate.
7857 * target.h (struct target_ops) <to_follow_fork>: Use
7858 TARGET_DEFAULT_FUNC.
7859
423a4807
TT
78602014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * target-delegates.c: Rebuild.
7863 * target.c (target_kill): Unconditionally delegate.
7864 * target.h (struct target_ops) <to_kill>: Use
7865 TARGET_DEFAULT_NORETURN.
7866
6c7e5e5c
TT
78672014-02-19 Tom Tromey <tromey@redhat.com>
7868
7869 * target-delegates.c: Rebuild.
7870 * target.c (target_masked_watch_num_registers): Unconditionally
7871 delegate.
7872 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7873 Use TARGET_DEFAULT_RETURN.
7874
8b1c364c
TT
78752014-02-19 Tom Tromey <tromey@redhat.com>
7876
7877 * target-delegates.c: Rebuild.
7878 * target.c (target_remove_mask_watchpoint): Unconditionally
7879 delegate.
7880 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7881 TARGET_DEFAULT_RETURN.
7882
cd4ae029
TT
78832014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * target-delegates.c: Rebuild.
7886 * target.c (target_insert_mask_watchpoint): Unconditionally
7887 delegate.
7888 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7889 TARGET_DEFAULT_RETURN.
7890
a134316b
TT
78912014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * target-delegates.c: Rebuild.
7894 * target.c (target_ranged_break_num_registers): Unconditionally
7895 delegate.
7896 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7897 Use TARGET_DEFAULT_RETURN.
7898
ad5989bd
TT
78992014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target-delegates.c: Rebuild.
7902 * target.c (target_fetch_registers): Unconditionally delegate.
7903 * target.h (struct target_ops) <to_fetch_registers>: Use
7904 TARGET_DEFAULT_NORETURN.
7905
46ee7e8d
TT
79062014-02-19 Tom Tromey <tromey@redhat.com>
7907
7908 * target-delegates.c: Rebuild.
7909 * target.c (update_current_target): Don't inherit or default
7910 to_stop.
7911 * target.h (struct target_ops) <to_stop>: Use
7912 TARGET_DEFAULT_IGNORE.
7913
843f59ed
TT
79142014-02-19 Tom Tromey <tromey@redhat.com>
7915
7916 * target-delegates.c: Rebuild.
7917 * target.c (update_current_target): Don't inherit or default
7918 to_can_run_breakpoint_commands.
7919 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7920 Use TARGET_DEFAULT_RETURN.
7921
ccfde2a0
TT
79222014-02-19 Tom Tromey <tromey@redhat.com>
7923
7924 * target-delegates.c: Rebuild.
7925 * target.c (update_current_target): Don't inherit or default
7926 to_supports_evaluation_of_breakpoint_conditions.
7927 * target.h (struct target_ops)
7928 <to_supports_evaluation_of_breakpoint_conditions>: Use
7929 TARGET_DEFAULT_RETURN.
7930
0de91722
TT
79312014-02-19 Tom Tromey <tromey@redhat.com>
7932
7933 * target-delegates.c: Rebuild.
7934 * target.c (update_current_target): Don't inherit or default
7935 to_augmented_libraries_svr4_read.
7936 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7937 Use TARGET_DEFAULT_RETURN.
7938
9a7d8b48
TT
79392014-02-19 Tom Tromey <tromey@redhat.com>
7940
7941 * target-delegates.c: Rebuild.
7942 * target.c (update_current_target): Don't inherit or default
7943 to_can_use_agent.
7944 * target.h (struct target_ops) <to_can_use_agent>: Use
7945 TARGET_DEFAULT_RETURN.
7946
d9db5b21
TT
79472014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target-delegates.c: Rebuild.
7950 * target.c (update_current_target): Don't inherit or default
7951 to_use_agent.
7952 * target.h (struct target_ops) <to_use_agent>: Use
7953 TARGET_DEFAULT_NORETURN.
7954
92155eeb
TT
79552014-02-19 Tom Tromey <tromey@redhat.com>
7956
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7959 to_traceframe_info.
7960 (return_null): Remove.
7961 * target.h (struct target_ops) <to_traceframe_info>: Use
7962 TARGET_DEFAULT_RETURN.
7963
d6522a22
TT
79642014-02-19 Tom Tromey <tromey@redhat.com>
7965
7966 * target-delegates.c: Rebuild.
7967 * target.c (update_current_target): Don't inherit or default
7968 to_static_tracepoint_markers_by_strid.
7969 * target.h (struct target_ops)
7970 <to_static_tracepoint_markers_by_strid>: Use
7971 TARGET_DEFAULT_NORETURN.
7972
4c3e4425
TT
79732014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_static_tracepoint_marker_at.
7978 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7979 Use TARGET_DEFAULT_RETURN.
7980
dcd6917f
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target-delegates.c: Rebuild.
7984 * target.c (update_current_target): Don't inherit or default
7985 to_set_permissions.
7986 * target.h (struct target_ops) <to_set_permissions>: Use
7987 TARGET_DEFAULT_IGNORE.
7988
22bcceee
TT
79892014-02-19 Tom Tromey <tromey@redhat.com>
7990
7991 * target-delegates.c: Rebuild.
7992 * target.c (update_current_target): Don't inherit or default
7993 to_get_tib_address.
7994 * target.h (struct target_ops) <to_get_tib_address>: Use
7995 TARGET_DEFAULT_NORETURN.
7996
8586ccaa
TT
79972014-02-19 Tom Tromey <tromey@redhat.com>
7998
7999 * target-delegates.c: Rebuild.
8000 * target.c (update_current_target): Don't inherit or default
8001 to_set_trace_notes.
8002 * target.h (struct target_ops) <to_set_trace_notes>: Use
8003 TARGET_DEFAULT_RETURN.
8004
91df8d1d
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target-delegates.c: Rebuild.
8008 * target.c (update_current_target): Don't initialize
8009 to_set_trace_buffer_size.
8010 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8011 TARGET_DEFAULT_IGNORE.
8012
8d526939
TT
80132014-02-19 Tom Tromey <tromey@redhat.com>
8014
8015 * target-delegates.c: Rebuild.
8016 * target.c (update_current_target): Don't inherit or default
8017 to_set_circular_trace_buffer.
8018 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8019 TARGET_DEFAULT_IGNORE.
8020
0bcfeddf
TT
80212014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * target-delegates.c: Rebuild.
8024 * target.c (update_current_target): Don't inherit or default
8025 to_set_disconnected_tracing.
8026 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8027 TARGET_DEFAULT_IGNORE.
8028
9249843f
TT
80292014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target-delegates.c: Rebuild.
8032 * target.c (update_current_target): Don't inherit or default
8033 to_get_min_fast_tracepoint_insn_len.
8034 (return_minus_one): Remove.
8035 * target.h (struct target_ops)
8036 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8037
ace92e7d
TT
80382014-02-19 Tom Tromey <tromey@redhat.com>
8039
8040 * target-delegates.c: Rebuild.
8041 * target.c (update_current_target): Don't inherit or default
8042 to_get_raw_trace_data.
8043 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8044 TARGET_DEFAULT_NORETURN.
8045
08120467
TT
80462014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target-delegates.c: Rebuild.
8049 * target.c (update_current_target): Don't inherit or default
8050 to_upload_trace_state_variables.
8051 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8052 Use TARGET_DEFAULT_RETURN.
8053
1e949b00
TT
80542014-02-19 Tom Tromey <tromey@redhat.com>
8055
8056 * target-delegates.c: Rebuild.
8057 * target.c (update_current_target): Don't inherit or default
8058 to_upload_tracepoints.
8059 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8060 TARGET_DEFAULT_RETURN.
8061
a2e6c147
TT
80622014-02-19 Tom Tromey <tromey@redhat.com>
8063
8064 * target-delegates.c: Rebuild.
8065 * target.c (update_current_target): Don't inherit or default
8066 to_save_trace_data.
8067 * target.h (struct target_ops) <to_save_trace_data>: Use
8068 TARGET_DEFAULT_NORETURN.
8069
959bcd0b
TT
80702014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8074 to_get_trace_state_variable_value.
8075 * target.h (struct target_ops)
8076 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8077
afc94e66
TT
80782014-02-19 Tom Tromey <tromey@redhat.com>
8079
8080 * target-delegates.c: Rebuild.
8081 * target.c (update_current_target): Don't inherit or default
8082 to_trace_find.
8083 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8084
e51c07ea
TT
80852014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8089 to_trace_stop.
8090 * target.h (struct target_ops) <to_trace_stop>: Use
8091 TARGET_DEFAULT_NORETURN.
8092
6fea14cd
TT
80932014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_get_tracepoint_status.
8098 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8099 TARGET_DEFAULT_NORETURN.
8100
4072d4ff
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_get_trace_status.
8106 * target.h (struct target_ops) <to_get_trace_status>: Use
8107 TARGET_DEFAULT_RETURN.
8108
25da2e80
TT
81092014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target-delegates.c: Rebuild.
8112 * target.c (update_current_target): Don't inherit or default
8113 to_trace_start.
8114 * target.h (struct target_ops) <to_trace_start>: Use
8115 TARGET_DEFAULT_NORETURN.
8116
86dd181d
TT
81172014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target-delegates.c: Rebuild.
8120 * target.c (update_current_target): Don't inherit or default
8121 to_trace_set_readonly_regions.
8122 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8123 Use TARGET_DEFAULT_NORETURN.
8124
05c41993
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (update_current_target): Don't inherit or default
8129 to_disable_tracepoint.
8130 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8131 TARGET_DEFAULT_NORETURN.
8132
151f70f1
TT
81332014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target-delegates.c: Rebuild.
8136 * target.c (update_current_target): Don't inherit or default
8137 to_enable_tracepoint.
8138 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8139 TARGET_DEFAULT_NORETURN.
8140
94eb98b9
TT
81412014-02-19 Tom Tromey <tromey@redhat.com>
8142
8143 * target-delegates.c: Rebuild.
8144 * target.c (update_current_target): Don't inherit or default
8145 to_download_trace_state_variable.
8146 * target.h (struct target_ops) <to_download_trace_state_variable>:
8147 Use TARGET_DEFAULT_NORETURN.
8148
719acc4a
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (update_current_target): Don't inherit or default
8153 to_can_download_tracepoint.
8154 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8155 TARGET_DEFAULT_RETURN.
8156
9a980a22
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8161 to_download_tracepoint.
8162 * target.h (struct target_ops) <to_download_tracepoint>: Use
8163 TARGET_DEFAULT_NORETURN.
8164
5536135b
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8169 to_trace_init.
8170 * target.h (struct target_ops) <to_trace_init>: Use
8171 TARGET_DEFAULT_RETURN.
8172
9409d39e
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_supports_string_tracing.
8178 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8179 TARGET_DEFAULT_RETURN.
8180
aab1b22d
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target-delegates.c: Rebuild.
8184 * target.c (update_current_target): Don't inherit or default
8185 to_supports_enable_disable_tracepoint.
8186 * target.h (struct target_ops)
8187 <to_supports_enable_disable_tracepoint>: Use
8188 TARGET_DEFAULT_RETURN.
8189
a7304748
TT
81902014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target-delegates.c: Rebuild.
8193 * target.c (update_current_target): Don't inherit or default
8194 to_supports_multi_process.
8195 * target.h (struct target_ops) <to_supports_multi_process>: Use
8196 TARGET_DEFAULT_RETURN.
8197
4229b31d
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8202 to_get_ada_task_ptid.
8203 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8204 TARGET_DEFAULT_FUNC.
8205
43eba180
TT
82062014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target-delegates.c: Rebuild.
8209 * target.c (update_current_target): Don't inherit or default
8210 to_thread_architecture.
8211 * target.h (struct target_ops) <to_thread_architecture>: Use
8212 TARGET_DEFAULT_FUNC.
8213
fe31bf5b
TT
82142014-02-19 Tom Tromey <tromey@redhat.com>
8215
8216 * target-delegates.c: Rebuild.
8217 * target.c (update_current_target): Don't inherit or default
8218 to_execution_direction.
8219 * target.h (struct target_ops) <to_execution_direction>: Use
8220 TARGET_DEFAULT_FUNC.
8221
53e1cfc7
TT
82222014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8226 to_can_execute_reverse.
8227 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8228 TARGET_DEFAULT_RETURN.
8229 (target_can_execute_reverse): Unconditionally delegate.
8230
9bb9d61d
TT
82312014-02-19 Tom Tromey <tromey@redhat.com>
8232
8233 * target-delegates.c: Rebuild.
8234 * target.c (update_current_target): Don't inherit or default
8235 to_goto_bookmark.
8236 (dummy_goto_bookmark): Remove.
8237 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8238 * target.h (struct target_ops) <to_goto_bookmark>: Use
8239 TARGET_DEFAULT_NORETURN.
8240
3dbafbbb
TT
82412014-02-19 Tom Tromey <tromey@redhat.com>
8242
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8245 to_get_bookmark.
8246 (dummy_get_bookmark): Remove.
8247 (init_dummy_target): Don't inherit or default to_get_bookmark.
8248 * target.h (struct target_ops) <to_get_bookmark>: Use
8249 TARGET_DEFAULT_NORETURN
8250
16f796b1
TT
82512014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target-delegates.c: Rebuild.
8254 * target.c (update_current_target): Don't inherit or default
8255 to_make_corefile_notes.
8256 (init_dummy_target): Don't initialize to_make_corefile_notes.
8257 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8258 TARGET_DEFAULT_FUNC.
8259
0b5a2719
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_find_memory_regions.
8265 (init_dummy_target): Don't initialize to_find_memory_regions.
8266 * target.h (struct target_ops) <to_find_memory_regions>: Use
8267 TARGET_DEFAULT_FUNC.
8268
d9cb0195
TT
82692014-02-19 Tom Tromey <tromey@redhat.com>
8270
8271 * target-delegates.c: Rebuild.
8272 * target.c (update_current_target): Don't inherit or default
8273 to_log_command.
8274 * target.h (struct target_ops) <to_log_command>: Use
8275 TARGET_DEFAULT_IGNORE.
8276 (target_log_command): Unconditionally delegate.
8277
830ca330
TT
82782014-02-19 Tom Tromey <tromey@redhat.com>
8279
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8282 to_pid_to_exec_file.
8283 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8284 TARGET_DEFAULT_RETURN.
8285
825828fc
TT
82862014-02-19 Tom Tromey <tromey@redhat.com>
8287
8288 * target-delegates.c: Rebuild.
8289 * target.c (update_current_target): Don't inherit or default
8290 to_thread_name.
8291 (target_thread_name): Unconditionally delegate.
8292 * target.h (struct target_ops) <to_thread_name>: Use
8293 TARGET_DEFAULT_RETURN.
8294
4a7e6dda
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target-delegates.c: Rebuild.
8298 * target.c (update_current_target): Don't inherit or default
8299 to_extra_thread_info.
8300 * target.h (struct target_ops) <to_extra_thread_info>: Use
8301 TARGET_DEFAULT_RETURN.
8302
0db88c1d
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target-delegates.c: Rebuild.
8306 * target.c (update_current_target): Don't inherit or default
8307 to_has_exited.
8308 * target.h (struct target_ops) <to_has_exited>: Use
8309 TARGET_DEFAULT_RETURN..
8310
6a9fa051
TT
83112014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * target-delegates.c: Rebuild.
8314 * target.c (update_current_target): Don't inherit or default
8315 to_set_syscall_catchpoint.
8316 (return_one): Remove.
8317 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8318 TARGET_DEFAULT_RETURN.
8319
62f64d7a
TT
83202014-02-19 Tom Tromey <tromey@redhat.com>
8321
8322 * target-delegates.c: Rebuild.
8323 * target.c (update_current_target): Don't inherit or default
8324 to_insert_exec_catchpoint.
8325 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8326 TARGET_DEFAULT_RETURN.
8327
cda0f38c
TT
83282014-01-08 Tom Tromey <tromey@redhat.com>
8329
8330 * target-delegates.c: Rebuild.
8331 * target.c (update_current_target): Don't inherit or default
8332 to_insert_exec_catchpoint.
8333 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8334 TARGET_DEFAULT_RETURN.
8335
95c3375e
TT
83362014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * target-delegates.c: Rebuild.
8339 * target.c (update_current_target): Don't inherit or default
8340 to_remove_vfork_catchpoint.
8341 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8342 TARGET_DEFAULT_RETURN.
8343
7e18a8dc
TT
83442014-02-19 Tom Tromey <tromey@redhat.com>
8345
8346 * target-delegates.c: Rebuild.
8347 * target.c (update_current_target): Don't inherit or default
8348 to_insert_vfork_catchpoint.
8349 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8350 TARGET_DEFAULT_RETURN.
8351
e1a21fb7
TT
83522014-02-19 Tom Tromey <tromey@redhat.com>
8353
8354 * target-delegates.c: Rebuild.
8355 * target.c (update_current_target): Don't inherit or default
8356 to_remove_fork_catchpoint.
8357 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8358 TARGET_DEFAULT_RETURN.
8359
5958ebeb
TT
83602014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target-delegates.c: Rebuild.
8363 * target.c (update_current_target): Don't inherit or default
8364 to_insert_fork_catchpoint.
8365 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8366 TARGET_DEFAULT_RETURN.
8367
340ba4bf
TT
83682014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target-delegates.c: Rebuild.
8371 * target.c (update_current_target): Don't inherit or default
8372 to_post_startup_inferior.
8373 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8374 TARGET_DEFAULT_IGNORE.
8375
7634da87
TT
83762014-02-19 Tom Tromey <tromey@redhat.com>
8377
8378 * target-delegates.c: Rebuild.
8379 * target.c (update_current_target): Don't inherit or default
8380 to_load.
8381 * target.h (struct target_ops) <to_load>: Use
8382 TARGET_DEFAULT_NORETURN.
8383
e19e919f
TT
83842014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target-delegates.c: Rebuild.
8387 * target.c (update_current_target): Don't inherit or default
8388 to_terminal_info.
8389 * target.h (struct target_ops) <to_terminal_info>: Use
8390 TARGET_DEFAULT_FUNC.
8391
c6ea8f79
TT
83922014-02-19 Tom Tromey <tromey@redhat.com>
8393
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_terminal_save_ours.
8397 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8398 TARGET_DEFAULT_IGNORE.
8399
e4a733f1
TT
84002014-02-19 Tom Tromey <tromey@redhat.com>
8401
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8404 to_terminal_ours.
8405 * target.h (struct target_ops) <to_terminal_ours>: Use
8406 TARGET_DEFAULT_IGNORE.
8407
74fcbef9
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_terminal_ours_for_output.
8413 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8414 TARGET_DEFAULT_IGNORE.
8415
ddeaacc9
TT
84162014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_terminal_inferior.
8421 * target.h (struct target_ops) <to_terminal_inferior>: Use
8422 TARGET_DEFAULT_IGNORE.
8423
0343661d
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_terminal_init.
8429 * target.h (struct target_ops) <to_terminal_init>: Use
8430 TARGET_DEFAULT_IGNORE.
8431
77cdffe9
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_can_accel_watchpoint_condition.
8437 * target.h (struct target_ops)
8438 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8439
d03655e4
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_region_ok_for_hw_watchpoint.
8445 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8446 Use TARGET_DEFAULT_FUNC.
8447
65f160a9
TT
84482014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * target-delegates.c: Rebuild.
8451 * target.c (update_current_target): Don't inherit or default
8452 to_watchpoint_addr_within_range.
8453 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8454 Use TARGET_DEFAULT_FUNC.
8455
61dd109f
TT
84562014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8460 to_remove_watchpoint.
8461 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8462 TARGET_DEFAULT_NORETURN.
8463
016facd4
TT
84642014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target-delegates.c: Rebuild.
8467 * target.c (update_current_target): Don't inherit or default
8468 to_insert_watchpoint.
8469 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8470 TARGET_DEFAULT_RETURN.
8471
418dabac
TT
84722014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target-delegates.c: Rebuild.
8475 * target.c (update_current_target): Don't inherit or default
8476 to_remove_hw_breakpoint.
8477 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8478 TARGET_DEFAULT_RETURN.
8479
61b371f9
TT
84802014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't inherit or default
8484 to_insert_hw_breakpoint.
8485 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8486 TARGET_DEFAULT_RETURN.
8487
52b51d06
TT
84882014-02-19 Tom Tromey <tromey@redhat.com>
8489
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8492 to_can_use_hw_breakpoint.
8493 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8494 TARGET_DEFAULT_RETURN.
8495
f86e59b2
TT
84962014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_files_info.
8501 * target.h (struct target_ops) <to_files_info>: Use
8502 TARGET_DEFAULT_IGNORE.
8503
6c628163
TT
85042014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_store.
8509 * target.h (struct target_ops) <to_store>: Use
8510 TARGET_DEFAULT_NORETURN.
8511
bebd3233
TT
85122014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8516 to_post_attach.
8517 * target.h (struct target_ops) <to_post_attach>: Use
8518 TARGET_DEFAULT_IGNORE.
8519
a53f3625
TT
85202014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8524 to_rcmd.
8525 (default_rcmd): New function.
8526 (do_monitor_command): Unconditionally delegate.
8527 * target.h (struct target_ops) <to_rmcd>: Use
8528 TARGET_DEFAULT_FUNC.
8529
e9a29200
TT
85302014-02-19 Tom Tromey <tromey@redhat.com>
8531
8532 * target-delegates.c: Rebuild.
8533 * target.c (init_dummy_target): Don't initialize to_attach.
8534 (target_attach): Unconditionally delegate.
8535 * target.h (struct target_ops) <to_attach>: Use
8536 TARGET_DEFAULT_FUNC.
8537
09da0d0a
TT
85382014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target-delegates.c: Rebuild.
8541 * target.c (target_detach): Unconditionally delegate.
8542 (init_dummy_target): Don't initialize to_detach.
8543 * target.h (struct target_ops) <to_detach>: Use
8544 TARGET_DEFAULT_IGNORE.
8545
5436ff03
TT
85462014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8549 Add argument.
8550 (target_augmented_libraries_svr4_read): Add argument.
8551 * target.c (update_current_target): Update.
8552 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8553 argument.
8554
f0d960ea
TT
85552014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target.h (struct target_ops) <to_call_history_range>: Add
8558 argument.
8559 * target.c (target_call_history_range): Add argument.
8560 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8561 argument.
8562 (record_btrace_call_history_from): Update.
8563
ec0aea04
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target.h (struct target_ops) <to_call_history_from>: Add
8567 argument.
8568 * target.c (target_call_history_from): Add argument.
8569 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8570 argument.
8571
5df2fcba
TT
85722014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target.h (struct target_ops) <to_call_history>: Add argument.
8575 * target.c (target_call_history): Add argument.
8576 * record-btrace.c (record_btrace_call_history): Add 'self'
8577 argument.
8578
4e99c6b7
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target.h (struct target_ops) <to_insn_history_range>: Add
8582 argument.
8583 * target.c (target_insn_history_range): Add argument.
8584 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8585 argument.
8586 (record_btrace_insn_history_from): Update.
8587
9abc3ff3
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target.h (struct target_ops) <to_insn_history_from>: Add
8591 argument.
8592 * target.c (target_insn_history_from): Add argument.
8593 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8594 argument.
8595
7a6c5609
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops) <to_insn_history>: Add argument.
8599 * target.c (target_insn_history): Add argument.
8600 * record-btrace.c (record_btrace_insn_history): Add 'self'
8601 argument.
8602
606183ac
TT
86032014-02-19 Tom Tromey <tromey@redhat.com>
8604
8605 * target.h (struct target_ops) <to_goto_record>: Add argument.
8606 * target.c (target_goto_record): Add argument.
8607 * record-full.c (record_full_goto): Add 'self' argument.
8608 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8609
307a1b91
TT
86102014-02-19 Tom Tromey <tromey@redhat.com>
8611
8612 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8613 * target.c (target_goto_record_end): Add argument.
8614 * record-full.c (record_full_goto_end): Add 'self' argument.
8615 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8616
08475817
TT
86172014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target.h (struct target_ops) <to_goto_record_begin>: Add
8620 argument.
8621 * target.c (target_goto_record_begin): Add argument.
8622 * record-full.c (record_full_goto_begin): Add 'self' argument.
8623 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8624 argument.
8625
1c63c994
TT
86262014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target.h (struct target_ops) <to_record_is_replaying>: Add
8629 argument.
8630 * target.c (target_record_is_replaying): Add argument.
8631 * record-full.c (record_full_is_replaying): Add 'self' argument.
8632 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8633 argument.
8634 (record_btrace_xfer_partial, record_btrace_store_registers)
8635 (record_btrace_prepare_to_store, record_btrace_resume)
8636 (record_btrace_wait, record_btrace_decr_pc_after_break)
8637 (record_btrace_find_new_threads, record_btrace_thread_alive):
8638 Update.
8639
d1b55219
TT
86402014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target.h (struct target_ops) <to_delete_record>: Add argument.
8643 * target.c (target_delete_record): Add argument.
8644 * record-full.c (record_full_delete): Add 'self' argument.
8645
1390f529
TT
86462014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target.h (struct target_ops) <to_save_record>: Add argument.
8649 * target.c (target_save_record): Add argument.
8650 * record-full.c (record_full_save): Add 'self' argument.
8651 (record_full_save): Add 'self' argument.
8652
630d6a4a
TT
86532014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target.h (struct target_ops) <to_info_record>: Add argument.
8656 * target.c (target_info_record): Add argument.
8657 * record.c (info_record_command): Add argument.
8658 * record-full.c (record_full_info): Add 'self' argument.
8659 * record-btrace.c (record_btrace_info): Add 'self' argument.
8660
c6cd7c02
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8664 * target.c (target_stop_recording): Add argument.
8665 * record.c (record_stop): Add argument.
8666 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8667 argument.
8668
39c49f83
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8672 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8673 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8674 argument.
8675 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8676 (_initialize_amd64_linux_nat): Use it.
8677 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8678 (_initialize_i386_linux_nat): Use it.
8679
1777056d
TT
86802014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8683 * target.c (target_teardown_btrace): Add argument.
8684 * remote.c (remote_teardown_btrace): Add 'self' argument.
8685 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8686 argument.
8687 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8688 argument.
8689
25e95349
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8693 * target.c (target_disable_btrace): Add argument.
8694 * remote.c (remote_disable_btrace): Add 'self' argument.
8695 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8696 argument.
8697 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8698 argument.
8699
e3c49f88
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8703 * target.c (target_enable_btrace): Add argument.
8704 * remote.c (remote_enable_btrace): Add 'self' argument.
8705 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8706 argument.
8707 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8708 argument.
8709
fe38f897
TT
87102014-02-19 Tom Tromey <tromey@redhat.com>
8711
8712 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8713 (target_can_use_agent): Add argument.
8714 * target.c (update_current_target): Update.
8715 * remote.c (remote_can_use_agent): Add 'self' argument.
8716 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8717
2c152180
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target.h (struct target_ops) <to_use_agent>: Add argument.
8721 (target_use_agent): Add argument.
8722 * target.c (update_current_target): Update.
8723 * remote.c (remote_use_agent): Add 'self' argument.
8724 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8725
a893e81f
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8729 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8730 (target_traceframe_info): Add argument.
8731 * target.c (update_current_target): Update.
8732 * remote.c (remote_traceframe_info): Add 'self' argument.
8733 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8734
c686c57f
TT
87352014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target.h (target_static_tracepoint_markers_by_strid): Add
8738 argument.
8739 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8740 'self' argument.
8741 * target.c (update_current_target): Update.
8742 * remote.c (struct target_ops)
8743 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8744 * linux-nat.c (struct target_ops)
8745 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8746
61fc905d
TT
87472014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8750 Add argument.
8751 (target_static_tracepoint_marker_at): Add argument.
8752 * target.c (update_current_target): Update.
8753 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8754 argument.
8755
c378d69d
TT
87562014-02-19 Tom Tromey <tromey@redhat.com>
8757
8758 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8759 (target_set_permissions): Add argument.
8760 * target.c (update_current_target): Update.
8761 * remote.c (remote_set_permissions): Add 'self' argument.
8762 (remote_start_remote): Update.
8763
bd7ae0f5
TT
87642014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8767 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8768 (target_get_tib_address): Add argument.
8769 * target.c (update_current_target): Update.
8770 * remote.c (remote_get_tib_address): Add 'self' argument.
8771
d9e68a2c
TT
87722014-02-19 Tom Tromey <tromey@redhat.com>
8773
8774 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8775 (target_set_trace_notes): Add argument.
8776 * target.c (update_current_target): Update.
8777 * remote.c (remote_set_trace_notes): Add 'self' argument.
8778
4da384be
TT
87792014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8782 argument.
8783 (target_set_trace_buffer_size): Add argument.
8784 * target.c (update_current_target): Update.
8785 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8786
736d5b1f
TT
87872014-02-19 Tom Tromey <tromey@redhat.com>
8788
8789 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8790 argument.
8791 (target_set_circular_trace_buffer): Add argument.
8792 * target.c (update_current_target): Update.
8793 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8794 argument.
8795
37b25738
TT
87962014-02-19 Tom Tromey <tromey@redhat.com>
8797
8798 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8799 argument.
8800 (target_set_disconnected_tracing): Add argument.
8801 * target.c (update_current_target): Update.
8802 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8803
0e67620a
TT
88042014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target.h (struct target_ops)
8807 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8808 (target_get_min_fast_tracepoint_insn_len): Add argument.
8809 * target.c (update_current_target): Update.
8810 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8811 argument.
8812
88ee6f45
TT
88132014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8816 argument.
8817 (target_get_raw_trace_data): Add argument.
8818 * target.c (update_current_target): Update.
8819 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8820
181e3713
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8824 Add argument.
8825 (target_upload_trace_state_variables): Add argument.
8826 * target.c (update_current_target): Update.
8827 * remote.c (remote_upload_trace_state_variables): Add 'self'
8828 argument.
8829 (remote_start_remote): Update.
8830
ab6617cc
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8834 argument.
8835 (target_upload_tracepoints): Add argument.
8836 * target.c (update_current_target): Update.
8837 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8838 (remote_start_remote): Update.
8839
dc3decaf
TT
88402014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8843 (target_save_trace_data): Add argument.
8844 * target.c (update_current_target): Update.
8845 * remote.c (remote_save_trace_data): Add 'self' argument.
8846
4011015b
TT
88472014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8850 argument.
8851 * target.h (struct target_ops)
8852 <to_get_trace_state_variable_value>: Add argument.
8853 (target_get_trace_state_variable_value): Add argument.
8854 * target.c (update_current_target): Update.
8855 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8856 argument.
8857 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8858
bd4c6793
TT
88592014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8862 * target.h (struct target_ops) <to_trace_find>: Add argument.
8863 (target_trace_find): Add argument.
8864 * target.c (update_current_target): Update.
8865 * remote.c (remote_trace_find): Add 'self' argument.
8866 * ctf.c (ctf_trace_find): Add 'self' argument.
8867
74499f1b
TT
88682014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8871 (target_trace_stop): Add argument.
8872 * target.c (update_current_target): Update.
8873 * remote.c (remote_trace_stop): Add 'self' argument.
8874
db90e85c
TT
88752014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8878 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8879 argument.
8880 (target_get_tracepoint_status): Add argument.
8881 * target.c (update_current_target): Update.
8882 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8883
8bd200f1
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8887 * target.h (struct target_ops) <to_get_trace_status>: Add
8888 argument.
8889 (target_get_trace_status): Add argument.
8890 * target.c (update_current_target): Update.
8891 * remote.c (remote_get_trace_status): Add 'self' argument.
8892 (remote_start_remote, remote_can_download_tracepoint): Update.
8893 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8894
e2d1aae3
TT
88952014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target.h (struct target_ops) <to_trace_start>: Add argument.
8898 (target_trace_start): Add argument.
8899 * target.c (update_current_target): Update.
8900 * remote.c (remote_trace_start): Add 'self' argument.
8901
583f9a86
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8905 Add argument.
8906 (target_trace_set_readonly_regions): Add argument.
8907 * target.c (update_current_target): Update.
8908 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8909 argument.
8910
780b049c
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8914 argument.
8915 (target_disable_tracepoint): Add argument.
8916 * target.c (update_current_target): Update.
8917 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8918
46670d57
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8922 argument.
8923 (target_enable_tracepoint): Add argument.
8924 * target.c (update_current_target): Update.
8925 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8926
559d2b81
TT
89272014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target.h (struct target_ops) <to_download_trace_state_variable>:
8930 Add argument.
8931 (target_download_trace_state_variable): Add argument.
8932 * target.c (update_current_target): Update.
8933 * remote.c (remote_download_trace_state_variable): Add 'self'
8934 argument.
8935
a52a8357
TT
89362014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8939 argument.
8940 (target_can_download_tracepoint): Add argument.
8941 * target.c (update_current_target): Update.
8942 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8943
548f7808
TT
89442014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (struct target_ops) <to_download_tracepoint>: Add
8947 argument.
8948 (target_download_tracepoint): Add argument.
8949 * target.c (update_current_target): Update.
8950 * remote.c (remote_download_tracepoint): Add 'self' argument.
8951
ecae04e1
TT
89522014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target.h (struct target_ops) <to_trace_init>: Add argument.
8955 (target_trace_init): Add argument.
8956 * target.c (update_current_target): Update.
8957 * remote.c (remote_trace_init): Add 'self' argument.
8958
fab5aa7c
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8962 * target.c (target_fileio_readlink): Add argument.
8963 * remote.c (remote_hostio_readlink): Add 'self' argument.
8964 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8965
dbbca37d
TT
89662014-02-19 Tom Tromey <tromey@redhat.com>
8967
8968 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8969 * target.c (target_fileio_unlink): Add argument.
8970 * remote.c (remote_hostio_unlink): Add 'self' argument.
8971 (remote_file_delete): Update.
8972 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8973
df39ea25
TT
89742014-02-19 Tom Tromey <tromey@redhat.com>
8975
8976 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8977 * target.c (target_fileio_close): Add argument.
8978 * remote.c (remote_hostio_close): Add 'self' argument.
8979 (remote_hostio_close_cleanup): Update.
8980 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8981 Update.
8982 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8983
a3be983c
TT
89842014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8987 * target.c (target_fileio_pread): Add argument.
8988 * remote.c (remote_hostio_pread): Add 'self' argument.
8989 (remote_bfd_iovec_pread, remote_file_get): Update.
8990 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8991
0d866f62
TT
89922014-02-19 Tom Tromey <tromey@redhat.com>
8993
8994 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8995 * target.c (target_fileio_pwrite): Add argument.
8996 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8997 (remote_file_put): Update.
8998 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8999
cd897586
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9003 * target.c (target_fileio_open): Add argument.
9004 * remote.c (remote_hostio_open): Add 'self' argument.
9005 (remote_bfd_iovec_open): Add 'self' argument.
9006 (remote_file_put): Add 'self' argument.
9007 (remote_file_get): Add 'self' argument.
9008 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9009
78eff0ec
TT
90102014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9013 Add argument.
9014 (target_can_run_breakpoint_commands): Add argument.
9015 * target.c (update_current_target): Update.
9016 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9017 argument.
9018 (remote_insert_breakpoint): Add 'self' argument.
9019 (remote_insert_hw_breakpoint): Add 'self' argument.
9020 (remote_can_run_breakpoint_commands): Add 'self' argument.
9021
efcc2da7
TT
90222014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target.h (struct target_ops)
9025 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9026 (target_supports_evaluation_of_breakpoint_conditions): Add
9027 argument.
9028 * target.c (update_current_target): Update.
9029 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9030 argument.
9031 (remote_insert_breakpoint): Add 'self' argument.
9032 (remote_insert_hw_breakpoint): Add 'self' argument.
9033 (remote_supports_cond_breakpoints): Add 'self' argument.
9034
6de37a3a
TT
90352014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9038 argument.
9039 (target_supports_string_tracing): Add argument.
9040 * target.c (update_current_target): Update.
9041 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9042
2bfc0540
TT
90432014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target.h (struct target_ops)
9046 <to_supports_disable_randomization>: Add argument.
9047 * target.c (find_default_supports_disable_randomization): Add
9048 argument.
9049 (target_supports_disable_randomization): Add argument.
9050 (find_default_supports_disable_randomization): Add 'self'
9051 argument.
9052 * remote.c (extended_remote_supports_disable_randomization): Add
9053 'self' argument.
9054 (remote_supports_disable_randomization): Add 'self' argument.
9055 (extended_remote_create_inferior): Update.
9056 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9057 'self' argument.
9058
7d178d6a
TT
90592014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target.h (struct target_ops)
9062 <to_supports_enable_disable_tracepoint>: Add argument.
9063 (target_supports_enable_disable_tracepoint): Add argument.
9064 * target.c (update_current_target): Update.
9065 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9066 argument.
9067
86ce2668
TT
90682014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * target.h (struct target_ops) <to_supports_multi_process>: Add
9071 argument.
9072 (target_supports_multi_process): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_supports_multi_process): Add 'self' argument.
9075 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9076 argument.
9077 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9078 argument.
9079
4c612759
TT
90802014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops) <to_execution_direction>: Add
9083 argument.
9084 (target_execution_direction): Add argument.
9085 * target.c (default_execution_direction): Add 'self' argument.
9086 * record-full.c (record_full_execution_direction): Add 'self'
9087 argument.
9088
19db3e69
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9092 argument.
9093 (target_can_execute_reverse): Add argument.
9094 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9095 * record-full.c (record_full_can_execute_reverse): Add 'self'
9096 argument.
9097 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9098 argument.
9099
1e6b91a4
TT
91002014-02-19 Tom Tromey <tromey@redhat.com>
9101
9102 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9103 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9104 argument.
9105 (target_get_ada_task_ptid): Add argument.
9106 * target.c (update_current_target): Update.
9107 (default_get_ada_task_ptid): Add 'self' argument.
9108 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9109 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9110 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9111 argument.
9112 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9113 argument.
9114 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9115 argument.
9116 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9117 argument.
9118 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9119 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9120 argument.
9121
3c80fb48
TT
91222014-02-19 Tom Tromey <tromey@redhat.com>
9123
9124 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9125 (target_goto_bookmark): Add argument.
9126 * target.c (dummy_goto_bookmark): Add 'self' argument.
9127 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9128
dd0e2830
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9132 (target_get_bookmark): Add argument.
9133 * target.c (dummy_get_bookmark): Add 'self' argument.
9134 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9135
fc6691b2
TT
91362014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9139 argument.
9140 (target_make_corefile_notes): Add argument.
9141 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9142 * procfs.c (procfs_make_note_section): Add 'self' argument.
9143 (procfs_make_note_section): Add 'self' argument.
9144 (procfs_make_note_section): Add 'self' argument.
9145 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9146 argument.
9147 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9148 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9149 * exec.c (exec_make_note_section): Add 'self' argument.
9150 (exec_make_note_section): Add 'self' argument.
9151
2e73927c
TT
91522014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target.h (struct target_ops) <to_find_memory_regions>: Add
9155 argument.
9156 (target_find_memory_regions): Add argument.
9157 * target.c (dummy_find_memory_regions): Add 'self' argument.
9158 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9159 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9160 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9161 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9162 * exec. (exec_do_find_memory_regions): New global.
9163 (exec_set_find_memory_regions): Rewrite.
9164 (exec_find_memory_regions): New function.
9165 (init_exec_ops): Use exec_find_memory_regions.
9166
2a9a2795
TT
91672014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target.h (struct target_ops) <to_supports_non_stop>: Add
9170 argument.
9171 * target.c (find_default_supports_non_stop): Add argument.
9172 (target_supports_non_stop): Add argument.
9173 (find_default_supports_non_stop): Add 'self' argument.
9174 * remote.c (remote_supports_non_stop): Add 'self' argument.
9175 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9176
4ab76ea3
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target.h (struct target_ops) <to_log_command>: Add argument.
9180 (target_log_command): Add argument.
9181 * serial.h (serial_log_command): Add 'self' argument.
9182 * serial.c (serial_log_command): Add 'self' argument.
9183
8dd27370
TT
91842014-02-19 Tom Tromey <tromey@redhat.com>
9185
9186 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9187 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9188 argument.
9189 (target_pid_to_exec_file): Add argument.
9190 * target.c (debug_to_pid_to_exec_file): Add argument.
9191 (update_current_target): Update.
9192 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9193 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9194 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9195 (linux_handle_extended_wait): Update.
9196 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9197 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9198 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9199 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9200
1aac633b
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target.h (struct target_ops) <to_rcmd>: Add argument.
9204 (target_rcmd): Add argument.
9205 * target.c (debug_to_rcmd): Add argument.
9206 (update_current_target, do_monitor_command): Update.
9207 * remote.c (remote_rcmd): Add 'self' argument.
9208 * monitor.c (monitor_rcmd): Add 'self' argument.
9209
1eab8a48
TT
92102014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * windows-nat.c (windows_stop): Add 'self' argument.
9213 * target.h (struct target_ops) <to_stop>: Add argument.
9214 * target.c (target_stop): Add argument.
9215 (debug_to_stop): Add argument.
9216 (update_current_target): Update.
9217 * remote.c (remote_stop): Add 'self' argument.
9218 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9219 (gdbsim_cntrl_c): Update.
9220 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9221 * procfs.c (procfs_stop): Add 'self' argument.
9222 * nto-procfs.c (procfs_stop): Add 'self' argument.
9223 * monitor.c (monitor_stop): Add 'self' argument.
9224 (monitor_open): Update.
9225 * linux-nat.c (linux_nat_stop): Add argument.
9226 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9227 * gnu-nat.c (gnu_stop): Add 'self' argument.
9228 * darwin-nat.c (darwin_stop): Add 'self' argument.
9229
503a628d
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target.h (struct target_ops) <to_thread_name>: Add argument.
9233 * target.c (target_thread_name): Add argument.
9234 (update_current_target): Update.
9235 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9236
c15906d8
TT
92372014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target.h (struct target_ops) <to_extra_thread_info>: Add
9240 argument.
9241 (target_extra_thread_info): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_threads_extra_info): Add 'self' argument.
9244 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9245 argument.
9246 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9247 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9248 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9249 argument.
9250 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9251 argument.
9252 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9253 argument.
9254 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9255 argument.
9256
daf5e9b6
TT
92572014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target.h (struct target_ops) <to_program_signals>: Add argument.
9260 * target.c (target_program_signals): Add argument.
9261 * remote.c (remote_program_signals): Add 'self' argument.
9262
94bedb42
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9266 * target.c (target_pass_signals): Add argument.
9267 * remote.c (remote_pass_signals): Add 'self' argument.
9268 (remote_start_remote): Update.
9269 * procfs.c (procfs_pass_signals): Add 'self' argument.
9270 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9271 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9272 (linux_nat_create_inferior, linux_nat_attach): Update.
9273
da82bd6b
TT
92742014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * windows-nat.c (windows_can_run): Add 'self' argument.
9277 * target.h (struct target_ops) <to_can_run>: Add argument.
9278 (target_can_run): Add argument.
9279 * target.c (debug_to_can_run): Add argument.
9280 (update_current_target): Update.
9281 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9282 * inf-child.c (inf_child_can_run): Add 'self' argument.
9283 * go32-nat.c (go32_can_run): Add 'self' argument.
9284
d796e1d6
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_has_exited>: Add argument.
9288 (target_has_exited): Add argument.
9289 * target.c (debug_to_has_exited): Add argument.
9290 (update_current_target): Update.
9291
ff214e67
TT
92922014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9295 argument.
9296 (target_set_syscall_catchpoint): Add argument.
9297 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9298 argument.
9299 * target.c (update_current_target): Update.
9300
758e29d2
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9304 argument.
9305 (target_remove_exec_catchpoint): Add argument.
9306 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9307 (update_current_target): Update.
9308 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9309 argument.
9310
ba025e51
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9314 argument.
9315 (target_insert_exec_catchpoint): Add argument.
9316 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9317 (update_current_target): Update.
9318 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9319 argument.
9320
e98cf0cd
TT
93212014-02-19 Tom Tromey <tromey@redhat.com>
9322
9323 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9324 argument.
9325 (target_remove_vfork_catchpoint): Add argument.
9326 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9327 (update_current_target): Update.
9328 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9329 argument.
9330
3ecc7da0
TT
93312014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9334 argument.
9335 (target_insert_vfork_catchpoint): Add argument.
9336 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9337 (update_current_target): Update.
9338 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9339 argument.
9340
973fc227
TT
93412014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9344 argument.
9345 (target_remove_fork_catchpoint): Add argument.
9346 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9347 (update_current_target): Update.
9348 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9349 argument.
9350
a863b201
TT
93512014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9354 argument.
9355 (target_insert_fork_catchpoint): Add argument.
9356 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9357 (update_current_target): Update.
9358 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9359 argument.
9360
2e97a79e
TT
93612014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9364 argument.
9365 (target_post_startup_inferior): Add argument.
9366 * target.c (debug_to_post_startup_inferior): Add argument.
9367 (update_current_target): Update.
9368 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9369 argument.
9370 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9371 argument.
9372 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9373 argument.
9374 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9375 argument.
9376 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9377 'self' argument.
9378 (super_post_startup_inferior): Likewise.
9379 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9380 'self' argument.
9381 (super_post_startup_inferior): Likewise.
9382 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9383 Add 'self' argument.
9384 (super_post_startup_inferior): Likewise.
9385
71a9f134
TT
93862014-02-19 Tom Tromey <tromey@redhat.com>
9387
9388 * target.h (struct target_ops) <to_load>: Add argument.
9389 * target.c (target_load): Add argument.
9390 (debug_to_load): Add argument.
9391 (update_current_target): Update.
9392 * remote.c (remote_load): Add 'self' argument.
9393 * remote-sim.c (gdbsim_load): Add 'self' argument.
9394 * remote-mips.c (mips_load): Add 'self' argument.
9395 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9396 * monitor.c (monitor_load): Add 'self' argument.
9397 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9398
0a4f40a2
TT
93992014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9402 (target_terminal_info): Add argument.
9403 * target.c (debug_to_terminal_info): Add argument.
9404 (default_terminal_info): Likewise.
9405 * inflow.c (child_terminal_info): Add 'self' argument.
9406 * inferior.h (child_terminal_info): Add 'self' argument.
9407 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9408
ae3bd431
TT
94092014-02-19 Tom Tromey <tromey@redhat.com>
9410
9411 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9412 argument.
9413 (target_terminal_save_ours): Add argument.
9414 * target.c (debug_to_terminal_save_ours): Add argument.
9415 (update_current_target): Update.
9416 * inflow.c (terminal_save_ours): Add 'self' argument.
9417 * inferior.h (terminal_save_ours): Add 'self' argument.
9418
e3594fd1
TT
94192014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9422 (target_terminal_ours): Add argument.
9423 * target.c (debug_to_terminal_ours): Add argument.
9424 (update_current_target): Update.
9425 * remote.c (remote_terminal_ours): Add 'self' argument.
9426 (remote_close): Update.
9427 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9428 * inflow.c (terminal_ours): Add 'self' argument.
9429 * inferior.h (terminal_ours): Add 'self' argument.
9430 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9431
2e1e1a19
TT
94322014-02-19 Pedro Alves <palves@redhat.com>
9433 Tom Tromey <tromey@redhat.com>
9434
9435 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9436 argument.
9437 (target_terminal_ours_for_output): Add argument.
9438 * target.c (debug_to_terminal_ours_for_output): Add argument.
9439 (update_current_target): Update.
9440 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9441 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9442 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9443
d2f640d4
TT
94442014-02-19 Tom Tromey <tromey@redhat.com>
9445
9446 * target.h (struct target_ops) <to_terminal_inferior>: Add
9447 argument.
9448 * target.c (target_terminal_inferior): Add argument.
9449 (update_current_target): Update.
9450 * remote.c (remote_terminal_inferior): Add 'self' argument.
9451 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9452 * inflow.c (terminal_inferior): Add 'self' argument.
9453 * inferior.h (terminal_inferior): Add 'self' argument.
9454 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9455 (go32_terminal_inferior): Add 'self' argument.
9456
c42bf286
TT
94572014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9460 (target_terminal_init): Add argument.
9461 * target.c (debug_to_terminal_init): Add argument.
9462 (update_current_target): Update.
9463 * inflow.c (terminal_init_inferior): Add 'self' argument.
9464 * inferior.h (terminal_init_inferior): Add 'self' argument.
9465 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9466 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9467
c3a5ff89
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target.h (struct target_ops)
9471 <to_can_accel_watchpoint_condition>: Add argument.
9472 (target_can_accel_watchpoint_condition): Add argument.
9473 * target.c (debug_to_can_accel_watchpoint_condition): Add
9474 argument.
9475 (update_current_target): Update.
9476 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9477 'self' argument.
9478
31568a15
TT
94792014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9482 Add argument.
9483 (target_region_ok_for_hw_watchpoint): Add argument.
9484 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9485 (default_region_ok_for_hw_watchpoint): Add argument.
9486 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9487 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9488 argument.
9489 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9490 argument.
9491 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9492 argument.
9493 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9494 'self' argument.
9495 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9496 'self' argument.
9497 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9498 'self' argument.
9499 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9500 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9501 'self' argument.
9502 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9503 Add 'self' argument.
9504
7bb99c53
TT
95052014-02-19 Tom Tromey <tromey@redhat.com>
9506
9507 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9508 argument.
9509 (target_insert_watchpoint): Add argument.
9510 * target.c (debug_to_insert_watchpoint): Add argument.
9511 (update_current_target): Update.
9512 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9513 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9514 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9515 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9516 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9517 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9518 argument.
9519 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9520 (procfs_insert_hw_watchpoint): Add 'self' argument.
9521 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9522 argument.
9523 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9524 argument.
9525 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9526 argument.
9527 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9528 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9529 argument.
9530 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9531 'self' argument.
9532
11b5219a
TT
95332014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9536 argument.
9537 (target_remove_watchpoint): Add argument.
9538 * target.c (debug_to_remove_watchpoint): Add argument.
9539 (update_current_target): Update.
9540 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9541 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9542 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9543 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9544 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9545 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9546 argument.
9547 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9548 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9549 argument.
9550 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9551 argument.
9552 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9553 argument.
9554 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9555 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9556 argument.
9557 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9558 'self' argument.
9559
a64dc96c
TT
95602014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9563 argument.
9564 (target_remove_hw_breakpoint): Add argument.
9565 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9566 (update_current_target): Update.
9567 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9568 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9569 argument.
9570 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9571 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9572 argument.
9573 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9574 'self' argument.
9575
23a26771
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9579 argument.
9580 (target_insert_hw_breakpoint): Add argument.
9581 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9582 (update_current_target): Update.
9583 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9584 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9585 argument.
9586 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9587 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9588 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9589 argument.
9590 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9591 'self' argument.
9592
5461485a
TT
95932014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9596 argument.
9597 (target_can_use_hardware_watchpoint): Add argument.
9598 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9599 (update_current_target): Update.
9600 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9601 argument.
9602 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9603 argument.
9604 * remote.c (remote_check_watch_resources): Add 'self' argument.
9605 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9606 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9607 argument.
9608 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9609 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9610 argument.
9611 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9612 argument.
9613 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9614 argument.
9615 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9616 argument.
9617 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9618 argument.
9619 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9620 argument.
9621 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9622 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9623 argument.
9624 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9625 'self' argument.
9626
f045800c
TT
96272014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target.h (struct target_ops) <to_post_attach>: Add argument.
9630 (target_post_attach): Add argument.
9631 * target.c (debug_to_post_attach): Add argument.
9632 (update_current_target): Update.
9633 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9634 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9635 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9636 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9637 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9638
de90e03d
TT
96392014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * windows-nat.c (windows_close): Add 'self' argument.
9642 * tracepoint.c (tfile_close): Add 'self' argument.
9643 * target.h (struct target_ops) <to_close>: Add argument.
9644 * target.c (target_close): Add argument.
9645 (update_current_target): Update.
9646 * remote.c (remote_close): Add 'self' argument.
9647 * remote-sim.c (gdbsim_close): Add 'self' argument.
9648 * remote-mips.c (mips_close): Add 'self' argument.
9649 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9650 * record-full.c (record_full_close): Add 'self' argument.
9651 * record-btrace.c (record_btrace_close): Add 'self' argument.
9652 * monitor.h (monitor_close): Add 'self' argument.
9653 * monitor.c (monitor_close): Add 'self' argument.
9654 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9655 * linux-nat.c (linux_nat_close): Add argument.
9656 * go32-nat.c (go32_close): Add 'self' argument.
9657 * exec.c (exec_close_1): Add 'self' argument.
9658 * ctf.c (ctf_close): Add 'self' argument.
9659 * corelow.c (core_close): Add 'self' argument.
9660 (core_close_cleanup): Update.
9661 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9662 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9663
9dd130a0
TT
96642014-02-19 Tom Tromey <tromey@redhat.com>
9665
9666 * remote.c (remote_load): New function.
9667 (init_remote_ops): Use it.
9668
46917d26
TT
96692014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9672 argument.
9673 * common/linux-btrace.h (linux_supports_btrace): Update.
9674 * remote.c (remote_supports_btrace): Add "self" argument.
9675 * target-delegates.c: Rebuild.
9676 * target.c (target_supports_btrace): Remove.
9677 * target.h (struct target_ops) <to_supports_btrace>: Add
9678 target_ops argument.
9679 (target_supports_btrace): New define.
9680
6b84065d
TT
96812014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * record-full.c (record_full_beneath_to_resume_ops)
9684 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9685 (record_full_beneath_to_wait)
9686 (record_full_beneath_to_store_registers_ops)
9687 (record_full_beneath_to_store_registers)
9688 (record_full_beneath_to_xfer_partial_ops)
9689 (record_full_beneath_to_xfer_partial)
9690 (record_full_beneath_to_insert_breakpoint_ops)
9691 (record_full_beneath_to_insert_breakpoint)
9692 (record_full_beneath_to_remove_breakpoint_ops)
9693 (record_full_beneath_to_remove_breakpoint)
9694 (record_full_beneath_to_stopped_by_watchpoint)
9695 (record_full_beneath_to_stopped_data_address)
9696 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9697 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9698 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9699 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9700 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9701 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9702 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9703 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9704 (record_full_resume, record_full_wait_1)
9705 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9706 (record_full_store_registers, record_full_xfer_partial)
9707 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9708 (record_full_async, record_full_core_xfer_partial): Use target
9709 delegation.
9710 * target-delegates.c: Rebuild.
9711 * target.c (current_xfer_partial): Remove.
9712 (update_current_target): Do not INHERIT or de_fault
9713 to_insert_breakpoint, to_remove_breakpoint,
9714 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9715 to_is_async_p, to_async. Do not set to_xfer_partial field.
9716 (default_xfer_partial): Simplify.
9717 (current_xfer_partial): Remove.
9718 (target_wait, target_resume): Simplify.
9719 (find_default_can_async_p, find_default_is_async_p): Update.
9720 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9721 to_xfer_partial, to_stopped_by_watchpoint,
9722 to_stopped_data_address.
9723 (target_store_registers): Simplify.
9724 (forward_target_remove_breakpoint)
9725 (forward_target_insert_breakpoint): Remove.
9726 (target_remove_breakpoint, target_insert_breakpoint)
9727 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9728 * target.h (struct target_ops) <to_resume, to_wait,
9729 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9730 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9731 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9732 markup.
9733 (forward_target_remove_breakpoint)
9734 (forward_target_insert_breakpoint): Remove.
9735 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9736 directly.
9737 (record_btrace_insert_breakpoint): Delegate directly.
9738
1101cb7b
TT
97392014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 PR build/7701:
9742 * target-delegates.c: New file.
9743 * target.c: Include target-delegates.c.
9744 (init_dummy_target): Call install_dummy_methods.
9745 (complete_target_initialization): Call install_delegators.
9746 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9747 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9748 * make-target-delegates: New file.
9749
8b06beed
TT
97502014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * record.c (find_record_target): Use find_target_at.
9753 * target.c (find_target_at): New function.
9754 * target.h (find_target_at): Declare.
9755
6a109b6b
TT
97562014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9759 Add 'ops' argument.
9760 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9761 'ops' argument.
9762 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9763 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9764 'ops' argument.
9765 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9766 argument.
9767 * linux-nat.c (save_sigtrap): Update.
9768 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9769 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9770 (linux_nat_close): Update.
9771 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9772 argument.
9773 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9774 argument.
9775 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9776 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9777 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9778 (tmp_to_async): Add 'ops' argument.
9779 (record_full_stopped_by_watchpoint, record_full_async)
9780 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9781 argument.
9782 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9783 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9784 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9785 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9786 (remote_is_async_p, remote_async): Add 'ops' argument.
9787 (remote_stopped_data_address): Update.
9788 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9789 * target.c (update_current_target)
9790 (find_default_can_async_p, find_default_is_async_p): Update.
9791 (init_dummy_target): Update.
9792 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9793 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9794 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9795 (target_can_async_p, target_is_async_p, target_async)
9796 (target_stopped_by_watchpoint): Update.
9797
e095146b
YQ
97982014-02-19 Yao Qi <yao@codesourcery.com>
9799
9800 PR gdb/16220
9801 * gdbarch.sh: Remove startup_gdbarch.
9802 * gdbarch.c: Regenerated.
9803 * gdbarch.h: Likewise.
9804
bc3c6b36
KB
98052014-02-17 Kevin Buettner <kevinb@redhat.com>
9806
9807 * rl78-tdep.c (rl78_g10_register_name): New function.
9808 (rl78_return_value): Add g10 support.
9809 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9810 g10.
9811
98dc0167 98122014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9813
9814 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9815 (SUBDIR_GUILE_SRCS): Ditto.
9816 (scm-gsmob.o): Ditto.
9817
842c05cd
YQ
98182014-02-17 Yao Qi <yao@codesourcery.com>
9819
9820 * gnu-nat.c (ILL_RPC): Declare defined function.
9821
25c0bd04
YQ
98222014-02-17 Yao Qi <yao@codesourcery.com>
9823
9824 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9825 mach_msg_type_number_t.
9826 (gnu_write_inferior): Likewise.
9827
a9a758e3
YQ
98282014-02-17 Yao Qi <yao@codesourcery.com>
9829
9830 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9831 in format string.
9832 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9833 (inf_validate_procs, inf_signal): Likewise.
9834 (S_exception_raise_request): Likewise.
9835 (do_mach_notify_dead_name): Likewise.
9836 (steal_exc_port): Likewise.
9837 (gnu_read_inferior): Change 'copy_count''s type to
9838 mach_msg_type_number_t.
9839 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9840 format string.
9841
bae8023e
TS
98422014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9843
c82f56d9
TS
9844 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9845 flag. Adjust all users; in particular...
9846 (gnu_wait): ..., don't decrement its value in here...
9847 (gnu_create_inferior): ..., and instead set the flag in here,
9848 around the startup_inferior call, and call that one with
9849 START_INFERIOR_TRAPS_EXPECTED.
9850
3398af6a
TS
9851 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9852 (ILL_RPC): ... new macro.
9853 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9854 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9855 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9856 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9857 functions with ILL_RPC macro.
9858 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9859 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9860 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9861 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9862 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9863 (S_proc_getlogin_reply, S_proc_getsid_reply)
9864 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9865 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9866 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9867 (S_proc_getnports_reply, S_proc_is_important_reply)
9868 (S_proc_get_code_reply): New stub functions, generated with
9869 ILL_RPC macro.
9870
d47642c9
TS
9871 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9872 collected the type check structures.
9873
bae8023e
TS
9874 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9875
8a55ffb0
DE
98762014-02-14 Doug Evans <dje@google.com>
9877
9878 * target.c (target_write_partial): Fix result type.
9879
c2853f3d
JM
98802014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9881
9882 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9883 the proper offsets to access fpregset_t.
9884
ac61d2db
SA
98852014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9886
9887 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9888 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9889 * h8300-tdep.c (setmachinelist): Remove global.
9890 * hppa-tdep.c (hppa_sigtramp): Remove global.
9891 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9892 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9893 * ravenscar-thread.c (update_target_observer): Remove global.
9894 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9895
9d2d0b8b
TT
98962014-02-12 Tom Tromey <tromey@redhat.com>
9897
9898 * common/rsp-low.c: Update comments.
9899 * common/rsp-low.h: Update comments.
9900
a7191e8b
TT
99012014-02-12 Tom Tromey <tromey@redhat.com>
9902
9903 * common/rsp-low.c (convert_ascii_to_int): Remove.
9904 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9905
ff0e980e
TT
99062014-02-12 Tom Tromey <tromey@redhat.com>
9907
9908 * common/rsp-low.h (unhexify): Don't declare.
9909 * common/rsp-low.c (unhexify): Remove.
9910
e9371aff
TT
99112014-02-12 Tom Tromey <tromey@redhat.com>
9912
9913 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9914 * common/rsp-low.c (convert_int_to_ascii): Remove.
9915
971dc0b8
TT
99162014-02-12 Tom Tromey <tromey@redhat.com>
9917
9918 * common/rsp-low.h (hexify): Don't declare.
9919 * common/rsp-low.c (hexify): Remove.
9920
0a822afb
TT
99212014-02-12 Tom Tromey <tromey@redhat.com>
9922
9923 * common/rsp-low.c (hexify): Never take strlen of argument.
9924
9f1b45b0
TT
99252014-02-12 Tom Tromey <tromey@redhat.com>
9926
9927 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9928 * remote.c (extended_remote_run, remote_rcmd)
9929 (remote_download_trace_state_variable, remote_save_trace_data)
9930 (remote_set_trace_notes): Update.
9931 * tracepoint.c (encode_source_string, tfile_write_status)
9932 (tfile_write_uploaded_tsv): Update.
9933
9c3d6531
TT
99342014-02-12 Tom Tromey <tromey@redhat.com>
9935
9936 * tracepoint.c: Include rsp-low.h.
9937 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9938 * remote.c: Include rsp-low.h.
9939 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9940 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9941 (remote_unescape_input): Move to common/rsp-low.c.
9942 * common/rsp-low.h: New file.
9943 * common/rsp-low.c: New file.
9944 * Makefile.in (SFILES): Add common/rsp-low.c.
9945 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9946 (COMMON_OBS): Add rsp-low.o.
9947 (rsp-low.o): New target.
9948
01fd3ea5
TT
99492014-02-12 Tom Tromey <tromey@redhat.com>
9950
9951 * utils.h: Include print-utils.h.
9952 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9953 (int_string, core_addr_to_string, core_addr_to_string_nz)
9954 (hex_string, hex_string_custom): Don't declare.
9955 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9956 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9957 (hex_string_custom, int_string, core_addr_to_string)
9958 (core_addr_to_string_nz, host_address_to_string): Move to
9959 common/print-utils.c.
9960 * common/print-utils.h: New file.
9961 * common/print-utils.c: New file
9962 * Makefile.in (SFILES): Add common/print-utils.c.
9963 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9964 (COMMON_OBS): Add print-utils.o.
9965 (print-utils.o): New target.
9966
9fb50108
TT
99672014-02-12 Tom Tromey <tromey@redhat.com>
9968
9969 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9970
0548b5db
MK
99712014-02-12 Mark Kettenis <kettenis@gnu.org>
9972
9973 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9974
493443a4
MK
99752014-02-12 Mark Kettenis <kettenis@gnu.org>
9976
9977 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9978 if a PT_IO ptrace request returns sucessfully but indicates that 0
9979 bytes were transferred.
9980
706d0883
PA
99812014-02-12 Pedro Alves <palves@redhat.com>
9982 Kevin Buettner <kevinb@redhat.com>
9983
9984 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9985 TYPE_INSTANCE_FLAG_CODE_SPACE.
9986
5caa2f0b
PA
99872014-02-12 Pedro Alves <palves@redhat.com>
9988
9989 * h8300-tdep.c (pseudo_from_raw_register)
9990 (raw_from_pseudo_register): New functions.
9991 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9992 them.
9993
76fd5f74
PA
99942014-02-12 Pedro Alves <palves@redhat.com>
9995
9996 * h8300-tdep.c (h8300_register_sim_regno): New function.
9997 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9998 gdbarch_register_sim_regno hook.
9999
8f008406
SA
100002014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10001
10002 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10003
195abc10
SA
100042014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10005
10006 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10007
93ffa5b9
MK
100082014-02-12 Mark Kettenis <kettenis@gnu.org>
10009
10010 * obsd-tdep.h (obsd_init_abi): New prototype.
10011 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10012 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10013 (obsd_init_abi): New functions.
10014 * i386obsd-tdep.c: Include "obsd-tdep.h".
10015 (i386obsd_init_abi): Call obsd_init_abi.
10016 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10017 (amd64obsd_init_abi): Call obsd_init_abi.
10018 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10019 obsd-tdep.c to gdb_target_obs.
10020
49caec94
JM
100212014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10022
10023 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10024 double float arguments to 16-byte in the argument slots.
10025
e1402065
DE
100262014-02-11 Doug Evans <xdje42@gmail.com>
10027
10028 * configure.ac: Don't crash if pkg-config is not found and guile
10029 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10030 in guile checks.
10031 * configure: Regenerate.
10032
edcc890f
YQ
100332014-02-11 Yao Qi <yao@codesourcery.com>
10034
10035 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10036 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10037 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10038 * gnu-nat.c (gnu_xfer_memory): Likewise.
10039 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10040 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10041 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10042 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10043
9b409511
YQ
100442014-02-11 Yao Qi <yao@codesourcery.com>
10045
10046 * target.h (enum target_xfer_error): Rename to ...
10047 (enum target_xfer_status): ... it. New. All users updated.
10048 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10049 New.
10050 (TARGET_XFER_STATUS_ERROR_P): New macro.
10051 (target_xfer_error_to_string): Remove declaration.
10052 (target_xfer_status_to_string): Declare.
10053 (target_xfer_partial_ftype): Adjust it.
10054 (struct target_ops) <to_xfer_partial>: Return
10055 target_xfer_status. Add argument xfered_len. Update
10056 comments.
10057 * target.c (target_xfer_error_to_string): Rename to ...
10058 (target_xfer_status_to_string): ... it. New. All callers
10059 updated.
10060 (target_read_live_memory): Likewise. Call target_xfer_partial
10061 instead of target_read.
10062 (memory_xfer_live_readonly_partial): Return
10063 target_xfer_status. Add argument xfered_len.
10064 (raw_memory_xfer_partial): Likewise.
10065 (memory_xfer_partial_1): Likewise.
10066 (memory_xfer_partial): Likewise.
10067 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10068 properly. Update debug message.
10069 (default_xfer_partial, current_xfer_partial): Likewise.
10070 (target_write_partial): Likewise.
10071 (target_read_partial): Likewise. All callers updated.
10072 (read_whatever_is_readable): Likewise.
10073 (target_write_with_progress): Likewise.
10074 (target_read_alloc_1): Likewise.
10075
10076 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10077 * auxv.c (procfs_xfer_auxv): Likewise.
10078 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10079 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10080 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10081 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10082 * corefile.c (read_memory): Adjust.
10083 * corelow.c (core_xfer_partial): Likewise.
10084 * ctf.c (ctf_xfer_partial): Likewise.
10085 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10086 updated.
10087 (darwin_xfer_partial): Likewise.
10088 * exec.c (section_table_xfer_memory_partial): Likewise. All
10089 callers updated.
10090 (exec_xfer_partial): Likewise.
10091 * exec.h (section_table_xfer_memory_partial): Update
10092 declaration.
10093 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10094 negative.
10095 (gnu_xfer_partial): Likewise.
10096 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10097 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10098 (ia64_hpux_xfer_solib_got): Likewise.
10099 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10100 type of 'partial_len' to ULONGEST.
10101 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10102 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10103 (linux_nat_xfer_partial): Likewise.
10104 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10105 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10106 * monitor.c (monitor_xfer_memory): Likewise.
10107 (monitor_xfer_partial): Likewise.
10108 * procfs.c (procfs_xfer_partial): Likewise.
10109 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10110 * record-full.c (record_full_xfer_partial): Likewise.
10111 (record_full_core_xfer_partial): Likewise.
10112 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10113 (gdbsim_xfer_partial): Likewise.
10114 * remote.c (remote_write_bytes_aux): Likewise. All callers
10115 updated.
10116 (remote_write_bytes, remote_read_bytes): Likewise. All
10117 callers updated.
10118 (remote_flash_erase): Likewise. All callers updated.
10119 (remote_write_qxfer): Likewise. All callers updated.
10120 (remote_read_qxfer): Likewise. All callers updated.
10121 (remote_xfer_partial): Likewise.
10122 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10123 (rs6000_xfer_shared_libraries): Likewise.
10124 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10125 (sol_thread_xfer_partial): Likewise.
10126 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10127 (sparc_xfer_partial): Likewise.
10128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10129 updated.
10130 (spu_xfer_partial): Likewise.
10131 * spu-multiarch.c (spu_xfer_partial): Likewise.
10132 * tracepoint.c (tfile_xfer_partial): Likewise.
10133 * windows-nat.c (windows_xfer_memory): Likewise.
10134 (windows_xfer_shared_libraries): Likewise.
10135 (windows_xfer_partial): Likewise.
10136 * valprint.c: Replace 'target_xfer_error' with
10137 'target_xfer_status' in comments.
10138
a8e63083
JB
101392014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10140
10141 Checked in by Joel Brobecker <brobecker@adacore.com>.
10142 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10143
e86b67d3
JB
101442014-02-11 Joel Brobecker <brobecker@adacore.com>
10145
10146 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10147 function parameters.
10148
4b7d1f7f
WN
101492014-02-10 Will Newton <will.newton@linaro.org>
10150
10151 * elfread.c (elf_rel_plt_read): Look for a .got section if
10152 looking up .got.plt fails.
10153 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10154 on address passed to elf_gnu_ifunc_record_cache.
10155 (elf_gnu_ifunc_resolve_addr): Likewise.
10156 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10157
961842b2
JM
101582014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10159
10160 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10161 (X_RETTURN): New macro.
10162 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10163
10164 * sparc64-tdep.c (sparc64_init_abi): Hook
10165 sparc_in_function_epilogue_p.
10166
3f03e7b1
GB
101672014-02-10 Gary Benson <gbenson@redhat.com>
10168
10169 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10170 Rename name_matcher to symbol_matcher.
10171
96f861ef
GB
101722014-02-10 Gary Benson <gbenson@redhat.com>
10173
10174 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10175 Use expand_symtabs_file_matcher_ftype and
10176 expand_symtabs_symbol_matcher_ftype.
10177
ee01b665
JB
101782014-02-10 Joel Brobecker <brobecker@adacore.com>
10179
10180 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10181 (struct ada_symbol_cache): New.
10182 (ada_free_symbol_cache): Forward declare.
10183 (struct ada_pspace_data): New.
10184 (ada_pspace_data_handle): New static global.
10185 (get_ada_pspace_data, ada_pspace_data_cleanup)
10186 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10187 (cache_space, cache): Delete, now folded inside struct
10188 ada_pspace_data.
10189 (ada_get_symbol_cache): New function.
10190 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10191 implementation.
10192 (_initialize_ada_language): Remove initialization of cache_space.
10193 Move call to observer_attach_inferior_exit up, grouping it
10194 with the other observer registrations inside this function.
10195 Rename command to be more general. Add call to
10196 register_program_space_data_with_cleanup.
10197
143adbbf
JB
101982014-02-10 Joel Brobecker <brobecker@adacore.com>
10199
10200 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10201 ada_new_objfile_observer.
10202 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10203 (_initialize_tasks): Update uses of ada_new_objfile_observer
10204 and ada_tasks_normal_stop_observer.
10205
aa4fb036
JB
102062014-02-10 Joel Brobecker <brobecker@adacore.com>
10207
10208 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10209 returned by the 'Length attribute to integer.
10210
9dee8cc6
JB
102112014-02-10 Joel Brobecker <brobecker@adacore.com>
10212
10213 * ada-lang.c (_initialize_ada_language): Initialize
10214 cache_space obstack.
10215
3d9434b5
JB
102162014-02-10 Joel Brobecker <brobecker@adacore.com>
10217
10218 * ada-lang.c (HASH_SIZE): New macro.
10219 (struct cache_entry): New type.
10220 (cache_space, cache): New static globals.
10221 (ada_clear_symbol_cache, find_entry): New functions.
10222 (lookup_cached_symbol, cache_symbol): Implement.
10223 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10224 (_initialize_ada_language): Attach ada_new_objfile_observer
10225 and ada_free_objfile_observer.
10226
f0c5f9b2
JB
102272014-02-10 Joel Brobecker <brobecker@adacore.com>
10228
10229 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10230 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10231 struct block * parameter.
10232 (ada_lookup_symbol_list_worker): Constify local variable "block".
10233 Remove cast which is no longer necessary.
10234
ed3ef339
DE
102352014-02-10 Doug Evans <xdje42@gmail.com>
10236
10237 Add Guile as an extension language.
10238 * NEWS: Mention Guile scripting.
10239 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10240 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10241 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10242 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10243 (CLIBS): Add GUILE_LIBS.
10244 (install-guile): New rule.
10245 (guile.o): New rule.
10246 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10247 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10248 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10249 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10250 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10251 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10252 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10253 * configure.ac: New option --with-guile.
10254 * configure: Regenerate.
10255 * config.in: Regenerate.
10256 * auto-load.c: Remove #include "python/python.h". Add #include
10257 "gdb/section-scripts.h".
10258 (source_section_scripts): Handle Guile scripts.
10259 (_initialize_auto_load): Add name of Guile objfile script to
10260 scripts-directory help text.
10261 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10262 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10263 (struct breakpoint): New member scm_bp_object.
10264 * defs.h (enum command_control_type): New value guile_control.
10265 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10266 "extension.h".
10267 (show_user): Update comment.
10268 (_initialize_cli_cmds): Update help text for "show user". Update help
10269 text for max-user-call-depth.
10270 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10271 "extension.h".
10272 (multi_line_command_p): Add guile_control.
10273 (print_command_lines): Handle guile_control.
10274 (execute_control_command, recurse_read_control_structure): Ditto.
10275 (process_next_line): Recognize "guile" commands.
10276 * disasm.c (gdb_disassemble_info): Make non-static.
10277 * disasm.h: #include "dis-asm.h".
10278 (struct gdbarch): Add forward decl.
10279 (gdb_disassemble_info): Declare.
10280 * extension.c: #include "guile/guile.h".
10281 (extension_languages): Add guile.
10282 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10283 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10284 * gdbtypes.c (get_unsigned_type_max): New function.
10285 (get_signed_type_minmax): New function.
10286 * gdbtypes.h (get_unsigned_type_max): Declare.
10287 (get_signed_type_minmax): Declare.
10288 * guile/README: New file.
10289 * guile/guile-internal.h: New file.
10290 * guile/guile.c: New file.
10291 * guile/guile.h: New file.
10292 * guile/scm-arch.c: New file.
10293 * guile/scm-auto-load.c: New file.
10294 * guile/scm-block.c: New file.
10295 * guile/scm-breakpoint.c: New file.
10296 * guile/scm-disasm.c: New file.
10297 * guile/scm-exception.c: New file.
10298 * guile/scm-frame.c: New file.
10299 * guile/scm-gsmob.c: New file.
10300 * guile/scm-iterator.c: New file.
10301 * guile/scm-lazy-string.c: New file.
10302 * guile/scm-math.c: New file.
10303 * guile/scm-objfile.c: New file.
10304 * guile/scm-ports.c: New file.
10305 * guile/scm-pretty-print.c: New file.
10306 * guile/scm-safe-call.c: New file.
10307 * guile/scm-string.c: New file.
10308 * guile/scm-symbol.c: New file.
10309 * guile/scm-symtab.c: New file.
10310 * guile/scm-type.c: New file.
10311 * guile/scm-utils.c: New file.
10312 * guile/scm-value.c: New file.
10313 * guile/lib/gdb.scm: New file.
10314 * guile/lib/gdb/boot.scm: New file.
10315 * guile/lib/gdb/experimental.scm: New file.
10316 * guile/lib/gdb/init.scm: New file.
10317 * guile/lib/gdb/iterator.scm: New file.
10318 * guile/lib/gdb/printing.scm: New file.
10319 * guile/lib/gdb/types.scm: New file.
10320 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10321 (VPATH): Add $(GUILE_SRCDIR).
10322 (GUILE_DIR): New variable.
10323 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10324 (all): Add stamp-guile dependency.
10325 (stamp-guile): New rule.
10326 (clean-guile, install-guile, uninstall-guile): New rules.
10327 (install-only): Add install-guile dependency.
10328 (uninstall): Add uninstall-guile dependency.
10329 (clean): Add clean-guile dependency.
10330
ac020ec5
DE
103312014-02-09 Doug Evans <xdje42@gmail.com>
10332
10333 Revert this patch (which I approved, mea culpa).
10334
10335 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10336
10337 * Makefile.in (all-lib): Remove.
10338 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10339
2a081c59
JK
103402014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10341
10342 Fix Python stack corruption.
10343 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10344 gdb_py_longest.
10345
0a6bd22d
MK
103462014-02-08 Mark Kettenis <kettenis@gnu.org>
10347
10348 * Makefile.in (all-lib): Remove.
10349 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10350
1a860409
DE
103512014-02-07 Doug Evans <dje@google.com>
10352
10353 * extension-priv.h (extension_language_script_ops): Add comment.
10354 (extension_language_ops): Add comment.
caf5a491 10355 (active_ext_lang_state): Fix typo in comment.
1a860409 10356
d137e6dc
PA
103572014-02-07 Pedro Alves <palves@redhat.com>
10358
0dcb32c3 10359 PR breakpoints/16292
d137e6dc
PA
10360 * infrun.c (handle_signal_stop) <signal arrives while stepping
10361 over a breakpoint>: Switch back to the stepping thread.
10362
ce6d0892
YQ
103632014-02-07 Yao Qi <yao@codesourcery.com>
10364
10365 * target.c (target_xfer_partial): Return zero if LEN is zero.
10366
2ed4b548
YQ
103672014-02-07 Yao Qi <yao@codesourcery.com>
10368
10369 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10370 (ld_so_xfer_auxv): Likewise.
10371 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10372 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10373 * corelow.c (core_xfer_partial): Likewise.
10374 * ctf.c (ctf_xfer_partial): Likewise.
10375 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10376 (darwin_xfer_partial): Likewise.
10377 * exec.c (exec_xfer_partial): Likewise.
10378 * gnu-nat.c (gnu_xfer_partial): Likewise.
10379 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10380 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10381 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10382 * linux-nat.c (linux_xfer_siginfo): Likewise.
10383 (linux_proc_xfer_spu): Likewise.
10384 * procfs.c (procfs_xfer_partial): Likewise.
10385 * record-full.c (record_full_xfer_partial): Likewise.
10386 (record_full_core_xfer_partial): Likewise.
10387 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10388 * remote.c (remote_write_qxfer): Likewise.
10389 (remote_write_qxfer, remote_read_qxfer): Likewise.
10390 (remote_xfer_partial): Likewise.
10391 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10392 (rs6000_xfer_shared_libraries): Likewise.
10393 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10394 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10395 (spu_xfer_partial): Likewise.
10396 * target.c (memory_xfer_partial_1): Likewise.
10397 * tracepoint.c (tfile_xfer_partial): Likewise.
10398 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10399 (windows_xfer_partial): Likewise.
10400
c09f20e4
YQ
104012014-02-07 Yao Qi <yao@codesourcery.com>
10402
10403 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10404 comments.
10405 (core_xfer_shared_libraries_aix): Likewise.
10406 * gdbarch.c, gdbarch.h: Regenerated.
10407 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10408 ULONGEST. Change 'len_avail' type to ULONGEST.
10409 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10410 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10411 declaration.
10412 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10413
8635b3bf
YQ
104142014-02-07 Yao Qi <yao@codesourcery.com>
10415
10416 * corefile.c (memory_error): Get 'exception' from ERR and pass
10417 'exception' to throw_error.
10418
6dddc817
DE
104192014-02-06 Doug Evans <xdje42@gmail.com>
10420
10421 * configure.ac (libpython checking): Remove all but python.o from
10422 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10423 * configure: Regenerate.
10424
10425 * Makefile.in (SFILES): Add extension.c.
10426 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10427 (COMMON_OBS): Add extension.o.
10428 * extension.h: New file.
10429 * extension-priv.h: New file.
10430 * extension.c: New file.
10431
10432 * python/python-internal.h: #include "extension.h".
10433 (gdbpy_auto_load_enabled): Declare.
10434 (gdbpy_apply_val_pretty_printer): Declare.
10435 (gdbpy_apply_frame_filter): Declare.
10436 (gdbpy_preserve_values): Declare.
10437 (gdbpy_breakpoint_cond_says_stop): Declare.
10438 (gdbpy_breakpoint_has_cond): Declare.
10439 (void source_python_script_for_objfile): Delete.
10440 * python/python.c: #include "extension-priv.h".
10441 Delete inclusion of "observer.h".
10442 (extension_language_python): Moved here and renamed from
10443 script_language_python in py-auto-load.c.
10444 Redefined to be of type extension_language_defn.
10445 (python_extension_script_ops): New global.
10446 (python_extension_ops): New global.
10447 (struct python_env): New member previous_active.
10448 (restore_python_env): Call restore_active_ext_lang.
10449 (ensure_python_env): Call set_active_ext_lang.
10450 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10451 New arg extlang.
10452 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10453 New arg extlang.
10454 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10455 New arg extlang.
10456 (gdbpy_eval_from_control_command): Renamed from
10457 eval_python_from_control_command, made static. New arg extlang.
10458 (gdbpy_source_script) Renamed from source_python_script, made static.
10459 New arg extlang.
10460 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10461 result to int. New arg extlang.
10462 (gdbpy_source_objfile_script): Renamed from
10463 source_python_script_for_objfile, made static. New arg extlang.
10464 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10465 static. New args extlang, extlang_printers. Change result type to
10466 "void".
10467 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10468 static. New arg extlang. Rename arg printers to extlang_printers
10469 and change type to ext_lang_type_printers *.
10470 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10471 static. Replace argument arg with extlang, extlang_printers.
10472 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10473 (!HAVE_PYTHON, source_python_script): Delete.
10474 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10475 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10476 (!HAVE_PYTHON, start_type_printers): Delete.
10477 (!HAVE_PYTHON, apply_type_printers): Delete.
10478 (!HAVE_PYTHON, free_type_printers): Delete.
10479 (_initialize_python): Delete call to observer_attach_before_prompt.
10480 (finalize_python): Set/restore active extension language.
10481 (gdbpy_finish_initialization) Renamed from
10482 finish_python_initialization, made static. New arg extlang.
10483 (gdbpy_initialized): New function.
10484 * python/python.h: #include "extension.h". Delete #include
10485 "value.h", "mi/mi-cmds.h".
10486 (extension_language_python): Declare.
10487 (GDBPY_AUTO_FILE_NAME): Delete.
10488 (enum py_bt_status): Moved to extension.h and renamed to
10489 ext_lang_bt_status.
10490 (enum frame_filter_flags): Moved to extension.h.
10491 (enum py_frame_args): Moved to extension.h and renamed to
10492 ext_lang_frame_args.
10493 (finish_python_initialization): Delete.
10494 (eval_python_from_control_command): Delete.
10495 (source_python_script): Delete.
10496 (apply_val_pretty_printer): Delete.
10497 (apply_frame_filter): Delete.
10498 (preserve_python_values): Delete.
10499 (gdbpy_script_language_defn): Delete.
10500 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10501 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10502
10503 * auto-load.c: #include "extension.h".
10504 (GDB_AUTO_FILE_NAME): Delete.
10505 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10506 (script_language_gdb): Delete, moved to extension.c and renamed to
10507 extension_language_gdb.
10508 (source_gdb_script_for_objfile): Delete.
10509 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10510 (loaded_script): Change type of language member to
10511 struct extension_language_defn *.
10512 (init_loaded_scripts_info): Initialize
10513 unsupported_script_warning_printed.
10514 (maybe_add_script): Make static. Change type of language arg to
10515 struct extension_language_defn *.
10516 (clear_section_scripts): Reset unsupported_script_warning_printed.
10517 (auto_load_objfile_script_1): Rewrite to use extension language API.
10518 (auto_load_objfile_script): Make public. Remove support-compiled-in
10519 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10520 (source_section_scripts): Rewrite to use extension language API.
10521 (load_auto_scripts_for_objfile): Rewrite to use
10522 auto_load_scripts_for_objfile.
10523 (collect_matching_scripts_data): Change type of language member to
10524 struct extension_language_defn *.
10525 (auto_load_info_scripts): Change type of language arg to
10526 struct extension_language_defn *.
10527 (unsupported_script_warning_print): New function.
10528 (script_not_found_warning_print): Make static.
10529 (_initialize_auto_load): Rewrite construction of scripts-directory
10530 help.
10531 * auto-load.h (struct objfile): Add forward decl.
10532 (struct script_language): Delete.
10533 (struct auto_load_pspace_info): Add forward decl.
10534 (struct extension_language_defn): Add forward decl.
10535 (maybe_add_script): Delete.
10536 (auto_load_objfile_script): Declare.
10537 (script_not_found_warning_print): Delete.
10538 (auto_load_info_scripts): Update prototype.
10539 (auto_load_gdb_scripts_enabled): Declare.
10540 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10541 auto_load_python_scripts_enabled and made public.
10542 (script_language_python): Delete, moved to python.c.
10543 (gdbpy_script_language_defn): Delete.
10544 (info_auto_load_python_scripts): Update to use
10545 extension_language_python.
10546
10547 * breakpoint.c (condition_command): Replace call to
10548 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10549 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10550 with call to breakpoint_ext_lang_cond_says_stop.
10551 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10552 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10553 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10554 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10555 New arg slang.
10556 (local_setattro): Print name of extension language with existing
10557 stop condition.
10558
10559 * valprint.c (val_print, value_print): Update to call
10560 apply_ext_lang_val_pretty_printer.
10561 * cp-valprint.c (cp_print_value): Update call to
10562 apply_ext_lang_val_pretty_printer.
10563 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10564 (gdbpy_apply_val_pretty_printer): Renamed from
10565 apply_val_pretty_printer. New arg extlang.
10566 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10567
10568 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10569 extension language API.
10570 * cli/cli-script.c (execute_control_command): Update to call
10571 eval_ext_lang_from_control_command.
10572
10573 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10574 enum ext_lang_bt_status values. Update call to
10575 apply_ext_lang_frame_filter.
10576 (mi_cmd_stack_list_locals): Ditto.
10577 (mi_cmd_stack_list_args): Ditto.
10578 (mi_cmd_stack_list_variables): Ditto.
10579 * mi/mi-main.c: Delete #include "python/python-internal.h".
10580 Add #include "extension.h".
10581 (mi_cmd_list_features): Replace reference to python internal variable
10582 gdb_python_initialized with call to ext_lang_initialized_p.
10583
10584 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10585 Update to use enum ext_lang_frame_args. Update to call
10586 apply_ext_lang_frame_filter.
10587 * python/py-framefilter.c (extract_sym): Update to use enum
10588 ext_lang_bt_status.
10589 (extract_value, py_print_type, py_print_value): Ditto.
10590 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10591 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10592 (py_print_frame): Ditto.
10593 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10594 New arg extlang. Update to use enum ext_lang_bt_status.
10595
10596 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10597 finish_python_initialization. Replace with call to
10598 finish_ext_lang_initialization.
10599
10600 * typeprint.c (do_free_global_table): Update to call
10601 free_ext_lang_type_printers.
10602 (create_global_typedef_table): Update to call
10603 start_ext_lang_type_printers.
10604 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10605 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10606 (type_print_options): Change type of global_printers from "void *"
10607 to "struct ext_lang_type_printers *".
10608
10609 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10610 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10611 (gdbpy_preserve_values): Renamed from preserve_python_values.
10612 New arg extlang.
10613 (!HAVE_PYTHON, preserve_python_values): Delete.
10614
10615 * utils.c (quit_flag): Delete, moved to extension.c.
10616 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10617 extension.c.
10618
10619 * eval.c: Delete #include "python/python.h".
10620 * main.c: Delete #include "python/python.h".
10621
10622 * defs.h: Update comment.
10623
6af79985
JB
106242014-02-06 Joel Brobecker <brobecker@adacore.com>
10625
10626 GDB 7.7 released.
10627
12c5175d
MK
106282014-02-05 Mark Kettenis <kettenis@gnu.org>
10629
10630 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10631 defined.
10632
8dc5b319
YQ
106332014-02-05 Yao Qi <yao@codesourcery.com>
10634
10635 * remote.c (remote_pass_signals): Remove local 'buf' and use
10636 rs->buf.
10637 (remote_program_signals): Likewise.
10638
de7b2893
YQ
106392014-02-05 Yao Qi <yao@codesourcery.com>
10640
10641 * ctf.c: Include "inferior.h" and "gdbthread.h".
10642 (CTF_PID): A new macro.
10643 (ctf_open): Call inferior_appeared and add_thread_silent.
10644 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10645 (ctf_thread_alive): New function.
10646 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10647
66d032ac
YQ
106482014-02-05 Yao Qi <yao@codesourcery.com>
10649
10650 Revert this patch:
10651
10652 2013-05-24 Yao Qi <yao@codesourcery.com>
10653
10654 * tracepoint.c (TFILE_PID): Remove.
10655 (tfile_open): Don't add thread and inferior.
10656 (tfile_close): Don't set 'inferior_ptid'. Don't call
10657 exit_inferior_silent.
10658 (tfile_thread_alive): Remove.
10659 (init_tfile_ops): Don't set field 'to_thread_alive' of
10660 tfile_ops.
10661
f4ccffad
CE
106622014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10663
10664 * remote.c (remote_start_remote): Call remote_check_symbols even
10665 if only symbol-file (not file) has been given.
10666
591a12a1
UW
106672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10668
10669 * gdbarch.sh (skip_entrypoint): New callback.
10670 * gdbarch.c, gdbarch.h: Regenerate.
10671 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10672 * infrun.c (fill_in_stop_func): Likewise.
10673 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10674 (ppc_elfv2_elf_make_msymbol_special): New function.
10675 (ppc_elfv2_skip_entrypoint): Likewise.
10676 (ppc_linux_init_abi): Install them for ELFv2.
10677
cc0e89c5
UW
106782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10679
10680 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10681 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10682 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10683 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10684 structures returned in GPRs.
10685
52f548e4
UW
106862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10687
10688 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10689 offset to the stack parameter list for the ELFv2 ABI.
10690
d4094b6a
UW
106912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10692
10693 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10694 set_gdbarch_convert_from_func_ptr_addr and
10695 set_gdbarch_elf_make_msymbol_special for ELFv1.
10696 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10697 function descriptors on ELFv1.
10698 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10699 set up r12 at function entry.
10700
cd453cd0
UW
107012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10702
10703 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10704 (struct gdbarch_tdep): New member elf_abi.
10705
10706 * rs6000-tdep.c: Include "elf/ppc64.h".
10707 (rs6000_gdbarch_init): Detect ELF ABI version.
10708
0ff3e01f
UW
107092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10710
10711 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10712 within a register pair holding a DFP 128-bit value on little-endian.
10713 (ppc64_sysv_abi_return_value_base): Likewise.
10714 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10715 (dfp_pseudo_register_write): Likewise.
10716
5b757e5d
UW
107172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10718
10719 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10720 offset on little-endian when passing _Decimal32.
10721 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10722
084ee545
UW
107232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10724
10725 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10726 of the overlapped FP register within the VSX register on little-
10727 endian platforms.
10728 (efpr_pseudo_register_write): Likewise.
10729
d63167af
UW
107302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10731
10732 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10733 offset on little-endian when passing small structures.
10734
e765b44c
UW
107352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10736
10737 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10738 (struct ppc64_sysv_argpos): New data structure.
10739 (ppc64_sysv_abi_push_float): Remove.
10740 (ppc64_sysv_abi_push_val): New function.
10741 (ppc64_sysv_abi_push_integer): Likewise.
10742 (ppc64_sysv_abi_push_freg): Likewise.
10743 (ppc64_sysv_abi_push_vreg): Likewise.
10744 (ppc64_sysv_abi_push_param): Likewise.
10745 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10746 (ppc64_sysv_abi_return_value_base): New function.
10747 (ppc64_sysv_abi_return_value): Refactor to use it.
10748
36c24d95
UW
107492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10750
10751 * NEWS: Document new target powerpc64le-*-linux*.
10752
26fd9228
MK
107532014-02-04 Mark Kettenis <kettenis@gnu.org>
10754
10755 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10756 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10757 core dumps.
10758 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10759 register set used in ELF core dumps. Add floating-point register set.
10760
c5bb7362
KB
107612014-02-03 Kevin Buettner <kevinb@redhat.com>
10762
74228e77 10763 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10764 dwarf2_to_gdb[] table using symbolic constants. Adjust
10765 penultimate entry from number representing the PC register
10766 to symbolic constant representing the MDR register. Add
10767 constant for the PC register to the end of the table.
10768
af09351e
MK
107692014-02-03 Mark Kettenis <kettenis@gnu.org>
10770
10771 * bsd-kvm.c: Include <sys/param.h>
10772
8507e05d
MK
107732014-02-03 Mark Kettenis <kettenis@gnu.org>
10774
10775 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10776
ae56bfb8
JB
107772014-01-31 Joel Brobecker <brobecker@adacore.com>
10778
10779 * ada-lang.h (clear_ada_sym_cache): Delete.
10780
718ee4dc
UW
107812014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10782
10783 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10784
401e27fd
JM
107852014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10786
10787 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10788 the sigreturn register save area only if the syscall is
10789 sigreturn.
10790
a7c88acd
JB
107912014-01-29 Joel Brobecker <brobecker@adacore.com>
10792
10793 * valops.c (value_slice): Minor reformatting.
10794
fa0079ea
UW
107952014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10796
10797 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10798
c6044dd1
JB
107992014-01-28 Joel Brobecker <brobecker@adacore.com>
10800
10801 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10802 New static globals.
10803 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10804 (ada_ignore_descriptive_types_p): New static global.
10805 (find_parallel_type_by_descriptive_type): Return immediately
10806 if ada_ignore_descriptive_types_p is set.
10807 (_initialize_ada_language): Register new commands "maintenance
10808 set ada", "maintenance show ada", "maintenance set ada
10809 ignore-descriptive-types" and "maintenance show ada
10810 ignore-descriptive-types".
10811 * NEWS: Add entry for new "maint ada set/show
10812 ignore-descriptive-types" commands.
10813
568e808b
MM
108142014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10815
10816 * record-btrace.c (record_btrace_close): Call btrace_teardown
10817 for all threads.
10818
467d141b
JB
108192014-01-27 Joel Brobecker <brobecker@adacore.com>
10820
10821 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10822 "ui-out.h".
10823
fb151210
JB
108242014-01-27 Joel Brobecker <brobecker@adacore.com>
10825
10826 * ada-typeprint (type_is_full_subrange_of_target_type):
10827 New function.
10828 (print_range): Add parameter bounds_prefered_p. If not set,
10829 try printing range types using the name of their base type.
10830 (print_range_type): Add parameter bounds_prefered_p.
10831 Use it in call to print_range.
10832 (print_array_type, ada_print_type): Update calls to print_range
10833 and print_range_type.
10834
aba02109
JB
108352014-01-27 Joel Brobecker <brobecker@adacore.com>
10836
10837 * ada-typeprint.c (print_array_type, print_choices, print_range)
10838 (print_range_bound, print_dynamic_range_bound, print_range_type):
10839 Remove declaration.
10840
e62e21fd
JB
108412014-01-27 Joel Brobecker <brobecker@adacore.com>
10842
10843 * ada-typeprint.c (print_range): Add missing empty line
10844 after local declaration.
10845
859cf5d1
JB
108462014-01-27 Joel Brobecker <brobecker@adacore.com>
10847
10848 * ada-valprint.c (print_optional_low_bound): Get index_type's
10849 target type for as long as it is a TYPE_CODE_RANGE.
10850
25790f6f
JB
108512014-01-27 Joel Brobecker <brobecker@adacore.com>
10852
10853 * procfs.c (procfs_make_note_section): Remove assertion and
10854 associated comment.
10855
6b6aa828
YQ
108562014-01-24 Yao Qi <yao@codesourcery.com>
10857
10858 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10859 * corelow.c (get_core_siginfo): Likewise.
10860
5d6df423
YQ
108612014-01-24 Yao Qi <yao@codesourcery.com>
10862
10863 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10864 ULONGEST. Don't check 'len' is negative.
10865 (remote_write_bytes): Change type of 'len' to ULONGEST.
10866
83b645b8
TT
108672014-01-23 Tom Tromey <tromey@redhat.com>
10868
10869 PR python/16485:
10870 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10871 Handle exception from frame.block.
10872 (FrameVars.fetch_frame_locals): Likewise.
10873
0740f8d8
TT
108742014-01-23 Tom Tromey <tromey@redhat.com>
10875
10876 PR python/16487:
10877 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10878 on a NULL pointer. Move "goto error" to correct place.
10879
21909fa1
TT
108802014-01-23 Tom Tromey <tromey@redhat.com>
10881
10882 PR python/16491:
10883 * python/py-framefilter.c (apply_frame_filter): Call
10884 ensure_python_env after computing gdbarch.
10885
17fde6d0
YQ
108862014-01-23 Yao Qi <yao@codesourcery.com>
10887
10888 * target.c (raw_memory_xfer_partial): Change argument type
10889 from void * to gdb_byte *.
10890 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10891
87ce2a04
DE
108922014-01-22 Doug Evans <dje@google.com>
10893
10894 New gdbserver option --debug-format=timestamp.
10895 * NEWS: Mention it.
10896
237b092b
AA
108972014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10898
10899 * syscalls/s390x-linux.xml: New file.
10900 * syscalls/s390-linux.xml: New file.
10901 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10902 (XML_SYSCALL_FILENAME_S390X): Likewise.
10903 (op_svc): New enum value for SVC opcode.
10904 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10905 (s390_linux_get_syscall_number): New function.
10906 (s390_gdbarch_init): Register '*get_syscall_number' and the
10907 syscall xml file name.
10908 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10909 "s390-linux.xml" and "s390x-linux.xml".
10910 * NEWS: Announce new feature.
10911
54bff650
BS
109122014-01-22 Baruch Siach <baruch@tkos.co.il>
10913
10914 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10915
14e361d7
PA
109162014-01-22 Pedro Alves <palves@redhat.com>
10917
10918 * xtensa-config.c: Include defs.h.
10919
46bbb3ed
JB
109202014-01-22 Joel Brobecker <brobecker@adacore.com>
10921
10922 * common/common-utils.h: Add "ARI:" comment beside __func__
10923 reference.
10924
3a80edfc
JB
109252014-01-22 Joel Brobecker <brobecker@adacore.com>
10926
10927 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10928 documentation a bit.
10929
4869db5e
RM
109302014-01-21 Roland McGrath <mcgrathr@google.com>
10931
10932 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10933 * configure: Regenerate.
10934 * aclocal.m4: Regenerate.
10935 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10936 New substituted variables.
10937 (install-strip): New target.
10938 (INSTALL_SCRIPT): New substituted variable.
10939 (FLAGS_TO_PASS): Add it.
10940 (install-only): Use $(INSTALL_SCRIPT) rather than
10941 $(INSTALL_PROGRAM) for gcore.
10942
9ea4267d
TT
109432014-01-20 Tom Tromey <tromey@redhat.com>
10944
10945 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10946 together.
10947
1f2bdf09
TT
109482014-01-20 Tom Tromey <tromey@redhat.com>
10949
10950 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10951 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10952 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10953 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10954 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10955 (struct cmd_list_element) <flags>: Remove.
10956 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10957 doc_allocated>: New fields.
10958 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10959 bitfields.
10960 * maint.c (maintenance_do_deprecate): Update.
10961 * top.c (execute_command): Update.
10962
e671835b
BS
109632014-01-20 Baruch Siach <baruch@tkos.co.il>
10964
10965 * xtensa-linux-nat.c: Include asm/ptrace.h.
10966
50367cd2
IB
109672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10968
10969 * Makefile.in (SFILES): Add d-support.c.
10970 (COMMON_OBS): Add d-support.o.
10971 * d-lang.h (d_parse_symbol): Add comment, now defined in
10972 d-support.c.
10973 * d-lang.c (parse_call_convention)
10974 (parse_attributes, parse_function_types)
10975 (parse_function_args, parse_type, parse_identifier)
10976 (call_convention_p, d_parse_symbol): Move functions to ...
10977 * d-support.c: ... New file.
10978
ec9f644a
IB
109792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10980
10981 * d-lang.h (d_parse_symbol): Add declaration.
10982 * d-lang.c (extract_identifiers)
10983 (extract_type_info): Remove functions.
10984 (parse_call_convention, parse_attributes)
10985 (parse_function_types, parse_function_args)
10986 (parse_type, parse_identifier, call_convention_p)
10987 (d_parse_symbol): New functions.
10988 (d_demangle): Use d_parse_symbol to demangle D symbols.
10989
94b1b47e
IB
109902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10991
10992 * d-lang.h (struct builtin_d_type): New data type.
10993 (builtin_d_type): Add declaration.
10994 * d-lang.c (d_language_arch_info, build_d_types)
10995 (builtin_d_type): New functions.
10996 (enum d_primitive_types): New data type.
10997 (d_language_defn): Change c_language_arch_info to
10998 d_language_arch_info.
10999 (d_type_data): New static variable.
11000 (_initialize_d_language): Initialize d_type_data.
11001
63778547
IB
110022014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11003
11004 * d-lang.h (d_main_name): Add declaration.
11005 * d-lang.c (d_main_name): New function.
11006 * symtab.c (find_main_name): Add call to d_main_name.
11007
3271ba66
IB
110082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11009
11010 * d-lang.c (d_language_defn): Change macro_expansion_c to
11011 macro_expansion_no.
11012
d36b3012
IB
110132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11014
11015 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11016
c90a6fb7
SDJ
110172014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11018
11019 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11020 gdb_exception" declaration.
11021 * remote.c (getpkt_or_notif_sane): Likewise.
11022
749234e5
DE
110232014-01-17 Doug Evans <dje@google.com>
11024
11025 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11026 function, contents of dirnames_to_char_ptr_vec_append moved here.
11027 (delim_string_to_char_ptr_vec): New function.
11028 (dirnames_to_char_ptr_vec_append): Rewrite.
11029 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11030
df049a58
DE
110312014-01-17 Doug Evans <dje@google.com>
11032
11033 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11034 and moved here ...
11035 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11036 #include "common-utils.h".
11037 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11038 * common/vec.h (VEC_ASSERT_PASS): Update.
11039 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11040 (MACH_CHECK_ERROR): Update.
11041
69f97648
SM
110422014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11043
11044 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11045 comments.
11046 * gdbarch.h: Regenerate.
11047
98b1cfdc
TT
110482014-01-16 Tom Tromey <tromey@redhat.com>
11049
11050 * value.c (struct value) <regnum>: Move earlier.
11051
77a19445
TT
110522014-01-16 Tom Tromey <tromey@redhat.com>
11053
11054 * remote.c (extended_remote_create_inferior): Rename from
11055 extended_remote_create_inferior_1. Add "ops" argument. Remove
11056 old implementation.
11057
62261490
PA
110582014-01-16 Pedro Alves <palves@redhat.com>
11059
11060 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11061 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11062 the backchain.
11063
4d65956b
DE
110642014-01-16 Doug Evans <dje@google.com>
11065
11066 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11067
52834460
MM
110682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11069
11070 * btrace.h (btrace_thread_flag): New.
11071 (struct btrace_thread_info) <flags>: New.
11072 * record-btrace.c (record_btrace_resume_thread)
11073 (record_btrace_find_thread_to_move, btrace_step_no_history)
11074 (btrace_step_stopped, record_btrace_start_replaying)
11075 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11076 (record_btrace_find_resume_thread): New.
11077 (record_btrace_resume, record_btrace_wait): Extend.
11078 (record_btrace_can_execute_reverse): New.
11079 (record_btrace_open): Fail in non-stop mode.
11080 (record_btrace_set_replay): Split into this, ...
11081 (record_btrace_stop_replaying): ... this, ...
11082 (record_btrace_clear_histories): ... and this.
11083 (init_record_btrace_ops): Init to_can_execute_reverse.
11084 * NEWS: Announce it.
11085
118e6252
MM
110862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11087
11088 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11089 (forward_target_decr_pc_after_break)
11090 (target_decr_pc_after_break): New.
11091 * target.c (forward_target_decr_pc_after_break)
11092 (target_decr_pc_after_break): New.
11093 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11094 instead of gdbarch_decr_pc_after_break.
11095 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11096 instead of gdbarch_decr_pc_after_break.
11097 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11098 instead of gdbarch_decr_pc_after_break.
11099 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11100 instead of gdbarch_decr_pc_after_break.
11101 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11102 instead of gdbarch_decr_pc_after_break.
11103 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11104 instead of gdbarch_decr_pc_after_break.
11105
6e07b1d2
MM
111062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11107
11108 * btrace.c: Include regcache.h.
11109 (btrace_add_pc): New.
11110 (btrace_enable): Call btrace_add_pc.
11111 (btrace_is_empty): New.
11112 * btrace.h (btrace_is_empty): New.
11113 * record-btrace.c (require_btrace, record_btrace_info): Call
11114 btrace_is_empty.
11115
969c39fb
MM
111162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11117
11118 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11119 Support delta reads.
11120 (linux_disable_btrace): Change return type.
11121 * common/linux-btrace.h (linux_read_btrace): Change parameters
11122 and return type to allow error reporting. Update users.
11123 (linux_disable_btrace): Change return type. Update users.
11124 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11125 New.
11126 (btrace_error): New.
11127 (btrace_block) <begin>: Comment on BEGIN == 0.
11128 * btrace.c (btrace_compute_ftrace): Start from the end of
11129 the current trace.
11130 (btrace_stitch_trace, btrace_clear_history): New.
11131 (btrace_fetch): Read delta trace, return if replaying.
11132 (btrace_clear): Move clear history code to btrace_clear_history.
11133 (parse_xml_btrace): Throw an error if parsing failed.
11134 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11135 and return type to allow error reporting.
11136 (target_read_btrace): Change parameters and return type to allow
11137 error reporting.
11138 * target.c (target_read_btrace): Update.
11139 * remote.c (remote_read_btrace): Support delta reads. Pass
11140 errors on.
11141 * NEWS: Announce it.
11142
0b722aec
MM
111432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11144
11145 * record.h (record_btrace_frame_unwind)
11146 (record_btrace_tailcall_frame_unwind): New declarations.
11147 * dwarf2-frame: Include record.h
11148 (dwarf2_frame_cfa): Throw an error for btrace frames.
11149 * record-btrace.c: Include hashtab.h.
11150 (btrace_get_bfun_name): New.
11151 (btrace_call_history): Call btrace_get_bfun_name.
11152 (struct btrace_frame_cache): New.
11153 (bfcache): New.
11154 (bfcache_hash, bfcache_eq, bfcache_new): New.
11155 (btrace_get_frame_function): New.
11156 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11157 (record_btrace_frame_this_id): Compute own id.
11158 (record_btrace_frame_prev_register): Provide PC, throw_error
11159 for all other registers.
11160 (record_btrace_frame_sniffer): Detect btrace frames.
11161 (record_btrace_tailcall_frame_sniffer): New.
11162 (record_btrace_frame_dealloc_cache): New.
11163 (record_btrace_frame_unwind): Add new functions.
11164 (record_btrace_tailcall_frame_unwind): New.
11165 (_initialize_record_btrace): Allocate cache.
11166 * btrace.c (btrace_clear): Call reinit_frame_cache.
11167 * NEWS: Announce it.
11168
066ce621
MM
111692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11170
11171 * record-btrace.c (record_btrace_set_replay)
11172 (record_btrace_goto_begin, record_btrace_goto_end)
11173 (record_btrace_goto): New.
11174 (init_record_btrace_ops): Initialize them.
11175 * NEWS: Announce it.
11176
e2887aa3
MM
111772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11178
11179 * record-btrace.c (record_btrace_find_new_threads)
11180 (record_btrace_thread_alive): New.
11181 (init_record_btrace_ops): Initialize to_find_new_threads and
11182 to_thread_alive.
11183
b2f4cfde
MM
111842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11185
11186 * record-btrace.c (record_btrace_resume): New.
11187 (record_btrace_wait): New.
11188 (init_record_btrace_ops): Initialize to_wait and to_resume.
11189
633785ff
MM
111902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11191
11192 * record-btrace.c (record_btrace_xfer_partial)
11193 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11194 (record_btrace_allow_memory_access): New.
11195 (init_record_btrace_ops): Initialize new methods.
11196 * target.c (raw_memory_xfer_partial): Bail out if target reports
11197 that this memory is not available.
11198
3db08215
MM
111992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11200
11201 * target.h (target_ops) <to_insert_breakpoint>
11202 <to_remove_breakpoint>: Add target_ops parameter.
11203 (forward_target_insert_breakpoint): New.
11204 (forward_target_remove_breakpoint): New.
11205 (memory_remove_breakpoint, memory_insert_breakpoint):
11206 Add target_ops parameter.
11207 * target.c (target_insert_breakpoint): Split into this and ...
11208 (forward_target_insert_breakpoint): ... this.
11209 (target_remove_breakpoint): Split into this and ...
11210 (forward_target_remove_breakpoint): ... this.
11211 (debug_to_insert_breakpoint): Add target_ops parameter.
11212 Call forward_target_insert_breakpoint.
11213 (debug_to_remove_breakpoint): Add target_ops parameter.
11214 Call forward_target_remove_breakpoint.
11215 (update_current_target): Do not inherit or default to_insert_breakpoint
11216 and to_remove_breakpoint.
11217 * corelow.c (ignore): Add target_ops parameter.
11218 * exec.c (ignore): Add target_ops parameter.
11219 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11220 Add target_ops parameter.
11221 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11222 Add target_ops parameter.
11223 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11224 Add target_ops parameter.
11225 * record-full.c (record_full_beneath_to_insert_breakpoint)
11226 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11227 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11228 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11229 (record_full_core_remove_breakpoint): Add target_ops parameter.
11230 Update users.
11231 (record_full_beneath_to_insert_breakpoint_ops)
11232 (record_full_beneath_to_remove_breakpoint_ops)
11233 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11234 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11235 tmp_to_remove_breakpoint_ops,
11236 record_full_beneath_to_insert_breakpoint_ops, and
11237 record_full_beneath_to_remove_breakpoint_ops.
11238 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11239 (m32r_remove_breakpoint): Add target_ops parameter.
11240 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11241 Add target_ops parameter.
11242 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11243 Add target_ops parameter.
11244
cecac1ab
MM
112452014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11246 Markus Metzger <markus.t.metzger@intel.com>
11247
11248 * record-btrace.c: Include frame-unwind.h.
11249 (record_btrace_frame_unwind_stop_reason)
11250 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11251 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11252 New.
11253 (init_record_btrace_ops): Install it.
11254
824344ca
MM
112552014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11256
11257 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11258 get_prev_frame_1.
11259
32261e52
MM
112602014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11261
11262 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11263 earlier.
11264
ea001bdc
MM
112652014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11266
11267 * frame-unwind.c: Include target.h.
11268 (frame_unwind_try_unwinder): New function with code from ...
11269 (frame_unwind_find_by_frame): ... here. New variable
11270 unwinder_from_target, call also target_get_unwinder)
11271 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11272 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11273 * target.h (struct target_ops): New fields to_get_unwinder and
11274 to_get_tailcall_unwinder.
11275 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11276
1f3ef581
MM
112772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11278
11279 * record-btrace.c (record_btrace_fetch_registers)
11280 (record_btrace_store_registers)
11281 (record_btrace_to_prepare_to_store): New.
11282 (init_record_btrace_ops): Add the above.
11283
f32dbf8c
MM
112842014-01-16 Tom Tromey <tromey@redhat.com>
11285
11286 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11287 * target.h (struct target_ops) <to_prepare_to_store>: Add
11288 argument.
11289 (target_prepare_to_store): Add argument.
11290 * target.c (debug_to_prepare_to_store): Add argument.
11291 (update_current_target): Update.
11292 * remote.c (remote_prepare_to_store): Add 'self' argument.
11293 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11294 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11295 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11296 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11297 argument.
11298 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11299 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11300 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11301 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11302 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11303
07bbe694
MM
113042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11305
11306 * btrace.h (replay) <replay>: New.
11307 (btrace_is_replaying): New.
11308 * btrace.c (btrace_clear): Free replay iterator.
11309 (btrace_is_replaying): New.
11310 * record-btrace.c (record_btrace_is_replaying): New.
11311 (record_btrace_info): Print insn number if replaying.
11312 (record_btrace_insn_history): Start at replay position.
11313 (record_btrace_call_history): Start at replay position.
11314 (init_record_btrace_ops): Init to_record_is_replaying.
11315
0688d04e
MM
113162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11317
11318 * record-btrace.c (record_btrace_insn_history_range): Include
11319 end.
11320 (record_btrace_insn_history_from): Adjust range.
11321 (record_btrace_call_history_range): Include
11322 end.
11323 (record_btrace_call_history_from): Adjust range.
11324 * NEWS: Announce changes.
11325
8710b709
MM
113262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11327
11328 * record.h (enum record_print_flag)
11329 <record_print_indent_calls>: New.
11330 * record.c (get_call_history_modifiers): Recognize /c modifier.
11331 (_initialize_record): Document /c modifier.
11332 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11333 Reorder fields. Optionally indent the function name. Update
11334 all users.
11335 * NEWS: Announce changes.
11336
d0fa7535
MM
113372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11338
11339 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11340
5de9129b
MM
113412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11342
11343 * btrace.c (ftrace_new_function): Start counting at one.
11344 * record-btrace.c (record_btrace_info): Adjust number of calls
11345 and insns.
11346 * NEWS: Announce it.
11347
7acbe133
MM
113482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11349
11350 * record-btrace.c (btrace_call_history_insn_range): Print
11351 insn range as [begin, end].
11352
23a7fe75
MM
113532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11354
11355 * btrace.h (struct btrace_func_link): New.
11356 (enum btrace_function_flag): New.
11357 (struct btrace_inst): Rename to ...
11358 (struct btrace_insn): ...this. Update all users.
11359 (struct btrace_func) <ibegin, iend>: Remove.
11360 (struct btrace_func_link): New.
11361 (struct btrace_func): Rename to ...
11362 (struct btrace_function): ...this. Update all users.
11363 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11364 (number, level, flags>: New.
11365 (struct btrace_insn_iterator): Rename to ...
11366 (struct btrace_insn_history): ...this.
11367 Update all users.
11368 (struct btrace_insn_iterator, btrace_call_iterator): New.
11369 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11370 (struct btrace_target_info) <begin, end, level>
11371 <insn_history, call_history>: New.
11372 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11373 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11374 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11375 (btrace_call_number, btrace_call_begin, btrace_call_end)
11376 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11377 (btrace_find_function_by_number, btrace_set_insn_history)
11378 (btrace_set_call_history): New.
11379 * btrace.c (btrace_init_insn_iterator)
11380 (btrace_init_func_iterator, compute_itrace): Remove.
11381 (ftrace_print_function_name, ftrace_print_filename)
11382 (ftrace_skip_file): Change
11383 parameter to const.
11384 (ftrace_init_func): Remove.
11385 (ftrace_debug): Use new btrace_function fields.
11386 (ftrace_function_switched): Also consider gaining and
11387 losing symbol information).
11388 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11389 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11390 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11391 New.
11392 (ftrace_new_function): Move. Remove debug print.
11393 (ftrace_update_lines, ftrace_update_insns): New.
11394 (ftrace_update_function): Check for call, ret, and jump.
11395 (compute_ftrace): Renamed to ...
11396 (btrace_compute_ftrace): ...this. Rewritten to compute call
11397 stack.
11398 (btrace_fetch, btrace_clear): Updated.
11399 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11400 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11401 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11402 (btrace_call_number, btrace_call_begin, btrace_call_end)
11403 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11404 (btrace_find_function_by_number, btrace_set_insn_history)
11405 (btrace_set_call_history): New.
11406 * record-btrace.c (require_btrace): Use new btrace thread
11407 info fields.
11408 (record_btrace_info, btrace_insn_history)
11409 (record_btrace_insn_history, record_btrace_insn_history_range):
11410 Use new btrace thread info fields and new iterator.
11411 (btrace_func_history_src_line): Rename to ...
11412 (btrace_call_history_src_line): ...this. Use new btrace
11413 thread info fields.
11414 (btrace_func_history): Rename to ...
11415 (btrace_call_history): ...this. Use new btrace thread info
11416 fields and new iterator.
11417 (record_btrace_call_history, record_btrace_call_history_range):
11418 Use new btrace thread info fields and new iterator.
11419
8372a7cb
MM
114202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11421
11422 * frame.h (frame_id_build_unavailable_stack_special): New.
11423 * frame.c (frame_id_build_unavailable_stack_special): New.
11424
c2170eef
MM
114252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11426
11427 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11428 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11429 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11430 to gdbarch.
11431 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11432 (i386_insn_is_jump, i386_jmp_p): New.
11433 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11434 insn_is_jump to gdbarch.
11435 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11436 * gdbarch.h: Regenerated.
11437 * gdbarch.c: Regenerated.
11438 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11439 (default_insn_is_jump): New.
11440 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11441 (default_insn_is_jump): New.
11442
864089d2
MM
114432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11444
11445 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11446 Change to ...
11447 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11448 (btrace_read_type) <btrace_read_new>: Change to ...
11449 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11450
ed9edfb5
MM
114512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * common/linux-btrace.c (linux_read_btrace): Free trace from
11454 previous iteration.
11455
fbcbc3fd
DE
114562014-01-15 Doug Evans <dje@google.com>
11457
11458 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11459 uint32_t.
11460
3d548a53
TT
114612014-01-15 Tom Tromey <tromey@redhat.com>
11462
11463 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11464 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11465 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11466 (set_objfile_main_name): New function.
11467 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11468 language_of_main>: New fields.
11469 (set_objfile_main_name): Declare.
11470 * symtab.c (find_main_name): Loop over objfiles to find the main
11471 name and language.
11472 (set_main_name): Now static.
11473 (get_main_info): Add comment.
11474 * symtab.h (set_main_name): Don't declare.
11475
32ac0d11
TT
114762014-01-15 Tom Tromey <tromey@redhat.com>
11477
11478 * symtab.c (main_progspace_key): New global.
11479 (struct main_info): New.
11480 (name_of_main, language_of_main): Remove.
11481 (get_main_info, main_info_cleanup): New function.
11482 (set_main_name, main_name, main_language): Use get_main_info.
11483 (_initialize_symtab): Initialize main_progspace_key.
11484
9e6c82ad
TT
114852014-01-15 Tom Tromey <tromey@redhat.com>
11486
11487 * dbxread.c (process_one_symbol): Update.
11488 * dwarf2read.c (read_partial_die): Update.
11489 * symfile.c (set_initial_language): Call main_language.
11490 * symtab.c (language_of_main): Now static.
11491 (set_main_name): Add 'lang' parameter.
11492 (find_main_name): Update.
11493 (main_language): New function.
11494 (symtab_observer_executable_changed): Update.
11495 * symtab.h (set_main_name): Update.
11496 (language_of_main): Remove.
11497 (main_language): Declare.
11498
6ef55de7
TT
114992014-01-15 Tom Tromey <tromey@redhat.com>
11500
11501 * symfile.c (init_entry_point_info): Use new "initialized" field.
11502 Update.
11503 * objfiles.h (struct entry_point) <initialized>: New field.
11504 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11505 (struct objfile) <ei>: ...here. Remove.
11506 * objfiles.c (entry_point_address_query): Update.
11507
53eddfa6
TT
115082014-01-15 Tom Tromey <tromey@redhat.com>
11509
11510 * objfiles.c (entry_point_address_query): Relocate entry point
11511 address.
11512 (objfile_relocate1): Do not relocate entry point address.
11513 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11514 <the_bfd_section_index>: New field.
11515 * symfile.c (init_entry_point_info): Find the entry point's
11516 section.
11517
d56e56aa
TT
115182014-01-15 Tom Tromey <tromey@redhat.com>
11519
11520 * solib-frv.c (enable_break): Use entry_point_address_query.
11521
33a97bbe
OJ
115222014-01-15 Omair Javaid <omair.javaid@linaro.org>
11523
11524 * NEWS: Add note on improved process record-replay on
11525 arm*-linux* targets.
11526
c6ec2b30
OJ
115272014-01-15 Omair Javaid <omair.javaid@linaro.org>
11528
11529 * arm-tdep.c (enum arm_record_result): New enum.
11530 (arm_record_unsupported_insn): New function.
11531 (arm_record_coproc_data_proc): Removed.
11532 (thumb2_record_ld_st_multiple): New function.
11533 (thumb2_record_ld_st_dual_ex_tbb): New function.
11534 (thumb2_record_data_proc_sreg_mimm): New function.
11535 (thumb2_record_ps_dest_generic): New function.
11536 (thumb2_record_branch_misc_cntrl): New function.
11537 (thumb2_record_str_single_data): New function.
11538 (thumb2_record_ld_mem_hints): New function.
11539 (thumb2_record_ld_word): New function.
11540 (thumb2_record_lmul_lmla_div): New function.
11541 (thumb2_record_decode_insn_handler): New function.
11542 (decode_insn): Add thumb32 instruction handlers.
11543
97dfe206
OJ
115442014-01-15 Omair Javaid <omair.javaid@linaro.org>
11545
11546 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11547 (struct arm_linux_record_tdep): Declare.
11548 (arm_canonicalize_syscall): New function.
11549 (arm_all_but_pc_registers_record): New function.
11550 (arm_linux_syscall_record): New function.
11551 (arm_linux_init_abi): Add syscall recording constructs.
11552 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11553 decoding. (arm_record_coproc_data_proc): Update arm syscall
11554 decoding.
11555 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11556 <arm_syscall_record>: New field.
11557 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11558 gdb_target_obs.
11559
9904a494
OJ
115602014-01-15 Omair Javaid <omair.javaid@linaro.org>
11561
11562 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11563 register for push instruction recording.
11564
f969241e
OJ
115652014-01-15 Omair Javaid <omair.javaid@linaro.org>
11566
11567 * arm-tdep.c (thumb_record_misc): Update to correct logical
11568 error while recording ldm, ldmia and pop instructions.
11569
bfbbec00
OJ
115702014-01-15 Omair Javaid <omair.javaid@linaro.org>
11571
11572 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11573
e40adcc9
PA
115742014-01-15 Pedro Alves <palves@redhat.com>
11575
11576 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11577 (go32_resume, go32_fetch_registers, store_register)
11578 (go32_store_registers, go32_prepare_to_store)
11579 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11580 (go32_create_inferior, go32_can_run, go32_terminal_init)
11581 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11582 declarations.
11583
b0a16e66
TT
115842014-01-15 Tom Tromey <tromey@redhat.com>
11585
11586 * target.h (async_callback_ftype): New typedef.
11587 (struct target_ops) <to_async>: Use it.
11588
bf7105a4
JB
115892014-01-15 Joel Brobecker <brobecker@adacore.com>
11590
11591 * python/py-value.c (get_field_type): Remove unnecessary curly
11592 braces for single-statement if block.
11593
a8f35c2e
JB
115942014-01-15 Joel Brobecker <brobecker@adacore.com>
11595
11596 * python/py-type.c (convert_field): Add missing empty line
11597 after declarations.
11598
bb4142cf
DE
115992014-01-14 Doug Evans <dje@google.com>
11600
11601 * symfile.h (expand_symtabs_matching): Renamed from
11602 expand_partial_symbol_names. Update prototype.
11603 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11604 * symfile.c (expand_symtabs_matching): Renamed from
11605 expand_partial_symbol_names. New args file_matcher, kind.
11606 Rename arg fun to symbol_matcher.
11607 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11608 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11609 ada_expand_partial_symbol_name.
11610 (ada_make_symbol_completion_list): Update to call
11611 expand_symtabs_matching.
11612 (ada_add_global_exceptions): Call expand_symtabs_matching.
11613 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11614 call map_symbol_filenames.
11615 * symtab.c (sources_info): Update to call map_symbol_filenames.
11616 (search_symbols): Call expand_symtabs_matching.
11617 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11618 (default_make_symbol_completion_list_break_on): Update to call
11619 expand_symtabs_matching.
11620 (make_source_files_completion_list): Update to call
11621 map_symbol_filenames.
11622
206f2a57
DE
116232014-01-14 Doug Evans <dje@google.com>
11624
11625 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11626 (expand_symtabs_symbol_matcher_ftype): New typedef.
11627 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11628 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11629 * symfile.c (expand_partial_symbol_names): Update to use
11630 expand_symtabs_symbol_matcher_ftype.
11631 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11632 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11633 Arg name_matcher renamed to symbol_matcher.
11634 * psymtab.c (recursively_search_psymtabs): Update to use
11635 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11636 sym_matcher.
11637 (expand_symtabs_matching_via_partial): Update to use
11638 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11639 Arg name_matcher renamed to symbol_matcher.
11640
540c2971
DE
116412014-01-14 Doug Evans <dje@google.com>
11642
11643 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11644 (map_partial_symbol_filenames): Ditto.
11645 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11646 (map_partial_symbol_filenames): Ditto.
11647 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11648 (map_partial_symbol_filenames): Ditto.
11649 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11650 (map_partial_symbol_filenames): Ditto.
11651 * symtab.c: Delete #include "psymtab.h".
11652
8213266a
PA
116532014-01-14 Pedro Alves <palves@redhat.com>
11654 Tom Tromey <tromey@redhat.com>
11655
11656 * infrun.c (use_displaced_stepping): Use find_record_target
11657 instead of RECORD_IS_USED.
11658 (adjust_pc_after_break): Use record_full_is_used instead of
11659 RECORD_IS_USED.
11660 * record-btrace.c (record_btrace_open): Call record_preopen
11661 instead of checking RECORD_IS_USED.
11662 * record-full.c (record_full_shortname)
11663 (record_full_core_shortname): New globals.
11664 (record_full_is_used): New function.
11665 (find_full_open): Call record_preopen instead of checking
11666 RECORD_IS_USED.
11667 (init_record_full_ops): Set the target's shortname to
11668 record_full_shortname.
11669 (init_record_full_core_ops): Set the target's shortname to
11670 record_full_core_shortname.
11671 * record-full.h (record_full_is_used): Declare.
11672 * record.c (find_record_target): Make extern.
11673 (record_preopen): New function.
11674 * record.h (RECORD_IS_USED): Delete macro.
11675 (find_record_target, record_preopen): Declare functions.
11676
7ec1862d
YQ
116772014-01-14 Yao Qi <yao@codesourcery.com>
11678
11679 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11680 'len''s type to ULONGEST.
11681 (core_xfer_shared_libraries_aix): Likewise.
11682 * gdbarch.c, gdbarch.h: Regenerated.
11683 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11684 Change type of 'len' to ULONGEST.
11685 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11686 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11687
dea80a27
YQ
116882014-01-14 Yao Qi <yao@codesourcery.com>
11689
11690 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11691 type of 'len' to ULONGEST.
11692 (linux_xfer_osdata_processgroups): Likewise.
11693 (linux_xfer_osdata_threads): Likewise.
11694 (linux_xfer_osdata_fds): Likewise.
11695 (linux_xfer_osdata_isockets): Likewise.
11696 (linux_xfer_osdata_shm): Likewise.
11697 (linux_xfer_osdata_sem): Likewise.
11698 (linux_xfer_osdata_msg): Likewise.
11699 (linux_common_xfer_osdata): Likewise.
11700 (struct osdata_type) <getter>: Likewise.
11701 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11702 the declaration.
11703
b55e14c7
YQ
117042014-01-14 Yao Qi <yao@codesourcery.com>
11705
11706 * target.h (target_xfer_partial_ftype): Update.
11707 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11708 ULONGEST.
11709 * aix-thread.c (aix_thread_xfer_partial): Change type of
11710 argument 'len' to ULONGEST.
11711 * auxv.c (procfs_xfer_auxv): Likewise.
11712 (ld_so_xfer_auxv): Likewise.
11713 (memory_xfer_auxv): Likewise.
11714 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11715 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11716 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11717 * corelow.c (core_xfer_partial): Likewise.
11718 * ctf.c (ctf_xfer_partial): Likewise.
11719 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11720 '%u'.
11721 (darwin_read_dyld_info): Likewise.
11722 (darwin_xfer_partial): Likewise.
11723 * exec.c (section_table_xfer_memory_partial): Likewise.
11724 (exec_xfer_partial): Likewise.
11725 * exec.h (section_table_xfer_memory_partial): Update
11726 declaration.
11727 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11728 instead of plongest.
11729 (gnu_xfer_partial): Likewise.
11730 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11731 (ia64_hpux_xfer_solib_got): Likewise.
11732 (ia64_hpux_xfer_partial): Likewise.
11733 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11734 * inf-ptrace.c (inf_ptrace_xfer_partial):
11735 * inf-ttrace.c (inf_ttrace_xfer_partial):
11736 * linux-nat.c (linux_xfer_siginfo): Likewise.
11737 (linux_nat_xfer_partial): Likewise.
11738 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11739 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11740 * monitor.c (monitor_xfer_memory): Likewise.
11741 (monitor_xfer_partial): Likewise.
11742 * procfs.c (procfs_xfer_partial): Likewise.
11743 * record-full.c (record_full_xfer_partial): Likewise.
11744 (record_full_core_xfer_partial): Likewise.
11745 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11746 instead of plongest.
11747 (gdbsim_xfer_partial): Likewise.
11748 * remote.c (remote_xfer_partial): Likewise.
11749 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11750 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11751 declaration.
11752 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11753 (rs6000_xfer_shared_libraries): Likewise.
11754 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11755 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11756 (sparc_xfer_partial): Likewise.
11757 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11758 (spu_xfer_partial): Likewise.
11759 * spu-multiarch.c (spu_xfer_partial): Likewise.
11760 * target.c (target_read_live_memory): Likewise.
11761 (memory_xfer_live_readonly_partial): Likewise.
11762 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11763 (target_xfer_partial, default_xfer_partial): Likewise.
11764 (current_xfer_partial): Likewise.
11765 * tracepoint.c (tfile_xfer_partial): Likewise.
11766 * windows-nat.c (windows_xfer_memory): Likewise. Call
11767 pulongest instead of plongest.
11768 (windows_xfer_partial): Likewise.
11769 (windows_xfer_shared_libraries): Likewise.
11770
05804640
YQ
117712014-01-14 Yao Qi <yao@codesourcery.com>
11772
11773 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11774 target_xfer_partial_ftype.
11775
b5b08fb4
SC
117762014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11777
11778 PR python/15464
11779 PR python/16113
11780 * valops.c (value_struct_elt_bitpos): New function
11781 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11782 object to 'None' if the field name is an empty string ("").
11783 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11784 attribute to look for a field when 'name' is 'None'.
11785 (get_field_type): New function
11786
13aaf454
DE
117872014-01-13 Doug Evans <dje@google.com>
11788
11789 PR symtab/16426
11790 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11791 (try_open_dwop_file): Ditto.
11792 * gdb_bfd.c: #include "vec.h".
11793 (bfdp): New typedef.
11794 (struct gdb_bfd_data): New member included_bfds.
11795 (gdb_bfd_unref): Unref all included bfds.
11796 (gdb_bfd_record_inclusion): New function.
11797 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11798
c2cec97c
TT
117992014-01-13 Tom Tromey <tromey@redhat.com>
11800
11801 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11802
78e5999d
TT
118032014-01-13 Tom Tromey <tromey@redhat.com>
11804
11805 * defs.h (use_windows): Remove.
11806 * gdb.c (main): Update.
11807 * main.c (captured_main, gdb_main): Update.
11808 * main.h (struct captured_main_args) <use_windows>: Remove.
11809 * top.c (use_windows): Remove.
11810
f2052bbe
TT
118112014-01-13 Tom Tromey <tromey@redhat.com>
11812
11813 * defs.h (deprecated_flush_hook): Remove.
11814
fde4f8ed
JK
118152014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11816
11817 PR threads/16216
11818 * linux-thread-db.c (try_thread_db_load): Add parameter
11819 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11820 (try_thread_db_load_from_pdir_1): Move it there from here.
11821 (try_thread_db_load_from_sdir): Update caller.
11822 (try_thread_db_load_from_dir): Move it there from here.
11823
bdf61915
PP
118242014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11825
11826 * regformats/regdat.sh: Always rewrite the register file.
11827
f71e1a8d
PA
118282014-01-13 Pedro Alves <palves@redhat.com>
11829
11830 * Makefile.in (CHECK_HEADERS): New variable.
11831 (check-headers:): New rule.
11832
42c85435
TT
118332014-01-13 Tom Tromey <tromey@redhat.com>
11834
11835 * cli/cli-setshow.c (do_set_command): Update.
11836 * defs.h (deprecated_set_hook): Remove.
11837 * top.c (deprecated_set_hook): Remove.
11838
f8de5129
PA
118392014-01-13 Pedro Alves <palves@redhat.com>
11840
11841 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11842 the tracepoint if the PC is a pseudo-register.
11843
fc270c35
TT
118442014-01-13 Tom Tromey <tromey@redhat.com>
11845
11846 * defs.h (XCALLOC): Remove.
11847 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11848 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11849 * dwarf2loc.c (allocate_piece_closure): Likewise.
11850 * elfread.c (elf_symfile_segments): Likewise.
11851 (elf_symfile_segments): Likewise.
11852 * gdbtypes.c (copy_type_recursive): Likewise.
11853 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11854 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11855 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11856 XCALLOC.
11857 * mt-tdep.c (mt_gdbarch_init): Likewise.
11858 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11859 XCALLOC.
11860 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11861 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11862 * registry.c (registry_alloc_data): Likewise.
11863 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11864 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11865 * serial.c (serial_fdopen_ops): Likewise.
11866 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11867 XCALLOC.
11868 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11869 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11870 not XCALLOC.
11871
70ba0933
TT
118722014-01-13 Tom Tromey <tromey@redhat.com>
11873
11874 * defs.h (XMALLOC): Remove.
11875 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11876 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11877 * cli-out.c (struct ui_out *): Likewise.
11878 * cli/cli-dump.c (add_dump_command): Likewise.
11879 (add_dump_command): Likewise.
11880 * complaints.c (get_complaints): Likewise.
11881 (find_complaint): Likewise.
11882 * dwarf2-frame.c (execute_cfa_program): Likewise.
11883 * dwarf2read.c (abbrev_table_read_table): Likewise.
11884 * gdbarch.sh: Likewise.
11885 * gdbarch.c: Rebuild.
11886 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11887 * interps.c (interp_new): Likewise.
11888 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11889 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11890 * mi/mi-console.c (mi_console_file_new): Likewise.
11891 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11892 * mi/mi-out.c (mi_out_new): Likewise.
11893 * mi/mi-parse.c (mi_parse): Likewise.
11894 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11895 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11896 * observer.c (xalloc_observer_list_node): Likewise.
11897 * regcache.c (regcache_xmalloc_1): Likewise.
11898 * reggroups.c (reggroup_new): Likewise.
11899 (_initialize_reggroup): Likewise.
11900 * registry.c (register_data_with_cleanup): Likewise.
11901 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11902 * ser-base.c (serial_ttystate): Likewise.
11903 * ser-mingw.c (make_pipe_state): Likewise.
11904 * ser-pipe.c (pipe_open): Likewise.
11905 * serial.c (serial_open): Likewise.
11906 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11907 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11908 (tui_alloc_win_info): Likewise.
11909 (tui_add_content_elements): Likewise.
11910 * tui/tui-file.c (tui_file_new): Likewise.
11911 * tui/tui-out.c (tui_out_new): Likewise.
11912 * ui-file.c (mem_file_new): Likewise.
11913 * ui-out.c (push_level): Likewise.
11914 (make_cleanup_ui_out_end): Likewise.
11915 (append_header_to_list): Likewise.
11916 (ui_out_new): Likewise.
11917 * user-regs.c (user_reg_add_builtin): Likewise.
11918
41bf6aca
TT
119192014-01-13 Tom Tromey <tromey@redhat.com>
11920
11921 * defs.h (XZALLOC): Remove.
11922 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11923 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11924 (get_ada_tasks_inferior_data): Likewise.
11925 * auto-load.c (get_auto_load_pspace_data): Likewise.
11926 * auxv.c (get_auxv_inferior_data): Likewise.
11927 * bfd-target.c (target_bfd_reopen): Likewise.
11928 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11929 (deprecated_insert_raw_breakpoint): Likewise.
11930 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11931 * corelow.c (core_open): Likewise.
11932 * darwin-nat.c (darwin_check_new_threads): Likewise.
11933 (darwin_attach_pid): Likewise.
11934 * dummy-frame.c (dummy_frame_push): Likewise.
11935 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11936 * dwarf2loc.c (allocate_piece_closure): Likewise.
11937 * elfread.c (elf_symfile_segments): Likewise.
11938 * eval.c (ptrmath_type_p): Likewise.
11939 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11940 * gdbtypes.c (alloc_type_arch): Likewise.
11941 (alloc_type_instance): Likewise.
11942 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11943 * inf-child.c (inf_child_can_use_agent): Likewise.
11944 * inflow.c (get_inflow_inferior_data): Likewise.
11945 * infrun.c (save_infcall_suspend_state): Likewise.
11946 * jit.c (jit_reader_load): Likewise.
11947 (get_jit_objfile_data): Likewise.
11948 (get_jit_program_space_data): Likewise.
11949 (jit_object_open_impl): Likewise.
11950 (jit_symtab_open_impl): Likewise.
11951 (jit_block_open_impl): Likewise.
11952 (jit_frame_sniffer): Likewise.
11953 * linux-fork.c (add_fork): Likewise.
11954 * maint.c (make_command_stats_cleanup): Likewise.
11955 * objfiles.c (get_objfile_pspace_data): Likewise.
11956 * opencl-lang.c (struct lval_closure): Likewise.
11957 * osdata.c (osdata_start_osdata): Likewise.
11958 * progspace.c (new_address_space): Likewise.
11959 (add_program_space): Likewise.
11960 * remote-sim.c (get_sim_inferior_data): Likewise.
11961 * sh-tdep.c (sh_gdbarch_init): Likewise.
11962 * skip.c (Ignore): Likewise.
11963 (skip_delete_command): Likewise.
11964 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11965 (library_list_start_library): Likewise.
11966 (solib_aix_current_sos): Likewise.
11967 * solib-darwin.c (get_darwin_info): Likewise.
11968 (darwin_current_sos): Likewise.
11969 * solib-dsbt.c (get_dsbt_info): Likewise.
11970 * solib-ia64-hpux.c (new_so_list): Likewise.
11971 (ia64_hpux_get_solib_linkage_addr): Likewise.
11972 * solib-spu.c (append_ocl_sos): Likewise.
11973 (spu_current_sos): Likewise.
11974 * solib-svr4.c (get_svr4_info): Likewise.
11975 (svr4_keep_data_in_core): Likewise.
11976 (library_list_start_library): Likewise.
11977 (svr4_default_sos): Likewise.
11978 (svr4_read_so_list): Likewise.
11979 * solib-target.c (library_list_start_library): Likewise.
11980 (solib_target_current_sos): Likewise.
11981 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11982 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11983 * symfile.c (default_symfile_segments): Likewise.
11984 * target-descriptions.c (tdesc_data_init): Likewise.
11985 (tdesc_create_reg): Likewise.
11986 (struct tdesc_type *): Likewise.
11987 (tdesc_create_vector): Likewise.
11988 (tdesc_set_struct_size): Likewise.
11989 (struct tdesc_type *): Likewise.
11990 (tdesc_free_feature): Likewise.
11991 (tdesc_create_feature): Likewise.
11992 * windows-nat.c (windows_add_thread): Likewise.
11993 (windows_make_so): Likewise.
11994 * xml-support.c (gdb_xml_body_text): Likewise.
11995 (gdb_xml_create_parser_and_cleanup): Likewise.
11996 (xml_process_xincludes): Likewise.
11997 * xml-syscall.c (allocate_syscalls_info): Likewise.
11998 (syscall_create_syscall_desc): Likewise.
11999
5acfdbae
SDJ
120002014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12001
12002 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12003 function, with code from i386_stap_parse_special_token.
12004 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12005 (i386_stap_parse_special_token): Move code to the two functions
12006 above; simplify it.
12007
0000e5cc
PA
120082014-01-09 Pedro Alves <palves@redhat.com>
12009 Hui Zhu <hui@codesourcery.com>
12010
12011 PR gdb/16101
12012 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12013 bp_err_string. Don't mark the location shlib_disabled if the
12014 error thrown wasn't a generic or memory error. Catch errors
12015 thrown while inserting breakpoints in overlayed code. Output
12016 error message of software breakpoints.
12017 * remote.c (remote_insert_breakpoint): If this breakpoint has
12018 target-side commands but this stub doesn't support Z0 packets,
12019 throw NOT_SUPPORTED_ERROR error.
12020 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12021 * target.h (target_insert_breakpoint): Extend comment.
12022 (target_insert_hw_breakpoint): Add comment.
12023
b7ea362b
PA
120242014-01-08 Pedro Alves <palves@redhat.com>
12025
12026 * remote.c (remote_add_thread): Add threads silently if starting
12027 up.
12028 (remote_notice_new_inferior): If in all-stop, and starting up,
12029 don't call notice_new_inferior.
12030 (get_current_thread): New function, factored out from ...
12031 (add_current_inferior_and_thread): ... this. Adjust.
12032 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12033 found any thread, then select the remote's current thread as GDB's
12034 current thread too.
12035
b7bba001
JB
120362014-01-08 Joel Brobecker <brobecker@adacore.com>
12037
12038 * NEWS: Create a new section for the next release branch.
12039 Rename the section of the current branch, now that it has
12040 been cut.
12041
16dfbded
JB
120422014-01-08 Joel Brobecker <brobecker@adacore.com>
12043
12044 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12045 * version.in: Bump version to 7.7.50.DATE-cvs.
12046
22c90ac1
YQ
120472014-01-08 Yao Qi <yao@codesourcery.com>
12048
12049 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12050 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12051 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12052
d64ad97c
YQ
120532014-01-08 Yao Qi <yao@codesourcery.com>
12054
12055 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12056 return value of bfd_get_filename to symbol_file_add_from_bfd.
12057
f93ba80c
PM
120582014-01-08 Pierre Muller <muller@sourceware.org>
12059
12060 Fix PR16201.
12061 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12062 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12063 to prim_record_mininal_symbol_and_info.
12064 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12065 in call to prim_record_minimal_symbol_and_info.
12066 (read_pe_exported_syms): Set index field of section_data.
12067
a4d9ba85
AP
120682014-01-07 Andrew Pinski <apinski@cavium.com>
12069
12070 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12071 * features/aarch64.c: Regenerate.
12072
1b67eb02
AS
120732014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12074
12075 * target.c (return_null): Define.
12076 (update_current_target): Use it instead of return_zero for
12077 functions that return a pointer.
12078
5e3f4fab
EBM
120792014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12080
12081 * source.c (add_path): Fix check for duplicated paths in the previously
12082 included paths.
12083
e2616788
HK
120842014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12085
12086 * ada-lang.c: Remove duplicated include statements.
12087 * alphabsd-nat.c: Ditto.
12088 * amd64-darwin-tdep.c: Ditto.
12089 * amd64fbsd-nat.c: Ditto.
12090 * auto-load.c: Ditto.
12091 * ax-gdb.c: Ditto.
12092 * breakpoint.c: Ditto.
12093 * dbxread.c: Ditto.
12094 * fork-child.c: Ditto.
12095 * gdb_usleep.c: Ditto.
12096 * i386-darwin-tdep.c: Ditto.
12097 * i386fbsd-nat.c: Ditto.
12098 * infcmd.c: Ditto.
12099 * inferior.c: Ditto.
12100 * jv-lang.c: Ditto.
12101 * linux-nat.c: Ditto.
12102 * linux-tdep.c: Ditto.
12103 * m68kbsd-nat.c: Ditto.
12104 * m68klinux-nat.c: Ditto.
12105 * microblaze-tdep.c: Ditto.
12106 * mips-linux-tdep.c: Ditto.
12107 * mn10300-tdep.c: Ditto.
12108 * nto-tdep.c: Ditto.
12109 * opencl-lang.c: Ditto.
12110 * osdata.c: Ditto.
12111 * printcmd.c: Ditto.
12112 * regcache.c: Ditto.
12113 * remote-m32r-sdi.c: Ditto.
12114 * remote.c: Ditto.
12115 * symfile.c: Ditto.
12116 * symtab.c: Ditto.
12117 * tilegx-linux-nat.c: Ditto.
12118 * tilegx-tdep.c: Ditto.
12119 * tracepoint.c: Ditto.
12120 * valops.c: Ditto.
12121 * vaxbsd-nat.c: Ditto.
12122 * windows-nat.c: Ditto.
12123 * xtensa-tdep.c: Ditto.
12124
bd1f7788
YQ
121252014-01-07 Yao Qi <yao@codesourcery.com>
12126
12127 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12128
79301218
JB
121292014-01-07 Yao Qi <yao@codesourcery.com>
12130 Joel Brobecker <brobecker@adacore.com>
12131
12132 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12133 (pdc_write_regs): Likewise.
12134 (fetch_regs_kernel_thread): Likewise.
12135 (store_regs_kernel_thread): Likewise.
12136
121372014-01-07 Joel Brobecker <brobecker@adacore.com>
12138
12139 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12140 tagged type objects to their actual type.
12141
8e355c5d
JB
121422014-01-07 Joel Brobecker <brobecker@adacore.com>
12143
12144 * ada-valprint.c (print_field_values): Add "language" parameter.
12145 Update calls to print_field_values and print_variant_part.
12146 Pass new parameter "language" in call to val_print instead
12147 of "current_language". Replace call to ada_val_print by call
12148 to val_print.
12149 (print_variant_part): Add "language" parameter.
12150 (ada_val_print_struct_union): Update call to print_field_values.
12151
4fbf5aa5
JB
121522014-01-07 Joel Brobecker <brobecker@adacore.com>
12153
12154 * ada-valprint.c (ui_memcpy): Delete.
12155 (ada_print_floating): Update documentation. Add empty line
12156 between between function documentation and implementation.
12157 Delete variable "buffer". Use ui_file_xstrdup in place of
12158 ui_file_put. Minor adjustments following this change.
12159
71855601
JB
121602014-01-07 Joel Brobecker <brobecker@adacore.com>
12161
12162 * ada-valprint.c (ada_val_print_string): New function,
12163 extracted from ada_val_print_array.
12164 (ada_val_print_array): Replace extracted code by call
12165 to ada_val_print_string followed by a return. Move
12166 "else" branch to the function's top block.
12167
4eb27a30
JB
121682014-01-07 Joel Brobecker <brobecker@adacore.com>
12169
12170 * ada-valprint.c (ada_val_print_array): Move implementation
12171 down. Rename parameter "offset" and "val" into "offset_aligned"
12172 and "original_value" respectively. Add parameter "offset".
12173
34b27950
JB
121742014-01-07 Joel Brobecker <brobecker@adacore.com>
12175
12176 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12177 re-organizing the code. Change the "???" message printed
12178 when target type is a TYPE_CODE_UNDEF into
12179 "<ref to undefined type>".
12180
079e4591
JB
121812014-01-07 Joel Brobecker <brobecker@adacore.com>
12182
12183 * ada-valprint.c (print_record): Delete, implementation inlined...
12184 (ada_val_print_struct_union): ... here. Remove call to
12185 ada_check_typedef in inlined implementation.
12186
8004dfd1
JB
121872014-01-07 Joel Brobecker <brobecker@adacore.com>
12188
12189 * ada-valprint.c (ada_val_print_gnat_array): New function,
12190 extracted from ada_val_print_1;
12191 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12192 (ada_val_print_flt, ada_val_print_struct_union)
12193 (ada_val_print_ref): Likewise.
12194 (ada_val_print_1): Delete variables i and elttype.
12195 Replace extracted-out code by call to corresponding
12196 new functions.
12197
760a2db0
JB
121982014-01-07 Joel Brobecker <brobecker@adacore.com>
12199
12200 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12201
3a92c861
JB
122022014-01-07 Joel Brobecker <brobecker@adacore.com>
12203
12204 * ada-valprint.c (ada_val_print_1): Replace calls to
12205 ada_val_print_1 by calls to val_print.
12206
cd1630f9
JB
122072014-01-07 Joel Brobecker <brobecker@adacore.com>
12208
12209 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12210 Update calls to self accordingly. Replace calls to c_val_print
12211 by calls to val_print.
12212
bdf779a0
JB
122132014-01-07 Joel Brobecker <brobecker@adacore.com>
12214
12215 * ada-valprint.c (print_record): Delete declaration.
12216 (adjust_type_signedness, ada_val_print_1): Likewise.
12217 (ada_val_print): Move function implementation down.
12218 (print_variant_part, print_field_values, print_record):
12219 Move function implementation up.
12220
c0d48811
JB
122212014-01-07 Joel Brobecker <brobecker@adacore.com>
12222
12223 * python/py-type.c (typy_get_name): New function.
12224 (type_object_getset): Add entry for attribute "name".
12225 * NEWS: Add entry mentioning this new attribute.
12226
c26e9cbb
YQ
122272014-01-07 Yao Qi <yao@codesourcery.com>
12228
12229 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12230 statement.
12231
0cc6f43d
YQ
122322014-01-07 Yao Qi <yao@codesourcery.com>
12233
12234 * gnu-nat.c (info_port_rights): Add qualifier const to
12235 argument args.
12236
eec03155
YQ
122372014-01-07 Yao Qi <yao@codesourcery.com>
12238
12239 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12240
f04a82ef
YQ
122412014-01-07 Yao Qi <yao@codesourcery.com>
12242
12243 * gnu-nat.c (make_inf) Update declaration.
12244 (make_inf): Make it static.
12245 (inf_set_traced): Likewise.
12246 (inf_port_to_thread, inf_task_died_status): Likewise.
12247
d57dda0a
YQ
122482014-01-07 Yao Qi <yao@codesourcery.com>
12249
12250 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12251
3aa8c969
YQ
122522014-01-07 Yao Qi <yao@codesourcery.com>
12253
12254 * gnu-nat.c (_initialize_gnu_nat): Declare.
12255
94123b4f
YQ
122562014-01-07 Yao Qi <yao@codesourcery.com>
12257
12258 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12259 'enum bfd_endian'.
12260 (struct gdbarch_info) <byte_order>: Change type to
12261 'enum bfd_endian'.
12262 <byte_order_for_code>: Likewise.
12263 * gdbarch.c, gdbarch.h: Regenerated.
12264
dc81d70a
TT
122652014-01-06 Sasha Smundak <asmundak@google.com>
12266
12267 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12268
cc2f3c35
TT
122692014-01-06 Tom Tromey <tromey@redhat.com>
12270
12271 * doublest.c (convert_doublest_to_floatformat): Use const, not
12272 CONST.
12273 * somread.c (som_symtab_read): Likewise.
12274
adcf2eed
HZ
122752014-01-07 Hui Zhu <hui@codesourcery.com>
12276
12277 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12278 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12279 (gdb_bfd_fopen): Ditto.
12280 (gdb_bfd_openr): Ditto.
12281 (gdb_bfd_openw): Ditto.
12282 (gdb_bfd_openr_iovec): Ditto.
12283 (gdb_bfd_fdopenr): Ditto.
12284 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12285 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12286 with xstrdup.
12287 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12288 with xstrdup.
12289 * symfile-mem.c (symbol_file_add_from_memory): Removed
12290 gdb_bfd_stash_filename.
12291
50722198
DE
122922014-01-03 Doug Evans <dje@google.com>
12293
12294 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12295 output.
12296
2fa4b862
JB
122972014-01-01 Joel Brobecker <brobecker@adacore.com>
12298
12299 Update year range in copyright notice of all files.
12300
28498c42
JB
123012014-01-01 Joel Brobecker <brobecker@adacore.com>
12302
12303 * top.c (print_gdb_version): Set copyright year to 2014.
12304
7b6e1046
JB
123052014-01-01 Joel Brobecker <brobecker@adacore.com>
12306
12307 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12308
df96af55 12309For older changes see ChangeLog-2013.
c906108c
SS
12310\f
12311Local Variables:
12312mode: change-log
12313left-margin: 8
12314fill-column: 74
12315version-control: never
57da7796 12316coding: utf-8
c906108c 12317End:
This page took 2.145051 seconds and 4 git commands to generate.