This fixes the processing of BFD_RELOC_RL78_DIFF fixups when the size is less
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
950c97d8
JB
12014-08-18 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4 Return 0 if TYPE is dynamic.
5 (print_range): Add handling of dynamic ranges.
6
3cdcd0ce
JB
72014-08-18 Keven Boell <keven.boell@intel.com>
8 Joel Brobecker <brobecker@adacore.com>
9
10 * gdbtypes.h (struct main_type): Add field "data_location".
11 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
12 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
13 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
14 a dynamic data location.
15 (resolve_dynamic_type): Add DW_AT_data_location handling.
16 (copy_recursive, copy_type): Copy the data_location information
17 when present.
18 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
19 * value.c (value_from_contents_and_address): Add
20 DW_AT_data_location handling.
21
08412b07
JB
222014-08-18 Keven Boell <keven.boell@intel.com>
23 Joel Brobecker <brobecker@adacore.com>
24
25 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
26 field "get_object_address".
27 * dwarf2expr.c (execute_stack_op): Add handling for
28 DW_OP_push_object_address.
29 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
30 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
31 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
32 (dwarf_expr_get_obj_addr): New function.
33 (dwarf_expr_ctx_funcs): Add get_object_address field.
34 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
35 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
36 (dwarf2_evaluate_property): Add parameter "address". Use it.
37 (needs_get_obj_addr): New function.
38 (needs_frame_ctx_funcs): Add get_object_address field.
39 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
40 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
41 (resolve_dynamic_array): Likewise.
42
84754697
JB
432014-08-18 Joel Brobecker <brobecker@adacore.com>
44
45 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
46 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
47 fixed value for records and unions for which some GNAT encodings
48 are present.
49
da5c522f
JB
502014-08-18 Joel Brobecker <brobecker@adacore.com>
51
52 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
53 rewrite to avoid "else if" and "else" constructs. Should be
54 a no-op in practice.
55
0d72a7c3
JB
562014-08-18 Joel Brobecker <brobecker@adacore.com>
57
58 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
59 of lexical block.
60
e66d4446
SC
612014-08-15 Siva Chandra Reddy <sivachandra@google.com>
62
63 PR c++/17132
64 * eval.c: Update all calls to find_overload_match.
65 * valarith.c: Likewise.
66 (value_user_defined_cpp_op, value_user_defined_op): New
67 argument NOSIDE. Update all callers.
68 * valops.c (find_overload_match): New argument NOSIDE.
69 * value.h (find_overload_match): Update signature.
70
940df408
SC
712014-08-15 Siva Chandra Reddy <sivachandra@google.com>
72
73 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
74 'items' methods instead of 'iteritems' method on dictionaries.
75
699ca60a
DE
762014-08-15 Doug Evans <dje@google.com>
77
78 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
79 closer to use.
80
37780ee5
DE
812014-08-15 Doug Evans <dje@google.com>
82
83 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
84
0ad93d4f
DE
852014-08-15 Doug Evans <dje@google.com>
86
87 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
88
20d8c372
DE
892014-08-15 Doug Evans <dje@google.com>
90
91 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
92 unused.
93
cb039ba4
EZ
942014-08-15 Eli Zaretskii <eliz@gnu.org>
95
96 * dcache.h: Include target.h, to avoid compile time warnings.
97
eb7a547a
JB
982014-08-15 Joel Brobecker <brobecker@adacore.com>
99
100 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
101 frame_info" partial declaration.
102 * gdbarch.h: Regenerate.
103
783cecc8
YQ
1042014-08-15 Yao Qi <yao@codesourcery.com>
105
106 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
107 Add parameter 'decode_for_pst_p'. Callers update.
108
65c749e7
YQ
1092014-08-13 Yao Qi <yao@codesourcery.com>
110
111 PR build/17104
112 * configure.ac: Use local variable 'pos'.
113 * configure: Regenerated.
114
d769e349
DE
1152014-08-11 Doug Evans <dje@google.com>
116
117 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
118 message, it is redundant with "Reading symbols from ..." message.
119
24f1235e
DE
1202014-08-10 Doug Evans <xdje42@gmail.com>
121
122 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
123
dcd2e6ef
YQ
1242014-08-09 Yao Qi <yao@codesourcery.com>
125
126 PR remote/9053
127 * remote.c (remote_xfer_partial): Remove dead code.
128
070bdf0b
AA
1292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
130
131 * ia64-linux-tdep.c: Include "regset.h".
132 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
133 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
134 (ia64_linux_supply_fpregset): New function.
135 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
136 (ia64_linux_regset_from_core_section): New function.
137 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
138 method.
139
08f9f542
AA
1402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
141
142 * m68klinux-tdep.c: Include "regset.h".
143 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
144 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
145 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
146 (m68k_linux_regset_from_core_section): New function.
147 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
148 method.
149
8f1cee41
AA
1502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
151
152 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
153 function. Move logic to...
154 (tilegx_linux_regmap): ... this new register map.
155 (tilegx_linux_regset): Refer to register map, replace supply
156 method by regcache_supply_regset, and add collect method.
157 * tilegx-tdep.h (enum tilegx_regnum): New enum value
158 TILEGX_FIRST_EASY_REGNUM.
159
c5741217
AA
1602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
161
162 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
163 that calls regcache_supply_regset and handles the EPC register
164 separately. Move main logic to...
165 (score7_linux_gregmap): ... this new register map.
166 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
167 (score7_linux_gregset): Refer to register map. Add collect method.
168 (score7_linux_regset_from_core_section): Replace
169 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
170 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
171 (struct regset): Delete unused forward declaraction.
172 (struct pt_regs): Delete structure definition.
173 (elf_gregset_t): Delete typedef.
174
81580573
AA
1752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
176
177 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
178 (nios2_core_regset): Add collect method.
179
ba199d7d
AA
1802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
181
182 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
183 platform-independent and don't write to read-only input buffer.
184 (m32r_linux_collect_gregset): New function.
185 (m32r_linux_gregset): Add collect method.
186
0006a9da
AA
1872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
188
189 * hppa-linux-tdep.c (greg_map): Rename to...
190 (hppa_linux_gregmap): ... this. Also convert to
191 regcache_map_entry format.
192 (hppa_linux_supply_regset): Delete function.
193 (hppa_linux_supply_fpregset): Delete function. Move logic to...
194 (hppa_linux_fpregmap): ... this new register map.
195 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
196 register map, replace supply method by regcache_supply_regset, and
197 add collect method regcache_collect_regset.
198
901e1b23
AA
1992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
200
201 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
202 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
203 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
204 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
205 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
206 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
207 (frv_linux_supply_gregset): Replace main logic by call to
208 regcache_supply_regset, but keep clearing gr32-gr63.
209 (frv_linux_supply_fpregset): Delete function.
210 (frv_linux_gregset): Refer to appropriate register map and add
211 regcache_collect_regset as the collect method.
212 (frv_linux_fpregset): Likewise. Also exchange the supply method
213 by regcache_supply_regset.
214
1d6e7555
AA
2152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
216
217 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
218 by call to alpha_supply_int_regs.
219 (alpha_linux_collect_gregset): New function.
220 (alpha_linux_supply_fpregset): Replace logic by call to
221 alpha_supply_fp_regs.
222 (alpha_linux_collect_fpregset): New function.
223 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
224
d4d793bf
AA
2252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
226
227 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
228 by call to regcache_collect_regset.
229 (supply_gregset, supply_fpregset): Call regcache_supply_regset
230 instead of aarch64_linux_supply_gregset/_fpregset.
231 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
232 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
233 header file instead.
234 (aarch64_linux_supply_gregset, supply_gregset_from_core)
235 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
236 functions. Move logic to ...
237 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
238 register maps.
239 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
240 refer to new register maps, replace *_regset_from_core by
241 regcache_supply_regset, and also use regcache_collect_regset.
242 * aarch64-linux-tdep.h: Include "regset.h".
243 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
244 Delete prototypes.
245 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
246 macros, moved from C source file.
247 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
248 variable declarations.
249
99b7da5d
AA
2502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
251
252 * s390-linux-nat.c: Include "regset.h".
253 (regmap_gregset): Delete macro.
254 (s390_64_regmap_gregset): New register map for
255 regcache_supply/_collect_regset.
256 (s390_64_gregset): New regset.
257 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
258 (regmap_fpregset): Delete macro.
259 (s390_native_supply, s390_native_collect): Delete functions.
260 (supply_gregset, fill_gregset): Replace s390-specific regmap
261 handling by a call to regcache_supply/_collect_regset.
262 (supply_fpregset, fill_fpregset): Call regcache_supply/
263 _collect_regset instead of s390_native_supply/_collect.
264 (fetch_regset, store_regset): Likewise. Also change the last
265 parameter to a regset instead of a regmap.
266 (s390_linux_fetch_inferior_registers)
267 (390_linux_store_inferior_registers): Adjust last parameter in
268 calls to fetch_regset and store_regset.
269 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
270 (s390_gregmap): ... this. Also make static const and convert to
271 regcache_map_entry format.
272 (s390x_regmap_gregset): Delete.
273 (s390_regmap_fpregset): Rename to...
274 (s390_fpregmap): ... this. Make static const and convert to
275 regcache_map_entry format.
276 (s390_regmap_upper, s390_regmap_last_break)
277 (s390x_regmap_last_break, s390_regmap_system_call)
278 (s390_regmap_tdb): Likewise.
279 (s390_supply_regset, s390_collect_regset): Remove functions.
280 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
281 s390_supply_regset.
282 (s390_gregset, s390_fpregset, s390_upper_regset)
283 (s390_last_break_regset, s390x_last_break_regset)
284 (s390_system_call_regset, s390_tdb_regset): Make global and
285 replace s390_supply/_collect_regset by regcache_supply/
286 _collect_regset.
287 (s390x_gregset): Delete.
288 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
289 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
290 (s390_regmap_fpregset, s390_regmap_last_break)
291 (s390x_regmap_last_break, s390_regmap_system_call)
292 (s390_regmap_tdb): Delete global variable declarations.
293 (s390_gregset, s390_fpregset, s390_last_break_regset)
294 (s390x_last_break_regset, s390_system_call_regset)
295 (s390_tdb_regset): New global variable declarations.
296
0b309272
AA
2972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
298
299 * regcache.c: Include "regset.h".
300 (regcache_transfer_regset): New local function.
301 (regcache_supply_regset, regcache_collect_regset): New functions.
302 * regcache.h (struct regcache_map_entry): New structure.
303 (REGCACHE_MAP_SKIP): New enum value.
304 (regcache_supply_regset, regcache_collect_regset): New prototypes.
305
7fefa8d7
AA
3062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
307
308 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
309 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
310 (ppc_linux_collect_gregset ): Likewise.
311 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
312 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
313 (ppc_collect_vrregset): Likewise.
314 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
315 Likewise.
316
96c4f946
YQ
3172014-08-07 Yao Qi <yao@codesourcery.com>
318
319 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
320 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
321 * remote.c (remote_read_bytes): Likewise.
322
fffbe6a8
YQ
3232014-08-07 Yao Qi <yao@codesourcery.com>
324
325 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
326
5ee8a82c
YQ
3272014-08-07 Yao Qi <yao@codesourcery.com>
328
329 PR remote/17230
330 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
331 TARGET_XFER_OK instead of 0.
332
bb974a24
GB
3332014-08-07 Gary Benson <gbenson@redhat.com>
334
335 * common/common-defs.h: Include errno.h.
336 * defs.h: Do not include errno.h.
337 * ada-typeprint.c: Likewise.
338 * c-typeprint.c: Likewise.
339 * core-regset.c: Likewise.
340 * corefile.c: Likewise.
341 * corelow.c: Likewise.
342 * event-loop.c: Likewise.
343 * f-typeprint.c: Likewise.
344 * gnu-nat.c: Likewise.
345 * go32-nat.c: Likewise.
346 * i386gnu-nat.c: Likewise.
347 * m2-typeprint.c: Likewise.
348 * nat/linux-btrace.c: Likewise.
349 * p-typeprint.c: Likewise.
350 * procfs.c: Likewise.
351 * remote-sim.c: Likewise.
352 * rs6000-nat.c: Likewise.
353 * target.c: Likewise.
354 * typeprint.c: Likewise.
355 * ui-file.c: Likewise.
356 * valops.c: Likewise.
357 * valprint.c: Likewise.
358
6d3d12eb
GB
3592014-08-07 Gary Benson <gbenson@redhat.com>
360
361 * common/common-defs.h: Include string.h.
362 * aarch64-tdep.c: Do not include string.h.
363 * ada-exp.y: Likewise.
364 * ada-lang.c: Likewise.
365 * ada-lex.l: Likewise.
366 * ada-typeprint.c: Likewise.
367 * ada-valprint.c: Likewise.
368 * aix-thread.c: Likewise.
369 * alpha-linux-tdep.c: Likewise.
370 * alpha-mdebug-tdep.c: Likewise.
371 * alpha-nat.c: Likewise.
372 * alpha-osf1-tdep.c: Likewise.
373 * alpha-tdep.c: Likewise.
374 * alphanbsd-tdep.c: Likewise.
375 * amd64-dicos-tdep.c: Likewise.
376 * amd64-linux-tdep.c: Likewise.
377 * amd64-nat.c: Likewise.
378 * amd64-sol2-tdep.c: Likewise.
379 * amd64fbsd-tdep.c: Likewise.
380 * amd64obsd-tdep.c: Likewise.
381 * arch-utils.c: Likewise.
382 * arm-linux-nat.c: Likewise.
383 * arm-linux-tdep.c: Likewise.
384 * arm-tdep.c: Likewise.
385 * arm-wince-tdep.c: Likewise.
386 * armbsd-tdep.c: Likewise.
387 * armnbsd-nat.c: Likewise.
388 * armnbsd-tdep.c: Likewise.
389 * armobsd-tdep.c: Likewise.
390 * avr-tdep.c: Likewise.
391 * ax-gdb.c: Likewise.
392 * ax-general.c: Likewise.
393 * bcache.c: Likewise.
394 * bfin-tdep.c: Likewise.
395 * breakpoint.c: Likewise.
396 * build-id.c: Likewise.
397 * buildsym.c: Likewise.
398 * c-exp.y: Likewise.
399 * c-lang.c: Likewise.
400 * c-typeprint.c: Likewise.
401 * c-valprint.c: Likewise.
402 * charset.c: Likewise.
403 * cli-out.c: Likewise.
404 * cli/cli-cmds.c: Likewise.
405 * cli/cli-decode.c: Likewise.
406 * cli/cli-dump.c: Likewise.
407 * cli/cli-interp.c: Likewise.
408 * cli/cli-logging.c: Likewise.
409 * cli/cli-script.c: Likewise.
410 * cli/cli-setshow.c: Likewise.
411 * cli/cli-utils.c: Likewise.
412 * coffread.c: Likewise.
413 * common/agent.c: Likewise.
414 * common/buffer.c: Likewise.
415 * common/buffer.h: Likewise.
416 * common/common-utils.c: Likewise.
417 * common/filestuff.c: Likewise.
418 * common/filestuff.c: Likewise.
419 * common/format.c: Likewise.
420 * common/print-utils.c: Likewise.
421 * common/rsp-low.c: Likewise.
422 * common/signals.c: Likewise.
423 * common/vec.h: Likewise.
424 * common/xml-utils.c: Likewise.
425 * core-regset.c: Likewise.
426 * corefile.c: Likewise.
427 * corelow.c: Likewise.
428 * cp-abi.c: Likewise.
429 * cp-name-parser.y: Likewise.
430 * cp-support.c: Likewise.
431 * cp-valprint.c: Likewise.
432 * cris-tdep.c: Likewise.
433 * d-exp.y: Likewise.
434 * darwin-nat.c: Likewise.
435 * dbxread.c: Likewise.
436 * dcache.c: Likewise.
437 * demangle.c: Likewise.
438 * dicos-tdep.c: Likewise.
439 * disasm.c: Likewise.
440 * doublest.c: Likewise.
441 * dsrec.c: Likewise.
442 * dummy-frame.c: Likewise.
443 * dwarf2-frame.c: Likewise.
444 * dwarf2loc.c: Likewise.
445 * dwarf2read.c: Likewise.
446 * elfread.c: Likewise.
447 * environ.c: Likewise.
448 * eval.c: Likewise.
449 * event-loop.c: Likewise.
450 * exceptions.c: Likewise.
451 * exec.c: Likewise.
452 * expprint.c: Likewise.
453 * f-exp.y: Likewise.
454 * f-lang.c: Likewise.
455 * f-typeprint.c: Likewise.
456 * f-valprint.c: Likewise.
457 * fbsd-nat.c: Likewise.
458 * findcmd.c: Likewise.
459 * findvar.c: Likewise.
460 * fork-child.c: Likewise.
461 * frame.c: Likewise.
462 * frv-linux-tdep.c: Likewise.
463 * frv-tdep.c: Likewise.
464 * gdb.c: Likewise.
465 * gdb_bfd.c: Likewise.
466 * gdbarch.c: Likewise.
467 * gdbarch.sh: Likewise.
468 * gdbtypes.c: Likewise.
469 * gnu-nat.c: Likewise.
470 * gnu-v2-abi.c: Likewise.
471 * gnu-v3-abi.c: Likewise.
472 * go-exp.y: Likewise.
473 * go-lang.c: Likewise.
474 * go32-nat.c: Likewise.
475 * guile/guile.c: Likewise.
476 * guile/scm-auto-load.c: Likewise.
477 * hppa-hpux-tdep.c: Likewise.
478 * hppa-linux-nat.c: Likewise.
479 * hppanbsd-tdep.c: Likewise.
480 * hppaobsd-tdep.c: Likewise.
481 * i386-cygwin-tdep.c: Likewise.
482 * i386-dicos-tdep.c: Likewise.
483 * i386-linux-tdep.c: Likewise.
484 * i386-nto-tdep.c: Likewise.
485 * i386-sol2-tdep.c: Likewise.
486 * i386-tdep.c: Likewise.
487 * i386bsd-tdep.c: Likewise.
488 * i386gnu-nat.c: Likewise.
489 * i386nbsd-tdep.c: Likewise.
490 * i386obsd-tdep.c: Likewise.
491 * i387-tdep.c: Likewise.
492 * ia64-libunwind-tdep.c: Likewise.
493 * ia64-linux-nat.c: Likewise.
494 * inf-child.c: Likewise.
495 * inf-ptrace.c: Likewise.
496 * inf-ttrace.c: Likewise.
497 * infcall.c: Likewise.
498 * infcmd.c: Likewise.
499 * inflow.c: Likewise.
500 * infrun.c: Likewise.
501 * interps.c: Likewise.
502 * iq2000-tdep.c: Likewise.
503 * irix5-nat.c: Likewise.
504 * jv-exp.y: Likewise.
505 * jv-lang.c: Likewise.
506 * jv-typeprint.c: Likewise.
507 * jv-valprint.c: Likewise.
508 * language.c: Likewise.
509 * linux-fork.c: Likewise.
510 * linux-nat.c: Likewise.
511 * lm32-tdep.c: Likewise.
512 * m2-exp.y: Likewise.
513 * m2-typeprint.c: Likewise.
514 * m32c-tdep.c: Likewise.
515 * m32r-linux-nat.c: Likewise.
516 * m32r-linux-tdep.c: Likewise.
517 * m32r-rom.c: Likewise.
518 * m32r-tdep.c: Likewise.
519 * m68hc11-tdep.c: Likewise.
520 * m68k-tdep.c: Likewise.
521 * m68kbsd-tdep.c: Likewise.
522 * m68klinux-nat.c: Likewise.
523 * m68klinux-tdep.c: Likewise.
524 * m88k-tdep.c: Likewise.
525 * machoread.c: Likewise.
526 * macrocmd.c: Likewise.
527 * main.c: Likewise.
528 * mdebugread.c: Likewise.
529 * mem-break.c: Likewise.
530 * memattr.c: Likewise.
531 * memory-map.c: Likewise.
532 * mep-tdep.c: Likewise.
533 * mi/mi-cmd-break.c: Likewise.
534 * mi/mi-cmd-disas.c: Likewise.
535 * mi/mi-cmd-env.c: Likewise.
536 * mi/mi-cmd-stack.c: Likewise.
537 * mi/mi-cmd-var.c: Likewise.
538 * mi/mi-cmds.c: Likewise.
539 * mi/mi-console.c: Likewise.
540 * mi/mi-getopt.c: Likewise.
541 * mi/mi-interp.c: Likewise.
542 * mi/mi-main.c: Likewise.
543 * mi/mi-parse.c: Likewise.
544 * microblaze-rom.c: Likewise.
545 * microblaze-tdep.c: Likewise.
546 * mingw-hdep.c: Likewise.
547 * minidebug.c: Likewise.
548 * minsyms.c: Likewise.
549 * mips-irix-tdep.c: Likewise.
550 * mips-linux-tdep.c: Likewise.
551 * mips-tdep.c: Likewise.
552 * mips64obsd-tdep.c: Likewise.
553 * mipsnbsd-tdep.c: Likewise.
554 * mipsread.c: Likewise.
555 * mn10300-linux-tdep.c: Likewise.
556 * mn10300-tdep.c: Likewise.
557 * monitor.c: Likewise.
558 * moxie-tdep.c: Likewise.
559 * mt-tdep.c: Likewise.
560 * nat/linux-btrace.c: Likewise.
561 * nat/linux-osdata.c: Likewise.
562 * nat/linux-procfs.c: Likewise.
563 * nat/linux-ptrace.c: Likewise.
564 * nat/linux-waitpid.c: Likewise.
565 * nbsd-tdep.c: Likewise.
566 * nios2-linux-tdep.c: Likewise.
567 * nto-procfs.c: Likewise.
568 * nto-tdep.c: Likewise.
569 * objc-lang.c: Likewise.
570 * objfiles.c: Likewise.
571 * opencl-lang.c: Likewise.
572 * osabi.c: Likewise.
573 * osdata.c: Likewise.
574 * p-exp.y: Likewise.
575 * p-lang.c: Likewise.
576 * p-typeprint.c: Likewise.
577 * parse.c: Likewise.
578 * posix-hdep.c: Likewise.
579 * ppc-linux-nat.c: Likewise.
580 * ppc-sysv-tdep.c: Likewise.
581 * ppcfbsd-tdep.c: Likewise.
582 * ppcnbsd-tdep.c: Likewise.
583 * ppcobsd-tdep.c: Likewise.
584 * printcmd.c: Likewise.
585 * procfs.c: Likewise.
586 * prologue-value.c: Likewise.
587 * python/py-auto-load.c: Likewise.
588 * python/py-gdb-readline.c: Likewise.
589 * ravenscar-thread.c: Likewise.
590 * regcache.c: Likewise.
591 * registry.c: Likewise.
592 * remote-fileio.c: Likewise.
593 * remote-m32r-sdi.c: Likewise.
594 * remote-mips.c: Likewise.
595 * remote-notif.c: Likewise.
596 * remote-sim.c: Likewise.
597 * remote.c: Likewise.
598 * reverse.c: Likewise.
599 * rs6000-aix-tdep.c: Likewise.
600 * ser-base.c: Likewise.
601 * ser-go32.c: Likewise.
602 * ser-mingw.c: Likewise.
603 * ser-pipe.c: Likewise.
604 * ser-tcp.c: Likewise.
605 * ser-unix.c: Likewise.
606 * serial.c: Likewise.
607 * sh-tdep.c: Likewise.
608 * sh64-tdep.c: Likewise.
609 * shnbsd-tdep.c: Likewise.
610 * skip.c: Likewise.
611 * sol-thread.c: Likewise.
612 * solib-dsbt.c: Likewise.
613 * solib-frv.c: Likewise.
614 * solib-osf.c: Likewise.
615 * solib-som.c: Likewise.
616 * solib-spu.c: Likewise.
617 * solib-target.c: Likewise.
618 * solib.c: Likewise.
619 * somread.c: Likewise.
620 * source.c: Likewise.
621 * sparc-nat.c: Likewise.
622 * sparc-sol2-tdep.c: Likewise.
623 * sparc-tdep.c: Likewise.
624 * sparc64-tdep.c: Likewise.
625 * sparc64fbsd-tdep.c: Likewise.
626 * sparc64nbsd-tdep.c: Likewise.
627 * sparcnbsd-tdep.c: Likewise.
628 * spu-linux-nat.c: Likewise.
629 * spu-multiarch.c: Likewise.
630 * spu-tdep.c: Likewise.
631 * stabsread.c: Likewise.
632 * stack.c: Likewise.
633 * std-regs.c: Likewise.
634 * symfile.c: Likewise.
635 * symmisc.c: Likewise.
636 * symtab.c: Likewise.
637 * target.c: Likewise.
638 * thread.c: Likewise.
639 * tilegx-linux-nat.c: Likewise.
640 * tilegx-tdep.c: Likewise.
641 * top.c: Likewise.
642 * tracepoint.c: Likewise.
643 * tui/tui-command.c: Likewise.
644 * tui/tui-data.c: Likewise.
645 * tui/tui-disasm.c: Likewise.
646 * tui/tui-file.c: Likewise.
647 * tui/tui-layout.c: Likewise.
648 * tui/tui-out.c: Likewise.
649 * tui/tui-regs.c: Likewise.
650 * tui/tui-source.c: Likewise.
651 * tui/tui-stack.c: Likewise.
652 * tui/tui-win.c: Likewise.
653 * tui/tui-windata.c: Likewise.
654 * tui/tui-winsource.c: Likewise.
655 * typeprint.c: Likewise.
656 * ui-file.c: Likewise.
657 * ui-out.c: Likewise.
658 * user-regs.c: Likewise.
659 * utils.c: Likewise.
660 * v850-tdep.c: Likewise.
661 * valarith.c: Likewise.
662 * valops.c: Likewise.
663 * valprint.c: Likewise.
664 * value.c: Likewise.
665 * varobj.c: Likewise.
666 * vax-tdep.c: Likewise.
667 * vaxnbsd-tdep.c: Likewise.
668 * vaxobsd-tdep.c: Likewise.
669 * windows-nat.c: Likewise.
670 * xcoffread.c: Likewise.
671 * xml-support.c: Likewise.
672 * xstormy16-tdep.c: Likewise.
673 * xtensa-linux-nat.c: Likewise.
674
dccbb609
GB
6752014-08-07 Gary Benson <gbenson@redhat.com>
676
677 * common/common-defs.h: Include gdb_assert.h.
678 * aarch64-tdep.c: Do not include gdb_assert.h.
679 * addrmap.c: Likewise.
680 * aix-thread.c: Likewise.
681 * alpha-linux-tdep.c: Likewise.
682 * alpha-mdebug-tdep.c: Likewise.
683 * alphanbsd-tdep.c: Likewise.
684 * amd64-nat.c: Likewise.
685 * amd64-tdep.c: Likewise.
686 * amd64bsd-nat.c: Likewise.
687 * amd64fbsd-nat.c: Likewise.
688 * amd64fbsd-tdep.c: Likewise.
689 * amd64nbsd-nat.c: Likewise.
690 * amd64nbsd-tdep.c: Likewise.
691 * amd64obsd-nat.c: Likewise.
692 * amd64obsd-tdep.c: Likewise.
693 * arch-utils.c: Likewise.
694 * arm-tdep.c: Likewise.
695 * armbsd-tdep.c: Likewise.
696 * auxv.c: Likewise.
697 * bcache.c: Likewise.
698 * bfin-tdep.c: Likewise.
699 * blockframe.c: Likewise.
700 * breakpoint.c: Likewise.
701 * bsd-kvm.c: Likewise.
702 * bsd-uthread.c: Likewise.
703 * buildsym.c: Likewise.
704 * c-exp.y: Likewise.
705 * c-lang.c: Likewise.
706 * charset.c: Likewise.
707 * cleanups.c: Likewise.
708 * cli-out.c: Likewise.
709 * cli/cli-decode.c: Likewise.
710 * cli/cli-dump.c: Likewise.
711 * cli/cli-logging.c: Likewise.
712 * cli/cli-script.c: Likewise.
713 * cli/cli-utils.c: Likewise.
714 * coffread.c: Likewise.
715 * common/common-utils.c: Likewise.
716 * common/queue.h: Likewise.
717 * common/signals.c: Likewise.
718 * common/vec.h: Likewise.
719 * complaints.c: Likewise.
720 * completer.c: Likewise.
721 * corelow.c: Likewise.
722 * cp-abi.c: Likewise.
723 * cp-name-parser.y: Likewise.
724 * cp-namespace.c: Likewise.
725 * cp-support.c: Likewise.
726 * cris-tdep.c: Likewise.
727 * dbxread.c: Likewise.
728 * dictionary.c: Likewise.
729 * doublest.c: Likewise.
730 * dsrec.c: Likewise.
731 * dummy-frame.c: Likewise.
732 * dwarf2-frame-tailcall.c: Likewise.
733 * dwarf2-frame.c: Likewise.
734 * dwarf2expr.c: Likewise.
735 * dwarf2loc.c: Likewise.
736 * dwarf2read.c: Likewise.
737 * eval.c: Likewise.
738 * event-loop.c: Likewise.
739 * exceptions.c: Likewise.
740 * expprint.c: Likewise.
741 * f-valprint.c: Likewise.
742 * fbsd-nat.c: Likewise.
743 * findvar.c: Likewise.
744 * frame-unwind.c: Likewise.
745 * frame.c: Likewise.
746 * frv-tdep.c: Likewise.
747 * gcore.c: Likewise.
748 * gdb-dlfcn.c: Likewise.
749 * gdb_bfd.c: Likewise.
750 * gdbarch.c: Likewise.
751 * gdbarch.sh: Likewise.
752 * gdbtypes.c: Likewise.
753 * gnu-nat.c: Likewise.
754 * gnu-v3-abi.c: Likewise.
755 * go-lang.c: Likewise.
756 * guile/scm-exception.c: Likewise.
757 * guile/scm-gsmob.c: Likewise.
758 * guile/scm-lazy-string.c: Likewise.
759 * guile/scm-math.c: Likewise.
760 * guile/scm-pretty-print.c: Likewise.
761 * guile/scm-safe-call.c: Likewise.
762 * guile/scm-utils.c: Likewise.
763 * guile/scm-value.c: Likewise.
764 * h8300-tdep.c: Likewise.
765 * hppa-hpux-nat.c: Likewise.
766 * hppa-tdep.c: Likewise.
767 * hppanbsd-tdep.c: Likewise.
768 * hppaobsd-tdep.c: Likewise.
769 * i386-darwin-nat.c: Likewise.
770 * i386-darwin-tdep.c: Likewise.
771 * i386-nto-tdep.c: Likewise.
772 * i386-tdep.c: Likewise.
773 * i386bsd-nat.c: Likewise.
774 * i386fbsd-tdep.c: Likewise.
775 * i386gnu-nat.c: Likewise.
776 * i386nbsd-tdep.c: Likewise.
777 * i386obsd-tdep.c: Likewise.
778 * i387-tdep.c: Likewise.
779 * ia64-libunwind-tdep.c: Likewise.
780 * ia64-tdep.c: Likewise.
781 * inf-ptrace.c: Likewise.
782 * inf-ttrace.c: Likewise.
783 * infcall.c: Likewise.
784 * infcmd.c: Likewise.
785 * infrun.c: Likewise.
786 * inline-frame.c: Likewise.
787 * interps.c: Likewise.
788 * jv-lang.c: Likewise.
789 * jv-typeprint.c: Likewise.
790 * linux-fork.c: Likewise.
791 * linux-nat.c: Likewise.
792 * linux-thread-db.c: Likewise.
793 * m32c-tdep.c: Likewise.
794 * m32r-linux-nat.c: Likewise.
795 * m32r-tdep.c: Likewise.
796 * m68k-tdep.c: Likewise.
797 * m68kbsd-nat.c: Likewise.
798 * m68kbsd-tdep.c: Likewise.
799 * m88k-tdep.c: Likewise.
800 * machoread.c: Likewise.
801 * macroexp.c: Likewise.
802 * macrotab.c: Likewise.
803 * maint.c: Likewise.
804 * mdebugread.c: Likewise.
805 * memory-map.c: Likewise.
806 * mep-tdep.c: Likewise.
807 * mi/mi-common.c: Likewise.
808 * microblaze-tdep.c: Likewise.
809 * mingw-hdep.c: Likewise.
810 * mips-linux-nat.c: Likewise.
811 * mips-linux-tdep.c: Likewise.
812 * mips-tdep.c: Likewise.
813 * mips64obsd-tdep.c: Likewise.
814 * mipsnbsd-tdep.c: Likewise.
815 * mn10300-linux-tdep.c: Likewise.
816 * mn10300-tdep.c: Likewise.
817 * moxie-tdep.c: Likewise.
818 * mt-tdep.c: Likewise.
819 * nat/linux-btrace.c: Likewise.
820 * nat/linux-osdata.c: Likewise.
821 * nat/linux-ptrace.c: Likewise.
822 * nat/mips-linux-watch.c: Likewise.
823 * nios2-linux-tdep.c: Likewise.
824 * nios2-tdep.c: Likewise.
825 * objc-lang.c: Likewise.
826 * objfiles.c: Likewise.
827 * obsd-nat.c: Likewise.
828 * opencl-lang.c: Likewise.
829 * osabi.c: Likewise.
830 * parse.c: Likewise.
831 * ppc-linux-nat.c: Likewise.
832 * ppc-sysv-tdep.c: Likewise.
833 * ppcfbsd-nat.c: Likewise.
834 * ppcfbsd-tdep.c: Likewise.
835 * ppcnbsd-nat.c: Likewise.
836 * ppcnbsd-tdep.c: Likewise.
837 * ppcobsd-nat.c: Likewise.
838 * ppcobsd-tdep.c: Likewise.
839 * printcmd.c: Likewise.
840 * procfs.c: Likewise.
841 * prologue-value.c: Likewise.
842 * psymtab.c: Likewise.
843 * python/py-lazy-string.c: Likewise.
844 * python/py-value.c: Likewise.
845 * regcache.c: Likewise.
846 * reggroups.c: Likewise.
847 * registry.c: Likewise.
848 * remote-sim.c: Likewise.
849 * remote.c: Likewise.
850 * rs6000-aix-tdep.c: Likewise.
851 * rs6000-tdep.c: Likewise.
852 * s390-linux-tdep.c: Likewise.
853 * score-tdep.c: Likewise.
854 * ser-base.c: Likewise.
855 * ser-mingw.c: Likewise.
856 * sh-tdep.c: Likewise.
857 * sh64-tdep.c: Likewise.
858 * solib-darwin.c: Likewise.
859 * solib-spu.c: Likewise.
860 * solib-svr4.c: Likewise.
861 * source.c: Likewise.
862 * sparc-nat.c: Likewise.
863 * sparc-sol2-tdep.c: Likewise.
864 * sparc-tdep.c: Likewise.
865 * sparc64-sol2-tdep.c: Likewise.
866 * sparc64-tdep.c: Likewise.
867 * sparc64fbsd-tdep.c: Likewise.
868 * sparc64nbsd-tdep.c: Likewise.
869 * sparc64obsd-tdep.c: Likewise.
870 * sparcnbsd-tdep.c: Likewise.
871 * sparcobsd-tdep.c: Likewise.
872 * spu-multiarch.c: Likewise.
873 * spu-tdep.c: Likewise.
874 * stabsread.c: Likewise.
875 * stack.c: Likewise.
876 * symfile.c: Likewise.
877 * symtab.c: Likewise.
878 * target-descriptions.c: Likewise.
879 * target-memory.c: Likewise.
880 * target.c: Likewise.
881 * tic6x-linux-tdep.c: Likewise.
882 * tic6x-tdep.c: Likewise.
883 * tilegx-linux-nat.c: Likewise.
884 * tilegx-tdep.c: Likewise.
885 * top.c: Likewise.
886 * tramp-frame.c: Likewise.
887 * tui/tui-out.c: Likewise.
888 * tui/tui-winsource.c: Likewise.
889 * ui-out.c: Likewise.
890 * user-regs.c: Likewise.
891 * utils.c: Likewise.
892 * v850-tdep.c: Likewise.
893 * valops.c: Likewise.
894 * value.c: Likewise.
895 * varobj.c: Likewise.
896 * vax-nat.c: Likewise.
897 * xml-syscall.c: Likewise.
898 * xml-tdesc.c: Likewise.
899 * xstormy16-tdep.c: Likewise.
900 * xtensa-linux-nat.c: Likewise.
901 * xtensa-tdep.c: Likewise.
902
e76df0d0
GB
9032014-08-07 Gary Benson <gbenson@redhat.com>
904
905 * common/common-defs.h: Include common-utils.h.
906 * defs.h: Do not include common-utils.h.
907 * common/gdb_assert.h: Likewise.
908 * darwin-nat.h: Likewise.
909 * nat/linux-btrace.c: Likewise.
910 * target/waitstatus.h: Likewise.
911
4cb9c816
GB
9122014-08-07 Gary Benson <gbenson@redhat.com>
913
914 * common/common-defs.h: Include ptid.h.
915 * defs.h: Do not include ptid.h.
916 * inferior.h: Likewise.
917 * infrun.h: Likewise.
918 * nat/linux-btrace.h: Likewise.
919 * nat/linux-osdata.h: Likewise.
920 * target/waitstatus.h: Likewise.
921
3995eeee
GB
9222014-08-07 Gary Benson <gbenson@redhat.com>
923
924 * common/common-defs.h: Include gdb_locale.h.
925 * defs.h: Do not include gdb_locale.h.
926
cb9f1a9b
GB
9272014-08-07 Gary Benson <gbenson@redhat.com>
928
929 * common/common-defs.h: Include gdb/signals.h.
930 * defs.h: Do not include gdb/signals.h.
931
a5fceff8
GB
9322014-08-07 Gary Benson <gbenson@redhat.com>
933
934 * common/common-defs.h: Include pathmax.h.
935 * defs.h: Do not include pathmax.h.
936
b9391142
GB
9372014-08-07 Gary Benson <gbenson@redhat.com>
938
939 * common/common-defs.h: Include libiberty.h.
940 * defs.h: Do not include libiberty.h.
941 * common/queue.h: Likewise.
942 * cp-name-parser.y: Likewise.
943 * mi/mi-cmd-catch.c: Likewise.
944 * python/python.c: Likewise.
945
0e443c87
GB
9462014-08-07 Gary Benson <gbenson@redhat.com>
947
948 * common/common-defs.h: Include ansidecl.h.
949 * defs.h: Do not include ansidecl.h.
950 * common/buffer.h: Likewise.
951 * common/common-utils.h: Likewise.
952
8ebb3f56
GB
9532014-08-07 Gary Benson <gbenson@redhat.com>
954
955 * common/common-defs.h: Include stddef.h.
956 * defs.h: Do not include stddef.h.
957 * common/common-utils.h: Likewise.
958 * amd64fbsd-nat.c: Likewise.
959 * bcache.c: Likewise.
960 * charset.c: Likewise.
961 * common/buffer.h: Likewise.
962 * common/vec.h: Likewise.
963 * i386bsd-nat.c: Likewise.
964 * nat/linux-btrace.h: Likewise.
965 * ppcfbsd-nat.c: Likewise.
966 * ppcnbsd-tdep.h: Likewise.
967 * ppcobsd-nat.c: Likewise.
968 * ppcobsd-tdep.h: Likewise.
969 * python/py-gdb-readline.c: Likewise.
970
8980bdf6
GB
9712014-08-07 Gary Benson <gbenson@redhat.com>
972
973 * common/common-defs.h: Include stdarg.h.
974 * defs.h: Do not include stdarg.h.
975 * ada-lang.c: Likewise.
976 * common/common-utils.h: Likewise.
977 * guile/scm-string.c: Likewise.
978 * guile/scm-utils.c: Likewise.
979 * m32c-tdep.c: Likewise.
980
d7096f71
GB
9812014-08-07 Gary Benson <gbenson@redhat.com>
982
983 * common/common-defs.h: Include stdlib.h.
984 * defs.h: Do not include stdlib.h.
985 * addrmap.c: Likewise.
986 * bcache.c: Likewise.
987 * common/buffer.c: Likewise.
988 * common/common-utils.c: Likewise.
989 * cp-name-parser.y: Likewise.
990 * go32-nat.c: Likewise.
991 * mn10300-linux-tdep.c: Likewise.
992 * nat/linux-osdata.c: Likewise.
993 * tui/tui.c: Likewise.
994 * windows-nat.c: Likewise.
995
d02f550d
GB
9962014-08-07 Gary Benson <gbenson@redhat.com>
997
998 * common/common-defs.h: Include stdio.h.
999 * defs.h: Do not include stdio.h.
1000 * ada-lang.c: Likewise.
1001 * common/buffer.c: Likewise.
1002 * common/common-utils.c: Likewise.
1003 * cp-name-parser.y: Likewise.
1004 * gnu-nat.c: Likewise.
1005 * go32-nat.c: Likewise.
1006 * i386gnu-nat.c: Likewise.
1007 * proc-api.c: Likewise.
1008 * proc-events.c: Likewise.
1009 * proc-flags.c: Likewise.
1010 * proc-why.c: Likewise.
1011 * python/python-internal.h: Likewise.
1012 * target-memory.c: Likewise.
1013 * tui/tui-io.c: Likewise.
1014 * tui/tui.c: Likewise.
1015
b6d7a4bf
SM
10162014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1017
1018 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1019 (scan_dyntag_auxv): Same.
1020
af19829b
YQ
10212014-08-06 Yao Qi <yao@codesourcery.com>
1022
1023 * amd64-linux-nat.c: Remove duplicated include
1024 "x86-linux-nat.h".
1025 * i386-linux-nat.c: Likewise.
1026
8e07a239
YQ
10272014-08-06 Yao Qi <yao@codesourcery.com>
1028
1029 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1030 operand" with "Special opcode" in comments.
1031
7bfe8241
GB
10322014-08-05 Gary Benson <gbenson@redhat.com>
1033
1034 * interps.c (initialize_interps): Remove prototype.
1035 (interpreter_initialized): Remove static global.
1036 (interp_add): Do not call initialize_interps.
1037 (initialize_interps): Remove function.
1038
d6c95504
GB
10392014-08-05 Gary Benson <gbenson@redhat.com>
1040
1041 * utils.c (vwarning): Remove spurious va_end.
1042
241fd515
AM
10432014-08-05 Alan Modra <amodra@gmail.com>
1044
1045 * charset.c (convert_between_encodings): Cast result of obstack_base.
1046 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1047 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1048 (read_unwind_info): Use size_t for some locals.
1049 * jit.c (finalize_symtab): Likewise.
1050 * utils.c (hashtab_obstack_allocate): Likewise.
1051 * symmisc.c (print_objfile_statistics): Update format strings.
1052
dc304a94
JK
10532014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1056 (Changes in GDB 7.8): ... here.
1057
3cecbbbe
TT
10582014-08-04 Tom Tromey <tromey@redhat.com>
1059
1060 * target.c (set_targetdebug): New function.
1061 (initialize_targets): Pass set_targetdebug when creating "set
1062 debug target".
1063
6908c509
JB
10642014-08-01 Joel Brobecker <brobecker@adacore.com>
1065
1066 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1067 if detecting a variable-sized field that is not the last field.
1068 Fix struct type length computation.
1069
53e8f97d
JB
10702014-08-01 Joel Brobecker <brobecker@adacore.com>
1071
1072 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1073 Add debug trace.
1074
e068c55d
JB
10752014-08-01 Joel Brobecker <brobecker@adacore.com>
1076
1077 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1078 Remove "+ 8" offset in computation of CHAIN_VMA.
1079
4d4ca2a1
DE
10802014-07-31 Doug Evans <dje@google.com>
1081
1082 * inflow.c (child_terminal_inferior): Add comment.
1083 (child_terminal_ours_for_output): Add comment.
1084 (child_terminal_ours): Add comment.
1085 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1086 (linux_nat_terminal_ours): Add comment.
1087
462f517e
GB
10882014-07-31 Gary Benson <gbenson@redhat.com>
1089
1090 * common/btrace-common.h: Do not include defs.h or server.h.
1091 * nat/mips-linux-watch.h: Likewise.
1092 * gdb-dlfcn.h: Do not include defs.h.
1093 * tracefile.h: Likewise.
1094
74228e77
RM
10952014-07-30 Roland McGrath <mcgrathr@google.com>
1096
1097 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1098
014f9477
TT
10992014-07-30 Tom Tromey <tromey@redhat.com>
1100
1101 * bsd-kvm.c (bsd_kvm_open): Constify.
1102 * corelow.c (core_open): Constify.
1103 * ctf.c (ctf_open): Constify.
1104 * dbug-rom.c (dbug_open): Constify.
1105 * exec.c (exec_open): Constify.
1106 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1107 * microblaze-rom.c (picobug_open): Constify.
1108 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1109 Constify.
1110 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1111 * record-btrace.c (record_btrace_open): Constify.
1112 * record-full.c (record_full_core_open_1, record_full_open_1)
1113 (record_full_open): Constify.
1114 * remote-m32r-sdi.c (m32r_open): Constify.
1115 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1116 (rockhopper_open, lsi_open): Constify.
1117 * remote-sim.c (gdbsim_open): Constify.
1118 * remote.c (remote_open, extended_remote_open, remote_open_1):
1119 Constify.
1120 * target.h (struct target_ops) <to_open>: Make "arg" const.
1121 * tracefile-tfile.c (tfile_open): Constify.
1122
e799154c
TT
11232014-07-30 Tom Tromey <tromey@redhat.com>
1124
1125 * breakpoint.c (map_breakpoint_numbers): Update.
1126 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1127 (get_number_const): New function.
1128 (get_number): Rewrite using get_number_const.
1129 (init_number_or_range): Make "string" const.
1130 (number_is_in_list): Make "list" const.
1131 * cli/cli-utils.h (get_number_const): Declare.
1132 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1133 (init_number_or_range, number_is_in_list): Update.
1134 * printcmd.c (map_display_numbers): Update.
1135 * value.c (value_from_history_ref): Constify.
1136 * value.h (value_from_history_ref): Update.
1137
5f08566b
TT
11382014-07-30 Tom Tromey <tromey@redhat.com>
1139
1140 * corefile.c (hook_type, call_extra_exec_file_hooks)
1141 (specify_exec_file_hook): Constify.
1142 * exec.c (exec_file_attach): Make "filename" const.
1143 * gdbcore.h (deprecated_exec_file_display_hook)
1144 (specify_exec_file_hook, exec_file_attach): Constify.
1145 * main.c (captured_main): Use catch_command_errors_const.
1146
8981c758
TT
11472014-07-30 Tom Tromey <tromey@redhat.com>
1148
1149 * target.c (open_target): New function.
1150 (add_target_with_completer, add_deprecated_target_alias): Use
1151 set_cmd_sfunc, set_cmd_context.
1152 (debug_to_open): Remove.
1153 (setup_target_debug): Update.
1154
a1c7835a
YQ
11552014-07-30 Yao Qi <yao@codesourcery.com>
1156
1157 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1158 comments.
1159 * parse.c (exp_iterate): Update comments.
1160
976411d6
GB
11612014-07-30 Gary Benson <gbenson@redhat.com>
1162
1163 * common/common-defs.h: New file.
1164 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1165 * defs.h: Include common-defs.h.
1166 Do not include config.h or build-gnulib/config.h.
1167
5d4848a4
GB
11682014-07-30 Gary Benson <gbenson@redhat.com>
1169
1170 * common/common-utils.h: Do not include config.h.
1171 * nat/linux-btrace.h: Likewise.
1172
d41f6d8e
GB
11732014-07-30 Gary Benson <gbenson@redhat.com>
1174
1175 * btrace.c: Include defs.h.
1176 * common/ptid.c: Include defs.h or server.h as appropriate.
1177 * nat/mips-linux-watch.c: Likewise.
1178
84202f9c
TT
11792014-07-29 Tom Tromey <tromey@redhat.com>
1180
1181 * target.c (target_is_pushed): Simplify.
1182
2530441c
JB
11832014-07-29 Joel Brobecker <brobecker@adacore.com>
1184
1185 GDB 7.8 released.
1186
7e09a223
YQ
11872014-07-29 Yao Qi <yao@codesourcery.com>
1188
1189 PR gdb/17206
1190 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1191
7ebdbe92
DE
11922014-07-28 Doug Evans <xdje42@gmail.com>
1193
1194 PR guile/17203
1195 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1196 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1197 parameters.
1198
f347ffc9
WN
11992014-07-28 Will Newton <will.newton@linaro.org>
1200
1201 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1202 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1203 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1204 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1205 (THUMB2_EABI_SYSCALL): Likewise.
1206 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1207 struct tramp_frame.
1208 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1209 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1210
37c5f1f7
DE
12112014-07-27 Doug Evans <xdje42@gmail.com>
1212
1213 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1214
0c3abbc7
DE
12152014-07-27 Doug Evans <xdje42@gmail.com>
1216
1217 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1218
e76c5d17
DE
12192014-07-26 Ludovic Courtès <ludo@gnu.org>
1220 Doug Evans <xdje42@gmail.com>
1221
1222 PR guile/17146
1223 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1224 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1225 * configure.ac: Try to use guild to compile an scm file, if it fails
1226 then disable guile support.
1227 * configure: Regenerate.
1228 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1229 GUILE_FILE_LIST.
1230 (GUILE_COMPILED_FILES): New variable.
1231 (GUILE_FILES) Update.
1232 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1233 (stamp-guile): Compile scm files.
1234 * guile/guile.c (boot_guile_support): New function.
1235 (standard_throw_args_p): New function.
1236 (print_standard_throw_error, print_throw_error): New functions.
1237 (handle_boot_error): New function.
1238 (initialize_scheme_side): Rewrite to call boot_guile_support.
1239 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1240 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1241
186fcde0
DE
12422014-07-26 Ludovic Courtès <ludo@gnu.org>
1243 Doug Evans <xdje42@gmail.com>
1244
1245 PR guile/17146
1246 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1247 * guile/lib/gdb/support.scm: New file.
1248 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1249 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1250 All uses updated.
1251 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1252 All uses updated.
1253 (%assert-type): Ditto, and renamed to assert-type.
1254 (%exception-print-style): Delete.
1255
4df42755
DE
12562014-07-26 Doug Evans <xdje42@gmail.com>
1257
1258 PR build/17105
1259 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1260 * configure: Regenerate.
1261 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1262 PYTHON_FILES.
1263 (PYTHON_FILES): New variable.
1264 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1265 (GUILE_FILES): New variable.
1266 (stamp-python, install-python, uninstall-python): Handle empty
1267 file list.
1268 (stamp-guile, install-guile, uninstall-guile): Ditto.
1269
ee7333ae
DE
12702014-07-26 Doug Evans <xdje42@gmail.com>
1271
1272 PR guile/17177
1273 * guile/lib/gdb.scm (pretty-printers): Export.
1274 (set-pretty-printers!): Export.
1275 * guile/lib/gdb/printing.scm (gdb module): Update.
1276 (prepend-pretty-printer!, append-pretty-printer!): Update.
1277 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1278 (pretty_printer_list_var): Delete.
1279 (pretty_printer_list): New static global.
1280 (gdbscm_pretty_printers): New function.
1281 (gdbscm_set_pretty_printers_x): New function.
1282 (ppscm_find_pretty_printer_from_gdb): Update.
1283 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1284 (gdbscm_initialize_pretty_printers): Update.
1285
74edf516
DE
12862014-07-26 Doug Evans <xdje42@gmail.com>
1287
1288 PR 17185
1289 * configure.ac: Add check for header gc/gc.h.
1290 Add check for function setenv.
1291 * configure: Regenerate.
1292 * config.in: Regenerate.
1293 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1294
d54398a7
MR
12952014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1296
1297 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1298 variation in gdbarch matching.
1299
ab16fce8
TT
13002014-07-25 Tom Tromey <tromey@redhat.com>
1301
1302 * exec.c (using_exec_ops): Remove.
1303 (exec_close_1): Update. Remove extraneous block, reindent.
1304 (add_target_sections): Use target_is_pushed.
1305
88056fbb
PA
13062014-07-25 Pedro Alves <palves@redhat.com>
1307
1308 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1309 * monitor.c (monitor_create_inferior): Likewise.
1310 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1311 * remote-sim.c (gdbsim_create_inferior): Likewise.
1312 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1313 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1314 * windows-nat.c (do_initial_windows_stuff): Likewise.
1315
70509625
PA
13162014-07-25 Pedro Alves <palves@redhat.com>
1317
1318 * NEWS: Mention signal passing and "signal" command changes.
1319 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1320 comment.
1321 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1322 call.
1323 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1324 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1325 (jump_command): Adjust clear_proceed_status call.
1326 (signal_command): Warn if other thread that are resumed have
1327 signals that will be delivered. Adjust clear_proceed_status call.
1328 (until_next_command, finish_command)
1329 (proceed_after_attach_callback, attach_command_post_wait)
1330 (attach_command): Adjust clear_proceed_status call.
1331 * infrun.c (proceed_after_vfork_done): Likewise.
1332 (proceed_after_attach_callback): Adjust comment.
1333 (clear_proceed_status_thread): Clear stop_signal if not in pass
1334 state.
1335 (clear_proceed_status_callback): Delete.
1336 (clear_proceed_status): New 'step' parameter. Only clear the
1337 proceed status of threads the command being prepared is about to
1338 resume.
1339 (proceed): If passed in an explicit signal, override stop_signal
1340 with it. Don't pass the last stop signal to the thread we're
1341 resuming.
1342 (init_wait_for_inferior): Adjust clear_proceed_status call.
1343 (switch_back_to_stepped_thread): Clear the signal if it should not
1344 be passed.
1345 * infrun.h (clear_proceed_status): New 'step' parameter.
1346 (user_visible_resume_ptid): Add comment.
1347 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1348 signal is in pass state.
1349 * remote.c (append_pending_thread_resumptions): Likewise.
1350 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1351
d8be2939
TT
13522014-07-25 Tom Tromey <tromey@redhat.com>
1353
1354 * target.h (target_stopped_data_address)
1355 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1356 parentheses.
1357
7d0d9d2b
PL
13582014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1359
1360 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1361 comments.
1362 (avr_pointer_to_address): Likewise.
1363
e9e7f724
TT
13642014-07-24 Tom Tromey <tromey@redhat.com>
1365
1366 * monitor.c (compile_pattern): Update.
1367 * target.h (struct target_ops) <to_shortname, to_longname,
1368 to_doc>: Now const.
1369
1947513d
TT
13702014-07-24 Tom Tromey <tromey@redhat.com>
1371
1372 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1373 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1374 (add_info_alias, add_com): Make "doc" const.
1375 (print_doc_line): Make "str" const.
1376 (delete_cmd): Update.
1377 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1378 (print_doc_line): Update.
1379 * cli/cli-script.c (document_command): Update.
1380 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1381 (add_com, add_info, add_info_alias): Update.
1382 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1383 * python/py-cmd.c (cmdpy_destroyer): Update.
1384
64e61d29
TT
13852014-07-24 Tom Tromey <tromey@redhat.com>
1386
1387 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1388 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1389 (help_cmd_list): Constify.
1390 (lookup_cmd): Update.
1391 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1392 const.
1393 (help_cmd_list, apropos_cmd): Update.
1394 * cli/cli-script.c (show_user): Update.
1395 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1396 * cli/cli-setshow.h (cmd_show_list): Update.
1397 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1398 (cmd_show_list): Update.
1399 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1400 * python/py-cmd.c (cmdpy_destroyer): Update.
1401
429e55ea
TT
14022014-07-24 Tom Tromey <tromey@redhat.com>
1403
1404 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1405 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1406 const.
1407 * command.h (deprecate_cmd): Update.
1408 * maint.c (maintenance_do_deprecate): Add casts.
1409
64669f3b
TT
14102014-07-24 Tom Tromey <tromey@redhat.com>
1411
1412 * cli/cli-decode.c (help_cmd): Make parameter "const".
1413 * cli/cli-decode.h (help_cmd): Update.
1414
d3d3328b
TT
14152014-07-24 Tom Tromey <tromey@redhat.com>
1416
1417 * stack.c (up_silently_base, down_silently_base): Make argument
1418 const.
1419
414842dc
TT
14202014-07-24 Tom Tromey <tromey@redhat.com>
1421
1422 * solib.c (solib_add): Make "pattern" const.
1423 * solib.h (solib_add): Update.
1424
baa336ce
TT
14252014-07-24 Tom Tromey <tromey@redhat.com>
1426
1427 * remote.c (remote_serial_open, print_packet, putpkt)
1428 (putpkt_binary): Constify.
1429 * remote.h (putpkt): Update.
1430
5a19e2d0
TT
14312014-07-24 Tom Tromey <tromey@redhat.com>
1432
1433 * monitor.c (monitor_open): Make "args" const.
1434 * monitor.h (monitor_open): Update.
1435
fc4baa5e
TT
14362014-07-24 Tom Tromey <tromey@redhat.com>
1437
1438 * maint.c (match_bfd_flags): Make "string" const.
1439 (print_bfd_section_info): Remove casts.
1440 (print_objfile_section_info): Make "string" const.
1441
0d5f0dbe
TT
14422014-07-24 Tom Tromey <tromey@redhat.com>
1443
1444 * inf-child.c (inf_child_open_target): Make "arg" const.
1445 * inf-child.h (inf_child_open_target): Update.
1446
41c77899
TT
14472014-07-24 Tom Tromey <tromey@redhat.com>
1448
1449 * environ.c (unset_in_environ): Make "var" const.
1450 * environ.h (unset_in_environ): Update.
1451
93db0d79
TT
14522014-07-24 Tom Tromey <tromey@redhat.com>
1453
1454 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1455 Make "cmd" const.
1456 (scan_filename_with_cleanup): Likewise.
1457 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1458 Make arguments const.
1459 (restore_command): Update.
1460
36d6eb95
PA
14612014-07-24 Pedro Alves <palves@redhat.com>
1462
1463 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1464
8009206a
TT
14652014-07-24 Tom Tromey <tromey@redhat.com>
1466 Gary Benson <gbenson@redhat.com>
1467
1468 * nat/linux-ptrace.c (additional_flags): New global.
1469 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1470 additional_flags; don't check GDBSERVER.
1471 (linux_ptrace_set_additional_flags): New function.
1472 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1473 Declare.
1474 * linux-nat.c (_initialize_linux_nat): Call
1475 linux_ptrace_set_additional_flags.
1476
a7068b60
TT
14772014-07-24 Tom Tromey <tromey@redhat.com>
1478
1479 * make-target-delegates (munge_type, write_debugmethod): New
1480 functions.
1481 (debug_names): New global.
1482 ($TARGET_DEBUG_PRINTER): New global.
1483 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1484 name.
1485 Write debug methods. Generate init_debug_target.
1486 * target-debug.h: New file.
1487 * target-delegates.c: Rebuild.
1488 * target.c: Include target-debug.h.
1489 (debug_target): Hoist definition.
1490 (target_kill, target_get_section_table, target_memory_map)
1491 (target_flash_erase, target_flash_done, target_detach)
1492 (target_disconnect, target_wait, target_resume)
1493 (target_pass_signals, target_program_signals, target_follow_fork)
1494 (target_mourn_inferior, target_search_memory)
1495 (target_thread_address_space, target_close)
1496 (target_find_new_threads, target_core_of_thread)
1497 (target_verify_memory, target_insert_mask_watchpoint)
1498 (target_remove_mask_watchpoint): Remove targetdebug code.
1499 (debug_to_post_attach, debug_to_prepare_to_store)
1500 (debug_to_files_info, debug_to_insert_breakpoint)
1501 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1502 (debug_to_region_ok_for_hw_watchpoint)
1503 (debug_to_can_accel_watchpoint_condition)
1504 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1505 (debug_to_watchpoint_addr_within_range)
1506 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1507 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1508 (debug_to_terminal_init, debug_to_terminal_inferior)
1509 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1510 (debug_to_terminal_save_ours, debug_to_terminal_info)
1511 (debug_to_load, debug_to_post_startup_inferior)
1512 (debug_to_insert_fork_catchpoint)
1513 (debug_to_remove_fork_catchpoint)
1514 (debug_to_insert_vfork_catchpoint)
1515 (debug_to_remove_vfork_catchpoint)
1516 (debug_to_insert_exec_catchpoint)
1517 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1518 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1519 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1520 (setup_target_debug): Call init_debug_target.
1521 * target.h (TARGET_DEBUG_PRINTER): New macro.
1522 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1523 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1524
2c51604d
GB
15252014-07-24 Gary Benson <gbenson@redhat.com>
1526
1527 * exceptions.h (throw_vfatal): Renamed to...
1528 (throw_vquit): New declaration.
1529 (throw_quit): Likewise.
1530 * exceptions.c (throw_vfatal): Renamed to...
1531 (throw_vquit): New function.
1532 (throw_quit): Likewise.
1533 (throw_error): Call throw_verror rather than throw_it.
1534 * utils.h (vfatal): Removed.
1535 (fatal): Likewise.
1536 * utils.c (vfatal): Removed.
1537 (fatal): Likewise.
1538 (internal_verror): Replaced call to fatal with call to throw_quit.
1539 (quit): Replaced calls to fatal with calls to throw_quit.
1540
34211963
ME
15412014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1542
1543 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1544 target_read_code.
1545
a52b4d3e
ME
15462014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1547
1548 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1549 less than zero in conditional expression.
1550
a8bdc56b
TT
15512014-07-23 Tom Tromey <tromey@redhat.com>
1552
1553 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1554 ($INTRO_PART): Don't match whitespace.
1555 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1556 argument matching.
1557 ($METHOD): Add $METHOD_TRAILER.
1558 (trim): Rewrite.
1559 (scan_target_h): New sub.
1560 Change main loop not to collect state.
1561 * target-delegates.c: Rebuild.
1562
91b52240
GB
15632014-07-23 Gary Benson <gbenson@redhat.com>
1564
1565 * cp-support.c (gdb_demangle): Fix build on systems without
1566 sigaltstack.
1567
45326f6f
JK
15682014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1569
1570 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1571 for reference entry value target data value.
1572
e214cf6c
JK
15732014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1574
1575 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1576 value_available_contents_eq.
1577
bddbbedd
PA
15782014-07-22 Pedro Alves <palves@redhat.com>
1579
1580 * value.c (allocate_optimized_out_value): Don't mark value as
1581 non-lazy.
1582
45c71484
JW
15832014-07-22 Jiong Wang <jiong.wang@arm.com>
1584
1585 * MAINTAINERS (Write After Approval): Update my email address.
1586
9597b22a
DE
15872014-07-20 Doug Evans <dje@google.com>
1588
1589 PR server/17147
1590 * remote.c (putpkt_binary): Add text to error message.
1591
91101fe5
YQ
15922014-07-20 Yao Qi <yao@codesourcery.com>
1593
1594 * eval.c: Remove "Chill" from comments.
1595 * gdbtypes.h: Likewise.
1596 * symtab.h: Likewise.
1597
c9402c95
YQ
15982014-07-20 Yao Qi <yao@codesourcery.com>
1599
1600 * std-operator.def: Update comments to TERNOP_SLICE.
1601
ae8fddda
YQ
16022014-07-20 Yao Qi <yao@codesourcery.com>
1603
1604 * std-operator.def: Remove BINOP_RANGE.
1605 * breakpoint.c (watchpoint_exp_is_const): Update.
1606 * expprint.c (dump_subexp_body_standard): Likewise.
1607 * eval.c (init_array_element): Remove dead code.
1608 (evaluate_subexp_standard): Likewise.
1609
9c816640
YQ
16102014-07-20 Yao Qi <yao@codesourcery.com>
1611
1612 * std-operator.def: Remove BINOP_IN.
1613 * breakpoint.c (watchpoint_exp_is_const): Update.
1614 * eval.c (evaluate_subexp_standard): Likewise.
1615 * expprint.c (dump_subexp_body_standard): Likewise.
1616
164224e9
ME
16172014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1618
1619 * microblaze-tdep.c (microblaze_register_names): Add
1620 the rshr and rslr register names.
1621 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1622 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1623 Use of tdesc_numbered_register. Use of
1624 microblaze_register_g_packet_guesses. Use of
1625 tdesc_use_registers. Use of set_gdbarch_register_type.
1626 (microblaze_register_g_packet_guesses): New.
1627 * microblaze-tdep.h (microblaze_reg_num): Add
1628 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1629 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1630 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1631 * features/microblaze-core.xml: New file.
1632 * features/microblaze-stack-protect.xml: New file.
1633 * features/microblaze-with-stack-protect.c: New file.
1634 * features/microblaze-with-stack-protect.xml: New file.
1635 * features/microblaze.xml: New file.
1636 * features/microblaze.c: New file.
1637 * features/Makefile (microblaze-with-stack-protect): Add
1638 microblaze-with-stack-protect microblaze and microblaze-expedite.
1639 * regformats/microblaze-with-stack-protect.dat: New file.
1640 * regformats/microblaze.dat: New file.
1641 * doc/gdb.texinfo (MicroBlaze Features): Added.
1642
e8b2341c
TT
16432014-07-18 Tom Tromey <tromey@redhat.com>
1644
1645 * exec.c (exec_ops): Now static.
1646 * exec.h (exec_ops): Don't declare.
1647
44e89118
TT
16482014-07-18 Tom Tromey <tromey@redhat.com>
1649
1650 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1651 to find_target_beneath.
1652 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1653 find_target_beneath.
1654 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1655
b0ed115f
TT
16562014-07-18 Tom Tromey <tromey@redhat.com>
1657
1658 PR gdb/17130:
1659 * utils.c (quit): Use target_supports_terminal_ours.
1660 * target.h (target_supports_terminal_ours): Declare.
1661 * target.c (target_supports_delete_record): Don't check
1662 to_delete_record against NULL.
1663 (target_supports_terminal_ours): New function.
1664
e75fdfca
TT
16652014-07-18 Tom Tromey <tromey@redhat.com>
1666
1667 PR gdb/17130:
1668 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1669 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1670 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1671 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1672 * windows-nat.c (windows_xfer_partial): Always delegate.
1673 * record-btrace.c (record_btrace_xfer_partial): Simplify
1674 delegation.
1675 (record_btrace_fetch_registers, record_btrace_store_registers)
1676 (record_btrace_prepare_to_store, record_btrace_resume)
1677 (record_btrace_wait, record_btrace_find_new_threads)
1678 (record_btrace_thread_alive): Likewise.
1679 * procfs.c (procfs_xfer_partial): Always delegate.
1680 * corelow.c (core_xfer_partial): Always delegate.
1681 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1682
83814951
TT
16832014-07-18 Tom Tromey <tromey@redhat.com>
1684
1685 * exec.c (exec_make_note_section): Move earlier.
1686
b8b8facf
DE
16872014-07-17 Doug Evans <dje@google.com>
1688
74b49205 1689 PR gdb/17170
b8b8facf
DE
1690 * maint.c (count_symtabs_and_blocks): Handle NULL
1691 current_program_space.
1692 (report_command_stats): Check global enabled flag in addition to
1693 recorded enabled flag.
1694 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1695
69ff6be5
PA
16962014-07-16 Pedro Alves <palves@redhat.com>
1697
1698 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1699
252db1b5
TT
17002014-07-16 Tom Tromey <tromey@redhat.com>
1701
1702 * target.h (struct target_ops) <to_delete_record>: Reformat
1703 comment.
1704
a432721e
TT
17052014-07-16 Tom Tromey <tromey@redhat.com>
1706
1707 * target-delegates.c: Rebuild.
1708
487d9753
PL
17092014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1710
1711 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1712 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1713 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1714 (avr_pointer_to_address): Likewise.
1715 (avr_address_class_type_flags): New function.
1716 (avr_address_class_type_flags_to_name): Likewise.
1717 (avr_address_class_name_to_type_flags): Likewise.
1718 (avr_gdbarch_init): Set address_class_type_flags,
1719 address_class_type_flags_to_name and
1720 address_class_name_to_type_flags.
1721
57745c90
PA
17222014-07-15 Pedro Alves <palves@redhat.com>
1723
1724 * linux-nat.c (kill_callback): Save errno and work with saved
1725 copy.
1726
2d40be18
SM
17272014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1728
1729 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1730
572f6555
EBM
17312014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1732
1733 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1734 breakpoint support correctly.
1735
cc1c52ad
PA
17362014-07-14 Pedro Alves <palves@redhat.com>
1737
1738 * utils.c (prompt_for_continue): Call target_terminal_ours.
1739
1e973570
PA
17402014-07-14 Pedro Alves <palves@redhat.com>
1741
1742 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1743 catch_errors. Don't re-enable stdin or notify observers where,
1744 and rethrow error.
1745 (fetch_inferior_event_wrapper): Delete.
1746
93d6eb10
PA
17472014-07-14 Pedro Alves <palves@redhat.com>
1748
1749 PR gdb/17072
1750 * top.c: Include "inf-loop.h".
1751 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1752 field.
1753 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1754 was async before.
1755 (gdb_readline_wrapper): Store whether the target is async, and
1756 make it sync.
1757
0017922d
PA
17582014-07-14 Pedro Alves <palves@redhat.com>
1759
1760 PR gdb/17072
1761 * top.c (gdb_readline_wrapper_line): Tweak comment.
1762 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1763 the input handler callback.
1764
94696ad3
PA
17652014-07-14 Pedro Alves <palves@redhat.com>
1766
1767 PR gdb/17072
1768 * main.c: Include event-top.h.
1769 (handle_command_errors): New function.
1770 (catch_command_errors, catch_command_errors_const): Use it.
1771
9d1e69a2
PA
17722014-07-14 Pedro Alves <palves@redhat.com>
1773
1774 * exceptions.c (catch_command_errors, catch_command_errors_const):
1775 Moved to main.c.
1776 * exceptions.h (catch_command_errors_ftype)
1777 (catch_command_errors_const_ftype): Moved to main.c.
1778 (catch_command_errors, catch_command_errors_const): Delete
1779 declarations.
1780 * main.c (catch_command_errors_ftype)
1781 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1782 (catch_command_errors, catch_command_errors_const)): Moved here
1783 from exceptions.c and make static.
1784
feefc97b
PA
17852014-07-14 Pedro Alves <palves@redhat.com>
1786
1787 * exceptions.c (print_any_exception): Delete.
1788 (catch_exceptions_with_msg): Use exception_print instead of
1789 print_any_exception.
1790 (catch_errors): Use exception_fprintf instead of
1791 print_any_exception.
1792 (catch_command_errors, catch_command_errors_const): Use
1793 exception_print instead of print_any_exception.
1794
c933f875
PA
17952014-07-14 Pedro Alves <palves@redhat.com>
1796
1797 * infcall.c (run_inferior_call): Set 'sync_execution' while
1798 running the inferior call.
1799
feb6f816
PA
18002014-07-14 Pedro Alves <palves@redhat.com>
1801
1802 * value.c (value_contents_equal): Delete function.
1803 * value.h (value_contents_equal): Delete declaration.
1804
d98b7a16
TT
18052014-07-14 Tom Tromey <tromey@redhat.com>
1806
1807 PR exp/17106:
1808 * gdbtypes.c (is_dynamic_type_internal): New function, from
1809 is_dynamic_type.
1810 (is_dynamic_type): Rewrite.
1811 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1812 (resolve_dynamic_struct): Likewise.
1813 (resolve_dynamic_type_internal): New function, from
1814 resolve_dynamic_type.
1815 (resolve_dynamic_type): Rewrite.
1816
548740d6
TT
18172014-07-14 Tom Tromey <tromey@redhat.com>
1818
1819 * target.c (target_require_runnable): Also check record_stratum.
1820 Update comment.
1821
808f7ab1
YQ
18222014-07-11 Yao Qi <yao@codesourcery.com>
1823
1824 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1825 thumb_instruction_restores_sp return true.
1826
540314bd
YQ
18272014-07-11 Yao Qi <yao@codesourcery.com>
1828
1829 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1830 (thumb_in_function_epilogue_p): Call
1831 thumb_instruction_restores_sp.
1832
1db01f22
YQ
18332014-07-11 Yao Qi <yao@codesourcery.com>
1834
1835 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1836 'add sp, #imm'.
1837 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1838
3116063b
GB
18392014-07-11 Gary Benson <gbenson@redhat.com>
1840
1841 * amd64-linux-nat.c (gdbcore.h): Remove include.
1842 (regset.h): Likewise.
1843 (nat/linux-btrace.h): Likewise.
1844 (btrace.h): Likewise.
1845 (gdb_assert.h): Likewise.
1846 (string.h): Likewise.
1847 (sys/uio.h): Likewise.
1848 (sys/debugreg.h): Likewise.
1849 (sys/syscall.h): Likewise.
1850 (sys/procfs.h): Likewise.
1851 (sys/user.h): Likewise.
1852 (asm/ptrace.h): Likewise.
1853 (i386-nat.h): Likewise.
1854 * i386-linux-nat.c (i386-nat.h): Likewise.
1855 (regset.h): Likewise.
1856 (target.h): Likewise.
1857 (linux-nat.h): Likewise.
1858 (nat/linux-btrace.h): Likewise.
1859 (btrace.h): Likewise.
1860 (gdb_assert.h): Likewise.
1861 (string.h): Likewise.
1862 (sys/uio.h): Likewise.
1863 (sys/user.h): Likewise.
1864 (sys/procfs.h): Likewise.
1865 (sys/reg.h): Likewise.
1866 (sys/debugreg.h): Likewise.
1867 (ORIG_EAX): Remove definition.
1868
040baaf6
GB
18692014-07-11 Gary Benson <gbenson@redhat.com>
1870
1871 * i386-linux-nat.h: New file.
1872 * x86-linux-nat.h: Likewise.
1873 * x86-linux-nat.c: Likewise.
1874 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1875 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1876 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1877 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1878 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1879 (PTRACE_SETREGSET): Likewise.
1880 (arch_lwp_info): Now in x86-linux-nat.c.
1881 (have_ptrace_getregset): Now in x86-linux-nat.h.
1882 (x86_linux_dr_get): Now in x86-linux-nat.c.
1883 (x86_linux_dr_set): Likewise.
1884 (x86_linux_dr_get_addr): Likewise.
1885 (x86_linux_dr_get_control): Likewise.
1886 (x86_linux_dr_get_status): Likewise.
1887 (update_debug_registers_callback): Likewise.
1888 (x86_linux_dr_set_control): Likewise.
1889 (x86_linux_dr_set_addr): Likewise.
1890 (x86_linux_prepare_to_resume): Likewise.
1891 (x86_linux_new_thread): Likewise.
1892 (x86_linux_new_fork): Likewise.
1893 (x86_linux_get_thread_area): Likewise.
1894 (super_post_startup_inferior): Likewise.
1895 (x86_linux_child_post_startup_inferior): Likewise.
1896 (AMD64_LINUX_USER64_CS): Likewise.
1897 (AMD64_LINUX_X32_DS): Likewise.
1898 (x86_linux_read_description): Likewise.
1899 (x86_linux_enable_btrace): Likewise.
1900 (x86_linux_disable_btrace): Likewise.
1901 (x86_linux_teardown_btrace): Likewise.
1902 (x86_linux_read_btrace): Likewise.
1903 (x86_linux_create_target): Likewise.
1904 (x86_linux_add_target): Likewise.
1905 * i386-linux-nat.c (x86-linux-nat.h): New include.
1906 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1907 (PTRACE_SETREGSET): Likewise.
1908 (arch_lwp_info): Now in x86-linux-nat.c.
1909 (have_ptrace_getregset): Now in x86-linux-nat.h.
1910 (x86_linux_dr_get): Now in x86-linux-nat.c.
1911 (x86_linux_dr_set): Likewise.
1912 (x86_linux_dr_get_addr): Likewise.
1913 (x86_linux_dr_get_control): Likewise.
1914 (x86_linux_dr_get_status): Likewise.
1915 (update_debug_registers_callback): Likewise.
1916 (x86_linux_dr_set_control): Likewise.
1917 (x86_linux_dr_set_addr): Likewise.
1918 (x86_linux_prepare_to_resume): Likewise.
1919 (x86_linux_new_thread): Likewise.
1920 (x86_linux_new_fork): Likewise.
1921 (x86_linux_get_thread_area): Likewise.
1922 (super_post_startup_inferior): Likewise.
1923 (x86_linux_child_post_startup_inferior): Likewise.
1924 (AMD64_LINUX_USER64_CS): Likewise.
1925 (AMD64_LINUX_X32_DS): Likewise.
1926 (x86_linux_read_description): Likewise.
1927 (x86_linux_enable_btrace): Likewise.
1928 (x86_linux_disable_btrace): Likewise.
1929 (x86_linux_teardown_btrace): Likewise.
1930 (x86_linux_read_btrace): Likewise.
1931 (x86_linux_create_target): Likewise.
1932 (x86_linux_add_target): Likewise.
1933
1aa7e42c
GB
19342014-07-11 Gary Benson <gbenson@redhat.com>
1935
1936 * amd64-linux-nat.c: Comment and whitespace changes.
1937 * i386-linux-nat.c: Comment and whitespace changes.
1938
c1e246a0
GB
19392014-07-11 Gary Benson <gbenson@redhat.com>
1940
1941 * amd64-linux-nat.c (x86_linux_create_target): New function.
1942 (x86_linux_add_target): Likewise.
1943 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1944 * i386-linux-nat.c (x86_linux_create_target): New function.
1945 (x86_linux_add_target): Likewise.
1946 (_initialize_i386_linux_nat): Delegate to the above new functions.
1947
8c420b8d
GB
19482014-07-11 Gary Benson <gbenson@redhat.com>
1949
1950 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1951 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1952 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1953 (ps_get_thread_area): Delegate to the above.
1954
cb1da100
GB
19552014-07-11 Gary Benson <gbenson@redhat.com>
1956
1957 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1958 x86_linux_read_description. All uses updated. amd64-specific
1959 code conditionalized. Conditionalized i386-specific code added.
1960 Redundant cast removed.
1961 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1962 x86_linux_read_description. All uses updated. i386-specific
1963 code conditionalized. Conditionalized amd64-specific code added.
1964 One sizeof replaced with the actual type it is describing.
1965
2acf3cd0
GB
19662014-07-11 Gary Benson <gbenson@redhat.com>
1967
1968 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1969 x86_linux_dr_get. All uses updated.
1970 (amd64_linux_dr_set): Renamed to
1971 x86_linux_dr_set. All uses updated.
1972 (amd64_linux_dr_get_addr): Renamed to
1973 x86_linux_dr_get_addr. All uses updated.
1974 (amd64_linux_dr_get_control): Renamed to
1975 x86_linux_dr_get_control. All uses updated.
1976 (amd64_linux_dr_get_status): Renamed to
1977 x86_linux_dr_get_status. All uses updated.
1978 (amd64_linux_dr_set_control): Renamed to
1979 x86_linux_dr_set_control. All uses updated.
1980 (amd64_linux_dr_set_addr): Renamed to
1981 x86_linux_dr_set_addr. All uses updated.
1982 (amd64_linux_prepare_to_resume): Renamed to
1983 x86_linux_prepare_to_resume. All uses updated.
1984 (amd64_linux_new_thread): Renamed to
1985 x86_linux_new_thread. All uses updated.
1986 (amd64_linux_new_fork): Renamed to
1987 x86_linux_new_fork. All uses updated.
1988 (amd64_linux_child_post_startup_inferior): Renamed to
1989 x86_linux_child_post_startup_inferior. All uses updated.
1990 (amd64_linux_enable_btrace): Renamed to
1991 x86_linux_enable_btrace. All uses updated.
1992 (amd64_linux_disable_btrace): Renamed to
1993 x86_linux_disable_btrace. All uses updated.
1994 (amd64_linux_teardown_btrace): Renamed to
1995 x86_linux_teardown_btrace. All uses updated.
1996 (amd64_linux_read_btrace): Renamed to
1997 x86_linux_read_btrace. All uses updated.
1998 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1999 x86_linux_dr_get. All uses updated.
2000 (i386_linux_dr_set): Renamed to
2001 x86_linux_dr_set. All uses updated.
2002 (i386_linux_dr_get_addr): Renamed to
2003 x86_linux_dr_get_addr. All uses updated.
2004 (i386_linux_dr_get_control): Renamed to
2005 x86_linux_dr_get_control. All uses updated.
2006 (i386_linux_dr_get_status): Renamed to
2007 x86_linux_dr_get_status. All uses updated.
2008 (i386_linux_dr_set_control): Renamed to
2009 x86_linux_dr_set_control. All uses updated.
2010 (i386_linux_dr_set_addr): Renamed to
2011 x86_linux_dr_set_addr. All uses updated.
2012 (i386_linux_prepare_to_resume): Renamed to
2013 x86_linux_prepare_to_resume. All uses updated.
2014 (i386_linux_new_thread): Renamed to
2015 x86_linux_new_thread. All uses updated.
2016 (i386_linux_new_fork): Renamed to
2017 x86_linux_new_fork. All uses updated.
2018 (i386_linux_child_post_startup_inferior): Renamed to
2019 x86_linux_child_post_startup_inferior. All uses updated.
2020 (i386_linux_enable_btrace): Renamed to
2021 x86_linux_enable_btrace. All uses updated.
2022 (i386_linux_disable_btrace): Renamed to
2023 x86_linux_disable_btrace. All uses updated.
2024 (i386_linux_teardown_btrace): Renamed to
2025 x86_linux_teardown_btrace. All uses updated.
2026 (i386_linux_read_btrace): Renamed to
2027 x86_linux_read_btrace. All uses updated.
2028
b9c1d481
AS
20292014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2030
2031 * remote.c (extended_remote_post_attach): New function.
2032 (init_extended_remote_ops): Install it as to_post_attach method.
2033
7180e04a
PA
20342014-07-09 Pedro Alves <palves@redhat.com>
2035
2036 * infcmd.c (attach_command_post_wait): Don't call
2037 target_terminal_inferior here.
2038 (attach_command): Call it here instead.
2039
9a9a7608
AB
20402014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2043 field.
2044 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2045 from varobj.c, with additional checks.
2046 (c_varobj_ops): Fill in is_path_expr_parent field.
2047 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2048 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2049 field.
2050 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2051 ops method.
2052 (varobj_default_is_path_expr_parent): New function.
2053 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2054 (varobj_default_is_path_expr_parent): Declare new function.
2055
1f267ae3
MM
20562014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2057
2058 * infcmd.c (finish_backward): Turn internal error into normal error.
2059
b2ee242b
PA
20602014-07-07 Pedro Alves <palves@redhat.com>
2061
8a869bca 2062 PR gdb/17096
b2ee242b
PA
2063 * remote.c (async_handle_remote_sigint)
2064 (async_handle_remote_sigint_twice): Call
2065 gdb_call_async_signal_handler instead of
2066 mark_async_signal_handler.
2067
38e229b2
TT
20682014-07-07 Tom Tromey <tromey@redhat.com>
2069
2070 * target-delegates.c: Rebuild.
2071 * target.c (target_info_record): Remove.
2072 * record.c (info_record_command): Unconditionally call
2073 to_info_record.
2074 * target.h (struct target_ops) <to_info_record>: Use
2075 TARGET_DEFAULT_IGNORE.
2076 (target_info_record): Remove.
2077
f0f9ff95
TT
20782014-07-07 Tom Tromey <tromey@redhat.com>
2079
2080 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2081 TARGET_DEFAULT_NORETURN.
2082 * target.c (generic_tls_error): New function.
2083 (target_translate_tls_address): Don't search target stack.
2084 * target-delegates.c: Rebuild.
2085 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2086 stack.
2087 * linux-thread-db.c (thread_db_get_thread_local_address):
2088 Unconditionally call beneath target.
2089
4a5be5ee
MK
20902014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2091
2092 * cli/cli-logging.c (pop_output_files): Assign targerr to
2093 gdb_stdtargerr.
2094
92c3b204
AB
20952014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * MAINTAINERS (Write After Approval): Update my email address.
2098
9b11e3a7
GB
20992014-07-02 Gary Benson <gbenson@redhat.com>
2100
2101 * proc-service.c (ps_xfer_memory): Update comment.
2102 (ps_pstop): Remove unused function.
2103 (ps_pcontinue): Likewise.
2104 (ps_lstop): Likewise.
2105 (ps_lcontinue): Likewise.
2106 (ps_lgetxregsize): Likewise.
2107 (ps_lgetxregs): Likewise.
2108 (ps_lsetxregs): Likewise.
2109 (ps_plog): Likewise.
2110 (ps_ptread): Likewise.
2111 (ps_ptwrite): Likewise.
2112
cf363f18
MW
21132014-07-01 Mark Wielaard <mjw@redhat.com>
2114
2115 * dwarf2read.c (add_array_cv_type): New function.
2116 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2117 (read_tag_volatile_type): Likewise.
2118
82ae6c8d
TT
21192014-07-01 Tom Tromey <tromey@redhat.com>
2120
2121 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2122 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2123 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2124 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2125 * command.h (cmd_cfunc_ftype): Move earlier.
2126 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2127 (add_com, add_info): Use cmd_cfunc_ftype.
2128
96142726
TT
21292014-06-30 Tom Tromey <tromey@redhat.com>
2130
2131 * symtab.c (operator_chars): Make parameters and return type
2132 const.
2133 (file_matches): Make "files" const.
2134 (struct search_symbols_data) <files>: Now const.
2135 (search_symbols): Make "regexp" and "files" parameters const.
2136 Update.
2137 (symtab_symbol_info): Remove cast.
2138 (rbreak_command): Update.
2139 * symtab.h (search_symbols): Update.
2140
b67a2c6f
YQ
21412014-06-27 Yao Qi <yao@codesourcery.com>
2142
2143 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2144 Change parameter type to 'struct thread_info *'. Caller
2145 updated.
2146 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2147 Update declaration.
2148 * dummy-frame.c (struct dummy_frame_id): New.
2149 (dummy_frame_id_eq): New function.
2150 (struct dummy_frame) <id>: Change its type to 'struct
2151 dummy_frame_id'.
2152 (dummy_frame_push): Add parameter ptid and save it in
2153 dummy_frame_id.
2154 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2155 inferior_ptid.
2156 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2157 to inferior_ptid.
2158 (lookup_dummy_frame): Change parameter type to 'struct
2159 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2160 instead of frame_id_eq.
2161 (dummy_frame_pop): Add parameter ptid. Callers updated.
2162 Update comments. Compose dummy_frame_id and pass it to
2163 lookup_dummy_frame.
2164 (dummy_frame_discard): Add parameter ptid.
2165 (dummy_frame_sniffer): Compose dummy_frame_id and call
2166 dummy_frame_id_eq instead of frame_id_eq.
2167 (fprint_dummy_frames): Print ptid.
2168 * dummy-frame.h: Remove comments.
2169 (dummy_frame_push): Add ptid in declaration.
2170 (dummy_frame_pop, dummy_frame_discard): Likewise.
2171
5b10184c
TT
21722014-06-26 Tom Tromey <tromey@redhat.com>
2173
2174 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2175 * command.h (error_no_arg): Update.
2176
06900326
TT
21772014-06-26 Tom Tromey <tromey@redhat.com>
2178
2179 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2180 (do_show_command): Make "arg" const.
2181 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2182
c2bcbb1d
TT
21832014-06-26 Tom Tromey <tromey@redhat.com>
2184
2185 * record-full.c (record_full_get_bookmark): Make "args" const.
2186 (record_full_goto_bookmark): Make "raw_bookmark" const.
2187 * record.c (record_goto): New function.
2188 (cmd_record_goto): Use it. Now static.
2189 * record.h (record_goto): Declare.
2190 (cmd_record_goto): Remove declaration.
2191 * target-delegates.c: Rebuild.
2192 * target.h (struct target_ops) <to_get_bookmark,
2193 to_goto_bookmark>: Make parameter const.
2194
9cbe5fff
TT
21952014-06-26 Tom Tromey <tromey@redhat.com>
2196
2197 * defs.h (generic_load): Update.
2198 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2199 * monitor.c (monitor_load): Make "args" const.
2200 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2201 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2202 const.
2203 (mips_load): Make "file" const.
2204 * remote-sim.c (gdbsim_load): Make "args" const.
2205 * remote.c (remote_load): Make "name" const.
2206 * symfile.c (generic_load): Make "args" const.
2207 * target-delegates.c: Rebuild.
2208 * target.c (target_load): Make "arg" const.
2209 (debug_to_load): Make "args" const.
2210 * target.h (struct target_ops) <to_load>: Make parameter const.
2211 (target_load): Update.
2212
34a68019
TT
22132014-06-26 Tom Tromey <tromey@redhat.com>
2214
2215 PR symtab/16902:
2216 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2217 (dwarf2_physname, read_partial_die)
2218 (guess_partial_die_structure_name, fixup_partial_die)
2219 (guess_full_die_structure_name, anonymous_struct_prefix)
2220 (dwarf2_name): Use per-BFD obstack.
2221
efc889c1
YQ
22222014-06-26 Yao Qi <yao@codesourcery.com>
2223
2224 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2225 dummyframe and this_id into inner block below.
2226
4395285e
YQ
22272014-06-26 Yao Qi <yao@codesourcery.com>
2228
2229 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2230 with "signal_pass[0]" in the initialization of signal_pass.
2231
aef92902
MM
22322014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2233
2234 * record-btrace.c (record_btrace_generating_corefile)
2235 (record_btrace_prepare_to_generate_core)
2236 (record_btrace_done_generating_core): New.
2237 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2238 (record_btrace_store_registers, record_btrace_prepare_to_store):
2239 Forward request when generating a core file.
2240 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2241 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2242 to_done_generating_core.
2243
5fff78c4
MM
22442014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2245
2246 * target.h (target_ops) <to_prepare_to_generate_core>
2247 <to_done_generating_core>: New.
2248 (target_prepare_to_generate_core, target_done_generating_core): New.
2249 * target.c (target_prepare_to_generate_core)
2250 (target_done_generating_core): New.
2251 * target-delegates.c: Regenerate.
2252 * gcore.c: (write_gcore_file): Rename to ...
2253 (write_gcore_file_1): ...this.
2254 (write_gcore_file): Call target_prepare_to_generate_core
2255 and target_done_generating_core.
2256
1d1f1ccb
MM
22572014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2258
2259 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2260 * gcore.c (write_gcore_file): Free memory returned from
2261 make_corefile_notes.
2262 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2263 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2264
3343ef86
YQ
22652014-06-24 Yao Qi <yao@codesourcery.com>
2266
2267 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2268 (arm_linux_init_abi): Set skip_trampoline_code with
2269 gdbarch_skip_trampoline_code instead of
2270 find_solib_trampoline_target.
2271
18d18ac8
YQ
22722014-06-24 Yao Qi <yao@codesourcery.com>
2273
2274 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2275 arm_skip_bx_reg returns non-zero.
2276
80d8d390
YQ
22772014-06-24 Yao Qi <yao@codesourcery.com>
2278
2279 * arm-tdep.c (arm_skip_bx_reg): New function.
2280 (arm_skip_stub): Call arm_skip_bx_reg.
2281
6a18a01c
DB
22822014-06-23 Don Breazeal <donb@codesourcery.com>
2283
2284 * MAINTAINERS: Add myself as write-after-approval maintainer.
2285
8e9db26e
PA
22862014-06-23 Pedro Alves <palves@redhat.com>
2287
2288 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2289 DR_CONTROL before setting DR0..DR3.
2290 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2291 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2292 bits of DR_CONTROL related to the debug register slot being
2293 disabled. If all slots are vacant, clear local slowdown as well,
2294 and assert DR_CONTROL is 0.
2295
70afc5b7
SC
22962014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2297
2298 * python/lib/gdb/command/xmethods.py
2299 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2300 current progspace only if the string "progspace" matches LOCUS_RE.
2301
840ed64d
JK
23022014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 Fix --with-system-readline with readline-6.3 patch 5.
2305 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2306 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2307 types.
2308
26f2dc30
TT
23092014-06-20 Tom Tromey <tromey@redhat.com>
2310
2311 * dwarf2read.c (dw2_get_real_path): Use correct type in
2312 OBSTACK_CALLOC.
2313 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2314
125f8a3d
GB
23152014-06-20 Gary Benson <gbenson@redhat.com>
2316
2317 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2318 * common/glibc_thread_db.h: Likewise.
2319 * common/i386-cpuid.h: Likewise.
2320 * common/i386-gcc-cpuid.h: Likewise.
2321 * common/linux-btrace.h: Likewise.
2322 * common/linux-osdata.h: Likewise.
2323 * common/linux-procfs.h: Likewise.
2324 * common/linux-ptrace.h: Likewise.
2325 * common/mips-linux-watch.h: Likewise.
2326 * common/linux-btrace.c: Moved to nat.
2327 * common/linux-osdata.c: Likewise.
2328 * common/linux-procfs.c: Likewise.
2329 * common/linux-ptrace.c: Likewise.
2330 * common/mips-linux-watch.c: Likewise.
2331 * nat/gdb_thread_db.h: Moved from common.
2332 * nat/glibc_thread_db.h: Likewise.
2333 * nat/i386-cpuid.h: Likewise.
2334 * nat/i386-gcc-cpuid.h: Likewise.
2335 * nat/linux-btrace.c: Likewise.
2336 * nat/linux-btrace.h: Likewise.
2337 * nat/linux-osdata.c: Likewise.
2338 * nat/linux-osdata.h: Likewise.
2339 * nat/linux-procfs.c: Likewise.
2340 * nat/linux-procfs.h: Likewise.
2341 * nat/linux-ptrace.c: Likewise.
2342 * nat/linux-ptrace.h: Likewise.
2343 * nat/mips-linux-watch.c: Likewise.
2344 * nat/mips-linux-watch.h: Likewise.
2345 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2346 (object file files): Reordered.
2347 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2348 of glibc_thread_db.h.
2349
42995dbd
GB
23502014-06-20 Gary Benson <gbenson@redhat.com>
2351
2352 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2353 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2354 (i386_dr_low): Likewise.
2355 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2356 (i386_dr_low_set_addr): Likewise.
2357 (i386_dr_low_get_addr): Likewise.
2358 (i386_dr_low_can_set_control): Likewise.
2359 (i386_dr_low_set_control): Likewise.
2360 (i386_dr_low_get_control): Likewise.
2361 (i386_dr_low_get_status): Likewise.
2362 (i386_get_debug_register_length): Likewise.
2363 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2364 (i386_dr_low): Likewise.
2365 * nat/i386-dregs.c (i386-low.h): Remove include.
2366 (i386-nat.h): Likewise.
2367 (nat/i386-dregs.h): New include.
2368 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2369 (i386_dr_low_set_addr): Likewise.
2370 (i386_dr_low_get_addr): Likewise.
2371 (i386_dr_low_can_set_control): Likewise.
2372 (i386_dr_low_set_control): Likewise.
2373 (i386_dr_low_get_control): Likewise.
2374 (i386_dr_low_get_status): Likewise.
2375 (i386_get_debug_register_length): Likewise.
2376 (debug_hw_points): Likewise.
2377
3ed9baed
IB
23782014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2379
2380 * Makefile.in (SFILES): Add d-exp.y.
2381 (YYFILES): Add d-exp.c.
2382 (YYOBJ): Add d-exp.o.
2383 (local-maintainer-clean): Delete d-exp.c.
2384 * d-exp.y: New file.
2385 * d-lang.h (d_parse): New declaration.
2386 (d_error): New declaration.
2387 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2388 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2389 PREC_ORDER operators.
2390 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2391
78c164b0
YQ
23922014-06-19 Yao Qi <yao@codesourcery.com>
2393
2394 * gdbthread.h (any_running): Remove the declaration.
2395 * thread.c (any_running): Remove.
2396
f6e29b6e
YQ
23972014-06-19 Yao Qi <yao@codesourcery.com>
2398
2399 * gdbthread.h (struct thread_info) <state>: Change its type to
2400 'enum thread_state'. Update comments.
2401
034f788c
PA
24022014-06-19 Pedro Alves <palves@redhat.com>
2403
2404 * gdbthread.h (ALL_THREADS): Delete.
2405 (ALL_NON_EXITED_THREADS): New macro.
2406 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2407 instead of ALL_THREADS.
2408 * infrun.c (find_thread_needs_step_over)
2409 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2410 instead of ALL_THREADS.
2411 * record-btrace.c (record_btrace_open)
2412 (record_btrace_stop_recording, record_btrace_close)
2413 (record_btrace_is_replaying, record_btrace_resume)
2414 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2415 * remote.c (append_pending_thread_resumptions): Likewise.
2416 * thread.c (thread_apply_all_command): Likewise.
2417
46e33252
GB
24182014-06-19 Gary Benson <gbenson@redhat.com>
2419
2420 * i386-nat.c (i386_stopped_by_watchpoint):
2421 Use i386_dr_stopped_by_watchpoint.
2422 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2423 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2424
3a8ee006
GB
24252014-06-19 Gary Benson <gbenson@redhat.com>
2426
2427 * nat/i386-dregs.c: New file.
2428 * Makefile.in (i386-dregs.o): New rule.
2429 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2430 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2431 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2432 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2433 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2434 * config/i386/go32.mh (NATDEPFILES): Likewise.
2435 * config/i386/linux.mh (NATDEPFILES): Likewise.
2436 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2437 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2438 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2439 * i386-nat.h (debug_hw_points): New declaration.
2440 * i386-nat.c (breakpoint.h): Remove include.
2441 (command.h): Likewise.
2442 (target.h): Likewise.
2443 (gdb_assert.h): Likewise.
2444 (debug_hw_points): Made nonstatic.
2445 (debug_printf): Now in i386-dregs.c.
2446 (TARGET_HAS_DR_LEN_8): Likewise.
2447 (DR_CONTROL_SHIFT): Likewise.
2448 (DR_CONTROL_SIZE): Likewise.
2449 (DR_RW_EXECUTE): Likewise.
2450 (DR_RW_WRITE): Likewise.
2451 (DR_RW_READ): Likewise.
2452 (DR_RW_IORW): Likewise.
2453 (DR_LEN_1): Likewise.
2454 (DR_LEN_2): Likewise.
2455 (DR_LEN_4): Likewise.
2456 (DR_LEN_8): Likewise.
2457 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2458 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2459 (DR_ENABLE_SIZE): Likewise.
2460 (DR_LOCAL_SLOWDOWN): Likewise.
2461 (DR_GLOBAL_SLOWDOWN): Likewise.
2462 (DR_CONTROL_RESERVED): Likewise.
2463 (I386_DR_CONTROL_MASK): Likewise.
2464 (I386_DR_VACANT): Likewise.
2465 (I386_DR_LOCAL_ENABLE): Likewise.
2466 (I386_DR_GLOBAL_ENABLE): Likewise.
2467 (I386_DR_DISABLE): Likewise.
2468 (I386_DR_SET_RW_LEN): Likewise.
2469 (I386_DR_GET_RW_LEN): Likewise.
2470 (I386_DR_WATCH_HIT): Likewise.
2471 (i386_wp_op_t): Likewise.
2472 (i386_show_dr): Likewise.
2473 (i386_length_and_rw_bits): Likewise.
2474 (i386_insert_aligned_watchpoint): Likewise.
2475 (i386_remove_aligned_watchpoint): Likewise.
2476 (i386_handle_nonaligned_watchpoint): Likewise.
2477 (i386_update_inferior_debug_regs): Likewise.
2478 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2479 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2480 (i386_region_ok_for_watchpoint):
2481 Use i386_dr_region_ok_for_watchpoint.
2482 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2483
322a8e06
GB
24842014-06-19 Gary Benson <gbenson@redhat.com>
2485
2486 * i386-nat.c (i386_insert_hw_breakpoint): Use
2487 i386_insert_watchpoint.
2488 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2489
8f26655c
GB
24902014-06-19 Gary Benson <gbenson@redhat.com>
2491
2492 * i386-nat.c (i386_dr_show): Renamed to
2493 i386_show_dr and made static. All uses updated.
2494 (i386_dr_length_and_rw_bits): Renamed to
2495 i386_length_and_rw_bits and made static.
2496 All uses updated.
2497 (i386_dr_insert_aligned_watchpoint): Renamed to
2498 i386_insert_aligned_watchpoint and made static.
2499 All uses updated.
2500 (i386_dr_remove_aligned_watchpoint): Renamed to
2501 i386_remove_aligned_watchpoint and made static.
2502 All uses updated.
2503 (i386_dr_update_inferior_debug_regs): Renamed to
2504 i386_update_inferior_debug_regs and made static.
2505 All uses updated.
2506 * nat/i386-dregs.h (i386_dr_show): Removed.
2507 (i386_dr_length_and_rw_bits): Likewise.
2508 (i386_dr_insert_aligned_watchpoint): Likewise.
2509 (i386_dr_remove_aligned_watchpoint): Likewise.
2510 (i386_dr_update_inferior_debug_regs): Likewise.
2511
992c7d70
GB
25122014-06-19 Gary Benson <gbenson@redhat.com>
2513
2514 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2515 * configure: Regenerate.
2516 * config.in: Likewise.
2517 * main.c (signal.h): New include.
2518 (setup_alternate_signal_stack): New function.
2519 (captured_main): Call the above.
2520 * cp-support.c (signal.h): New include.
2521 (catch_demangler_crashes): New flag.
2522 (SIGJMP_BUF): New define.
2523 (SIGSETJMP): Likewise.
2524 (SIGLONGJMP): Likewise.
2525 (gdb_demangle_jmp_buf): New static global.
2526 (gdb_demangle_attempt_core_dump): Likewise.
2527 (gdb_demangle_signal_handler): New function.
2528 (gdb_demangle): If catch_demangler_crashes is set, install the
2529 above signal handler before calling bfd_demangle, and restore
2530 the original signal handler afterwards. Display the offending
2531 symbol and call demangler_warning the first time a segmentation
2532 fault is caught.
2533 (_initialize_cp_support): New maint set/show command.
2534
eae7090b
GB
25352014-06-19 Gary Benson <gbenson@redhat.com>
2536
2537 * utils.h (resource_limit_kind): New enum.
2538 (can_dump_core): New declaration.
2539 (warn_cant_dump_core): Likewise.
2540 (dump_core): Likewise.
2541 * utils.c (dump_core): Made nonstatic. Added new
2542 parameter "limit_kind".
2543 (can_dump_core): Made nonstatic. Moved printing code to...
2544 (warn_cant_dump_core): New function.
2545 (can_dump_core_warn): Likewise.
2546 (internal_vproblem): Replace calls to can_dump_core with
2547 calls to can_dump_core_warn. Supply new argument to each.
2548
57fcfb1b
GB
25492014-06-19 Gary Benson <gbenson@redhat.com>
2550
2551 * utils.h (demangler_vwarning): New declaration.
2552 (demangler_warning): Likewise.
2553 * utils.c (struct internal_problem)
2554 <user_settable_should_quit>: New field.
2555 <user_settable_should_dump_core>: Likewise
2556 (internal_error_problem): Add values for above new fields.
2557 (internal_warning_problem): Likewise.
2558 (demangler_warning_problem): New static global.
2559 (demangler_vwarning): New function.
2560 (demangler_warning): Likewise.
2561 (add_internal_problem_command): Selectively add commands.
2562 (_initialize_utils): New internal problem command.
2563 * maint.c (maintenance_demangler_warning): New function.
2564 (_initialize_maint_cmds): New command.
2565
17a40b44
TT
25662014-06-18 Tom Tromey <tromey@redhat.com>
2567
2568 * f-valprint.c (info_common_command_for_block): Update.
2569 * symtab.h (struct general_symbol_info) <common_block>: Now
2570 const.
2571
346d1dfe
TT
25722014-06-18 Tom Tromey <tromey@redhat.com>
2573
2574 * symtab.h (struct symtab) <blockvector>: Now const.
2575 * ada-lang.c (ada_add_global_exceptions): Update.
2576 * buildsym.c (augment_type_symtab): Update.
2577 * dwarf2read.c (dw2_lookup_symbol): Update.
2578 * jit.c (finalize_symtab): Update.
2579 * jv-lang.c (add_class_symtab_symbol): Update.
2580 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2581 Update.
2582 * objfiles.c (objfile_relocate1): Update.
2583 * psymtab.c (lookup_symbol_aux_psymtabs)
2584 (maintenance_check_psymtabs): Update.
2585 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2586 Update.
2587 * spu-tdep.c (spu_catch_start): Update.
2588 * symmisc.c (dump_symtab_1): Update.
2589 * symtab.c (lookup_global_symbol_from_objfile)
2590 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2591 (basic_lookup_transparent_type_quick)
2592 (basic_lookup_transparent_type, find_pc_sect_symtab)
2593 (find_pc_sect_line, search_symbols): Update.
2594 * block.c (find_block_in_blockvector): Make "bl" const.
2595 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2596 const.
2597 (blockvector_contains_pc): Make "bv" const.
2598 (block_for_pc_sect): Update.
2599 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2600 (blockvector_contains_pc): Update.
2601 * breakpoint.c (resolve_sal_pc): Update.
2602 * inline-frame.c (block_starting_point_at): Update.
2603
1834676b
TT
26042014-06-18 Tom Tromey <tromey@redhat.com>
2605
2606 * completer.c (complete_line): Make "line_buffer" const.
2607 * completer.h (complete_line): Update.
2608
ac1a991b
TT
26092014-06-18 Tom Tromey <tromey@redhat.com>
2610
2611 * symtab.c (add_macro_name): Remove unneeded cast.
2612
5bc98e52
TT
26132014-06-18 Tom Tromey <tromey@redhat.com>
2614
2615 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2616 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2617
8236def8
TT
26182014-06-18 Tom Tromey <tromey@redhat.com>
2619
2620 * probe.c (info_probes_for_ops): Make "arg" const.
2621 * probe.h (info_probes_for_ops): Update.
2622
3977b71f
TT
26232014-06-18 Tom Tromey <tromey@redhat.com>
2624
2625 * varobj.c (varobj_create): Update.
2626 * valops.c (value_of_this): Update.
2627 * tracepoint.c (add_local_symbols, scope_info): Update.
2628 * symtab.h (struct general_symbol_info) <block>: Now const.
2629 * symtab.c (skip_prologue_sal)
2630 (default_make_symbol_completion_list_break_on)
2631 (skip_prologue_using_sal): Update.
2632 * stack.h (iterate_over_block_locals)
2633 (iterate_over_block_local_vars): Update.
2634 * stack.c (print_frame_args): Update.
2635 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2636 parameter const.
2637 (get_selected_block): Make return type const.
2638 * python/py-frame.c (frapy_block): Update.
2639 * python/py-block.c (gdbpy_block_for_pc): Update.
2640 * p-exp.y (%union) <bval>: Now const.
2641 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2642 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2643 * m2-exp.y (%union) <bval>: Now const.
2644 * linespec.c (get_current_search_block): Make return type const.
2645 (create_sals_line_offset, find_label_symbols): Update.
2646 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2647 Update.
2648 (block_starting_point_at): Make "block" const.
2649 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2650 (check_exception_resume): Update.
2651 * guile/scm-frame.c (gdbscm_frame_block): Update.
2652 * guile/scm-block.c (gdbscm_lookup_block): Update.
2653 * frame.h (get_frame_block): Update.
2654 (get_selected_block): Make return type const.
2655 * frame.c (frame_id_inner): Update.
2656 * f-valprint.c (info_common_command_for_block)
2657 (info_common_command): Update.
2658 * dwarf2loc.c (dwarf2_find_location_expression)
2659 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2660 (locexpr_describe_location_piece): Update.
2661 * c-exp.y (%union) <bval>: Now const.
2662 * breakpoint.c (resolve_sal_pc): Update.
2663 * blockframe.c (get_frame_block):Make return type const.
2664 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2665 (block_innermost_frame): Update.
2666 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2667 (block_for_pc, block_for_pc_sect): Update.
2668 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2669 'pblock' const.
2670 (block_for_pc_sect, block_for_pc): Make return type const.
2671 * ax-gdb.c (gen_expr): Update.
2672 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2673 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2674 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2675 (ada_read_var_value): Update.
2676 * ada-exp.y (struct name_info) <block>: Now const.
2677 (%union): Likewise.
2678 (block_lookup): Constify.
2679
b9228891
GB
26802014-06-18 Gary Benson <gbenson@redhat.com>
2681
2682 * nat/i386-dregs.h: New file.
2683 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2684 * i386-nat.h (i386-dregs.h): New include.
2685 (DR_FIRSTADDR): Now in i386-dregs.h.
2686 (DR_LASTADDR): Likewise.
2687 (DR_NADDR): Likewise.
2688 (DR_STATUS): Likewise.
2689 (DR_CONTROL): Likewise.
2690 (i386_debug_reg_state): Likewise.
2691 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2692
a1aa2221
LM
26932014-06-18 Don Breazeal <donb@codesourcery.com>
2694
2695 * breakpoint.c (set_longjmp_breakpoint): Call
2696 momentary_breakpoint_from_master with additional argument.
2697 (set_longjmp_breakpoint_for_call_dummy): Call
2698 momentary_breakpoint_from_master with additional argument.
2699 (set_std_terminate_breakpoint): Call
2700 momentary_breakpoint_from_master with additional argument.
2701 (momentary_breakpoint_from_master): Add argument to function
2702 definition and use it to initialize structure member flag.
74228e77 2703 (clone_momentary_breakpoint): Call
a1aa2221
LM
2704 momentary_breakpoint_from_master with additional argument.
2705 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2706 member flags set in momentary_breakpoint_from_master.
2707
4be83cc2
GB
27082014-06-18 Gary Benson <gbenson@redhat.com>
2709
2710 * i386-nat.c (i386_show_dr): Renamed to
2711 i386_dr_show and made nonstatic. All uses updated.
2712 (i386_length_and_rw_bits): Renamed to
2713 i386_dr_length_and_rw_bits and made nonstatic.
2714 All uses updated.
2715 (i386_insert_aligned_watchpoint): Renamed to
2716 i386_dr_insert_aligned_watchpoint and made nonstatic.
2717 All uses updated.
2718 (i386_remove_aligned_watchpoint): Renamed to
2719 i386_dr_remove_aligned_watchpoint and made nonstatic.
2720 All uses updated.
2721 (i386_update_inferior_debug_regs): Renamed to
2722 i386_dr_update_inferior_debug_regs and made nonstatic.
2723 All uses updated.
2724
131aa0d4
GB
27252014-06-18 Gary Benson <gbenson@redhat.com>
2726
2727 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2728 (i386_dr_low_can_set_control): Likewise.
2729 (i386_dr_low_set_addr): Likewise.
2730 (i386_dr_low_set_control): Likewise.
2731 (i386_dr_low_get_addr): Likewise.
2732 (i386_dr_low_get_status): Likewise.
2733 (i386_dr_low_get_control): Likewise.
2734 (i386_insert_aligned_watchpoint): Use new macros.
2735 (i386_update_inferior_debug_regs): Likewise.
2736 (i386_stopped_data_address): Likewise.
2737
d9305f7f
GB
27382014-06-18 Gary Benson <gbenson@redhat.com>
2739
2740 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2741 New parameter. All uses updated.
2742
ea008da4
GB
27432014-06-18 Gary Benson <gbenson@redhat.com>
2744
2745 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2746 All uses updated.
2747
1b6d4134
GB
27482014-06-18 Gary Benson <gbenson@redhat.com>
2749
2750 * i386-nat.c (debug_printf): New macro.
2751 (i386_get_debug_register_length): Likewise.
2752 (TARGET_HAS_DR_LEN_8): Use above macro.
2753 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2754 and printf_unfiltered. Use phex to format values.
2755
9b4550ef
GB
27562014-06-18 Gary Benson <gbenson@redhat.com>
2757
2758 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2759 Make const.
2760
6e62758f
GB
27612014-06-18 Gary Benson <gbenson@redhat.com>
2762
2763 * i386-nat.c: Comment changes.
2764
51c79e94
GB
27652014-06-18 Gary Benson <gbenson@redhat.com>
2766
2767 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2768
3e11889a
GB
27692014-06-18 Gary Benson <gbenson@redhat.com>
2770
2771 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2772 (i386_insert_aligned_watchpoint): Likewise.
2773 (i386_remove_aligned_watchpoint): Likewise.
2774 (i386_handle_nonaligned_watchpoint): Likewise.
2775
fc6e2f03
GB
27762014-06-18 Gary Benson <gbenson@redhat.com>
2777
2778 * i386-nat.c: Whitespace changes.
2779
2afe7d50
SB
27802014-06-17 Samuel Bronson <naesten@gmail.com>
2781
2782 * MAINTAINERS: Update Roland McGrath's email address.
2783 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2784 Red Hat a while ago, and giving me a current address.
2afe7d50 2785
3bca49ee
TT
27862014-06-17 Tom Tromey <tromey@redhat.com>
2787
2788 * utils.h (savestring): Remove declaration.
2789
6e366df1
TT
27902014-06-17 Tom Tromey <tromey@redhat.com>
2791
2792 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2793
6be47f0c
KS
27942014-06-16 Keith Seitz <keiths@redhat.com>
2795
2796 PR mi/15863
2797 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2798 to update the varobj if inferior_ptid is null_ptid.
2799
7bc112c1
TT
28002014-06-16 Tom Tromey <tromey@redhat.com>
2801
2802 * target.h (struct target_ops) <to_info_proc>: Make parameter
2803 const.
2804 (target_info_proc): Update.
2805 * target.c (target_info_proc): Make "args" const.
2806 * procfs.c (procfs_info_proc): Update.
2807 * linux-tdep.c (linux_info_proc): Update.
2808 (linux_core_info_proc_mappings): Make "args" const.
2809 (linux_core_info_proc): Update.
2810 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2811 * gdbarch.c: Rebuild.
2812 * gdbarch.h: Rebuild.
2813 * corelow.c (core_info_proc): Update.
2814
fee354ee
TT
28152014-06-16 Tom Tromey <tromey@redhat.com>
2816
2817 * target.h (struct target_ops) <to_disconnect>: Make parameter
2818 const.
2819 (target_disconnect): Update.
2820 * target.c (target_disconnect): Make "args" const.
2821 * target-delegates.c: Rebuild.
2822 * remote.c (remote_disconnect): Update.
2823 * record.h (record_disconnect): Update.
2824 * record.c (record_disconnect): Update.
2825 * inf-child.c (inf_child_disconnect): Update.
2826
a30bf1f1
TT
28272014-06-16 Tom Tromey <tromey@redhat.com>
2828
2829 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2830 * target.c (debug_to_rcmd, default_rcmd): Update.
2831 * target-delegates.c: Rebuild.
2832 * remote.c (remote_rcmd): Update.
2833 * monitor.c (monitor_rcmd): Update.
2834
d03de421
PA
28352014-06-16 Pedro Alves <palves@redhat.com>
2836
2837 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2838 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2839 have OBJF_SHARED set.
2840 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2841 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2842 instead of OBJF_USERLOADED.
2843 * objfiles.h (OBJF_SHARED): Update comment.
2844 (userloaded_objfile_contains_address_p): Rename to ...
2845 (shared_objfile_contains_address_p): ... this, and update
2846 comments.
2847 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2848 new objfile.
2849 (remove_symbol_file_command): Skip objfiles that don't have
2850 OBJF_SHARED set.
2851
99f4262f
TT
28522014-06-16 Tom Tromey <tromey@redhat.com>
2853
2854 * minsyms.h (prim_record_minimal_symbol)
2855 (prim_record_minimal_symbol_and_info): Update comments.
2856
97d66cc6
EZ
28572014-06-14 Eli Zaretskii <eliz@gnu.org>
2858
2859 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2860 or --without-guile, according to how GDB was built.
2861
635c7e8a
TT
28622014-06-13 Tom Tromey <tromey@redhat.com>
2863
2864 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2865 to help_list.
2866 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2867 to help_list.
2868 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2869 help_list.
2870 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2871 help_list.Pass all_commands, not -1, to help_list.
2872 * cli/cli-dump.c (dump_command, append_command)
2873 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2874 (binary_dump_command, binary_append_command): Pass all_commands,
2875 not -1, to help_list.
2876 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2877 -1, to help_list.
2878 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2879 -1, to help_list.
2880 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2881 help_list.
2882 * top.c (set_history): Pass all_commands, not -1, to help_list.
2883 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2884 all_commands, not -1, to help_list.
2885 * symfile.c (overlay_command): Pass all_commands, not -1, to
2886 help_list.
2887 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2888 help_list.
2889 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2890 help_list.
2891 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2892 -1, to help_list.
2893 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2894 not -1, to help_list.
2895 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2896 not -1, to help_list.
2897 * maint.c (maintenance_command, maintenance_info_command)
2898 (maintenance_print_command, maintenance_set_cmd): Pass
2899 all_commands, not -1, to help_list.
2900 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2901 help_list.
2902 * language.c (set_check): Pass all_commands, not -1, to help_list.
2903 * infcmd.c (unset_command): Pass all_commands, not -1, to
2904 help_list.
2905 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2906 help_list.
2907 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2908 help_list.
2909 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2910 help_list.
2911 * breakpoint.c (save_command): Pass all_commands, not -1, to
2912 help_list.
2913 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2914 all_commands, not -1, to help_list.
2915
b94ade42
PL
29162014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2917
2918 * regcache.c (struct register_to_invalidate): New structure.
2919 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2920 functions.
2921 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2922
31f628ae
YQ
29232014-06-12 Yao Qi <yao@codesourcery.com>
2924
2925 * varobj.c (varobj_get_num_children): Call
2926 varobj_is_dynamic_p.
2927 (varobj_list_children): Likewise.
2928 (varobj_update): Likewise. Update comments.
2929
cde5ef40
YQ
29302014-06-12 Yao Qi <yao@codesourcery.com>
2931
2932 * varobj.c (varobj_pretty_printed_p): Rename to ...
2933 (varobj_is_dynamic_p): ... this. New function.
2934 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2935 (varobj_is_dynamic_p): Declare.
2936 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2937 (mi_print_value_p, varobj_update_one): Likewise.
2938
576ea091
YQ
29392014-06-12 Pedro Alves <pedro@codesourcery.com>
2940 Yao Qi <yao@codesourcery.com>
2941
2942 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2943 (varobj_get_iterator): Wrap up code for pretty-printer by
2944 "#if HAVE_PYTHON" and "#endif".
2945 (update_dynamic_varobj_children): Likewise.
2946
827f100c
YQ
29472014-06-12 Pedro Alves <pedro@codesourcery.com>
2948 Yao Qi <yao@codesourcery.com>
2949
2950 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2951 gdb_python_initialized is false. Move some code from varobj.c.
2952 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2953 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2954 (struct varobj_item): Moved to varobj-iter.h".
2955 (varobj_clear_saved_item): New function.
2956 (update_dynamic_varobj_children): Move python-related code to
2957 py-varobj.c.
2958 (free_variable): Call varobj_clear_saved_item and
2959 varobj_iter_delete.
2960
e5250216
YQ
29612014-06-12 Pedro Alves <pedro@codesourcery.com>
2962 Yao Qi <yao@codesourcery.com>
2963
2964 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2965 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2966 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2967 (py-varobj.o): New rule.
2968 * python/py-varobj.c: New file.
2969 * python/python-internal.h (py_varobj_get_iterator): Declare.
2970 * varobj-iter.h: New file.
2971 * varobj.c: Include "varobj-iter.h"
2972 (struct varobj) <child_iter>: Change its type from "PyObject *"
2973 to "struct varobj_iter *".
2974 <saved_item>: Likewise.
2975 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2976 [HAVE_PYTHON] (varobj_get_iterator): New function.
2977 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2978 python-specific code to python/py-varobj.c.
2979 (install_visualizer): Call varobj_iter_delete instead of
2980 Py_XDECREF.
2981 * varobj.h (varobj_ensure_python_env): Declare.
2982
5a2e0d6e
YQ
29832014-06-12 Yao Qi <yao@codesourcery.com>
2984
2985 * varobj.c (struct varobj_item): New structure.
2986 (create_child_with_value): Update declaration.
2987 (varobj_add_child): Replace arguments 'name' and 'value' with
2988 'item'. All callers updated.
2989 (install_dynamic_child): Likewise.
2990 (update_dynamic_varobj_children): Likewise.
2991 (varobj_add_child): Likewise.
2992 (create_child_with_value): Likewise.
2993
919b9a93
JB
29942014-06-11 Joel Brobecker <brobecker@adacore.com>
2995
2996 * NEWS: Create a new section for the next release branch.
2997 Rename the section of the current branch, now that it has
2998 been cut.
2999
71a55bdf
JB
30002014-06-11 Joel Brobecker <brobecker@adacore.com>
3001
3002 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3003 * version.in: Bump version to 7.8.50.DATE-cvs.
3004
364fe1f7
PA
30052014-06-11 Pedro Alves <palves@redhat.com>
3006
3007 PR remote/17028
3008 * ser-mingw.c (net_windows_socket_check_pending): New function.
3009 (net_windows_select_thread): Ignore spurious wakeups. Use
3010 net_windows_socket_check_pending.
3011 (net_windows_wait_handle): Check for pending events with
3012 ioctlsocket, through net_windows_socket_check_pending, instead of
3013 checking the socket's event.
3014
5a6c7709
SC
30152014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3016
3017 * python/python-internal.h (gdb_PyObject_GetAttrString)
3018 (gdb_PyObject_HasAttrString): New inline function definitions.
3019 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3020 char * of the second argument to PyObject_GetAttrString.
74228e77 3021
0e58ee40
JB
30222014-06-10 Joel Brobecker <brobecker@adacore.com>
3023
3024 * serial.c (serial_write): Fix index of character to be printed
3025 in call to serial_logchar when serial debug traces are enabled.
3026
d190df30
JB
30272014-06-10 Joel Brobecker <brobecker@adacore.com>
3028
3029 * gdbtypes (resolve_dynamic_range): Add function description.
3030
b4b01d36
PA
30312014-06-09 Pedro Alves <palves@redhat.com>
3032
3033 * linux-nat.c (linux_child_follow_fork): Initialize status with
3034 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3035 inner block. Only pass the signal to PTRACE_DETACH if in pass
3036 state.
3037
3657956b
GB
30382014-06-09 Gary Benson <gbenson@redhat.com>
3039
3040 * common/signals.c (gdb_signal_from_host): Reorder to separate
3041 the always-available ANSI-standard signals from the signals that
3042 require checking.
3043 (do_gdb_signal_to_host): Likewise.
3044 * proc-events.c (signal_table): Likewise.
3045
c077881a
HZ
30462014-06-08 Hui Zhu <hui@codesourcery.com>
3047
3048 * common/linux-ptrace.c (linux_disable_event_reporting): New
3049 function.
3050 * common/linux-ptrace.h (linux_disable_event_reporting): New
3051 declaration.
3052 * linux-nat.c (linux_child_follow_fork): Do a single step before
3053 detach.
3054
4186eb54
KS
30552014-06-07 Keith Seitz <keiths@redhat.com>
3056
3057 Revert:
3058 PR c++/16253
3059 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3060 from symbol_matches_domain in symtab.c. All local callers
3061 of symbol_matches_domain updated.
3062 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3063 search STRUCT_DOMAIN.
3064 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3065 independently. standard_lookup will do that automatically.
3066 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3067 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3068 (cp_lookup_symbol_in_namespace): Likewise.
3069 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3070 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3071 may return a STRUCT_DOMAIN match.
3072 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3073 * cp-support.c: Include language.h.
3074 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3075 VAR_DOMAIN.
3076 * psymtab.c (match_partial_symbol): Compare the requested
3077 domain with the symbol's domain directly.
3078 (lookup_partial_symbol): Likewise.
3079 * symtab.c (lookup_symbol_in_language): Explain when/why
3080 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3081 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3082 appropriate languages.
3083 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3084 and moved to ada-lang.c
3085 (lookup_block_symbol): Explain that this function only returns
3086 symbol matching the requested DOMAIN.
3087 Compare the requested domain with the symbol's domain directly.
3088 (iterate_over_symbols): Compare the requested domain with the
3089 symbol's domain directly.
3090 * symtab.h (symbol_matches_domain): Remove.
3091
25326a28 30922014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3093
3094 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3095 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3096 (gdbscm_guile_version_is_at_least): Declare.
3097 (gdbscm_scm_string_to_int): Declare.
3098 * guile/guile.c (gdbscm_guile_major_version): New global.
3099 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3100 (guile_datadir): New static global.
3101 (gdbscm_guile_data_directory): New function.
3102 (initialize_scheme_side): Update.
3103 (misc_guile_functions): Add guile-data-directory.
3104 (initialize_gdb_module): Fetch guile version number.
3105 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3106 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3107 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3108 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3109 comments.
3110 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3111 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3112 * guile/scm-value.c (gdbscm_value_to_string): Only call
3113 scm_port_conversion_strategy if Guile version >= 2.0.6.
3114
0a770bb2 31152014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3116
3117 * main.c (print_gdb_help): Add -q and --silent.
3118
73ba372c
GB
31192014-06-06 Gary Benson <gbenson@redhat.com>
3120
3121 * common/signals.c: Remove preprocessor conditionals for
3122 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3123 SIGSEGV and SIGTERM.
3124 * proc-events.c: Likewise.
3125
c33b2f12
MM
31262014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3127
3128 * symfile.c (symfile_free_objfile): Remove restriction to
3129 OBJF_USERLOADED.
3130 * symfile-mem.c (symbol_file_add_from_memory): Call
3131 add_target_sections_of_objfile.
3132
fb934770
LC
31332014-06-05 Ludovic Courtès <ludo@gnu.org>
3134
3135 * guile/scm-value.c (gdbscm_history_append_x): Use
3136 'vlscm_get_value_smob_arg_unsafe' instead of
3137 'vlscm_scm_to_value'.
3138
6ef284bd
SM
31392014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3140
3141 PR mi/15806
3142 * utils.c (printchar): Don't escape at all if quoter is NUL.
3143 Update function documentation to clarify effect of parameter
3144 QUOTER.
3145 * remote.c (escape_buffer): Pass '\\' as the quoter to
3146 fputstrn_unfiltered.
3147 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3148 generate the output.
3149 (mi_solib_unloaded): Same.
3150
270c9937
JB
31512014-06-05 Joel Brobecker <brobecker@adacore.com>
3152
3153 * development.sh: Delete.
3154 * Makefile.in (config.status): Adjust dependency on development.sh.
3155 * configure.ac: Adjust development.sh source call.
3156 * configure: Regenerate.
3157
16f691fb
DE
31582014-06-04 Doug Evans <xdje42@gmail.com>
3159
3160 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3161 is_scheme_bkpt, spec.
3162 (bpscm_make_breakpoint_smob): Initialize new members.
3163 (gdbscm_create_breakpoint_x): Split into two ...
3164 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3165 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3166 (scheme_function breakpoint_functions): Update.
3167 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3168 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3169 register-breakpoint!.
3170
ef7cab6b
JB
31712014-06-04 Joel Brobecker <brobecker@adacorer.com>
3172
3173 PR server/17023
3174 * mem-break.c (z_type_supported): Return zero if
3175 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3176
012370f6
TT
31772014-06-04 Tom Tromey <tromey@redhat.com>
3178
3179 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3180 value_from_contents_and_address_unresolved.
3181 (ada_template_to_fixed_record_type_1): Likewise.
3182 (ada_which_variant_applies): Likewise.
3183 * value.h (value_from_contents_and_address_unresolved): Declare.
3184 * value.c (value_from_contents_and_address_unresolved): New
3185 function.
3186 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3187 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3188 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3189
92e2a17f
TT
31902014-06-04 Tom Tromey <tromey@redhat.com>
3191
3192 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3193
c0939df1
TT
31942014-06-04 Tom Tromey <tromey@redhat.com>
3195
3196 * procfs.c (procfs_attach): Make "args" const.
3197 * windows-nat.c (windows_attach): Make "args" const.
3198 * nto-procfs.c (procfs_attach): Make "args" const.
3199 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3200 * go32-nat.c (go32_attach): Make "args" const.
3201 * gnu-nat.c (gnu_attach): Make "args" const.
3202 * darwin-nat.c (darwin_attach): Make "args" const.
3203 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3204 * linux-nat.c (linux_nat_attach): Make "args" const.
3205 * remote.c (extended_remote_attach_1, extended_remote_attach):
3206 Make "args" const.
3207 * target.h (struct target_ops) <to_attach>: Make "args" const.
3208 (find_default_attach): Likewise.
3209 * utils.c (parse_pid_to_attach): Make "args" const.
3210 * utils.h (parse_pid_to_attach): Update.
3211
8eaff7cd
TT
32122014-06-04 Tom Tromey <tromey@redhat.com>
3213
3214 * target-delegates.c: Rebuild.
3215 * target.c (default_thread_address_space): New function.
3216 (target_thread_address_space): Simplify.
3217 * target.h (struct target_ops) <to_thread_address_space>: Add
3218 TARGET_DEFAULT_FUNC.
3219
1913f160
DE
32202014-06-04 Doug Evans <xdje42@gmail.com>
3221
3222 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3223
70ad5bff
MM
32242014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3225
3226 * record-btrace.c: Include event-loop.h and inf-loop.h.
3227 (record_btrace_resume_exec_dir)
3228 (record_btrace_async_inferior_event_handler)
3229 (record_btrace_handle_async_inferior_event): New.
3230 (record_btrace_open): Create async event handler.
3231 (record_btrace_close): Delete async event handler.
3232 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3233 Mark async event handler.
3234 (record_btrace_execution_direction): New.
3235 (init_record_btrace_ops): Initialize to_execution_direction.
3236
b6210538
DE
32372014-06-03 Doug Evans <xdje42@gmail.com>
3238
3239 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3240 (gdbscm_make_parameter): Ditto.
3241
a5b1fd27
DE
32422014-06-03 Doug Evans <dje@google.com>
3243
3244 * exec.c (exec_close_1): Call clear_section_table instead of
3245 resize_section_table.
3246 (clear_section_table): New function.
3247 (resize_section_table): Make static. Rename arg num_added to
3248 adjustment.
3249 * exec.h (clear_section_table): Declare.
3250 (resize_section_table): Delete.
3251 * progspace.c (release_program_space): Call clear_section_table
3252 instead of resize_section_table.
3253
0c6e92a5
SC
32542014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3255
3256 * NEWS (Python Scripting): Add entry about the new xmethods
3257 feature.
3258
883964a7
SC
32592014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3260
3261 * python/py-xmethods.c: New file.
3262 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3263 (objfpy_dealloc): XDECREF on the new xmethods field.
3264 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3265 field.
3266 (objfpy_get_xmethods): New function.
3267 (objfile_getset): New entry 'xmethods'.
3268 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3269 (pspy_dealloc): XDECREF on the new xmethods field.
3270 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3271 field.
3272 (pspy_get_xmethods): New function.
3273 (pspace_getset): New entry 'xmethods'.
3274 * python/python-internal.h: Add declarations for new functions.
3275 * python/python.c (_initialize_python): Invoke
3276 gdbpy_initialize_xmethods.
3277 * python/lib/gdb/__init__.py (xmethods): New
3278 attribute.
3279 * python/lib/gdb/xmethod.py: New file.
3280 * python/lib/gdb/command/xmethods.py: New file.
3281
58992dc5
SC
32822014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3283
3284 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3285 best match method returned by find_overload_match is an xmethod.
3286 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3287 the best matching operator returned by find_overload_match is an
3288 xmethod.
3289 * valops.c: #include "extension.h".
3290 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3291 Return void. The list of matching source methods is returned in
3292 "fn_list" and a vector of matching debug method workers is
3293 returned in "xm_worker_vec". Update all callers.
3294 (value_find_oload_method_list): Likewise.
3295 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3296 non-NULL, then the index of the best matching method in this
3297 vector is returned. Update all callers.
3298 (find_overload_match): Include xmethods while performing overload
3299 resolution.
3300
e81e7f5e
SC
33012014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3302
3303 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3304 * extension-priv.h (struct extension_language_ops): Add the
3305 xmethod interface.
3306 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3307 get_matching_xmethod_workers, get_xmethod_argtypes,
3308 invoke_xmethod, free_xmethod_worker,
3309 free_xmethod_worker_vec): New functions.
3310 * extension.h: #include "common/vec.h".
3311 New function declarations.
3312 (struct xmethod_worker): New struct.
3313 (VEC (xmethod_worker_ptr)): New vector type.
3314 (xmethod_worker_ptr): New typedef.
3315 (xmethod_worker_vec): Likewise.
3316 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3317 builtin_type.
3318 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3319 (struct builtin_type): New field "xmethod".
3320 * valarith.c (value_ptradd): Assert that the value argument is not
3321 lval_xcallable.
3322 * valops.c (value_must_coerce_to_target): Return 0 for
3323 lval_xcallable values.
3324 * value.c (struct value): New field XM_WORKER in the field
3325 LOCATION.
3326 (value_address, value_raw_address): Return 0 for lval_xcallable
3327 values.
3328 (set_value_address): Assert that the value is not an
3329 lval_xcallable.
3330 (value_free): Free the associated xmethod worker when freeing
3331 lval_xcallable values.
3332 (set_value_component_location): Assert that the WHOLE value is not
3333 lval_xcallable.
3334 (value_of_xmethod, call_xmethod): New functions.
3335 * value.h: Declare "struct xmethod_worker".
3336 Declare new functions value_of_xmethod, call_xmethod.
3337
ef370185
JB
33382014-06-03 Joel Brobecker <brobecker@adacore.com>
3339 Pedro Alves <palves@redhat.com>
3340
3341 PR breakpoints/17000
3342 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3343 New function, extracted from software_breakpoint_inserted_here_p.
3344 (software_breakpoint_inserted_here_p): Replace factored out code
3345 by call to find_non_raw_software_breakpoint_inserted_here.
3346 (bp_target_info_copy_insertion_state): New function.
3347 (bkpt_insert_location): Handle the case of a single-step
3348 breakpoint already inserted at the same address.
3349 (bkpt_remove_location): Handle the case of a single-step
3350 breakpoint still inserted at the same address.
3351 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3352 breakpoint already inserted at the same address.
3353 (deprecated_remove_raw_breakpoint): Handle the case of a
3354 non-raw breakpoint still inserted at the same address.
3355 (find_single_step_breakpoint): New function, extracted from
3356 single_step_breakpoint_inserted_here_p.
3357 (find_single_step_breakpoint): New function,
3358 factored out from single_step_breakpoint_inserted_here_p.
3359 (single_step_breakpoint_inserted_here_p): Reimplement.
3360
1e2ccb61
BM
33612014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3362
3363 Pushed by Joel Brobecker <brobecker@adacore.com>
3364 * source.c (show_substitute_path_command): Fix display of matching
3365 substitution rules.
3366
d3448d85
GB
33672014-06-03 Gary Benson <gbenson@redhat.com>
3368
3369 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3370
06eb1586
DE
33712014-06-02 Doug Evans <xdje42@gmail.com>
3372
3373 Add parameter support for Guile.
3374 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3375 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3376 (scm-param.o): New rule.
3377 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3378 (gdbscm_misc_error): Declare.
3379 (gdbscm_canonicalize_command_name): Declare.
3380 (gdbscm_scm_to_host_string): Declare.
3381 (gdbscm_scm_from_host_string): Declare.
3382 (gdbscm_initialize_parameters): Declare.
3383 * guile/guile.c (initialize_gdb_module): Call
3384 gdbscm_initialize_parameters.
3385 * guile/lib/gdb.scm: Export parameter symbols.
3386 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3387 cmdscm_canonicalize_name and made public. All callers updated.
3388 * guile/scm-exception.c (gdbscm_misc_error): New function.
3389 * guile/scm-param.c: New file.
3390 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3391 (gdbscm_scm_to_host_string): New function.
3392 (gdbscm_scm_from_host_string): New function.
3393 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3394
e698b8c4
DE
33952014-06-02 Doug Evans <xdje42@gmail.com>
3396
3397 Add command support for Guile.
3398 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3399 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3400 (scm-cmd.o): New rule.
3401 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3402 (gdbscm_user_error_p): Declare.
3403 (gdbscm_parse_command_name): Declare.
3404 (gdbscm_valid_command_class_p): Declare.
3405 (gdbscm_initialize_commands): Declare.
3406 * guile/guile.c (initialize_gdb_module): Call
3407 gdbscm_initialize_commands.
3408 * guile/lib/gdb.scm: Export command symbols.
3409 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3410 (throw-user-error): New function.
3411 * guile/scm-cmd.c: New file.
3412 * guile/scm-exception.c (user_error_symbol): New static global.
3413 (gdbscm_user_error_p): New function.
3414 (gdbscm_initialize_exceptions): Set user_error_symbol.
3415 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3416
fb1f94b0
PM
34172014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3418
3419 * top.c (command_loop): Handle comments here...
3420 (command_line_input): ... not here.
3421
ded03782
DE
34222014-06-02 Doug Evans <xdje42@gmail.com>
3423
3424 Add progspace support for Guile.
3425 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3426 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3427 (scm-progspace.o): New rule.
3428 * guile/guile-internal.h (pspace_smob): New typedef.
3429 (psscm_pspace_smob_pretty_printers): Declare.
3430 (psscm_pspace_smob_from_pspace): Declare.
3431 (psscm_scm_from_pspace): Declare.
3432 * guile/guile.c (initialize_gdb_module): Call
3433 gdbscm_initialize_pspaces.
3434 * guile/lib/gdb.scm: Export progspace symbols.
3435 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3436 support.
3437 (append-pretty-printer!): Ditto.
3438 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3439 Implement.
3440 * guile/scm-progspace.c: New file.
3441
397998fc
AM
34422014-06-03 Alan Modra <amodra@gmail.com>
3443
3444 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3445 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3446
6aa5f3a6
DE
34472014-06-02 Doug Evans <dje@google.com>
3448
3449 Add support for skeletonless type units.
3450 * dwarf2read.c (struct dwarf2_per_objfile): New member
3451 n_allocated_type_units.
3452 (struct dwarf2_per_objfile) <tu_stats>: New member
3453 nr_all_type_units_reallocs.
3454 (create_signatured_type_table_from_index): Initialize
3455 n_allocated_type_units
3456 (create_all_type_units): Ditto.
3457 (add_type_unit): Move up in file. New arg slot.
3458 All callers updated. Increase space for all_type_units more
3459 efficiently.
3460 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3461 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3462 (lookup_dwp_signatured_type): Ditto.
3463 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3464 All callers updated.
3465 (build_type_psymtabs_1): Leave type_unit_groups as
3466 NULL if no TUs present.
3467 (print_tu_stats): New function.
3468 (process_skeletonless_type_unit): New function.
3469 (process_dwo_file_for_skeletonless_type_units): New
3470 function.
3471 (process_skeletonless_type_units): New function.
3472 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3473 Call print tu_stats if debugging enabled.
3474
41fac0cf
PA
34752014-06-02 Pedro Alves <palves@redhat.com>
3476
3477 * breakpoint.c (build_target_command_list): Don't build a command
3478 list if we have any duplicate location that isn't a dprintf.
3479
cd1608cc
PA
34802014-06-02 Pedro Alves <palves@redhat.com>
3481
3482 * breakpoint.c (dprintf_breakpoint_hit): New function.
3483 (initialize_breakpoint_ops): Install it as dprintf's
3484 breakpoint_hit method.
3485
486ef3b9
JB
34862014-06-02 Joel Brobecker <brobecker@adacore.com>
3487
3488 * source.c (substitute_path_rule_matches): Simplify using
3489 filename_ncmp instead of FILENAME_CMP.
3490
230cd560
JB
34912014-06-02 Joel Brobecker <brobecker@adacore.com>
3492
3493 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3494
16954d5d
LC
34952014-06-01 Ludovic Courtès <ludo@gnu.org>
3496
3497 * configure.ac: When Guile is available, check for the
3498 availability of 'scm_new_smob'.
3499 * configure, config.h.in: Regenerate.
3500 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3501 function.
3502
53e8a631
AB
35032014-05-30 Andrew Burgess <aburgess@broadcom.com>
3504
3505 * frame.c (struct frame_info): Add stop_string field.
3506 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3507 (get_prev_frame_always): Old content moved into
3508 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3509 TRY_CATCH, handle MEMORY_ERROR exceptions.
3510 (frame_stop_reason_string): New function definition.
3511 * frame.h (unwind_stop_reason_to_string): Extend comment to
3512 mention frame_stop_reason_string.
3513 (frame_stop_reason_string): New function declaration.
3514 * stack.c (frame_info): Switch to frame_stop_reason_string.
3515 (backtrace_command_1): Switch to frame_stop_reason_string.
3516 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3517 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3518 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3519
70e38b8e
AB
35202014-05-30 Andrew Burgess <aburgess@broadcom.com>
3521
3522 * frame.c (frame_stop_reason_string): Rename to ...
3523 (unwind_stop_reason_to_string): this.
3524 * frame.h (frame_stop_reason_string): Rename to ...
3525 (unwind_stop_reason_to_string): this.
3526 * stack.c (frame_info): Update call to frame_stop_reason_string.
3527 (backtrace_command_1): Likewise.
3528 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3529 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3530
938f0e2f
AB
35312014-05-30 Andrew Burgess <aburgess@broadcom.com>
3532
3533 * frame.c (remove_prev_frame): New function.
3534 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3535 remove_prev_frame.
3536
a09dd441
PA
35372014-05-29 Pedro Alves <palves@redhat.com>
3538
3539 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3540 and make it const. When a single-step decays to a continue,
3541 clear 'step', not 'hw_step'. Pass whether the caller wanted
3542 to step to user_visible_resume_ptid, not what we ask the
3543 target to do.
3544
bdc36728
PA
35452014-05-29 Pedro Alves <palves@redhat.com>
3546
3547 * infrun.c (process_event_stop_test, handle_step_into_function)
3548 (handle_step_into_function_backward): Adjust.
3549 Don't set the even thread's stop_step and call stop_waiting before
3550 calling end_stepping_range. Instead do that ...
3551 (end_stepping_range): ... here. Take an ecs pointer parameter.
3552
22bcd14b
PA
35532014-05-29 Pedro Alves <palves@redhat.com>
3554
3555 * infrun.c (stop_stepping): Rename to ...
3556 (stop_waiting): ... this.
3557 (proceed): Update comment.
3558 (process_event_stop_test, handle_inferior_event)
3559 (handle_signal_stop, handle_step_into_function)
3560 (handle_step_into_function_backward): Update.
3561
4ae57c05
PA
35622014-05-29 Pedro Alves <palves@redhat.com>
3563
3564 * infcall.c (run_inferior_call): Don't check whether the current
3565 thread is running after the proceed call.
3566
329ea579
PA
35672014-05-29 Pedro Alves <palves@redhat.com>
3568 Tom Tromey <tromey@redhat.com>
3569
3570 * NEWS: Mention "maint set target-async", "set mi-async", and that
3571 background execution commands are now always available.
3572 * target.h (target_async_permitted): Update comment.
3573 * target.c (target_async_permitted, target_async_permitted_1):
3574 Default to 1.
3575 (set_target_async_command): Rename to ...
3576 (maint_set_target_async_command): ... this.
3577 (show_target_async_command): Rename to ...
3578 (maint_show_target_async_command): ... this.
3579 (_initialize_target): Adjust.
3580 * infcmd.c (prepare_execution_command): Make extern.
3581 * inferior.h (prepare_execution_command): Declare.
3582 * infrun.c (set_observer_mode): Leave target async alone.
3583 * mi/mi-interp.c (mi_interpreter_init): Install
3584 mi_on_sync_execution_done as sync_execution_done observer.
3585 (mi_on_sync_execution_done): New function.
3586 (mi_execute_command_input_handler): Don't print the prompt if we
3587 just started a synchronous command with an async target.
3588 (mi_on_resume): Check sync_execution before printing prompt.
3589 * mi/mi-main.h (mi_async_p): Declare.
3590 * mi/mi-main.c: Include gdbcmd.h.
3591 (mi_async_p): New function.
3592 (mi_async, mi_async_1): New globals.
3593 (set_mi_async_command, show_mi_async_command, mi_async): New
3594 functions.
3595 (exec_continue): Call prepare_execution_command.
3596 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3597 (mi_execute_async_cli_command): Use mi_async_p.
3598 (_initialize_mi_main): Install "set mi-async". Make
3599 "target-async" a deprecated alias.
3600
92bcb5f9
PA
36012014-05-29 Pedro Alves <palves@redhat.com>
3602
3603 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3604 (_initialize_cli_interp): Adjust.
3605 * event-loop.c: Include "observer.h".
3606 (start_event_loop): Notify 'command_error' observers instead of
3607 calling display_gdb_prompt. Remove FIXME comment.
3608 * event-top.c (display_gdb_prompt): Remove call into the
3609 interpreters.
3610 * inf-loop.c: Include "observer.h".
3611 (inferior_event_handler): Notify 'command_error' observers instead
3612 of calling display_gdb_prompt.
3613 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3614 observers instead of calling display_gdb_prompt.
3615 * interps.c (interp_set): Don't call display_gdb_prompt.
3616 (current_interp_display_prompt_p): Delete.
3617 * interps.h (interp_prompt_p): Delete declaration.
3618 (interp_prompt_p_ftype): Delete.
3619 (struct interp_procs) <prompt_proc_p>: Delete field.
3620 (current_interp_display_prompt_p): Delete declaration.
3621 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3622 (_initialize_mi_interp): Adjust.
3623 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3624 'command_error' observers.
3625 (tui_on_sync_execution_done, tui_on_command_error): New
3626 functions.
3627 (tui_display_prompt_p): Delete.
3628 (_initialize_tui_interp): Adjust.
3629
fd664c91
PA
36302014-05-29 Pedro Alves <palves@redhat.com>
3631
3632 PR gdb/13860
3633 * cli/cli-interp.c: Include infrun.h and observer.h.
3634 (cli_uiout, cli_interp): New globals.
3635 (cli_on_signal_received, cli_on_end_stepping_range)
3636 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3637 functions.
3638 (cli_interpreter_init): Install them as 'end_stepping_range',
3639 'signal_received' 'signal_exited', 'exited' and 'no_history'
3640 observers.
3641 (_initialize_cli_interp): Remove cli_interp local.
3642 * infrun.c (handle_inferior_event): Call the several stop reason
3643 observers instead of printing the stop reason directly.
3644 (end_stepping_range): New function.
3645 (print_end_stepping_range_reason, print_signal_exited_reason)
3646 (print_exited_reason, print_signal_received_reason)
3647 (print_no_history_reason): Make static, and add an uiout
3648 parameter. Print to that instead of to CURRENT_UIOUT.
3649 * infrun.h (print_end_stepping_range_reason)
3650 (print_signal_exited_reason, print_exited_reason)
3651 (print_signal_received_reason print_no_history_reason): New
3652 declarations.
3653 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3654 'mi_uiout'.
3655 <cli_uiout>: New field.
3656 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3657 uiout for CLI output. Install 'signal_received',
3658 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3659 observers.
3660 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3661 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3662 (mi_on_no_history): New functions.
3663 (ui_out_free_cleanup): Delete function.
3664 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3665 instead use the one already stored in the MI interpreter data.
3666 (mi_ui_out): Adjust.
3667 * tui/tui-interp.c: Include infrun.h and observer.h.
3668 (tui_interp): New global.
3669 (tui_on_signal_received, tui_on_end_stepping_range)
3670 (tui_on_signal_exited, tui_on_exited)
3671 (tui_on_no_history): New functions.
3672 (tui_init): Install them as 'end_stepping_range',
3673 'signal_received' 'signal_exited', 'exited' and 'no_history'
3674 observers.
3675 (_initialize_tui_interp): Delete tui_interp local.
3676
8817a6f2
PA
36772014-05-29 Pedro Alves <palves@redhat.com>
3678
3679 PR gdb/15713
3680 * linux-nat.c (linux_nat_resume_callback): Rename the second
3681 parameter to 'except'. Skip LP if it points to EXCEPT.
3682 (linux_nat_resume): Don't mark the event lwp as not stopped
3683 before resuming sibling lwps. Instead ask
3684 linux_nat_resume_callback to skip the event lwp. Mark it as not
3685 stopped after actually resuming it.
3686 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3687 resuming it.
3688 (wait_lwp): Mark the lwp as stopped here.
3689 (stop_wait_callback): Mark the lwp as not stopped right after
3690 resuming it. Don't mark lwps as stopped here.
3691 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3692 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3693
251bde03
PA
36942014-05-29 Pedro Alves <palves@redhat.com>
3695
3696 PR PR15693
3697 * infrun.c (resume): Determine how much to resume depending on
3698 whether the caller wanted a step, not whether we can hardware step
3699 the target. Mark all threads that we intend to run as running,
3700 unless we're calling an inferior function.
3701 (normal_stop): If the thread is running an infcall, don't finish
3702 thread state.
3703 * target.c (target_resume): Don't mark threads as running here.
3704
7f3c0343
JB
37052014-05-28 Joel Brobecker <brobecker@adacore.com>
3706
3707 * serial.c (_initialize_serial): Remove support for
3708 the "set remotebaud" and "show remotebaud" commands.
3709 * NEWS: Add entry documenting the removal of that command.
3710
ee34b3f9
YQ
37112014-05-28 Yao Qi <yao@codesourcery.com>
3712
3713 * charset.c: Fix typo in comments.
3714
add6c04d
GB
37152014-05-27 Gary Benson <gbenson@redhat.com>
3716
3717 * utils.c (internal_vproblem): Prompt for a bug report.
3718
92c48fc5
AW
37192014-05-26 Andy Wingo <wingo@igalia.com>
3720
3721 * guile/scm-arch.c (arscm_mark_arch_smob):
3722 * guile/scm-block.c (bkscm_mark_block_smob)
3723 (bkscm_mark_block_syms_progress_smob):
3724 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3725 * guile/scm-exception.c (exscm_mark_exception_smob):
3726 * guile/scm-frame.c (frscm_mark_frame_smob):
3727 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3728 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3729 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3730 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3731 (ppscm_mark_pretty_printer_worker_smob):
3732 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3733 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3734 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3735 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3736 mark functions.
3737 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3738 function.
3739
b2715b27
AW
37402014-05-26 Andy Wingo <wingo@igalia.com>
3741 Doug Evans <xdje42@gmail.com>
3742
3743 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3744 empty_base_class. All uses updated.
3745 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3746 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3747 Adapt all callers.
3748 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3749 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3750 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3751 (gdbscm_gsmob_has_property_p, add_property_name)
3752 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3753 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3754 (gdb-object-has-property?, gdb-object-properties): Remove.
3755 (gdb-object-kind): Renamed from gsmob-kind.
3756
214ab2da
AW
37572014-05-26 Andy Wingo <wingo@igalia.com>
3758
3759 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3760 * configure: Regenerate.
3761
589fdceb
MM
37622014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3763
3764 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3765
67b5c0c1
MM
37662014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3767
3768 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3769 (replay_memory_access_read_only, replay_memory_access_read_write)
3770 (replay_memory_access_types, replay_memory_access)
3771 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3772 (cmd_set_record_btrace, cmd_show_record_btrace)
3773 (cmd_show_replay_memory_access): New.
3774 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3775 (record_btrace_remove_breakpoint): Replace
3776 record_btrace_allow_memory_access with replay_memory_access.
3777 (_initialize_record_btrace): Add commands.
3778 * NEWS: Announce it.
3779
036cd381
RR
37802014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3781
3782 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3783
c77c1e42
RR
37842014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3785
3786 * MAINTAINERS (Write After Approval): Move self back from
3787 paper trail.
3788
45741a9c
PA
37892014-05-22 Pedro Alves <palves@redhat.com>
3790
3791 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3792 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3793 (disable_randomization, enum exec_direction_kind)
3794 (execution_direction, stop_registers, start_remote)
3795 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3796 (wait_for_inferior, normal_stop, get_last_target_status)
3797 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3798 (insert_step_resume_breakpoint_at_sal)
3799 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3800 (set_step_info, print_stop_event, signal_stop_state)
3801 (signal_print_state, signal_pass_state, signal_stop_update)
3802 (signal_print_update, signal_pass_update)
3803 (update_signals_program_target, clear_exit_convenience_vars)
3804 (displaced_step_dump_bytes, update_observer_mode)
3805 (signal_catch_update, gdb_signal_from_command): Move
3806 declarations ...
3807 * infrun.h: ... to this new file.
3808 * amd64-tdep.c: Include infrun.h.
3809 * annotate.c: Include infrun.h.
3810 * arch-utils.c: Include infrun.h.
3811 * arm-linux-tdep.c: Include infrun.h.
3812 * arm-tdep.c: Include infrun.h.
3813 * break-catch-sig.c: Include infrun.h.
3814 * breakpoint.c: Include infrun.h.
3815 * common/agent.c: Include infrun.h instead of inferior.h.
3816 * corelow.c: Include infrun.h.
3817 * event-top.c: Include infrun.h.
3818 * go32-nat.c: Include infrun.h.
3819 * i386-tdep.c: Include infrun.h.
3820 * inf-loop.c: Include infrun.h.
3821 * infcall.c: Include infrun.h.
3822 * infcmd.c: Include infrun.h.
3823 * infrun.c: Include infrun.h.
3824 * linux-fork.c: Include infrun.h.
3825 * linux-nat.c: Include infrun.h.
3826 * linux-thread-db.c: Include infrun.h.
3827 * monitor.c: Include infrun.h.
3828 * nto-tdep.c: Include infrun.h.
3829 * procfs.c: Include infrun.h.
3830 * record-btrace.c: Include infrun.h.
3831 * record-full.c: Include infrun.h.
3832 * remote-m32r-sdi.c: Include infrun.h.
3833 * remote-mips.c: Include infrun.h.
3834 * remote-notif.c: Include infrun.h.
3835 * remote-sim.c: Include infrun.h.
3836 * remote.c: Include infrun.h.
3837 * reverse.c: Include infrun.h.
3838 * rs6000-tdep.c: Include infrun.h.
3839 * s390-linux-tdep.c: Include infrun.h.
3840 * solib-irix.c: Include infrun.h.
3841 * solib-osf.c: Include infrun.h.
3842 * solib-svr4.c: Include infrun.h.
3843 * target.c: Include infrun.h.
3844 * top.c: Include infrun.h.
3845 * windows-nat.c: Include infrun.h.
3846 * mi/mi-interp.c: Include infrun.h.
3847 * mi/mi-main.c: Include infrun.h.
3848 * python/py-threadevent.c: Include infrun.h.
3849
98eb56a4
PA
38502014-05-22 Pedro Alves <palves@redhat.com>
3851
3852 * infrun.c (handle_inferior_event): Store the exit code for
3853 --return-child-result here, instead of ...
3854 (print_exited_reason): ... here.
3855
17b2616c
PA
38562014-05-21 Pedro Alves <palves@redhat.com>
3857
3858 PR gdb/13860
3859 * gdbthread.h (struct thread_control_state): New field
3860 `command_interp'.
3861 * infrun.c (follow_fork): Copy the new thread control field to the
3862 child fork thread.
3863 (clear_proceed_status_thread): Clear the new thread control field.
3864 (proceed): Set the new thread control field.
3865 * interps.h (command_interp): Declare.
3866 * interps.c (command_interpreter): New global.
3867 (command_interp): New function.
3868 (interp_exec): Set `command_interpreter' while here.
3869 * cli-out.c (cli_uiout_dtor): New function.
3870 (cli_ui_out_impl): Install it.
3871 * mi/mi-interp.c: Include cli-out.h.
3872 (mi_cmd_interpreter_exec): Add comment.
3873 (restore_current_uiout_cleanup): New function.
3874 (ui_out_free_cleanup): New function.
3875 (mi_on_normal_stop): If finishing an execution command started by
3876 a CLI command, or any kind of breakpoint-like event triggered,
3877 print the stop event to the output (CLI) stream.
3878 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3879
5166082f
PA
38802014-05-21 Pedro Alves <palves@redhat.com>
3881
3882 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3883 current source line having changed.
3884 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3885 * infrun.c (normal_stop): Adjust call to
3886 set_current_sal_from_frame.
3887 * source.c (clear_lines_listed_range): New function.
3888 (set_current_source_symtab_and_line, identify_source_line): Clear
3889 the lines listed range.
3890 (line_info): Handle the first "info line" after the current source
3891 line having changed.
3892 * stack.c (print_stack_frame): Remove center handling.
3893 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3894 center sal.line.
3895
c1ee2fb3
PA
38962014-05-21 Pedro Alves <palves@redhat.com>
3897
3898 * inf-child.c (inf_child_mourn_inferior): New function.
3899 * inf-child.h (inf_child_mourn_inferior): New declaration.
3900 * darwin-nat.c (darwin_mourn_inferior): Use
3901 inf_child_mourn_inferior.
3902 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3903 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3904 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3905 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3906 * windows-nat.c (windows_mourn_inferior): Likewise.
3907
5c6d4fb2
DE
39082014-05-21 Doug Evans <xdje42@gmail.com>
3909
250748cb 3910 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3911
4a2722c5
DE
39122014-05-21 Doug Evans <xdje42@gmail.com>
3913
17292b30 3914 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3915 (gdbscm_out_of_range_error): Ditto.
3916 (gdbscm_memory_error): Ditto.
250748cb
DE
3917 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3918 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3919 (gdbscm_out_of_range_error): Update.
3920 (gdbscm_memory_error): Update.
3921 (gdbscm_scm_to_target_string_unsafe): Delete.
3922
6a3cb8e8
PA
39232014-05-21 Pedro Alves <palves@redhat.com>
3924
3925 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3926 globals.
3927 (inf_child_open_target): New function.
3928 (inf_child_open): Use inf_child_open_target to push the target
3929 instead of erroring out.
3930 (inf_child_disconnect, inf_child_close)
3931 (inf_child_maybe_unpush_target): New functions.
3932 (inf_child_target): Install inf_child_disconnect and
3933 inf_child_close. Store a pointer to the returned object.
3934 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3935 declarations.
3936 * target.c (auto_connect_native_target): New global.
3937 (show_default_run_target): New function.
3938 (find_default_run_target): Return NULL if automatically connecting
3939 to the native target is disabled.
3940 (_initialize_target): Install set/show auto-connect-native-target.
3941 * NEWS: Mention "set auto-connect-native-target", and "target
3942 native".
3943 * linux-nat.c (super_close): New global.
3944 (linux_nat_close): Call super_close.
3945 (linux_nat_add_target): Store a pointer to the base class's
3946 to_close method.
3947 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3948 inf_child_maybe_unpush.
3949 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3950 already pushed.
3951 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3952 the inferior. Use inf_child_maybe_unpush_target.
3953 (inf_ttrace_attach): Don't push the target if it is already
3954 pushed.
3955 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3956 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3957 after mourning the inferior. Use inf_child_maybe_unpush_target.
3958 (darwin_attach_pid): Don't push the target if it is already
3959 pushed.
3960 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3961 mourning the inferior. Use inf_child_maybe_unpush_target.
3962 (gnu_detach): Use inf_child_maybe_unpush_target.
3963 * go32-nat.c (go32_create_inferior): Don't push the target if it
3964 is already pushed.
3965 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3966 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3967 (procfs_open): Rename to ...
3968 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3969 comments. Can target_preopen before changing node. Call
3970 inf_child_open_target to push the target explicitly.
3971 (procfs_attach): Don't push the target if it is already pushed.
3972 (procfs_detach): Use inf_child_maybe_unpush_target.
3973 (procfs_create_inferior): Don't push the target if it is already
3974 pushed.
3975 (nto_native_ops): New global.
3976 (procfs_open): Reimplement.
3977 (procfs_native_open): New function.
3978 (init_procfs_targets): Install procfs_native_open as to_open of
3979 "target native". Store a pointer to the "native" target in
3980 nto_native_ops.
3981 * procfs.c (procfs_attach): Don't push the target if it is already
3982 pushed.
3983 (procfs_detach): Use inf_child_maybe_unpush_target.
3984 (procfs_mourn_inferior): Only unpush the target after mourning the
3985 inferior. Use inf_child_maybe_unpush_target.
3986 (procfs_init_inferior): Don't push the target if it is already
3987 pushed.
3988 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3989 if it is already pushed.
3990
930ee1b1
PA
39912014-05-21 Pedro Alves <palves@redhat.com>
3992
3993 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3994 and "procfs" targets are now called "native" instead.
3995
1f5d1b13
PA
39962014-05-21 Pedro Alves <palves@redhat.com>
3997
3998 * go32-nat.c (go32_open): Delete.
3999 (go32_target): Don't override the to_open method.
4000
132f8e03
PA
40012014-05-21 Pedro Alves <palves@redhat.com>
4002
4003 * nto-procfs.c (procfs_can_run): New function.
4004 (nto_procfs_ops): New global.
4005 (init_procfs_targets): New, based on procfs_target. Install
4006 "target native" in addition to "target procfs".
4007 (_initialize_procfs): Call init_procfs_targets instead of adding
4008 the target here.
4009
03c136c3
PA
40102014-05-21 Pedro Alves <palves@redhat.com>
4011
4012 * windows-nat.c (windows_target): Don't override to_shortname,
4013 to_longname or to_doc.
4014
a635d0f3
PA
40152014-05-21 Pedro Alves <palves@redhat.com>
4016
4017 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4018 to_doc.
4019
4f9b5133
PA
40202014-05-21 Pedro Alves <palves@redhat.com>
4021
4022 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4023 to_shortname, to_longname or to_doc.
4024
bc85afde
PA
40252014-05-21 Pedro Alves <palves@redhat.com>
4026
4027 * go32-nat.c (go32_target): Don't override to_shortname,
4028 to_longname or to_doc.
4029
4ebfc96e
PA
40302014-05-21 Pedro Alves <palves@redhat.com>
4031
4032 * inf-child.c (inf_child_open): Remove mention of "child".
4033 (inf_child_target): Rename target to "native" instead of "child".
4034
2648dfed
AA
40352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4036
4037 * Makefile.in (SFILES): Delete "regset.c".
4038 (COMMON_OBS): Delete "regset.o".
4039 * regset.c: Remove.
4040 * regset.h (regset_alloc): Delete prototype.
4041
b13feb94
AA
40422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4043
4044 * sparc-linux-tdep.c (sparc32_linux_gregset)
4045 (sparc32_linux_fpregset): New static regset structures.
4046 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4047 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4048 'fpregset' fields.
4049 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4050 (sparc64_linux_fpregset): New static regset structures.
4051 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4052 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4053 New static regset structures.
4054 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4055 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4056 New static regset structures.
4057 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4058 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4059 New static regset structures.
4060 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4061 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4062 New static regset structures.
4063 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4064
b4fd25c9
AA
40652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4066
4067 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4068 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4069 register maps ("regmaps") from "*regset" to "*regmap". Do this
4070 for all regmap types and variables.
4071 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4072 (sparc32_linux_supply_core_gregset)
4073 (sparc32_linux_collect_core_gregset)
4074 (sparc32_linux_supply_core_fpregset)
4075 (sparc32_linux_collect_core_fpregset): Likewise.
4076 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4077 (sparc_gregmap, sparc_fpregmap): ... these.
4078 (sparc_supply_gregset, sparc_collect_gregset)
4079 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4080 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4081 (_initialize_sparc_nat): Rename regmaps.
4082 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4083 (sparc_gregmap, sparc_fpregmap): ... these.
4084 (sparc_supply_gregset, sparc_collect_gregset)
4085 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4086 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4087 Rename macros to...
4088 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4089 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4090 Likewise.
4091 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4092 Rename to...
4093 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4094 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4095 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4096 regmaps.
4097 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4098 (sparc32_bsd_fpregset): Rename to...
4099 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4100 (sparc32_bsd_fpregmap): ... these.
4101 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4102 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4103 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4104 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4105 (struct sparc_gregmap, struct sparc_fpregmap)
4106 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4107 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4108 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4109 (sparc32_supply_regset, sparc32_collect_gregset)
4110 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4111 prototypes.
4112 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4113 (sparc64_linux_ptrace_gregmap): ... this.
4114 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4115 (_initialize_sparc64_linux_nat): Rename regmaps.
4116 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4117 (sparc64_linux_core_gregmap): ... this.
4118 (sparc64_linux_supply_core_gregset)
4119 (sparc64_linux_collect_core_gregset)
4120 (sparc64_linux_supply_core_fpregset)
4121 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4122 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4123 (sparc64_sol2_fpregset): Rename to...
4124 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4125 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4126 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4127 regmaps.
4128 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4129 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4130 (sparc64_bsd_fpregset): Rename to...
4131 (struct sparc_gregmap, sparc64_sol2_gregmap)
4132 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4133 (sparc64_bsd_fpregmap): ... these.
4134 (sparc64_supply_gregset, sparc64_collect_gregset)
4135 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4136 prototypes.
4137 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4138 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4139 (sparc64fbsd_gregmap): ... this.
4140 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4141 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4142 Rename regmaps.
4143 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4144 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4145 (sparc64nbsd_collect_fpregset): Likewise.
4146 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4147 (sparc64nbsd_gregmap): ... this.
4148 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4149 regmaps.
4150 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4151 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4152 (sparc64obsd_gregmap): ... this.
4153 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4154 regmaps.
4155 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4156 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4157 (sparc32nbsd_gregmap): ... this.
4158 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4159 regmaps.
4160
8fea3224
AA
41612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4162
4163 * score-tdep.c (score7_linux_gregset): New static regset
4164 structure.
4165 (score7_linux_regset_from_core_section): Remove dynamic regset
4166 allocation.
4167 (score_gdbarch_init): Drop allocation of tdep structure.
4168 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4169
24534243
AA
41702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4171
4172 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4173 regset structures.
4174 (am33_regset_from_core_section): Remove dynamic regset
4175 allocations.
4176
b7195f27
AA
41772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4178
4179 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4180 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4181 structures.
4182 (mips_linux_regset_from_core_section): Remove dynamic regset
4183 allocations.
4184 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4185 'gregset64', 'fpregset', and 'fpregset64'.
4186 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4187 deleted tdep fields.
4188
ecc37a5a
AA
41892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4190
4191 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4192 regset structures.
4193 (amd64_regset_from_core_section): Remove dynamic regset
4194 allocations.
4195 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4196 structure.
4197 (amd64obsd_regset_from_core_section): Remove dynamic regset
4198 allocation.
4199 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4200 Likewise.
4201 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4202 x86-common regset supply function.
4203 * i386-tdep.c (i386_collect_gregset): Make static.
4204 (i386_gregset): New global regset structure.
4205 (i386_fpregset, i386_xstateregset): New static regset structures.
4206 (i386_regset_from_core_section): Remove dynamic regset
4207 allocations.
4208 (i386_gdbarch_init): Remove initialization of tdep fields
4209 'gregset', 'fpregset', and 'xstateregset'.
4210 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4211 'fpregset', and 'xstateregset'.
4212 (i386_collect_gregset): Remove prototype.
4213 (i386_gregset): New declaration.
4214 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4215 structure.
4216 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4217 allocation.
4218
b7611c43
AA
42192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4220
4221 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4222 (arm_linux_vfpregset): New static regset structures.
4223 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4224 regset structures.
4225 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4226 and 'vfpregset' fields.
4227
a069a2bd
AA
42282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4229
4230 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4231 (aarch64_linux_fpregset): New static regset structures.
4232 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4233 of regset structures.
4234 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4235 'fpregset' fields.
4236
09424cff
AA
42372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4238
4239 * regset.h (struct regset): Remove gdbarch field.
4240 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4241 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4242 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4243 Likewise.
4244 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4245 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4246 (ppc32_linux_vsxregset): Likewise.
4247 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4248 via the regcache instead of the regset.
4249 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4250 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4251 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4252 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4253 Likewise.
4254
3ca7dae4
AA
42552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4256
4257 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4258 Constify structures.
4259 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4260 (alphanbsd_aout_gregset): Likewise.
4261 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4262 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4263 Likewise.
4264 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4265 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4266 Likewise.
4267 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4268 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4269 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4270 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4271 * m88k-tdep.c (m88k_gregset): Likewise.
4272 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4273 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4274 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4275 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4276 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4277 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4278 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4279 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4280 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4281 Likewise.
4282 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4283 * sh-tdep.h (sh_corefile_gregset): Likewise.
4284 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4285 * vax-tdep.c (vax_gregset): Likewise.
4286
5876f503
JK
42872014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4288
4289 Fix TLS access for -static -pthread.
4290 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4291 (try_thread_db_load_1): Initialize it.
4292 (thread_db_get_thread_local_address): Call it if LM is zero.
4293 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4294 * target.h (struct target_ops) (to_get_thread_local_address): Add
4295 load_module_addr comment.
4296
0256a6ac
PA
42972014-05-21 Pedro Alves <palves@redhat.com>
4298
4299 * dcache.c (dcache_read_memory_partial): If reading the cache line
4300 fails, fallback to reading just the memory the caller wanted.
4301
227533ac
DE
43022014-05-20 Doug Evans <dje@google.com>
4303
4304 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4305 instead of get_current_arch.
4306
936d2992
PA
43072014-05-20 Pedro Alves <palves@redhat.com>
4308
4309 * NEWS: Mention that compare-sections now works with all targets.
4310
4311 * remote.c (PACKET_qCRC): New enum value.
4312 (remote_verify_memory): Don't send qCRC if the target has no
4313 execution. Use packet_support/packet_ok. If the target doesn't
4314 support the qCRC packet, fallback to a deep memory copy.
4315 (compare_sections_command): Say "target image" instead of "remote
4316 executable".
4317 (_initialize_remote): Add PACKET_qCRC to the list of config
4318 packets that have no associated command. Extend comment.
4319 * target.c (simple_verify_memory, default_verify_memory): New
4320 function.
4321 * target.h (struct target_ops) <to_verify_memory>: Default to
4322 default_verify_memory.
4323 (simple_verify_memory): New declaration.
4324 * target-delegates.c: Regenerate.
4325
e59fa00f
MM
43262014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4327
4328 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4329
f2205de0
HZ
43302014-05-20 Hui Zhu <hui@codesourcery.com>
4331 Yao Qi <yao@codesourcery.com>
4332
4333 PR backtrace/16558
4334 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4335 and change address of sp and pc.
4336
c4e54771
TT
43372014-05-19 Tom Tromey <tromey@redhat.com>
4338
4339 * gdbtypes.c (rank_function): Use XNEWVEC.
4340 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4341
73051182
DE
43422014-05-19 Doug Evans <dje@google.com>
4343
4344 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4345 build_type_unit_groups and moved closer to only caller. Remove
4346 arguments. All references updated. Remove outdated .gdb_index
4347 comment.
4348 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4349 build_type_psymtabs_1.
4350
8832e7e3
DE
43512014-05-19 Doug Evans <dje@google.com>
4352
4353 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4354 n_type_unit_groups, all_type_unit_groups. All uses removed.
4355 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4356 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4357 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4358 (add_type_unit_group_to_table): Delete.
4359
cd8ae15e
DE
43602014-05-19 Doug Evans <dje@google.com>
4361
4362 * eval.c (evaluate_subexp_standard): Add some comments.
4363
08f4850b
DE
43642014-05-17 Doug Evans <xdje42@gmail.com>
4365
4366 * progspace.c (remove_program_space): Delete, unused.
4367 * progspace.h (remove_program_space): Ditto.
4368
bed8455c
DE
43692014-05-17 Doug Evans <xdje42@gmail.com>
4370
4371 * inferior.c (prune_inferiors): Fix comment.
4372 (remove_inferior_command): Call prune_program_spaces.
4373
8d551b02
DE
43742014-05-16 Doug Evans <dje@google.com>
4375
4376 New command line option -D.
4377 * NEWS: Mention it.
4378 * main.c (set_gdb_data_directory): New function.
4379 (captured_main): Recognize -D. Flag error for --data-directory "".
4380 Call set_gdb_data_directory.
4381 (print_gdb_help): Print --data-directory, -D.
4382 * main.h (set_gdb_data_directory): Declare.
4383 * top.c (staged_gdb_datadir): New static global.
4384 (set_gdb_datadir): Call set_gdb_data_directory
4385 (show_gdb_datadir): New function.
4386 (init_main): Update init of data-directory parameter.
4387
18848e28
GF
43882014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4389
4390 Import the "dirfd" gnulib module.
4391 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4392 * gnulib/aclocal.m4: Update.
4393 * gnulib/config.in: Update.
4394 * gnulib/configure: Update.
4395 * gnulib/import/Makefile.am: Update.
4396 * gnulib/import/Makefile.in: Update.
4397 * gnulib/import/dirfd.c: New.
4398 * gnulib/import/m4/dirfd.m4: New.
4399 * gnulib/import/m4/gnulib-cache.m4: Update.
4400 * gnulib/import/m4/gnulib-comp.m4: Update.
4401
95c64f92
YQ
44022014-05-16 Pierre Muller <muller@sourceware.org>
4403 Yao Qi <yao@codesourcery.com>
4404
4405 * valprint.c (print_wchar): Move the code on checking whether
4406 W is a printable wide char to the default branch of switch
4407 statement below. Call wchar_printable instead of gdb_iswprint.
4408
cac395ea
TM
44092014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4410
19679eca 4411 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4412 ldr.w and ldrd instructions.
4413
83655187
DE
44142014-05-15 Doug Evans <dje@google.com>
4415
4416 * dwarf2read.c (read_structure_type): Delete outdated comments.
4417
dd756689
TT
44182014-05-14 Tom Tromey <tromey@redhat.com>
4419
4420 * macrocmd.c (print_macro_definition): Reindent.
4421
75ddda77
DE
44222014-05-13 Doug Evans <xdje42@gmail.com>
4423
4424 * python/py-cmd.c (cmdpy_completer): Add comment.
4425 (completers): Make const.
4426
b0f16a3e
SM
44272014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4428
4429 * infrun.c (resume): Remove should_resume (unused). Move up
4430 declaration of resume_ptid.
4431
033c3379
TT
44322014-05-13 Tom Tromey <tromey@redhat.com>
4433
4434 * language.h (unop_type_check): Remove.
4435 (binop_type_check): Don't declare.
4436
9b44a3a5
AA
44372014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4438
4439 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4440 call to regcache_raw_collect.
4441
303a33fa
SM
44422014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4443
4444 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4445 mi_console->quote as the quoting character.
4446
196100a0
SM
44472014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4448
4449 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4450
f989a1c8
TT
44512014-04-29 Tom Tromey <tromey@redhat.com>
4452
4453 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4454 "show debug varobj".
4455
9404b58f
KM
44562014-05-07 Kyle McMartin <kyle@redhat.com>
4457
4458 Pushed by Joel Brobecker <brobecker@adacore.com>.
4459 * aarch64-tdep.c (aarch64_software_single_step): New function.
4460 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4461 with aarch64_software_single_step.
4462
5e49ba57
JB
44632014-05-05 Joel Brobecker <brobecker@adacore.com>
4464
4465 GDB 7.7.1 released.
4466
c888a17d
KS
44672014-05-05 Keith Seitz <keiths@redhat.com>
4468
4469 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4470 variable or history value is successfully parsed.
4471
290a839c
YQ
44722014-05-05 Yao Qi <yao@codesourcery.com>
4473 Pedro Alves <palves@redhat.com>
4474
4475 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4476 address of blocks that intersects the requested range. Trim
4477 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4478 sections.
4479 * ctf.c (ctf_xfer_partial): Likewise.
4480
91256dc2
YQ
44812014-05-05 Yao Qi <yao@codesourcery.com>
4482
4483 * printcmd.c (display_command): Remove the check to
4484 target_has_execution.
4485
07284463
MK
44862014-05-03 Mark Kettenis <kettenis@gnu.org>
4487
4488 * ppcobsd-nat.c: Include "obsd-nat.h".
4489 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4490 add_target.
4491 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4492
30a1e6cc
SDJ
44932014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4494
4495 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4496 and 16-bit signed and unsigned arguments. Update comment.
4497 (stap_parse_probe_arguments): Extend code to handle such
4498 arguments. Use warning instead of complaint to notify about
4499 unrecognized bitness.
4500
f33da99a
SDJ
45012014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4502
4503 PR breakpoints/16889
4504 * stap-probe.c (stap_parse_probe_arguments): Simplify
4505 check for non-prefixed probes (i.e., probes whose
4506 arguments do not start with "N@"). Always set the
4507 argument type to a sane value.
4508
95cf3b38
DT
45092014-05-01 David Taylor <dtaylor@emc.com>
4510
4511 * remote.c (compare_sections_command): Add -r option to compare
4512 all loadable read-only sections.
4513
1cfdf534
SC
45142014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4515
4516 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4517 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4518 Update all callers.
4519 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4520 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4521 Remove unused CORE_ADDR argument. Update all callers.
4522
ca4f7f8b
PA
45232014-04-29 Pedro Alves <palves@redhat.com>
4524
4525 * remote.c (struct packet_config) <detect>: Extend comment.
4526 (add_packet_config_cmd): Don't set the config's detect or support
4527 fields here.
4528 (init_all_packet_configs): Also initialize the config's 'detect'
4529 field.
4530 (reset_all_packet_configs_support): New function.
4531 (remote_open_1): Call reset_all_packet_configs_support instead of
4532 init_all_packet_configs.
4533 (_initialize_remote): Initialize all packet configs. Assert that
4534 all packets have an associated command, except a few known
4535 outliers.
4536
11c1ba78
JB
45372014-04-28 Joel Brobecker <brobecker@adacore.com>
4538
4539 * dwarf2read.c (read_subrange_type): Handle dynamic
4540 DW_AT_lower_bound attributes.
4541
8739bc53
JB
45422014-04-28 Joel Brobecker <brobecker@adacore.com>
4543
4544 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4545 dynamic bounds before computing its upper bound.
4546 (ada_discrete_type_low_bound): Same as above with the lower bound.
4547
6f8a3220
JB
45482014-04-28 Joel Brobecker <brobecker@adacore.com>
4549
4550 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4551 range types. Adjust the array handling implementation to
4552 take advantage of this change.
4553 (resolve_dynamic_range): New function, mostly extracted from
4554 resolve_dynamic_bounds.
4555 (resolve_dynamic_array): New function, mostly extracted from
4556 resolve_dynamic_bounds.
4557 (resolve_dynamic_bounds): Delete.
4558 (resolve_dynamic_type): Reimplement. Add handling of
4559 TYPE_CODE_RANGE types.
4560
4d072ce4
JB
45612014-04-28 Joel Brobecker <brobecker@adacore.com>
4562
4563 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4564 handling of parallel ___XA types.
4565
52865325
JB
45662014-04-28 Joel Brobecker <brobecker@adacore.com>
4567
4568 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4569 unnecessary second call to static_unwrap_type.
4570
433e77fa
HZ
45712014-04-27 Hui Zhu <hui@codesourcery.com>
4572
4573 * stack.c (print_frame_info): Call do_gdb_disassembly with
4574 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4575
b51a69ee
DE
45762014-04-26 Doug Evans <xdje42@gmail.com>
4577
4578 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4579
7ae1a6a6
PA
45802014-04-25 Pedro Alves <palves@redhat.com>
4581
4582 PR server/16255
4583 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4584 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4585 and newline from built string.
4586 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4587 (linux_ptrace_attach_fail_reason): ... this.
4588 * linux-nat.c (linux_nat_attach): Adjust to use
4589 linux_ptrace_attach_fail_reason.
4590
4082afcc
PA
45912014-04-25 Pedro Alves <palves@redhat.com>
4592
4593 * remote.c (struct remote_state): Remove multi_process_aware,
4594 non_stop_aware, cond_tracepoints, cond_breakpoints,
4595 breakpoint_commands, fast_tracepoints, static_tracepoints,
4596 install_in_trace, disconnected_tracing,
4597 enable_disable_tracepoints, string_tracing, and
4598 augmented_libraries_svr4_read fields.
4599 (remote_multi_process_p): Move further below in the file.
4600 (struct packet_config): Add comments.
4601 (update_packet_config): Delete function.
4602 (show_packet_config_cmd): Use packet_config_support.
4603 (add_packet_config_cmd): Use NULL as set callback.
4604 (packet_ok): "set remote foo-packet"-style commands no longer
4605 change config->supported -- adjust.
4606 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4607 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4608 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4609 (PACKET_QNonStop, PACKET_multiprocess_feature)
4610 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4611 (PACKET_DisconnectedTracing_feature)
4612 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4613 (set_remote_protocol_packet_cmd): Delete function.
4614 (packet_config_support, packet_support): New functions.
4615 (set_remote_protocol_Z_packet_cmd): Don't call
4616 update_packet_config.
4617 (remote_query_attached, remote_pass_signals)
4618 (remote_program_signals, remote_threads_info)
4619 (remote_threads_extra_info, remote_start_remote): Use
4620 packet_support.
4621 (remote_start_remote): Use packet_config_support and
4622 packet_support.
4623 (init_all_packet_configs): Set all packets to unknown support,
4624 instead of calling update_packet_config.
4625 (remote_check_symbols): Use packet_support.
4626 (remote_supported_packet): Unconditionally set the packet config's
4627 support status.
4628 (remote_multi_process_feature, remote_non_stop_feature)
4629 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4630 (remote_breakpoint_commands_feature)
4631 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4632 (remote_install_in_trace_feature)
4633 (remote_disconnected_tracing_feature)
4634 (remote_enable_disable_tracepoint_feature)
4635 (remote_string_tracing_feature)
4636 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4637 (remote_protocol_features): Adjust to use remote_supported_packet
4638 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4639 "ConditionalTracepoints", "ConditionalBreakpoints",
4640 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4641 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4642 "EnableDisableTracepoints", and "tracenz".
4643 (remote_query_supported): Use packet_support.
4644 (remote_open_1): Adjust.
4645 (extended_remote_attach_1): Use packet_support. Switch on the
4646 result of packet_ok instead of checking whether the packet ended
4647 up disabled.
4648 (remote_vcont_resume): Use packet_support.
4649 (remote_resume, remote_stop_ns, fetch_register_using_p)
4650 (remote_prepare_to_store, store_register_using_P)
4651 (check_binary_download, remote_write_bytes): Use packet_support.
4652 (remote_vkill): Use packet_support. Switch on the result of
4653 packet_ok instead of checking whether the packet ended up
4654 disabled.
4655 (extended_remote_supports_disable_randomization): Use
4656 packet_support.
4657 (extended_remote_run): Switch on the result of packet_ok instead
4658 of checking whether the packet ended up disabled.
4659 (remote_insert_breakpoint, remote_remove_breakpoint)
4660 (remote_insert_watchpoint, remote_remove_watchpoint)
4661 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4662 packet_support.
4663 (remote_search_memory): Use packet_config_support.
4664 (remote_get_thread_local_address, remote_get_tib_address)
4665 (remote_hostio_send_command, remote_can_execute_reverse): Use
4666 packet_support.
4667 (remote_supports_cond_tracepoints)
4668 (remote_supports_cond_breakpoints)
4669 (remote_supports_fast_tracepoints)
4670 (remote_supports_static_tracepoints)
4671 (remote_supports_install_in_trace)
4672 (remote_supports_enable_disable_tracepoint)
4673 (remote_supports_string_tracing)
4674 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4675 the packet config says the feature is enabled or disabled.
4676 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4677 (remote_get_trace_status): Use packet_support.
4678 (remote_set_disconnected_tracing): Adjust to check whether the
4679 feature is enabled with packet_support.
4680 (remote_set_trace_buffer_size, remote_use_agent)
4681 (remote_can_use_agent, remote_supports_btrace): Use
4682 packet_support.
4683 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4684 Use packet_config_support.
4685 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4686 the packet config says the feature is enabled or disabled.
4687 (set_range_stepping): Use packet_support.
4688
bdb52a22
TT
46892014-04-25 Tom Tromey <tromey@redhat.com>
4690
4691 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4692 argument.
4693
e9475ead
SA
46942014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4695
4696 * NEWS: Mention support for C99 variable length arrays.
4697
82eacd52
JB
46982014-04-24 Joel Brobecker <brobecker@adacore.com>
4699
4700 * ada-lang.c (standard_exc): Expand introductory comment.
4701
01f9f808
MS
47022014-04-24 Michael Sturm <michael.sturm@mintel.com>
4703 Walfred Tedeschi <walfred.tedeschi@intel.com>
4704
4705 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4706 AVX512 registers.
4707 (amd64_linux_read_description): Add code to handle AVX512 xstate
4708 mask and return respective tdesc.
4709 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4710 and features/i386/x32-avx512-linux.c.
4711 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4712 (amd64_linux_core_read_description): Add code to handle AVX512
4713 xstate mask and return respective tdesc.
4714 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4715 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4716 calculation.
4717 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4718 (tdesc_amd64_avx512_linux): New prototype.
4719 (tdesc_x32_avx512_linux): Likewise.
4720 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4721 features/i386/x32-avx512.c.
4722 (amd64_ymm_avx512_names): New register names for pseudo
4723 registers YMM16-31.
4724 (amd64_ymmh_avx512_names): New register names for raw registers
4725 YMMH16-31.
4726 (amd64_k_names): New register names for K registers.
4727 (amd64_zmmh_names): New register names for ZMM raw registers.
4728 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4729 (amd64_xmm_avx512_names): New register names for XMM16-31
4730 registers.
4731 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4732 registers.
4733 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4734 if feature is present.
4735 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4736 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4737 (AMD64_NUM_REGS): Adjust to new number of registers.
4738 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4739 registers supplied via XSTATE by AVX512 registers.
4740 (i386_linux_read_description): Add case for AVX512.
4741 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4742 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4743 (i386_linux_core_read_description): Add case for AVX512.
4744 (i386_linux_init_abi): Install supported register note section
4745 for AVX512.
4746 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4747 AVX512.
4748 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4749 registers to be number of zmm7h + 1.
4750 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4751 * i386-tdep.c: Include features/i386/i386-avx512.c.
4752 (i386_zmm_names): Add ZMM pseudo register names array.
4753 (i386_zmmh_names): Add ZMM raw register names array.
4754 (i386_k_names): Add K raw register names array.
4755 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4756 registers. AVX512 has 16 more ZMM registers than there are YMM
4757 registers.
4758 (i386_zmmh_regnum_p): Add function to look up register number of
4759 ZMM raw registers.
4760 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4761 (i386_k_regnum_p): Likewise for K raw registers.
4762 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4763 registers added by AVX512.
4764 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4765 registers added by AVX512.
4766 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4767 added by AVX512.
4768 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4769 (i386_pseudo_register_name): Add ZMM pseudo registers.
4770 (i386_zmm_type): Construct and return vector registers type for ZMM
4771 registers.
4772 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4773 ZMM0-31 pseudo registers and K registers.
4774 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4775 and YMM16-31 registers from register cache.
4776 (i386_pseudo_register_write): Add code to write K, ZMM and
4777 YMM16-31 registers.
4778 (i386_register_reggroup_p): Add code to include/exclude AVX512
4779 registers in/from respective register groups.
4780 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4781 registers if feature is present in xcr0.
4782 (i386_gdbarch_init): Add code to initialize AVX512 feature
4783 variables in tdep structure, wire in pseudo registers and call
4784 initialize_tdesc_i386_avx512.
4785 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4786 variables.
4787 (i386_regnum): Add AVX512 registers.
4788 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4789 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4790 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4791 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4792 512 bits wide.
4793 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4794 (i386_ymm_avx512_regnum_p): Likewise.
4795 (i386_k_regnum_p): Likewise.
4796 (i386_zmm_regnum_p): Likewise.
4797 (i386_zmmh_regnum_p): Likewise.
4798 * i387-tdep.c : Update year in copyright notice.
4799 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4800 XSAVE buffer.
4801 (XSAVE_YMM_AVX512_ADDR): New macro.
4802 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4803 XSAVE buffer.
4804 (XSAVE_XMM_AVX512_ADDR): New macro.
4805 (xsave_avx512_k_offset): New table for K register offsets in
4806 XSAVE buffer.
4807 (XSAVE_AVX512_K_ADDR): New macro.
4808 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4809 in XSAVE buffer.
4810 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4811 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4812 buffer.
4813 (i387_collect_xsave): Add code to collect AVX512 registers from
4814 XSAVE buffer.
4815 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4816 of XMM16-31 registers.
4817 (I387_NUM_K_REGS): New define for number of K registers.
4818 (I387_K0_REGNUM): New define for K0 register number.
4819 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4820 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4821 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4822 registers.
4823 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4824 (I387_XMM16_REGNUM): New define for XMM16 register number.
4825 (I387_YMM0_REGNUM): New define for YMM0 register number.
4826 (I387_KEND_REGNUM): New define for last K register number.
4827 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4828 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4829 number.
4830 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4831 number.
4832 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4833 size.
4834 * features/Makefile: Add AVX512 related files.
4835 * features/i386/32bit-avx512.xml: New file.
4836 * features/i386/64bit-avx512.xml: Likewise.
4837 * features/i386/amd64-avx512-linux.c: Likewise.
4838 * features/i386/amd64-avx512-linux.xml: Likewise.
4839 * features/i386/amd64-avx512.c: Likewise.
4840 * features/i386/amd64-avx512.xml: Likewise.
4841 * features/i386/i386-avx512-linux.c: Likewise.
4842 * features/i386/i386-avx512-linux.xml: Likewise.
4843 * features/i386/i386-avx512.c: Likewise.
4844 * features/i386/i386-avx512.xml: Likewise.
4845 * features/i386/x32-avx512-linux.c: Likewise.
4846 * features/i386/x32-avx512-linux.xml: Likewise.
4847 * features/i386/x32-avx512.c: Likewise.
4848 * features/i386/x32-avx512.xml: Likewise.
4849 * regformats/i386/amd64-avx512-linux.dat: New file.
4850 * regformats/i386/amd64-avx512.dat: Likewise.
4851 * regformats/i386/i386-avx512-linux.dat: Likewise.
4852 * regformats/i386/i386-avx512.dat: Likewise.
4853 * regformats/i386/x32-avx512-linux.dat: Likewise.
4854 * regformats/i386/x32-avx512.dat: Likewise.
4855 * NEWS: Add note about new support for AVX512.
4856
4857
08351840
PA
48582014-04-23 Pedro Alves <palves@redhat.com>
4859
4860 * breakpoint.c (insert_bp_location): Tolerate errors if the
4861 breakpoint is set in a user-loaded objfile.
4862 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4863 location is marked shlib_disabled. If the breakpoint is set in a
4864 user-loaded objfile is a GDB-side memory breakpoint, validate it
4865 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4866 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4867 flag.
4868 * mem-break.c (memory_validate_breakpoint): New function.
4869 * objfiles.c (userloaded_objfile_contains_address_p): New
4870 function.
4871 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4872 * target.h (memory_validate_breakpoint): New declaration.
4873
076855f9
PA
48742014-04-23 Pedro Alves <palves@redhat.com>
4875
4876 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4877 the breakpoint is set in a shared library, only suppress
4878 errors for software breakpoints, not hardware breakpoints.
4879
483805cf
PA
48802014-04-22 Pedro Alves <palves@redhat.com>
4881
4882 * infrun.c (schedlock_applies): New function, factored out from
4883 find_thread_needs_step_over.
4884 (find_thread_needs_step_over): Use it.
4885 (switch_back_to_stepped_thread): Always clear trap_expected if the
4886 step over is finished. Return early if scheduler locking applies.
4887 Look for the stepping thread and a potential step-over thread with
4888 a single loop.
4889 (currently_stepping_or_nexting_callback): Delete.
4890
a75fef0e
NC
48912014-04-22 Nick Clifton <nickc@redhat.com>
4892
4893 * NEWS: Mention that ARM sim now supports tracing.
4894
48b6e87e
YQ
48952014-04-22 Yao Qi <yao@codesourcery.com>
4896
4897 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4898 to ...
4899 * tracefile.c (tracefile_fetch_registers): ... it. New
4900 function.
4901 * tracefile.h (tracefile_fetch_registers): Declare.
4902 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4903 tracefile_fetch_registers.
4904
17617f2d
EZ
49052014-04-19 Eli Zaretskii <eliz@gnu.org>
4906
4907 PR gdb/14018
4908 * windows-nat.c (thread_rec): Don't display a warning when
4909 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4910 fails for any reason, set th->suspended to -1, so that we don't
4911 try to resume such a thread. Also, don't return NULL in these
4912 cases, to avoid completely ruin the session due to "PC register is
4913 not available" error.
4914 (do_windows_fetch_inferior_registers): Check errors in
4915 GetThreadContext call.
4916 (windows_continue): Accept an additional argument KILLED; if not
4917 zero, ignore errors in the SetThreadContext call, since the
4918 inferior was killed and is shutting down.
4919 (windows_resume, get_windows_debug_event)
4920 (windows_create_inferior, windows_mourn_inferior)
4921 (windows_kill_inferior): All callers of windows_continue changed
4922 to adjust to its new calling sequence.
4923
5723a6fd
YQ
49242014-04-19 Yao Qi <yao@codesourcery.com>
4925
4926 * ctf.c (ctf_open): Call post_create_inferior.
4927
614d5099
YQ
49282014-04-19 Yao Qi <yao@codesourcery.com>
4929
4930 * ctf.c (handle_id): New static variable.
4931 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4932 value. Get the declaration of event "register" and get length
4933 of field "contents".
4934
dac3e710
YQ
49352014-04-19 Yao Qi <yao@codesourcery.com>
4936
4937 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4938
2bca57ba
SC
49392014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4940
4941 * valops.c (oload_method_static): Remove unnecessary argument
4942 METHOD. Update all callers.
4943
51d48146
PA
49442014-04-18 Pedro alves <palves@redhat.com>
4945 Tom Tromey <tromey@redhat.com>
4946
4947 PR backtrace/15558
4948 * frame.c (get_prev_frame_1): Rename to ...
4949 (get_prev_frame_always): ... this, and make extern. Adjust.
4950 (skip_artificial_frames): Use get_prev_frame_always.
4951 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4952 (get_frame_unwind_stop_reason): Adjust to rename.
4953 * frame.h (get_prev_frame_always): Declare.
4954 * inline-frame.c: Include frame.h.
4955 (inline_frame_this_id): Use get_prev_frame_always.
4956
1bdad2e0
TG
49572014-04-18 Tristan Gingold <gingold@adacore.com>
4958
4959 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4960 code by using bfd_mach_o_get_base_address.
4961
7ce16bd4
UW
49622014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4963
4964 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4965 (spu_ax_pseudo_register_collect): New function.
4966 (spu_ax_pseudo_register_push_stack): Likewise.
4967 (spu_dwarf_reg_to_regnum): Likewise.
4968 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4969
2ed3c037
UW
49702014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4971
4972 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4973 Replace FRAME argument with FRAME_ID.
4974 * gdbarch.c, gdbarch.h: Regenerate.
4975 * findvar.c (default_value_from_register): Add GDBARCH argument;
4976 replace FRAME by FRAME_ID. No longer call get_frame_id.
4977 (value_from_register): Update call to gdbarch_value_from_register.
4978 * value.h (default_value_from_register): Update prototype.
4979 * s390-linux-tdep.c (s390_value_from_register): Update interface
4980 and call to default_value_from_register.
4981 * spu-tdep.c (spu_value_from_register): Likewise.
4982
4983 * findvar.c (address_from_register): Remove TYPE argument.
4984 Do not call value_from_register; use gdbarch_value_from_register
4985 with null_frame_id instead.
4986 * value.h (address_from_register): Update prototype.
4987 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4988 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4989 address_from_register interface change.
4990
71e50e83
YQ
49912014-04-17 Yao Qi <yao@codesourcery.com>
4992
4993 * gdbtypes.h: Update comments to link to types and macros'
4994 definitions.
4995
7a23c549
SC
49962014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4997
4998 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4999
22869d73
KS
50002014-04-16 Keith Seitz <keiths@redhat.com>
5001
5002 PR gdb/15827
5003 * dwarf2read.c (skip_one_die): Check that all relative-offset
5004 sibling DIEs fall within range of the current reader's buffer.
5005 (read_partial_die): Likewise.
5006
c4f87ca6
KS
50072014-04-16 Keith Seitz <keiths@redhat.com>
5008
5009 PR c++/16597
5010 * cp-namespace.c (lookup_symbol_file): If the type name of
5011 `this' is NULL, return immediately.
5012
b50c8614
KS
50132014-04-14 Keith Seitz <keiths@redhat.com>
5014
5015 PR c++/16253
5016 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5017 from symbol_matches_domain in symtab.c. All local callers
5018 of symbol_matches_domain updated.
5019 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5020 search STRUCT_DOMAIN.
5021 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5022 independently. standard_lookup will do that automatically.
5023 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5024 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5025 (cp_lookup_symbol_in_namespace): Likewise.
5026 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5027 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5028 may return a STRUCT_DOMAIN match.
5029 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5030 * cp-support.c: Include language.h.
5031 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5032 VAR_DOMAIN.
5033 * psymtab.c (match_partial_symbol): Compare the requested
5034 domain with the symbol's domain directly.
5035 (lookup_partial_symbol): Likewise.
5036 * symtab.c (lookup_symbol_in_language): Explain when/why
5037 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5038 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5039 appropriate languages.
5040 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5041 and moved to ada-lang.c
5042 (lookup_block_symbol): Explain that this function only returns
5043 symbol matching the requested DOMAIN.
5044 Compare the requested domain with the symbol's domain directly.
5045 (iterate_over_symbols): Compare the requested domain with the
5046 symbol's domain directly.
5047 * symtab.h (symbol_matches_domain): Remove.
5048
3d567982
TT
50492014-04-14 Tom Tromey <tromey@redhat.com>
5050
5051 PR c++/15246:
5052 * c-exp.y (type_aggregate_p): New function.
5053 (qualified_name, classify_inner_name): Use it.
5054 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5055 and TYPE_TARGET_TYPE of an enum type.
5056 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5057 an enum type.
5058 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5059 handle TYPE_DECLARED_CLASS.
5060 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5061 types.
5062 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5063 * valops.c (enum_constant_from_type): New function.
5064 (value_aggregate_elt): Use it.
5065 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5066 TYPE_CODE_ENUM.
5067
c848d642
TT
50682014-04-14 Tom Tromey <tromey@redhat.com>
5069
5070 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5071 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5072 const.
5073 * value.h (value_aggregate_elt): Update.
5074
0626fc76
TT
50752014-04-14 Tom Tromey <tromey@redhat.com>
5076
5077 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5078
5ecaaa66
SA
50792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5080
5081 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5082 (evaluate_subexp_standard): Pass noside argument.
5083 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5084 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5085 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5086 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5087 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5088
1612e0c0
SA
50892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5090
5091 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5092 points to a constant blob.
5093
c451ebe5
SA
50942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5095
5096 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5097 property and store it as the high bound and flag the range accordingly.
5098 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5099 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5100 * gdbtypes.h (enum range_flags): New enum.
5101 (struct range_bounds): Add flags member.
5102
1d42e4c4
SA
51032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5104
5105 * c-typeprint.c (c_type_print_varspec_suffix): Added
5106 check for not yet resolved high bound. If unresolved, print
5107 "variable length" string to the console instead of random
5108 length.
5109
9f1f738a
SA
51102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5111
5112 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5113 value.
5114 (ada_template_to_fixed_record_type_1): Likewise.
5115 (ada_to_fixed_type_1): Likewise.
5116 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5117 (cp_print_value): Likewise.
5118 * d-valprint.c (dynamic_array_type): Likewise.
5119 * findvar.c (address_of_variable): Likewise.
5120 * jv-valprint.c (java_value_print): Likewise.
5121 * valops.c (value_ind): Likewise.
5122 * value.c (coerce_ref): Likewise.
5123
3c8452d4
SA
51242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5125
5126 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5127 value and retrieve the dynamic type size.
5128
4ad88275
SA
51292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5130
5131 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5132 passed to sizeof is dynamic evaluate the argument to compute the length.
5133
80180f79
SA
51342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5135 Joel Brobecker <brobecker@adacore.com>
5136
5137 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5138 (dwarf2_evaluate_property): New function.
5139 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5140 * dwarf2read.c (attr_to_dynamic_prop): New function.
5141 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5142 attribute.
5143 * gdbtypes.c: Include dwarf2loc.h.
5144 (is_dynamic_type): New function.
5145 (resolve_dynamic_type): New function.
5146 (resolve_dynamic_bounds): New function.
5147 (get_type_length): New function.
5148 (check_typedef): Use get_type_length to compute type length.
5149 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5150 (TYPE_LOW_BOUND_KIND): New macro.
5151 (is_dynamic_type): New function prototype.
5152 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5153 to resolve dynamic properties of the type. Update comment.
5154 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5155
a1556843
RH
51562014-04-14 Richard Henderson <rth@redhat.com>
5157
5158 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5159
0be03e84
DE
51602014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5161 Doug Evans <xdje42@gmail.com>
5162
5163 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5164 dereference TYPE_CODE_REF values.
5165
6b662e19
JB
51662014-04-11 Joel Brobecker <brobecker@adacore.com>
5167
5168 Revert the following changes due to regressions:
5169
5170 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5171 (dwarf2_evaluate_property): New function.
5172 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5173 * dwarf2read.c (attr_to_dynamic_prop): New function.
5174 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5175 attribute.
5176 * gdbtypes.c: Include dwarf2loc.h.
5177 (is_dynamic_type): New function.
5178 (resolve_dynamic_type): New function.
5179 (resolve_dynamic_bounds): New function.
5180 (get_type_length): New function.
5181 (check_typedef): Use get_type_length to compute type length.
5182 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5183 (TYPE_LOW_BOUND_KIND): New macro.
5184 (is_dynamic_type): New function prototype.
5185 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5186 to resolve dynamic properties of the type. Update comment.
5187 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5188
5189 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5190 passed to sizeof is dynamic evaluate the argument to compute the length.
5191
5192 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5193 value and retrieve the dynamic type size.
5194
5195 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5196 (ada_template_to_fixed_record_type_1): Likewise.
5197 (ada_to_fixed_type_1): Likewise.
5198 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5199 (cp_print_value): Likewise.
5200 * d-valprint.c (dynamic_array_type): Likewise.
5201 * eval.c (evaluate_subexp_with_coercion): Likewise.
5202 * findvar.c (address_of_variable): Likewise.
5203 * jv-valprint.c (java_value_print): Likewise.
5204 * valops.c (value_ind): Likewise.
5205 * value.c (coerce_ref): Likewise.
5206
5207 * c-typeprint.c (c_type_print_varspec_suffix): Added
5208 check for not yet resolved high bound. If unresolved, print
5209 "variable length" string to the console instead of random
5210 length.
5211
5212 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5213 property and store it as the high bound and flag the range accordingly.
5214 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5215 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5216 * gdbtypes.h (enum range_flags): New enum.
5217 (struct range_bounds): Add flags member.
5218
5219 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5220 points to a constant blob.
5221
5222 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5223 (evaluate_subexp_standard): Pass noside argument.
5224 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5225 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5226 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5227 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5228 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5229
245a5f0b
KS
52302014-04-11 Keith Seitz <keiths@redhat.com>
5231
5232 PR c++/16675
5233 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5234 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5235 reference types.
5236
3bce8237
SA
52372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5238
5239 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5240 (evaluate_subexp_standard): Pass noside argument.
5241 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5242 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5243 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5244 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5245 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5246
92b09522
SA
52472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5248
5249 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5250 points to a constant blob.
5251
e1969afb
SA
52522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5253
5254 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5255 property and store it as the high bound and flag the range accordingly.
5256 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5257 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5258 * gdbtypes.h (enum range_flags): New enum.
5259 (struct range_bounds): Add flags member.
5260
b86138fb
SA
52612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5262
5263 * c-typeprint.c (c_type_print_varspec_suffix): Added
5264 check for not yet resolved high bound. If unresolved, print
5265 "variable length" string to the console instead of random
5266 length.
5267
bcd629a4
SA
52682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5269
5270 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5271 (ada_template_to_fixed_record_type_1): Likewise.
5272 (ada_to_fixed_type_1): Likewise.
5273 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5274 (cp_print_value): Likewise.
5275 * d-valprint.c (dynamic_array_type): Likewise.
5276 * eval.c (evaluate_subexp_with_coercion): Likewise.
5277 * findvar.c (address_of_variable): Likewise.
5278 * jv-valprint.c (java_value_print): Likewise.
5279 * valops.c (value_ind): Likewise.
5280 * value.c (coerce_ref): Likewise.
5281
04b19544
SA
52822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5283
5284 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5285 value and retrieve the dynamic type size.
5286
26cb189f
SA
52872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5288
5289 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5290 passed to sizeof is dynamic evaluate the argument to compute the length.
5291
37c1ab67
SA
52922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5293
5294 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5295 (dwarf2_evaluate_property): New function.
5296 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5297 * dwarf2read.c (attr_to_dynamic_prop): New function.
5298 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5299 attribute.
5300 * gdbtypes.c: Include dwarf2loc.h.
5301 (is_dynamic_type): New function.
5302 (resolve_dynamic_type): New function.
5303 (resolve_dynamic_bounds): New function.
5304 (get_type_length): New function.
5305 (check_typedef): Use get_type_length to compute type length.
5306 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5307 (TYPE_LOW_BOUND_KIND): New macro.
5308 (is_dynamic_type): New function prototype.
5309 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5310 to resolve dynamic properties of the type. Update comment.
5311 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5312
729efb13
SA
53132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5314
5315 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5316 declaring high/low bounds and change uses accordingly. Call
5317 create_range_type instead of create_static_range_type.
5318 * gdbtypes.c (create_range_type): New function.
5319 (create_range_type): Convert bounds into struct bound_prop and pass
5320 them to create_range_type.
5321 * gdbtypes.h (struct bound_prop): New struct.
5322 (create_range_type): New function prototype.
5323 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5324 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5325 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5326 part of the bound.
5327 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5328
0c9c3474
SA
53292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5330
5331 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5332 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5333 * ada-lang.c: All uses of create_range_type updated.
5334 * coffread.c: All uses of create_range_type updated.
5335 * dwarf2read.c: All uses of create_range_type updated.
5336 * f-exp.y: All uses of create_range_type updated.
5337 * m2-valprint.c: All uses of create_range_type updated.
5338 * mdebugread.c: All uses of create_range_type updated.
5339 * stabsread.c: All uses of create_range_type updated.
5340 * valops.c: All uses of create_range_type updated.
5341 * valprint.c: All uses of create_range_type updated.
5342
9d497a19
PA
53432014-04-10 Pedro Alves <palves@redhat.com>
5344
5345 * breakpoint.c (single_step_breakpoints)
5346 (single_step_gdbarch): Move up in the file.
5347 (one_breakpoint_xfer_memory): New function, factored out from ...
5348 (breakpoint_xfer_memory): ... here. Also process single-step
5349 breakpoints.
5350
15a9128a
TG
53512014-04-09 Tristan Gingold <gingold@adacore.com>
5352
5353 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5354 comments.
5355 (darwin_decode_exception_message): Free port only after use.
5356
9c97a070
PL
53572014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5358
5359 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5360 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5361 when setting the size of call_length.
5362
7af389b8
SC
53632014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5364
5365 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5366 dereference TYPE_CODE_REF values.
5367
86ad98c3
JB
53682014-04-07 Joel Brobecker <brobecker@adacore.com>
5369
5370 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5371 end of warning message.
5372
b0aeadb3
DE
53732014-04-03 Doug Evans <dje@google.com>
5374
5375 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5376 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5377
5979d6b6
AM
53782014-04-02 Alan Modra <amodra@gmail.com>
5379
5380 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5381 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5382 (struct symbol_file_add_from_memory_args): Add size field.
5383 (find_vdso_size): New function.
5384 (add_vsyscall_page): Attempt to find vdso size.
5385
0d60c288
DE
53862014-04-01 Doug Evans <dje@google.com>
5387
5388 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5389
a41f2563
TG
53902014-04-01 Tristan Gingold <gingold@adacore.com>
5391
5392 * darwin-nat.c (darwin_encode_reply): Add prototype.
5393 (darwin_decode_exception_message): Reply to unknown inferiors.
5394 (darwin_decode_message): Handle message by id. Ignore message
5395 to unknown inferior.
5396 (darwin_wait): Discard unknown messages, add debug trace.
5397
11a865c8
DE
53982014-03-31 Doug Evans <dje@google.com>
5399
5400 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5401 comp_dir_string.
5402
770e7fc7
DE
54032014-03-31 Doug Evans <dje@google.com>
5404
5405 New option "set print symbol-loading".
5406 * NEWS: Mention it.
5407 * solib.c (solib_read_symbols): Only print symbol loading messages
5408 if requested.
5409 (solib_add): If symbol loading is in "brief" mode, notify user
5410 symbols are being loaded.
5411 (reload_shared_libraries_1): Ditto.
5412 * symfile.c (print_symbol_loading_off): New static global.
5413 (print_symbol_loading_brief): New static global.
5414 (print_symbol_loading_full): New static global.
5415 (print_symbol_loading_enums): New static global.
5416 (print_symbol_loading): New static global.
5417 (print_symbol_loading_p): New function.
5418 (symbol_file_add_with_addrs): Only print symbol loading messages
5419 if requested.
5420 (_initialize_symfile): Register "print symbol-loading" set/show
5421 command.
5422 * symfile.h (print_symbol_loading_p): Declare.
5423
c32c64b7
DE
54242014-03-30 Doug Evans <xdje42@gmail.com>
5425
5426 * infrun.c (set_last_target_status): New function.
5427 (handle_inferior_event): Call it.
5428
7c0bc051
DE
54292014-03-30 Doug Evans <xdje42@gmail.com>
5430
5431 * inferior.h (enum stop_kind): Improve comment.
5432
8776cfe9
JB
54332014-03-28 Joel Brobecker <brobecker@adacore.com>
5434
5435 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5436 a reference, strip the reference layer before calling
5437 the lang_ops value_has_mutated callback.
5438
410a0ff2
SDJ
54392014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5440
5441 Remove some globals from our parser.
5442 * language.c (unk_lang_parser): Add "struct parser_state"
5443 argument.
5444 * language.h (struct language_defn) <la_parser>: Likewise.
5445 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5446 (initialize_expout): Add "struct parser_state" argument.
5447 Rewrite function to use the parser state.
5448 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5449 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5450 write_exp_elt_longcst, write_exp_elt_dblcst,
5451 write_exp_elt_decfloatcst, write_exp_elt_type,
5452 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5453 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5454 write_dollar_variable): Likewise.
5455 (parse_exp_in_context_1): Use parser state.
5456 (insert_type_address_space): Add "struct parser_state" argument.
5457 Use parser state.
5458 (increase_expout_size): New function.
5459 * parser-defs.h: Forward declare "struct language_defn" and
5460 "struct parser_state".
5461 (expout, expout_size, expout_ptr): Remove extern declarations.
5462 (parse_gdbarch, parse_language): Rewrite macro declarations to
5463 accept the parser state.
5464 (struct parser_state): New struct.
5465 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5466 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5467 write_exp_elt_decfloatcst, write_exp_elt_type,
5468 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5469 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5470 write_exp_msymbol, write_dollar_variable,
5471 mark_struct_expression, insert_type_address_space): Add "struct
5472 parser_state" argument.
5473 (increase_expout_size): New function.
5474 * utils.c (do_clear_parser_state): New function.
5475 (make_cleanup_clear_parser_state): Likewise.
5476 * utils.h (make_cleanup_clear_parser_state): New function
5477 prototype.
5478 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5479 Update calls to write_exp* in order to pass the parser state.
5480 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5481 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5482 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5483 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5484 * stap-probe.c (stap_parse_register_operand): Likewise.
5485 (stap_parse_single_operand): Likewise.
5486 (stap_parse_argument_1): Likewise.
5487 (stap_parse_argument): Use parser state.
5488 * stap-probe.h: Include "parser-defs.h".
5489 (struct stap_parse_info) <pstate>: New field.
5490 * c-exp.y (parse_type): Rewrite to use parser state.
5491 (yyparse): Redefine to c_parse_internal.
5492 (pstate): New global variable.
5493 (parse_number): Add "struct parser_state" argument.
5494 (write_destructor_name): Likewise.
5495 (type_exp): Update calls to write_exp* and similars in order to
5496 use parser state.
5497 (exp1, exp, variable, qualified_name, space_identifier,
5498 typename, typebase): Likewise.
5499 (write_destructor_name, parse_number, lex_one_token,
5500 classify_name, classify_inner_name, c_parse): Add "struct
5501 parser_state" argument. Update function to use parser state.
5502 * c-lang.h: Forward declare "struct parser_state".
5503 (c_parse): Add "struct parser_state" argument.
5504 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5505 (yyparse): Redefine macro to ada_parse_internal.
5506 (pstate): New variable.
5507 (write_int, write_object_renaming, write_var_or_type,
5508 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5509 type_int, type_long, type_long_long, type_float, type_double,
5510 type_long_double, type_char, type_boolean, type_system_address):
5511 Add "struct parser_state" argument.
5512 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5513 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5514 var_or_type, aggregate, aggregate_component_list,
5515 positional_list, others, component_group,
5516 component_associations): Update calls to write_exp* and similar
5517 functions in order to use parser state.
5518 (ada_parse, write_var_from_sym, write_int,
5519 write_exp_op_with_string, write_object_renaming,
5520 find_primitive_type, write_selectors, write_ambiguous_var,
5521 write_var_or_type, write_name_assoc, type_int, type_long,
5522 type_long_long, type_float, type_double, type_long_double,
5523 type_char, type_boolean, type_system_address): Add "struct
5524 parser_state" argument. Adjust function to use parser state.
5525 * ada-lang.c (parse): Likewise.
5526 * ada-lang.h: Forward declare "struct parser_state".
5527 (ada_parse): Add "struct parser_state" argument.
5528 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5529 calls to both functions.
5530 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5531 parser state.
5532 (yyparse): Redefine macro to f_parse_internal.
5533 (pstate): New variable.
5534 (parse_number): Add "struct parser_state" argument.
5535 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5536 and similars in order to use parser state.
5537 (parse_number): Adjust code to use parser state.
5538 (yylex): Likewise.
5539 (f_parse): New function.
5540 * f-lang.h: Forward declare "struct parser_state".
5541 (f_parse): Add "struct parser_state" argument.
5542 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5543 parser state.
5544 (yyparse): Redefine macro for java_parse_internal.
5545 (pstate): New variable.
5546 (push_expression_name, push_expression_name, insert_exp): Add
5547 "struct parser_state" argument.
5548 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5549 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5550 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5551 PostIncrementExpression, PostDecrementExpression,
5552 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5553 UnaryExpressionNotPlusMinus, CastExpression,
5554 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5555 RelationalExpression, EqualityExpression, AndExpression,
5556 ExclusiveOrExpression, InclusiveOrExpression,
5557 ConditionalAndExpression, ConditionalOrExpression,
5558 ConditionalExpression, Assignment, LeftHandSide): Update
5559 calls to write_exp* and similars in order to use parser state.
5560 (parse_number): Ajust code to use parser state.
5561 (yylex): Likewise.
5562 (java_parse): New function.
5563 (push_variable): Add "struct parser_state" argument. Adjust
5564 code to user parser state.
5565 (push_fieldnames, push_qualified_expression_name,
5566 push_expression_name, insert_exp): Likewise.
5567 * jv-lang.h: Forward declare "struct parser_state".
5568 (java_parse): Add "struct parser_state" argument.
5569 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5570 parser state.
5571 (yyparse): Redefine macro to m2_parse_internal.
5572 (pstate): New variable.
5573 (type_exp, exp, fblock, variable, type): Update calls to
5574 write_exp* and similars to use parser state.
5575 (yylex): Likewise.
5576 (m2_parse): New function.
5577 * m2-lang.h: Forward declare "struct parser_state".
5578 (m2_parse): Add "struct parser_state" argument.
5579 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5580 * objc-lang.h: Forward declare "struct parser_state".
5581 (end_msglist): Add "struct parser_state" argument.
5582 * p-exp.y (parse_type): Rewrite macro to use parser state.
5583 (yyparse): Redefine macro to pascal_parse_internal.
5584 (pstate): New variable.
5585 (parse_number): Add "struct parser_state" argument.
5586 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5587 write_exp* and similars in order to use parser state.
5588 (parse_number, yylex): Adjust code to use parser state.
5589 (pascal_parse): New function.
5590 * p-lang.h: Forward declare "struct parser_state".
5591 (pascal_parse): Add "struct parser_state" argument.
5592 * go-exp.y (parse_type): Rewrite macro to use parser state.
5593 (yyparse): Redefine macro to go_parse_internal.
5594 (pstate): New variable.
5595 (parse_number): Add "struct parser_state" argument.
5596 (type_exp, exp1, exp, variable, type): Update calls to
5597 write_exp* and similars in order to use parser state.
5598 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5599 to use parser state.
5600 (go_parse): Likewise.
5601 * go-lang.h: Forward declare "struct parser_state".
5602 (go_parse): Add "struct parser_state" argument.
5603
342587c4
DE
56042014-03-27 Doug Evans <dje@google.com>
5605
5606 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5607
33e80786
DE
56082014-03-27 Doug Evans <dje@google.com>
5609
5610 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5611 Remove argument abbrev_section. All callers updated.
5612
1dbab08b
DE
56132014-03-27 Doug Evans <dje@google.com>
5614
5615 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5616 addr_base, ranges_base.
5617
318d3177
KS
56182014-03-26 Keith Seitz <keiths@redhat.com>
5619
5620 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5621 types, not VAR_DOMAIN.
5622
1e54db15
SL
56232014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5624
5625 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5626 "ra" registers.
5627 * features/nios2-linux.c: Regenerated.
5628 * features/nios2.c: Regenerated.
5629
d3839ede
PA
56302014-03-25 Pedro Alves <palves@redhat.com>
5631
5632 * cli/cli-script.c (script_from_file): Force the interpreter to
5633 sync mode.
5634
7588d2ec
PL
56352014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5636
5637 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5638 small stack allocation.
5639
a6290449
TG
56402014-03-24 Tristan Gingold <gingold@adacore.com>
5641
5642 * darwin-nat.c (exc_server): Remove unused prototype.
5643 (darwin_dump_message): Correctly display data on x86_64.
5644 (darwin_encode_reply): Fix style.
5645 Add comments and fix indentation.
5646
31ae9d24 56472014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5648
5649 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5650
6339bfc4
DE
56512014-03-22 Doug Evans <xdje42@gmail.com>
5652
5653 * infcmd.c: Whitespace fixes.
5654 (interrupt_command): Merge two function comments into one.
5655
0a07590b
DE
56562014-03-22 Doug Evans <xdje42@gmail.com>
5657
5658 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5659 All uses updated.
5660
b55fbac4
YQ
56612014-03-22 Yao Qi <yao@codesourcery.com>
5662
5663 * remote.c (target_read_live_memory): Remove.
5664 (memory_xfer_live_readonly_partial): Rename it to
5665 remote_xfer_live_readonly_partial. Remove argument 'object'.
5666 All callers updated. Call remote_read_bytes_1
5667 instead of target_read_live_memory.
5668 * tracepoint.c (set_traceframe_number): Remove.
5669 (make_cleanup_restore_traceframe_number): Likewise .
5670 * tracepoint.h (set_traceframe_number): Remove declaration.
5671 (make_cleanup_restore_traceframe_number): Likewise.
5672
9217e74e
YQ
56732014-03-22 Yao Qi <yao@codesourcery.com>
5674
5675 * remote.c (remote_read_bytes): Move code on reading from the
5676 remote stub to ...
5677 (remote_read_bytes_1): ... here. New function.
5678
8acf9577
YQ
56792014-03-22 Yao Qi <yao@codesourcery.com>
5680
5681 * ctf.c (ctf_xfer_partial): Check the return value of
5682 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5683 return TARGET_XFER_UNAVAILABLE.
5684 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5685 * target.c (target_read_live_memory): Move it to remote.c.
5686 (memory_xfer_live_readonly_partial): Likewise.
5687 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5688 * remote.c (target_read_live_memory): Moved from target.c.
5689 (memory_xfer_live_readonly_partial): Likewise.
5690 (remote_read_bytes): Factored out from
5691 memory_xfer_partial_1.
5692
feef67ab
DE
56932014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5694
5695 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5696 NULL pointer.
5697
b65dc60b
PA
56982014-03-21 Pedro Alves <palves@redhat.com>
5699
5700 * infrun.c (normal_stop): Extend comment.
5701
b4ab256d
HZ
57022014-03-21 Hui Zhu <hui@codesourcery.com>
5703 Pedro Alves <palves@redhat.com>
5704
5705 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5706 static buffer.
5707 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5708 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5709 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5710
deba7593
MR
57112014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5712
5713 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5714 `z' formatted output modifier.
5715
1bff71c3
SDJ
57162014-03-20 Tom Tromey <tromey@redhat.com>
5717 Sergio Durigan Junior <sergiodj@redhat.com>
5718
5719 * probe.c (parse_probes): Turn assert into an ordinary error.
5720 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5721 exceptions when parsing probes. Rearrange the code for clarity.
5722
90e28950
TT
57232014-03-20 Tom Tromey <tromey@redhat.com>
5724
5725 PR gdb/14135
5726 * top.c (execute_command): Only dispatch events if the command
5727 started the target.
5728
beb460e8
PA
57292014-03-20 Tom Tromey <tromey@redhat.com>
5730
5731 PR cli/15718
5732 * infcall.c: Include event-top.h.
5733 (run_inferior_call): Call async_disable_stdin if needed.
5734
99619bea
PA
57352014-03-20 Pedro Alves <palves@redhat.com>
5736
5737 * infrun.c (prepare_to_proceed): Delete.
5738 (thread_still_needs_step_over): New function.
5739 (find_thread_needs_step_over): New function.
5740 (proceed): If the current thread needs a step-over, set its
5741 steping_over_breakpoint flag. Adjust to use
5742 find_thread_needs_step_over instead of prepare_to_proceed.
5743 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5744 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5745 breakpoint.
5746 (switch_back_to_stepped_thread): Step over breakpoints of all
5747 threads not the stepping thread, before switching back to the
5748 stepping thread.
5749
2adfaa28
PA
57502014-03-20 Pedro Alves <palves@redhat.com>
5751
5752 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5753 extern.
5754 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5755 * infrun.c (saved_singlestep_ptid)
5756 (stepping_past_singlestep_breakpoint): Delete.
5757 (resume): Remove stepping_past_singlestep_breakpoint handling.
5758 (proceed): Store the prev_pc of the stepping thread too.
5759 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5760 singlestep_pc.
5761 (enum infwait_states): Delete infwait_thread_hop_state.
5762 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5763 field.
5764 (handle_inferior_event): Adjust.
5765 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5766 handling and the thread-hop code. Before removing single-step
5767 breakpoints, check whether the thread hit a single-step breakpoint
5768 of another thread. If it did, the trap is not a random signal.
5769 (switch_back_to_stepped_thread): If the event thread hit a
5770 single-step breakpoint, unblock it before switching to the
5771 stepping thread. Handle the case of the stepped thread having
5772 advanced already.
5773 (keep_going): Handle the case of the current thread moving past a
5774 single-step breakpoint.
5775
31e77af2
PA
57762014-03-20 Pedro Alves <palves@redhat.com>
5777
5778 PR breakpoints/7143
5779 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5780 are being stepped over.
5781 (breakpoint_address_match): Make extern.
5782 * breakpoint.h (breakpoint_address_match): New declaration.
5783 * inferior.h (stepping_past_instruction_at): New declaration.
5784 * infrun.c (struct step_over_info): New type.
5785 (step_over_info): New global.
5786 (set_step_over_info, clear_step_over_info)
5787 (stepping_past_instruction_at): New functions.
5788 (handle_inferior_event): Clear the step-over info when
5789 trap_expected is cleared.
5790 (resume): Remove now stale comment.
5791 (clear_proceed_status): Clear step-over info.
5792 (proceed): Adjust step-over handling to set or clear the step-over
5793 info instead of removing all breakpoints.
5794 (handle_signal_stop): When setting up a thread-hop, don't remove
5795 breakpoints here.
5796 (stop_stepping): Clear step-over info.
5797 (keep_going): Adjust step-over handling to set or clear step-over
5798 info and then always inserting breakpoints, instead of removing
5799 all breakpoints when stepping over one.
5800
b9f437de
PA
58012014-03-20 Pedro Alves <palves@redhat.com>
5802
5803 * infrun.c (previous_inferior_ptid): Adjust comment.
5804 (deferred_step_ptid): Delete.
5805 (infrun_thread_ptid_changed, prepare_to_proceed)
5806 (init_wait_for_inferior): Adjust.
5807 (handle_signal_stop): Delete deferred_step_ptid handling.
5808
06c868a8
JK
58092014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5810
5811 PR gdb/15358
5812 * defs.h (sync_quit_force_run): New declaration.
5813 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5814 * event-top.c (async_sigterm_handler): New declaration.
5815 (async_sigterm_token): New variable.
5816 (async_init_signals): Create also async_sigterm_token.
5817 (async_sigterm_handler): New function.
5818 (sync_quit_force_run): New variable.
5819 (handle_sigterm): Replace quit_force call by other calls.
5820 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5821
dea80df0
MR
58222014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5823
5824 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5825 offset into SPE pseudo registers.
5826
0c7e1a46
PA
58272014-03-18 Pedro Alves <palves@redhat.com>
5828
5829 PR gdb/13860
5830 * inferior.h (print_stop_event): Declare.
5831 * infrun.c (print_stop_event): New, factored out from ...
5832 (normal_stop): ... this.
5833 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5834 of bpstat_print/print_stack_frame.
5835
9c1fcd01
TT
58362014-03-17 Tom Tromey <tromey@redhat.com>
5837
5838 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5839
11aa919a
PMR
58402014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5841
5842 * ada-lang.c (decode_constrained_packed_array): Perform a
5843 minimal coercion for reference with coerce_ref instead of
5844 ada_coerce_ref.
5845
d4ccb5e0
TG
58462014-03-17 Tristan Gingold <gingold@adacore.com>
5847
5848 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5849 (darwin_solib_create_inferior_hook): Emit a warning if version
5850 is unhandled.
5851
49840f2a
UW
58522014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5853
5854 * python/py-value.c (get_field_flag): Cast flag_name argument to
5855 PyObject_GetAttrString to support Python 2.4.
5856
ed4123e5
JK
58572014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5858
5859 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5860 (Global Maintainers): Remove Jan Kratochvil.
5861
d6b64346
PA
58622014-03-14 Pedro Alves <palves@redhat.com>
5863
5864 * inferior.h (terminal_ours_for_output): Rename to ...
5865 (child_terminal_ours_for_output): ... this.
5866 (terminal_save_ours): Rename to ...
5867 (child_terminal_save_ours): ... this.
5868 (terminal_ours): Rename to ...
5869 (child_terminal_ours): ... this.
5870 (terminal_inferior): Rename to ...
5871 (child_terminal_inferior): ... this.
5872 (terminal_init_inferior): Rename to ...
5873 (child_terminal_init_inferior): ... this.
5874 (terminal_init_inferior_with_pgrp): Rename to ...
5875 (child_terminal_init_inferior_with_pgrp): ... this.
5876 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5877 (child_terminal_init_with_pgrp): ... this.
5878 (terminal_save_ours): Rename to ...
5879 (child_terminal_save_ours): ... this.
5880 (terminal_init_inferior): Rename to ...
5881 (child_terminal_init): ... this. Adjust.
5882 (terminal_inferior): Rename to ...
5883 (child_terminal_inferior): ... this.
5884 (terminal_ours_for_output): Rename to ...
5885 (child_terminal_ours_for_output): ... this. Adjust.
5886 (terminal_ours): Rename to ...
5887 (child_terminal_ours): ... this.
5888 (terminal_ours_1): Rename to ...
5889 (child_terminal_ours_1): ... this. Adjust.
5890 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5891 * windows-nat.c (do_initial_windows_stuff): Adjust.
5892 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5893 (gnu_terminal_init): ... this. Adjust.
5894 (gnu_target): Adjust.
5895 * inf-child.c (inf_child_target): Adjust.
5896
5a1e8c7a
DE
58972014-03-13 Doug Evans <xdje42@gmail.com>
5898
5899 PR guile/16612
5900 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5901 new eq?-hashtab.
5902
350e1a76
DE
59032014-03-13 Doug Evans <xdje42@gmail.com>
5904
5905 * value.c (record_latest_value): Call release_value_or_incref
5906 instead of release_value.
5907
a69900ae
PA
59082014-03-13 Pedro Alves <palves@redhat.com>
5909
5910 * procfs.c (procfs_target): Don't override to_shortname,
5911 to_longname or to_doc.
5912
5db9f0bd
PA
59132014-03-13 Pedro Alves <palves@redhat.com>
5914
5915 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5916 Unix in user visible strings.
5917
5e3a2c38
SS
59182014-03-12 Stan Shebs <stan@codesourcery.com>
5919
5920 * gdbtypes.h: Annotate comments for Doxygen, add a page
5921 block comment with some general info.
5922
8bc2fe48
PA
59232014-03-12 Pedro Alves <palves@redhat.com>
5924
5925 * infcmd.c (prepare_execution_command): New function, factored out
5926 from several execution commands.
5927 (run_command_1, continue_command, step_1, jump_command)
5928 (signal_command, until_command, advance_command, finish_command)
5929 (attach_command): Use prepare_execution_command.
5930
638c5f49
OJ
59312014-03-12 Omair Javaid <omair.javaid@linaro.org>
5932
5933 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5934 (MAX_BPTS): Define.
5935 (MAX_WPTS): Define.
5936 (struct arm_linux_thread_points): Removed.
5937 (struct arm_linux_process_info): New.
5938 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5939 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5940 (arm_linux_find_breakpoints_by_tid): Removed.
5941 (struct arch_lwp_info): New.
5942 (arm_linux_find_process_pid): New functions.
5943 (arm_linux_add_process): New functions.
5944 (arm_linux_process_info_get): New functions.
5945 (arm_linux_forget_process): New function.
5946 (arm_linux_get_debug_reg_state): New function.
5947 (struct update_registers_data): New.
5948 (update_registers_callback): New function.
5949 (arm_linux_insert_hw_breakpoint1): Updated.
5950 (arm_linux_remove_hw_breakpoint1): Updated.
5951 (arm_linux_insert_hw_breakpoint): Updated.
5952 (arm_linux_remove_hw_breakpoint): Updated.
5953 (arm_linux_insert_watchpoint): Updated.
5954 (arm_linux_remove_watchpoint): Updated.
5955 (arm_linux_new_thread): Updated.
5956 (arm_linux_prepare_to_resume): New function.
5957 (arm_linux_new_fork): New function.
5958 (_initialize_arm_linux_nat): Updated.
5959
6d03af93
PA
59602014-03-12 Pedro Alves <palves@redhat.com>
5961
5962 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5963
b3ccfe11
TT
59642014-03-12 Tom Tromey <tromey@redhat.com>
5965
5966 * inf-child.c (return_zero): New function.
5967 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5968 * aix-thread.c (aix_thread_inferior_created): New function.
5969 (aix_thread_attach): Remove.
5970 (init_aix_thread_ops): Don't set to_attach.
5971 (_initialize_aix_thread): Register inferior_created observer.
5972 * corelow.c (init_core_ops): Don't set to_attach or
5973 to_create_inferior.
5974 * exec.c (init_exec_ops): Don't set to_attach or
5975 to_create_inferior.
5976 * infcmd.c (run_command_1): Use find_run_target. Make direct
5977 target calls.
5978 (attach_command): Use find_attach_target. Make direct target
5979 calls.
5980 * record-btrace.c (init_record_btrace_ops): Don't set
5981 to_create_inferior.
5982 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5983 Remove.
5984 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5985 set to_create_inferior.
5986 * target.c (complete_target_initialization): Add assertion.
5987 (target_create_inferior): Remove.
5988 (find_default_attach, find_default_create_inferior): Remove.
5989 (find_attach_target, find_run_target): New functions.
5990 (find_default_is_async_p, find_default_can_async_p)
5991 (target_supports_non_stop, target_attach): Remove.
5992 (init_dummy_target): Don't set to_create_inferior or
5993 to_supports_non_stop.
5994 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5995 TARGET_DEFAULT_FUNC.
5996 <to_create_inferior>: Add comment.
5997 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5998 TARGET_DEFAULT_RETURN.
5999 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6000 (find_attach_target, find_run_target): Declare.
6001 (target_create_inferior): Remove.
6002 (target_has_execution_1): Update comment.
6003 (target_supports_non_stop): Remove.
6004 * target-delegates.c: Rebuild.
6005
91f83b02
PA
60062014-03-12 Pedro Alves <palves@redhat.com>
6007
6008 * inf-child.h: Update comment to not mention Unix.
6009
f1aea813
PA
60102014-03-12 Pedro Alves <palves@redhat.com>
6011
6012 * inf-child.c: Update top comment to not mention Unix. Add
6013 generic comment describing how this target is meant to be used.
6014 (inf_child_post_attach, inf_child_post_startup_inferior)
6015 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6016 Unix in comment.
6017
ee8e9165
PA
60182014-03-12 Pedro Alves <palves@redhat.com>
6019
6020 * nto-procfs.c: Include inf-child.h.
6021 (procfs_ops): Delete global.
6022 (procfs_can_run): Delete method.
6023 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6024 target pointer instead of referencing procfs_ops.
6025 (procfs_prepare_to_store): Delete.
6026 (init_procfs_ops): Delete function.
6027 (procfs_target): New function, based on init_procfs_ops, but
6028 inherit inf_child_target.
6029 (_initialize_procfs): Use procfs_target.
6030
51a9c8c5
PA
60312014-03-12 Pedro Alves <palves@redhat.com>
6032
6033 * windows-nat.c: Include inf-child.h.
6034 (windows_ops): Delete global.
6035 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6036 methods.
6037 (init_windows_ops): Delete function.
6038 (windows_target): New function, based on init_windows_ops, but
6039 inherit inf_child_target.
6040 (_initialize_windows_nat): Use windows_target. Install x86
6041 specific target methods here.
6042
c1966e26
DE
60432014-03-10 Doug Evans <xdje42@gmail.com>
6044
6045 * guile/guile.c (call_initialize_gdb_module): New function.
6046 (initialize_guile): Replace call to scm_init_guile with call to
6047 scm_with_guile.
6048
023db19c
JB
60492014-03-10 Joel Brobecker <brobecker@adacore.com>
6050
6051 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6052 in call to TYPE_CODE macro.
6053
5ec18f2b
JG
60542014-03-10 Jerome Guitton <guitton@adacore.com>
6055
8668be63
JB
6056 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6057 Resolve tagged types to full view.
5ec18f2b 6058
7d03f2eb
HZ
60592014-03-10 Hui Zhu <hui@codesourcery.com>
6060
6061 * target.h (target_insert_breakpoint): Remove "hardware" from its
6062 comments.
6063
c5164cbc
DE
60642014-03-07 Doug Evans <dje@google.com>
6065
6066 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6067
c4a3fee2
DE
60682014-03-07 Doug Evans <dje@google.com>
6069
6070 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6071 Remove unused local comp_dir_attr. Assert exactly one of
6072 stub_comp_unit_die, stub_comp_dir is non-NULL.
6073
3156469c
JB
60742014-03-07 Joel Brobecker <brobecker@adacore.com>
6075
6076 * target.h (complete_target_initialization, add_target):
6077 Add comment.
6078
c1a7b7c6
PA
60792014-03-07 Pedro Alves <palves@redhat.com>
6080
6081 * go32-nat.c: Include inf-child.h.
6082 (go32_ops): Delete global.
6083 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6084 Delete methods.
6085 (go32_create_inferior): Push the passed in target pointer instead
6086 of referencing go32_ops.
6087 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6088 (go32_target): New function, based on init_go32_ops, but inherit
6089 inf_child_target.
6090 (_initialize_go32_nat): Use go32_target. Move parts of
6091 init_go32_ops here.
6092
d3c1a85f
JB
60932014-03-06 Joel Brobecker <brobecker@adacore.com>
6094
6095 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6096 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6097 SYMBOL_VALUE_ADDRESS.
6098 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6099
5fa1d40e
YQ
61002014-03-06 Yao Qi <yao@codesourcery.com>
6101
6102 * breakpoint.c (get_tracepoint_by_number): Remove argument
6103 optional_p. All callers updated. Adjust comments. Update
6104 output message.
6105 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6106
0c13193f
YQ
61072014-03-06 Yao Qi <yao@codesourcery.com>
6108
6109 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6110 early if get_number returns zero. Use 'p' instead of 'args'.
6111
2217da06
YQ
61122014-03-06 Yao Qi <yao@codesourcery.com>
6113
6114 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6115 message.
6116
cc3da688
YQ
61172014-03-06 Yao Qi <yao@codesourcery.com>
6118
6119 PR breakpoints/16508
6120 * tracepoint.c (check_trace_running): New function.
6121 (trace_find_command): Move code to check_trace_running and
6122 call check_trace_running.
6123 (trace_find_pc_command): Likewise.
6124 (trace_find_tracepoint_command): Likewise.
6125 (trace_find_line_command): Likewise.
6126 (trace_find_range_command): Likewise.
6127 * tracepoint.h (check_trace_running): Likewise.
6128 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6129
6a5f844b
YQ
61302014-03-06 Yao Qi <yao@codesourcery.com>
6131
6132 * target.h (struct target_ops) <to_traceframe_info>: Use
6133 TARGET_DEFAULT_NORETURN (tcomplain ()).
6134 * target-delegates.c: Regenerated.
6135
0f26cec1
PA
61362014-03-05 Pedro Alves <palves@redhat.com>
6137
6138 PR gdb/16575
6139 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6140 void. Update comment.
6141 (dcache_xfer_memory): Delete.
6142 (dcache_read_memory_partial): New, based on the read bits of
6143 dcache_xfer_memory.
6144 (dcache_update): Add status parameter. Use ULONGEST for len, and
6145 adjust. Discard cache lines if the reason for the update was
6146 error.
6147 * dcache.h (dcache_xfer_memory): Delete declaration.
6148 (dcache_read_memory_partial): New declaration.
6149 (dcache_update): Update prototype.
6150 * target.c (raw_memory_xfer_partial): Update the dcache here.
6151 (memory_xfer_partial_1): Don't handle dcache writes here.
6152
b2b255bd
MF
61532014-03-05 Mike Frysinger <vapier@gentoo.org>
6154
6155 * remote-sim.c (gdbsim_load): Add const to prog.
6156
5d9cf8a4
TT
61572014-03-03 Tom Tromey <tromey@redhat.com>
6158
6159 * elfread.c (probe_key): Change to bfd_data.
6160 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6161 now per-BFD, not per-objfile.
6162 * stap-probe.c (stap_probe_destroy): Update comment.
6163 (handle_stap_probe): Allocate on the per-BFD obstack.
6164
729662a5
TT
61652014-03-03 Tom Tromey <tromey@redhat.com>
6166
6167 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6168 * breakpoint.c (create_longjmp_master_breakpoint): Use
6169 get_probe_address.
6170 (add_location_to_breakpoint, bkpt_probe_insert_location)
6171 (bkpt_probe_remove_location): Update.
6172 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6173 * elfread.c (elf_symfile_relocate_probe): Remove.
6174 (elf_probe_fns): Update.
6175 (insert_exception_resume_breakpoint): Change type of "probe"
6176 parameter to bound_probe.
6177 (check_exception_resume): Update.
6178 * objfiles.c (objfile_relocate1): Don't relocate probes.
6179 * probe.c (bound_probe_s): New typedef.
6180 (parse_probes): Use get_probe_address. Set sal's objfile.
6181 (find_probe_by_pc): Return a bound_probe.
6182 (collect_probes): Return a VEC(bound_probe_s).
6183 (compare_probes): Update.
6184 (gen_ui_out_table_header_info): Change type of "probes"
6185 parameter. Update.
6186 (info_probes_for_ops): Update.
6187 (get_probe_address): New function.
6188 (probe_safe_evaluate_at_pc): Update.
6189 * probe.h (struct probe_ops) <get_probe_address>: New field.
6190 <set_semaphore, clear_semaphore>: Add objfile parameter.
6191 (struct probe) <objfile>: Remove field.
6192 <arch>: New field.
6193 <address>: Update comment.
6194 (struct bound_probe): New.
6195 (find_probe_by_pc): Return a bound_probe.
6196 (get_probe_address): Declare.
6197 * solib-svr4.c (struct probe_and_action) <address>: New field.
6198 (hash_probe_and_action, equal_probe_and_action): Update.
6199 (register_solib_event_probe): Add address parameter.
6200 (solib_event_probe_at): Update.
6201 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6202 get_probe_address.
6203 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6204 (stap_get_probe_address): New function.
6205 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6206 (compile_probe_arg): Update.
6207 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6208 address.
6209 (handle_stap_probe): Don't relocate the probe.
6210 (stap_relocate): Remove.
6211 (stap_gen_info_probes_table_values): Update.
6212 (stap_probe_ops): Remove stap_relocate.
6213 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6214 (debug_sym_probe_fns): Update.
6215 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6216 * symtab.c (init_sal): Use memset.
6217 * symtab.h (struct symtab_and_line) <objfile>: New field.
6218 * tracepoint.c (start_tracing, stop_tracing): Update.
6219
ff887920
TT
62202014-03-03 Tom Tromey <tromey@redhat.com>
6221
6222 * probe.h (parse_probes, find_probe_by_pc)
6223 (find_probes_in_objfile): Fix comments.
6224
f0407826
DE
62252014-03-02 Doug Evans <xdje42@gmail.com>
6226
6227 * infrun.c (handle_signal_stop): Replace test for
6228 TARGET_WAITKIND_STOPPED with an assert.
6229
35e6a711
DE
62302014-03-02 Doug Evans <xdje42@gmail.com>
6231
6232 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6233
667f9d0b
DE
62342014-03-02 Doug Evans <xdje42@gmail.com>
6235
6236 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6237
dc92ace0
MK
62382014-03-01 Mark Kettenis <kettenis@gnu.org>
6239
6240 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6241
a900370f
MK
62422014-03-01 Mark Kettenis <kettenis@gnu.org>
6243
6244 * i386obsd-nat.c: Include "obsd-nat.h".
6245 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6246 add_target.
6247 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6248
b72a7981
MK
62492014-03-01 Mark Kettenis <kettenis@gnu.org>
6250
6251 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6252
96c70aba
MK
62532014-03-01 Mark Kettenis <kettenis@gnu.org>
6254
6255 * mips64obsd-nat.c: Include "obsd-nath".
6256 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6257 add_target
6258 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6259
874a80af
MK
62602014-03-01 Mark Kettenis <kettenis@gnu.org>
6261
8fd408f1
MK
6262 * amd64obsd-nat.c: Include "obsd-nat,h.
6263 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6264 add_target.
874a80af
MK
6265 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6266
9cf95373
SC
62672014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6268
6269 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6270 (find_overload_match): Update call to find_oload_champ.
6271 (find_oload_champ_namespace_loop): Likewise
6272
863e4da4
MK
62732014-02-28 Mark Kettenis <kettenis@gnu.org>
6274
025cac40
MK
6275 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6276
1ed586ce
MK
6277 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6278 * config/sparc/obsd64.mh: New file.
6279 * sparc64obsd-nat.c: New file.
6280
863e4da4
MK
6281 * obsd-nat.h: New file.
6282 * obsd-nat.c: New file.
6283 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6284 (ALLDEPFILES): Add obsd-nat.c.
6285
89de4da4
TT
62862014-02-28 Tom Tromey <tromey@redhat.com>
6287
6288 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6289 * cli-out.h (cli_ui_out_impl): Now const.
6290 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6291 * ui-out.c (struct ui_out) <impl>: Now const.
6292 (default_ui_out_impl): Now const.
6293 (ui_out_new): Make 'impl' parameter const.
6294 * ui-out.h (ui_out_new): Update.
6295
c725e7b6
MK
62962014-02-27 Mark Kettenis <kettenis@gnu.org>
6297
6298 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6299
670b46b3
MK
63002014-02-27 Mark Kettenis <kettenis@gnu.org>
6301
6302 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6303
c91550fc
JK
63042014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6305
6306 Additional PR 8882 fix.
6307 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6308
2fa0369e
PA
63092014-02-27 Pedro Alves <palves@redhat.com>
6310
6311 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6312 isn't set.
6313
d632a097
PA
63142014-02-27 Pedro Alves <palves@redhat.com>
6315
6316 PR 12702
6317 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6318 * nat/linux-waitpid.c: Include string.h.
6319 (status_to_str): Moved here and made extern.
6320 * nat/linux-waitpid.h (status_to_str): New declaration.
6321
2ebd5a35
HZ
63222014-02-27 Hui Zhu <hui@codesourcery.com>
6323
6324 PR 12702
6325 * infrun.c (ptid_match): Move ...
6326 * common/ptid.c (ptid_match): ... here.
6327 * inferior.h (ptid_match): Move ...
6328 * common/ptid.h (ptid_match): ... here.
6329
3cdd631f
MK
63302014-02-27 Mark Kettenis <kettenis@gnu.org>
6331
6332 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6333 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6334 gdb_target_obs.
6335
bee30a64
MK
63362014-02-27 Mark Kettenis <kettenis@gnu.org>
6337
6338 * obsd-tdep.c (obsd_auxv_parse): New function.
6339 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6340
6341 * gdbarch.sh (auxv_parse): New.
6342 * gdbarch.h: Regenerated.
6343 * gdbarch.c: Regenerated.
6344 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6345
7a5a839f
LC
63462014-02-26 Ludovic Courtès <ludo@gnu.org>
6347
6348 * guile/scm-value.c (gdbscm_history_append_x): New function.
6349 (value_functions): Add it.
6350
31aa7e4e
JB
63512014-02-27 Joel Brobecker <brobecker@adacore.com>
6352
6353 * dwarf2read.c (attr_value_as_address): New function.
6354 (dwarf2_find_base_address, read_call_site_scope): Use
6355 attr_value_as_address in place of DW_ADDR.
6356 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6357 the low and high addresses. Slight rework of the handling
6358 of the high pc being a constant form, and limit it to
6359 DWARF verson 4 or higher.
6360 (dwarf2_record_block_ranges): Likewise.
6361 (read_partial_die): Likewise.
6362 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6363
9b333ba3
TT
63642014-02-26 Tom Tromey <tromey@redhat.com>
6365
6366 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6367
5f6cac40
TT
63682014-02-26 Tom Tromey <tromey@redhat.com>
6369
6370 * elfread.c (elf_read_minimal_symbols): Return early if
6371 minimal symbols have already been read. Add "ei" parameter.
6372 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6373 * minsyms.c (prim_record_minimal_symbol_full): Update.
6374 * objfiles.h (struct objstats) <n_minsyms>: Move...
6375 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6376 * symmisc.c (print_objfile_statistics): Update.
6377
2750ef27
TT
63782014-02-26 Tom Tromey <tromey@redhat.com>
6379
6380 * elfread.c (elf_read_minimal_symbols): New function, from
6381 elf_symfile_read.
6382 (elf_symfile_read): Call it.
6383
34643a32
TT
63842014-02-26 Tom Tromey <tromey@redhat.com>
6385
6386 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6387 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6388 (lookup_minimal_symbol_solib_trampoline)
6389 (lookup_minimal_symbol_by_pc_section_1)
6390 (lookup_minimal_symbol_and_objfile): Update.
6391 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6392 Don't allocate a minimal symbol if minsyms have already been read.
6393 (build_minimal_symbol_hash_tables): Update.
6394 (install_minimal_symbols): Do nothing if minsyms already read.
6395 Use the per-BFD obstack.
6396 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6397 * objfiles.c (allocate_objfile): Call
6398 terminate_minimal_symbol_table later.
6399 (have_minimal_symbols): Update.
6400 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6401 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6402 Move from struct objfile.
6403 <minsyms_read>: New field.
6404 (struct objfile) <msymbols, minimal_symbol_count,
6405 msymbol_hash, msymbol_demangled_hash>: Move.
6406 (ALL_OBJFILE_MSYMBOLS): Update.
6407 * symfile.c (read_symbols): Set minsyms_read.
6408 (reread_symbols): Update.
6409 * symmisc.c (dump_objfile, dump_msymbols): Update.
6410
2273f0ac
TT
64112014-02-26 Tom Tromey <tromey@redhat.com>
6412
6413 * minsyms.c (msymbols_sort): Remove.
6414 * minsyms.h (msymbols_sort): Remove.
6415 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6416 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6417 * elfread.c (elf_symtab_read): Don't add section offsets.
6418 * xcoffread.c (record_minimal_symbol): Don't add section offset
6419 to minimal symbol address.
6420 * somread.c (text_offset, data_offset): Remove.
6421 (som_symtab_read): Don't add section offsets to minimal symbol
6422 addresses.
6423 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6424 Don't add section offsets to minimal symbols.
6425 * coffread.c (coff_symtab_read): Don't add section offsets
6426 to minimal symbol addresses.
6427 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6428 to minimal symbol addresses.
6429 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6430 section offset to minimal symbol addresses.
6431 * mdebugread.c (parse_partial_symbols): Don't add section
6432 offset to minimal symbol addresses.
6433 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6434 offset to minimal symbol addresses.
6435
77e371c0
TT
64362014-02-26 Tom Tromey <tromey@redhat.com>
6437
6438 * ada-lang.c (ada_main_name): Update.
6439 (ada_add_standard_exceptions): Update.
6440 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6441 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6442 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6443 * auxv.c (ld_so_xfer_auxv): Update.
6444 * avr-tdep.c (avr_scan_prologue): Update.
6445 * ax-gdb.c (gen_var_ref): Update.
6446 * blockframe.c (get_pc_function_start)
6447 (find_pc_partial_function_gnu_ifunc): Update.
6448 * breakpoint.c (create_overlay_event_breakpoint)
6449 (create_longjmp_master_breakpoint)
6450 (create_std_terminate_master_breakpoint)
6451 (create_exception_master_breakpoint): Update.
6452 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6453 * c-valprint.c (c_val_print): Update.
6454 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6455 * common/agent.c (agent_look_up_symbols): Update.
6456 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6457 * dwarf2loc.c (call_site_to_target_addr): Update.
6458 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6459 * elfread.c (elf_gnu_ifunc_record_cache)
6460 (elf_gnu_ifunc_resolve_by_got): Update.
6461 * findvar.c (default_read_var_value): Update.
6462 * frame.c (inside_main_func): Update.
6463 * frv-tdep.c (frv_frame_this_id): Update.
6464 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6465 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6466 Update.
6467 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6468 (hppa_hpux_find_dummy_bpaddr): Update.
6469 * hppa-tdep.c (hppa_symbol_address): Update.
6470 * infcmd.c (until_next_command): Update.
6471 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6472 Update.
6473 * linespec.c (minsym_found, add_minsym): Update.
6474 * linux-nat.c (get_signo): Update.
6475 * linux-thread-db.c (inferior_has_bug): Update.
6476 * m32c-tdep.c (m32c_return_value)
6477 (m32c_m16c_address_to_pointer): Update.
6478 * m32r-tdep.c (m32r_frame_this_id): Update.
6479 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6480 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6481 * maint.c (maintenance_translate_address): Update.
6482 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6483 (frob_address): New function.
6484 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6485 frob_address. Rename parameter to "pc_in".
6486 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6487 addresses.
6488 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6489 Update.
6490 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6491 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6492 * objc-lang.c (find_objc_msgsend): Update.
6493 * objfiles.c (objfile_relocate1): Update.
6494 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6495 * p-valprint.c (pascal_val_print): Update.
6496 * parse.c (write_exp_msymbol): Update.
6497 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6498 (ppc_elfv2_skip_entrypoint): Update.
6499 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6500 * printcmd.c (build_address_symbolic, msym_info)
6501 (address_info): Update.
6502 * proc-service.c (ps_pglobal_lookup): Update.
6503 * psymtab.c (find_pc_sect_psymtab_closer)
6504 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6505 Change msymbol parameter to bound_minimal_symbol.
6506 * ravenscar-thread.c (get_running_thread_id): Update.
6507 * remote.c (remote_check_symbols): Update.
6508 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6509 address.
6510 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6511 * solib-dsbt.c (lm_base): Update.
6512 * solib-frv.c (lm_base, main_got): Update.
6513 * solib-irix.c (locate_base): Update.
6514 * solib-som.c (som_solib_create_inferior_hook)
6515 (link_map_start): Update.
6516 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6517 * solib-svr4.c (elf_locate_base, enable_break): Update.
6518 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6519 (flush_ea_cache): Update.
6520 * stabsread.c (define_symbol, scan_file_globals): Update.
6521 * stack.c (find_frame_funname): Update.
6522 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6523 (debug_qf_find_pc_sect_symtab): Update.
6524 * symfile.c (simple_read_overlay_table)
6525 (simple_overlay_update): Update.
6526 * symfile.h (struct quick_symbol_functions)
6527 <find_pc_sect_symtab>: Change type of msymbol to
6528 bound_minimal_symbol.
6529 * symmisc.c (dump_msymbols): Update.
6530 * symtab.c (find_pc_sect_symtab_via_partial)
6531 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6532 (search_symbols, print_msymbol_info): Update.
6533 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6534 (MSYMBOL_VALUE_ADDRESS): Redefine.
6535 (BMSYMBOL_VALUE_ADDRESS): New macro.
6536 * tracepoint.c (scope_info): Update.
6537 * tui/tui-disasm.c (tui_find_disassembly_address)
6538 (tui_get_begin_asm_address): Update.
6539 * valops.c (find_function_in_inferior): Update.
6540 * value.c (value_static_field, value_fn_field): Update.
6541
3b7344d5
TT
65422014-02-26 Tom Tromey <tromey@redhat.com>
6543
6544 * ada-lang.c (ada_update_initial_language): Update.
6545 (ada_main_name, ada_has_this_exception_support): Update.
6546 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6547 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6548 * arm-tdep.c (arm_skip_stub): Update.
6549 * auxv.c (ld_so_xfer_auxv): Update.
6550 * avr-tdep.c (avr_scan_prologue): Update.
6551 * ax-gdb.c (gen_var_ref): Update.
6552 * breakpoint.c (struct breakpoint_objfile_data)
6553 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6554 type to bound_minimal_symbol.
6555 (create_overlay_event_breakpoint)
6556 (create_longjmp_master_breakpoint)
6557 (create_std_terminate_master_breakpoint)
6558 (create_exception_master_breakpoint): Update.
6559 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6560 * c-exp.y (classify_name): Update.
6561 * coffread.c (coff_symfile_read): Update.
6562 * common/agent.c (agent_look_up_symbols): Update.
6563 * d-lang.c (d_main_name): Update.
6564 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6565 * dec-thread.c (enable_dec_thread): Update.
6566 * dwarf2loc.c (call_site_to_target_addr): Update.
6567 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6568 * eval.c (evaluate_subexp_standard): Update.
6569 * findvar.c (struct minsym_lookup_data) <result>: Change type
6570 to bound_minimal_symbol.
6571 <objfile>: Remove.
6572 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6573 * frame.c (inside_main_func): Update.
6574 * frv-tdep.c (frv_frame_this_id): Update.
6575 * gcore.c (call_target_sbrk): Update.
6576 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6577 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6578 Update.
6579 * go-lang.c (go_main_name): Update.
6580 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6581 (hppa_hpux_find_import_stub_for_addr): Update.
6582 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6583 Update. Change return type.
6584 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6585 type.
6586 * jit.c (jit_breakpoint_re_set_internal): Update.
6587 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6588 Update.
6589 * linux-nat.c (get_signo): Update.
6590 * linux-thread-db.c (inferior_has_bug): Update
6591 * m32c-tdep.c (m32c_return_value)
6592 (m32c_m16c_address_to_pointer): Update.
6593 * m32r-tdep.c (m32r_frame_this_id): Update.
6594 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6595 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6596 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6597 lookup_minimal_symbol. Change return type.
6598 (lookup_minimal_symbol): Remove.
6599 (lookup_bound_minimal_symbol): Update.
6600 (lookup_minimal_symbol_text): Change return type.
6601 (lookup_minimal_symbol_solib_trampoline): Change return type.
6602 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6603 (lookup_minimal_symbol_solib_trampoline): Change return type.
6604 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6605 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6606 (value_nsstring, find_imps): Update.
6607 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6608 * p-lang.c (pascal_main_name): Update.
6609 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6610 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6611 * proc-service.c (ps_pglobal_lookup): Update.
6612 * ravenscar-thread.c (get_running_thread_msymbol): Change
6613 return type.
6614 (has_ravenscar_runtime, get_running_thread_id): Update.
6615 * remote.c (remote_check_symbols): Update.
6616 * sol-thread.c (ps_pglobal_lookup): Update.
6617 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6618 * solib-dsbt.c (lm_base): Update.
6619 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6620 Update.
6621 * solib-irix.c (locate_base): Update.
6622 * solib-som.c (som_solib_create_inferior_hook)
6623 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6624 Update.
6625 * solib-spu.c (spu_enable_break): Update.
6626 * solib-svr4.c (elf_locate_base, enable_break): Update.
6627 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6628 (flush_ea_cache): Update.
6629 * stabsread.c (define_symbol): Update.
6630 * symfile.c (simple_read_overlay_table): Update.
6631 * symtab.c (find_pc_sect_line): Update.
6632 * tracepoint.c (scope_info): Update.
6633 * tui-disasm.c (tui_get_begin_asm_address): Update.
6634 * value.c (value_static_field): Update.
6635
40c1a007
TT
66362014-02-26 Tom Tromey <tromey@redhat.com>
6637
6638 * minsyms.c (prim_record_minimal_symbol_full): Use
6639 SET_MSYMBOL_VALUE_ADDRESS.
6640 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6641 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6642 SET_MSYMBOL_VALUE_ADDRESS.
6643 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6644 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6645
efd66ac6
TT
66462014-02-26 Tom Tromey <tromey@redhat.com>
6647
6648 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6649 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6650 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6651 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6652 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6653 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6654 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6655 * ada-lang.c (ada_main_name): Update.
6656 (ada_lookup_simple_minsym): Update.
6657 (ada_make_symbol_completion_list): Update.
6658 (ada_add_standard_exceptions): Update.
6659 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6660 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6661 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6662 * arm-tdep.c (skip_prologue_function): Update.
6663 (arm_skip_stack_protector, arm_skip_stub): Update.
6664 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6665 (arm_wince_skip_main_prologue): Update.
6666 * auxv.c (ld_so_xfer_auxv): Update.
6667 * avr-tdep.c (avr_scan_prologue): Update.
6668 * ax-gdb.c (gen_var_ref): Update.
6669 * block.c (call_site_for_pc): Update.
6670 * blockframe.c (get_pc_function_start): Update.
6671 (find_pc_partial_function_gnu_ifunc): Update.
6672 * breakpoint.c (create_overlay_event_breakpoint): Update.
6673 (create_longjmp_master_breakpoint): Update.
6674 (create_std_terminate_master_breakpoint): Update.
6675 (create_exception_master_breakpoint): Update.
6676 (resolve_sal_pc): Update.
6677 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6678 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6679 Update.
6680 * c-valprint.c (c_val_print): Update.
6681 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6682 * coffread.c (coff_symfile_read): Update.
6683 * common/agent.c (agent_look_up_symbols): Update.
6684 * dbxread.c (find_stab_function_addr): Update.
6685 (end_psymtab): Update.
6686 * dwarf2loc.c (call_site_to_target_addr): Update.
6687 (func_verify_no_selftailcall): Update.
6688 (tailcall_dump): Update.
6689 (call_site_find_chain_1): Update.
6690 (dwarf_expr_reg_to_entry_parameter): Update.
6691 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6692 (elf_gnu_ifunc_resolve_by_got): Update.
6693 * f-valprint.c (info_common_command): Update.
6694 * findvar.c (read_var_value): Update.
6695 * frame.c (get_prev_frame_1): Update.
6696 (inside_main_func): Update.
6697 * frv-tdep.c (frv_skip_main_prologue): Update.
6698 (frv_frame_this_id): Update.
6699 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6700 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6701 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6702 (gnuv3_skip_trampoline): Update.
6703 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6704 (hppa64_hpux_in_solib_call_trampoline): Update.
6705 (hppa_hpux_skip_trampoline_code): Update.
6706 (hppa64_hpux_search_dummy_call_sequence): Update.
6707 (hppa_hpux_find_import_stub_for_addr): Update.
6708 (hppa_hpux_find_dummy_bpaddr): Update.
6709 * hppa-tdep.c (hppa_symbol_address)
6710 (hppa_lookup_stub_minimal_symbol): Update.
6711 * i386-tdep.c (i386_skip_main_prologue): Update.
6712 (i386_pe_skip_trampoline_code): Update.
6713 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6714 * infcall.c (get_function_name): Update.
6715 * infcmd.c (until_next_command): Update.
6716 * jit.c (jit_breakpoint_re_set_internal): Update.
6717 (jit_inferior_init): Update.
6718 * linespec.c (minsym_found): Update.
6719 (add_minsym): Update.
6720 * linux-fork.c (info_checkpoints_command): Update.
6721 * linux-nat.c (get_signo): Update.
6722 * linux-thread-db.c (inferior_has_bug): Update.
6723 * m32c-tdep.c (m32c_return_value): Update.
6724 (m32c_m16c_address_to_pointer): Update.
6725 (m32c_m16c_pointer_to_address): Update.
6726 * m32r-tdep.c (m32r_frame_this_id): Update.
6727 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6728 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6729 * maint.c (maintenance_translate_address): Update.
6730 * minsyms.c (add_minsym_to_hash_table): Update.
6731 (add_minsym_to_demangled_hash_table): Update.
6732 (msymbol_objfile): Update.
6733 (lookup_minimal_symbol): Update.
6734 (iterate_over_minimal_symbols): Update.
6735 (lookup_minimal_symbol_text): Update.
6736 (lookup_minimal_symbol_by_pc_name): Update.
6737 (lookup_minimal_symbol_solib_trampoline): Update.
6738 (lookup_minimal_symbol_by_pc_section_1): Update.
6739 (lookup_minimal_symbol_and_objfile): Update.
6740 (prim_record_minimal_symbol_full): Update.
6741 (compare_minimal_symbols): Update.
6742 (compact_minimal_symbols): Update.
6743 (build_minimal_symbol_hash_tables): Update.
6744 (install_minimal_symbols): Update.
6745 (terminate_minimal_symbol_table): Update.
6746 (find_solib_trampoline_target): Update.
6747 (minimal_symbol_upper_bound): Update.
6748 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6749 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6750 (mips_skip_pic_trampoline_code): Update.
6751 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6752 * objc-lang.c (selectors_info): Update.
6753 (classes_info): Update.
6754 (find_methods): Update.
6755 (find_imps): Update.
6756 (find_objc_msgsend): Update.
6757 * objfiles.c (objfile_relocate1): Update.
6758 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6759 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6760 * p-valprint.c (pascal_val_print): Update.
6761 * parse.c (write_exp_msymbol): Update.
6762 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6763 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6764 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6765 * printcmd.c (build_address_symbolic): Update.
6766 (sym_info): Update.
6767 (address_info): Update.
6768 * proc-service.c (ps_pglobal_lookup): Update.
6769 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6770 (find_pc_sect_psymtab): Update.
6771 * python/py-framefilter.c (py_print_frame): Update.
6772 * ravenscar-thread.c (get_running_thread_id): Update.
6773 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6774 Update.
6775 * remote.c (remote_check_symbols): Update.
6776 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6777 (rs6000_skip_trampoline_code): Update.
6778 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6779 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6780 * solib-dsbt.c (lm_base): Update.
6781 * solib-frv.c (lm_base): Update.
6782 (main_got): Update.
6783 * solib-irix.c (locate_base): Update.
6784 * solib-som.c (som_solib_create_inferior_hook): Update.
6785 (som_solib_desire_dynamic_linker_symbols): Update.
6786 (link_map_start): Update.
6787 * solib-spu.c (spu_enable_break): Update.
6788 (ocl_enable_break): Update.
6789 * solib-svr4.c (elf_locate_base): Update.
6790 (enable_break): Update.
6791 * spu-tdep.c (spu_get_overlay_table): Update.
6792 (spu_catch_start): Update.
6793 (flush_ea_cache): Update.
6794 * stabsread.c (define_symbol): Update.
6795 (scan_file_globals): Update.
6796 * stack.c (find_frame_funname): Update.
6797 (frame_info): Update.
6798 * symfile.c (simple_read_overlay_table): Update.
6799 (simple_overlay_update): Update.
6800 * symmisc.c (dump_msymbols): Update.
6801 * symtab.c (fixup_section): Update.
6802 (find_pc_sect_line): Update.
6803 (skip_prologue_sal): Update.
6804 (search_symbols): Update.
6805 (print_msymbol_info): Update.
6806 (rbreak_command): Update.
6807 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6808 (completion_list_objc_symbol): Update.
6809 (default_make_symbol_completion_list_break_on): Update.
6810 * tracepoint.c (scope_info): Update.
6811 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6812 (tui_get_begin_asm_address): Update.
6813 * valops.c (find_function_in_inferior): Update.
6814 * value.c (value_static_field): Update.
6815 (value_fn_field): Update.
6816
50e65b17
TT
68172014-02-26 Tom Tromey <tromey@redhat.com>
6818
6819 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6820 bound minimal symbols. Move code that knows about minsym
6821 table layout...
6822 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6823 function.
6824 * minsyms.h (minimal_symbol_upper_bound): Declare.
6825 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6826 minimal_symbol_upper_bound.
6827
1b588015
JB
68282014-02-27 Joel Brobecker <brobecker@adacore.com>
6829
6830 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6831 Use the type's name if its basic type does not have a tag.
6832
dbb9c2b1
JB
68332014-02-27 Joel Brobecker <brobecker@adacore.com>
6834
6835 * dwarf2read.c (read_subrange_type): Add comment.
6836
55426c9d
JB
68372014-02-27 Joel Brobecker <brobecker@adacore.com>
6838
6839 * dwarf2read.c (update_enumeration_type_from_children): New
6840 function, mostly extracted from process_structure_scope.
6841 (read_enumeration_type): Call update_enumeration_type_from_children.
6842 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6843 and flag_flag_enum fields.
6844
f2fce0ca
PA
68452014-02-26 Pedro Alves <palves@redhat.com>
6846
6847 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6848 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6849 to_xfer_partial method.
6850
7a44e40e
PA
68512014-02-26 Pedro Alves <palves@redhat.com>
6852
6853 * target.c (complete_target_initialization): Don't install
6854 default_xfer_partial as to_xfer_partial hook.
6855 (nomemory): Delete.
6856 (update_current_target): Don't INHERIT nor de_fault
6857 deprecated_xfer_memory. Delete de_fault macro.
6858 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6859 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6860 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6861 field.
6862
bd265cd0
PA
68632014-02-26 Pedro Alves <palves@redhat.com>
6864
6865 * go32-nat.c (my_write_child): New function.
6866 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6867 (go32_xfer_partial): New function.
6868 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6869 Instead install a to_xfer_partial hook.
6870
9d46c4e5
PA
68712014-02-26 Pedro Alves <palves@redhat.com>
6872
6873 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6874 to_xfer_partial helper. Rewrite.
6875 (procfs_xfer_partial): New function.
6876 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6877 Install a to_xfer_partial hook.
6878
a1583b1f
PA
68792014-02-26 Pedro Alves <palves@redhat.com>
6880
6881 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6882 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6883 (m32r_xfer_partial): New function.
6884 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6885 Install a to_xfer_partial hook.
6886
6df1b29f
PA
68872014-02-26 Pedro Alves <palves@redhat.com>
6888
6889 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6890 helper.
6891 (mips_xfer_partial): New function.
6892 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6893 hook. Install a to_xfer_partial hook.
6894
dc53a7ad
JB
68952014-02-26 Joel Brobecker <brobecker@adacore.com>
6896
6897 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6898 * gdbtypes.c (create_array_type_with_stride): New function,
6899 renaming create_array_type, but with an added parameter
6900 called "bit_stride".
6901 (create_array_type): Re-implement using
6902 create_array_type_with_stride.
6903 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6904 and DW_AT_bit_stride attributes.
6905
12ab52e9
PA
69062014-02-26 Pedro Alves <palves@redhat.com>
6907
6908 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6909 task-specific breakpoints.
6910
d16461ae
PA
69112014-02-25 Pedro Alves <palves@redhat.com>
6912
6913 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6914 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6915
a8b16220
SS
69162014-02-25 Stan Shebs <stan@codesourcery.com>
6917
6918 * defs.h: Annotate comments for Doxygen.
6919
b9e795ee
TT
69202014-02-25 Tom Tromey <tromey@redhat.com>
6921
6922 * target.h (target_ignore): Don't declare.
6923 * target.c (target_ignore): Remove.
6924
849c862e
JK
69252014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6926
6927 PR gdb/16626
6928 * auto-load.c (auto_load_objfile_script_1): Change filename to
6929 debugfile.
6930
475109d8
JB
69312014-02-25 Joel Brobecker <brobecker@adacore.com>
6932
6933 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6934 documentation. Adjust prototype to match the target_ops
6935 to_xfer_partial method. Adjust implementation accordingly.
6936
e186c3bd
HZ
69372014-02-25 Hui Zhu <hui@codesourcery.com>
6938
6939 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6940 to_traceframe_info.
6941
6d451942
KB
69422014-02-25 Kevin Buettner <kevinb@redhat.com>
6943
041ab8b4 6944 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6945 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6946 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6947 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6948 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6949 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6950 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6951 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6952 New constants.
6953 (rl78_register_type): Use a data pointer type for SP and
6954 new pseudo registers mentioned above. Use a 16 bit integer
6955 type for all other register pairs.
6956 (rl78_register_name, rl78_g10_register_name): Update for
6957 new pseudo registers.
6958 (rl78_pseudo_register_read): Likewise.
6959 (rl78_pseudo_register_write): Likewise.
6960 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6961 to the newly added pseudo registers.
6962
eddf0bae
DE
69632014-02-24 Doug Evans <dje@google.com>
6964
6965 * value.c (record_latest_value): Fix comment.
6966 * printcmd.c (print_command_1): Remove code to handle -1 return from
6967 record_latest_value.
6968
e96027e0
PA
69692014-02-24 Pedro Alves <palves@redhat.com>
6970
6971 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6972 deprecated_xfer_memory hook.
6973 (procfs_xfer_partial): Call procfs_xfer_memory instead
6974 of the deprecated_xfer_memory target hook.
6975 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6976 helper.
6977
0837c976
YZ
69782014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6979
6980 * windows-nat.c (windows_xfer_shared_libraries): Return
6981 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6982 requested object is TARGET_OBJECT_LIBRARIES.
6983
bc113b4e
YQ
69842014-02-24 Yao Qi <yao@codesourcery.com>
6985
6986 * target.h (enum target_xfer_status)
6987 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6988 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6989 explicitly. New.
6990 * corefile.c (memory_error_message): User updated.
6991 * exec.c (section_table_read_available_memory): Likewise.
6992 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6993 * target.c (target_xfer_status_to_string): Likewise.
6994 (raw_memory_xfer_partial): Likewise.
6995 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6996 * valops.c (read_value_memory): Likewise.
6997 * exec.h: Update comments.
6998
01cb8804
YQ
69992014-02-24 Yao Qi <yao@codesourcery.com>
7000
7001 * target.c (target_xfer_status_to_string): Rename argument err
7002 to status.
7003 * target.h (target_xfer_status_to_string): Update declaration.
7004 Replace target_xfer_error_to_string with
7005 target_xfer_status_to_string in comment.
7006
93063aa6
YQ
70072014-02-24 Yao Qi <yao@codesourcery.com>
7008
7009 * mips-linux-nat.c (super_close): Update its type.
7010 (mips_linux_close): Pass 'self' to super_close.
7011
5c328c05
YQ
70122014-02-24 Yao Qi <yao@codesourcery.com>
7013
7014 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7015 * corefile.c (read_memory): Adjusted.
7016 * target.c (target_write_with_progress): Adjusted.
7017
f73023dd
YQ
70182014-02-23 Yao Qi <yao@codesourcery.com>
7019
7020 Revert two patches:
7021
7022 2013-10-25 Yao Qi <yao@codesourcery.com>
7023
7024 * remote.c (remote_traceframe_info): Return early if
7025 traceframe is not selected.
7026
7027 2013-07-19 Yao Qi <yao@codesourcery.com>
7028
7029 * target.c (update_current_target): Change the default action
7030 of 'to_traceframe_info' from tcomplain to return_zero.
7031 * target.h (struct target_ops) <to_traceframe_info>: Add more
7032 comments.
7033
5a2eb0ef
YQ
70342014-02-23 Yao Qi <yao@codesourcery.com>
7035
7036 * valops.c (read_value_memory): Rewrite it. Call
7037 target_xfer_partial in a loop.
7038 * exec.h (section_table_available_memory): Remove declaration.
7039 Move comments to ...
7040 * exec.c (section_table_available_memory): ... here. Make it
7041 static.
7042
1ee79381
YQ
70432014-02-23 Yao Qi <yao@codesourcery.com>
7044
7045 * exec.c (section_table_read_available_memory): New function.
7046 * exec.h (section_table_read_available_memory): Declare.
7047 * ctf.c (ctf_xfer_partial): Call
7048 section_table_read_available_memory.
7049 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7050
1ca49d37
YQ
70512014-02-23 Yao Qi <yao@codesourcery.com>
7052
7053 * ctf.c (ctf_xfer_partial): Move code to ...
7054 * exec.c (exec_read_partial_read_only): ... it. New function.
7055 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7056 * tracefile.c: Include "exec.h".
7057 * exec.h (exec_read_partial_read_only): Declare.
7058
a283690e
YQ
70592014-02-23 Yao Qi <yao@codesourcery.com>
7060
7061 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7062 (tfile_has_memory): Remove.
7063 (init_tfile_ops): Don't set fields to_has_all_memory and
7064 to_has_memory of tfile_ops.
7065 * tracefile.c (tracefile_has_all_memory): New function.
7066 (tracefile_has_memory): New function.
7067 (init_tracefile_ops): Initialize fields to_has_all_memory and
7068 to_has_memory of 'ops'.
7069
12e03cd0
YQ
70702014-02-23 Yao Qi <yao@codesourcery.com>
7071
7072 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7073 (ctf_thread_alive, ctf_get_trace_status): Remove.
7074 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7075 init_tracefile_ops.
7076 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7077 (tfile_has_stack, tfile_has_registers): Remove.
7078 (tfile_thread_alive): Remove.
7079 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7080 init_tracefile_ops.
7081 * tracefile.c (tracefile_has_stack): New function.
7082 (tracefile_has_registers): New function.
7083 (tracefile_thread_alive): New function.
7084 (tracefile_get_trace_status): New function.
7085 (init_tracefile_ops): New function.
7086 * tracefile.h (init_tracefile_ops): Declare.
7087
11395323
YQ
70882014-02-23 Yao Qi <yao@codesourcery.com>
7089
7090 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7091 (O_LARGEFILE): Likewise.
7092 (tfile_ops): Likewise.
7093 (TRACE_HEADER_SIZE): Likewise.
7094 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7095 (cur_data_size): Likewise.
7096 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7097 (tfile_close, tfile_files_info): Likewise.
7098 (tfile_get_trace_status): Likewise.
7099 (tfile_get_tracepoint_status): Likewise.
7100 (tfile_get_traceframe_address): Likewise.
7101 (tfile_trace_find, match_blocktype): Likewise.
7102 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7103 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7104 (tfile_get_trace_state_variable_value): Likewise.
7105 (tfile_has_all_memory, tfile_has_memory): Likewise.
7106 (tfile_has_stack, tfile_has_registers): Likewise.
7107 (tfile_thread_alive, build_traceframe_info): Likewise.
7108 (tfile_traceframe_info, init_tfile_ops): Likewise.
7109 (_initialize_tracepoint): Don't call init_tfile_ops
7110 and add_target_with_completer.
7111 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7112 exec.h, completer.h and filenames.h.
7113 (_initialize_tracefile_tfile): New function.
7114
7951c4eb
YQ
71152014-02-23 Yao Qi <yao@codesourcery.com>
7116
7117 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7118 tracefile-tfile.o.
7119 (HFILES_NO_SRCDIR): Add tracefile.h.
7120 * ctf.c: Include "tracefile.h".
7121 * tracefile.h: New file.
7122 * tracefile.c: New file
7123 * tracefile-tfile.c: New file.
7124 * tracepoint.c: Include "tracefile.h".
7125 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7126 (stop_reason_names): Add const.
7127 (trace_file_writer_xfree): Move it to tracefile.c.
7128 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7129 (trace_save_ctf): Likewise.
7130 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7131 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7132 (tfile_write_header, tfile_write_regblock_type): Likewise.
7133 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7134 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7135 (tfile_write_raw_data, tfile_end): Likewise.
7136 (tfile_trace_file_writer_new): Likewise.
7137 (free_uploaded_tp): Make it extern.
7138 (free_uploaded_tsv): Make it extern.
7139 (_initialize_tracepoint): Move code to register command 'tsave'
7140 to tracefile.c.
7141 * tracepoint.h (stop_reason_names): Declare.
7142 (struct trace_frame_write_ops): Move it to tracefile.h.
7143 (struct trace_file_write_ops): Likewise.
7144 (struct trace_file_writer): Likewise.
7145 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7146
184cd072
JK
71472014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7148
7149 PR gdb/16594
7150 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7151 process name.
7152 (get_cores_used_by_process): New parameter num_cores, use it.
7153 (linux_xfer_osdata_processes): Pass num_cores to it.
7154 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7155 process name.
7156
c63528fc
AK
71572014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7158
7159 * target.c (memory_xfer_partial): Fix length arg in call to
7160 breakpoint_xfer_memory.
7161
d7b30f67
SDJ
71622014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7163
7164 PR tdep/16397
7165 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7166 number comes after the + or - signs. Adjust length of register
7167 name to be extracted.
7168
8838afaf
TT
71692014-02-20 Tom Tromey <tromey@redhat.com>
7170
7171 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7172 (ada_varobj_ops): Mark "extern".
7173
05227d14
TT
71742014-02-20 Tom Tromey <tromey@redhat.com>
7175
7176 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7177
1254eefc
DE
71782014-02-20 Doug Evans <xdje42@gmail.com>
7179
7180 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7181 All callers updated.
7182 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7183 All callers updated.
7184 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7185 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7186
adde2bff
DE
71872014-02-20 lin zuojian <manjian2006@gmail.com>
7188 Joel Brobecker <brobecker@adacore.com>
7189 Doug Evans <xdje42@gmail.com>
7190
7191 PR symtab/16581
7192 * dwarf2read.c (struct die_info): New member in_process.
7193 (reset_die_in_process): New function.
7194 (process_die): Set it at the start, reset when returning.
7195 (inherit_abstract_dies): Only call process_die if origin_child_die
7196 not already being processed.
7197
3be75f87
JB
71982014-02-20 Joel Brobecker <brobecker@adacore.com>
7199
7200 * windows-nat.c (handle_unload_dll): Add function documentation.
7201 (do_initial_windows_stuff): Add comment explaining why we wait
7202 until after inferior initialization has finished before
7203 processing all DLLs.
7204
47f7ffdb
JB
72052014-02-20 Joel Brobecker <brobecker@adacore.com>
7206
7207 * windows-nat.c (get_module_name): Delete.
7208 (windows_get_exec_module_filename): New function, mostly
7209 inspired from get_module_name.
7210 (windows_pid_to_exec_file): Replace call to get_module_name
7211 by call to windows_get_exec_module_filename.
7212
1cd9feab
JB
72132014-02-20 Joel Brobecker <brobecker@adacore.com>
7214
7215 * windows-nat.c (handle_load_dll): Rewrite this function's
7216 introductory comment. Remove code using get_module_name
7217 to get the DLL's name.
7218
ea39ad35
JB
72192014-02-20 Joel Brobecker <brobecker@adacore.com>
7220
7221 * windows-nat.c (get_windows_debug_event): Ignore
7222 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7223 if windows_initialization_done == 0.
7224 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7225 Adjust implementation to always load all DLLs.
7226 (do_initial_windows_stuff): Replace call to
7227 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7228
95060284
JB
72292014-02-20 Joel Brobecker <brobecker@adacore.com>
7230
7231 * windows-nat.c (_initialize_windows_nat): Deprecate the
7232 "dll-symbols" command. Turn the "add-shared-symbol-files"
7233 and "assf" aliases into commands, and deprecate them as well.
7234 * NEWS: Add entry explaining that "dll-symbols" and its two
7235 aliases are now deprecated.
7236
8d4fdb12
JB
72372014-02-20 Joel Brobecker <brobecker@adacore.com>
7238
7239 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7240 new-line in debug string. Remove trailing spaces.
7241
1b281443
SS
72422014-02-19 Stan Shebs <stan@codesourcery.com>
7243
7244 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7245
f7bd0f78
SC
72462014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7247
7248 * NEWS: Add entry for the new feature
7249 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7250 and class values.
7251
399ebc3d
SS
72522014-02-19 Stan Shebs <stan@codesourcery.com>
7253
7254 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7255
c658158d
PA
72562014-02-19 Pedro Alves <palves@redhat.com>
7257
7258 * common/ptid.h (struct ptid): Mention that process_stratum
7259 targets should prefer ptid.lwp.
7260
ba348170
PA
72612014-02-19 Pedro Alves <palves@redhat.com>
7262
7263 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7264 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7265 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7266 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7267 store remote thread ids rather than ptid.tid.
7268 (_initialize_remote): Adjust.
7269
ac01945b
TT
72702014-02-19 Tom Tromey <tromey@redhat.com>
7271
7272 * target.c (target_get_unwinder): Rewrite.
7273 (target_get_tailcall_unwinder): Rewrite.
7274 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7275 (record_btrace_to_get_tailcall_unwinder): New function.
7276 (init_record_btrace_ops): Update.
7277 * target.h (struct target_ops) <to_get_unwinder,
7278 to_get_tailcall_unwinder>: Now function pointers. Use
7279 TARGET_DEFAULT_RETURN.
7280
8476dc92
TT
72812014-02-19 Tom Tromey <tromey@redhat.com>
7282
7283 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7284 argument.
7285 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7286
c0eca49f
TT
72872014-02-19 Tom Tromey <tromey@redhat.com>
7288
7289 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7290 directly.
7291 * target-delegates.c: Rebuild.
7292 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7293 TARGET_DEFAULT_FUNC.
7294 * target.c (default_target_decr_pc_after_break): Rename from
7295 forward_target_decr_pc_after_break. Simplify.
7296 (target_decr_pc_after_break): Rely on delegation.
7297
596b6b39
TT
72982014-02-19 Tom Tromey <tromey@redhat.com>
7299
7300 * target.c (update_current_target): Do not INHERIT to_doc or
7301 to_magic. Do not de_fault to_open or to_close.
7302
b427c1bc
TT
73032014-02-19 Tom Tromey <tromey@redhat.com>
7304
7305 * gcore.h (objfile_find_memory_regions): Declare.
7306 * gcore.c (objfile_find_memory_regions): No longer static. Add
7307 "self" argument.
7308 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7309 * exec.c: Include gcore.h.
7310 (exec_set_find_memory_regions): Remove.
7311 (exec_find_memory_regions): Remove.
7312 (exec_do_find_memory_regions): Remove.
7313 (init_exec_ops): Update.
7314 * defs.h (exec_set_find_memory_regions): Remove.
7315
9b144037
TT
73162014-02-19 Tom Tromey <tromey@redhat.com>
7317
7318 * target-delegates.c: Rebuild.
7319 * target.h (struct target_ops) <to_extra_thread_info,
7320 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7321 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7322 not 0, in TARGET_DEFAULT_RETURN.
7323
555bbdeb
TT
73242014-02-19 Tom Tromey <tromey@redhat.com>
7325
7326 * target.c (complete_target_initialization): Remove casts. Use
7327 return_zero_has_execution.
7328 (return_zero): Add "ignore" argument.
7329 (return_zero_has_execution): New function.
7330 (init_dummy_target): Remove casts. Use
7331 return_zero_has_execution.
7332
be4ddd36
TT
73332014-02-19 Tom Tromey <tromey@redhat.com>
7334
7335 * target.c (update_current_target): Update comments. Do not
7336 INHERIT to_stratum.
7337
2117c711
TT
73382014-02-19 Tom Tromey <tromey@redhat.com>
7339
7340 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7341 needed.
7342 * corelow.c (core_read_description): Delegate when needed.
7343 * remote.c (remote_read_description): Delegate when needed.
7344 * target-delegates.c: Rebuild.
7345 * target.c (target_read_description): Rewrite.
7346 * target.h (struct target_ops) <to_read_description>: Update
7347 comment. Use TARGET_DEFAULT_RETURN.
7348
e88ef65c
TT
73492014-02-19 Tom Tromey <tromey@redhat.com>
7350
7351 * target-delegates.c: Rebuild.
7352 * target.c (update_current_target): Don't inherit or default
7353 to_can_run.
7354 (find_default_run_target): Check against delegate_can_run.
7355 * target.h (struct target_ops) <to_can_run>: Use
7356 TARGET_DEFAULT_RETURN.
7357
86a0854a
TT
73582014-02-19 Tom Tromey <tromey@redhat.com>
7359
7360 * target-delegates.c: Rebuild.
7361 * target.c (target_disconnect): Unconditionally delegate.
7362 * target.h (struct target_ops) <to_disconnect>: Use
7363 TARGET_DEFAULT_NORETURN.
7364
ee97f592
TT
73652014-02-19 Tom Tromey <tromey@redhat.com>
7366
7367 * record.c (record_stop): Unconditionally delegate.
7368 * target-delegates.c: Rebuild.
7369 * target.c (target_stop_recording): Unconditionally delegate.
7370 * target.h (struct target_ops) <to_stop_recording>: Use
7371 TARGET_DEFAULT_IGNORE.
7372
6dc7fcf4
TT
73732014-02-19 Tom Tromey <tromey@redhat.com>
7374
7375 * target-delegates.c: Rebuild.
7376 * target.c (target_enable_btrace): Unconditionally delegate.
7377 * target.h (struct target_ops) <to_enable_btrace>: Use
7378 TARGET_DEFAULT_NORETURN.
7379
eb5b20d4
TT
73802014-02-19 Tom Tromey <tromey@redhat.com>
7381
7382 * target-delegates.c: Rebuild.
7383 * target.c (target_read_btrace): Unconditionally delegate.
7384 * target.h (struct target_ops) <to_read_btrace>: Use
7385 TARGET_DEFAULT_NORETURN.
7386
9ace480d
TT
73872014-02-19 Tom Tromey <tromey@redhat.com>
7388
7389 * target-delegates.c: Rebuild.
7390 * target.c (target_teardown_btrace): Unconditionally delegate.
7391 * target.h (struct target_ops) <to_teardown_btrace>: Use
7392 TARGET_DEFAULT_NORETURN.
7393
8dc292d3
TT
73942014-02-19 Tom Tromey <tromey@redhat.com>
7395
7396 * target-delegates.c: Rebuild.
7397 * target.c (target_disable_btrace): Unconditionally delegate.
7398 * target.h (struct target_ops) <to_disable_btrace>: Use
7399 TARGET_DEFAULT_NORETURN.
7400
58a5184e
TT
74012014-02-19 Tom Tromey <tromey@redhat.com>
7402
7403 * target-delegates.c: Rebuild.
7404 * target.c (default_search_memory): New function.
7405 (simple_search_memory): Update comment.
7406 (target_search_memory): Unconditionally delegate.
7407 * target.h (struct target_ops) <to_search_memory>: Use
7408 TARGET_DEFAULT_FUNC.
7409
8de71aab
TT
74102014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * auxv.c (default_auxv_parse): No longer static.
7413 (target_auxv_parse): Unconditionally delegate.
7414 * auxv.h (default_auxv_parse): Declare.
7415 * target-delegates.c: Rebuild.
7416 * target.c: Include auxv.h.
7417 * target.h (struct target_ops) <to_auxv_parse>: Use
7418 TARGET_DEFAULT_FUNC.
7419
6b2c5a57
TT
74202014-02-19 Tom Tromey <tromey@redhat.com>
7421
7422 * target-delegates.c: Rebuild.
7423 * target.c (target_memory_map): Unconditionally delegate.
7424 * target.h (struct target_ops) <to_memory_map>: Use
7425 TARGET_DEFAULT_RETURN.
7426
cbffc065
TT
74272014-02-19 Tom Tromey <tromey@redhat.com>
7428
7429 * target-delegates.c: Rebuild.
7430 * target.c (target_thread_alive): Unconditionally delegate.
7431 * target.h (struct target_ops) <to_thread_alive>: Use
7432 TARGET_DEFAULT_RETURN.
7433
f09e2107
TT
74342014-02-19 Tom Tromey <tromey@redhat.com>
7435
7436 * target-delegates.c: Rebuild.
7437 * target.c (target_save_record): Unconditionally delegate.
7438 * target.h (struct target_ops) <to_save_record>: Use
7439 TARGET_DEFAULT_NORETURN.
7440
07366925
TT
74412014-02-19 Tom Tromey <tromey@redhat.com>
7442
7443 * target-delegates.c: Rebuild.
7444 * target.c (target_delete_record): Unconditionally delegate.
7445 * target.h (struct target_ops) <to_delete_record>: Use
7446 TARGET_DEFAULT_NORETURN.
7447
dd2e9d25
TT
74482014-02-19 Tom Tromey <tromey@redhat.com>
7449
7450 * target-delegates.c: Rebuild.
7451 * target.c (target_record_is_replaying): Unconditionally
7452 delegate.
7453 * target.h (struct target_ops) <to_record_is_replaying>: Use
7454 TARGET_DEFAULT_RETURN.
7455
671e76cc
TT
74562014-02-19 Tom Tromey <tromey@redhat.com>
7457
7458 * target-delegates.c: Rebuild.
7459 * target.c (target_goto_record_begin): Unconditionally delegate.
7460 * target.h (struct target_ops) <to_goto_record_begin>: Use
7461 TARGET_DEFAULT_NORETURN.
7462
e9179bb3
TT
74632014-02-19 Tom Tromey <tromey@redhat.com>
7464
7465 * target-delegates.c: Rebuild.
7466 * target.c (target_goto_record_end): Unconditionally delegate.
7467 * target.h (struct target_ops) <to_goto_record_end>: Use
7468 TARGET_DEFAULT_NORETURN.
7469
05969c84
TT
74702014-02-19 Tom Tromey <tromey@redhat.com>
7471
7472 * target-delegates.c: Rebuild.
7473 * target.c (target_goto_record): Unconditionally delegate.
7474 * target.h (struct target_ops) <to_goto_record>: Use
7475 TARGET_DEFAULT_NORETURN.
7476
3679abfa
TT
74772014-02-19 Tom Tromey <tromey@redhat.com>
7478
7479 * target-delegates.c: Rebuild.
7480 * target.c (target_insn_history): Unconditionally delegate.
7481 * target.h (struct target_ops) <to_insn_history>: Use
7482 TARGET_DEFAULT_NORETURN.
7483
8444ab58
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * target-delegates.c: Rebuild.
7487 * target.c (target_insn_history_from): Unconditionally delegate.
7488 * target.h (struct target_ops) <to_insn_history_from>: Use
7489 TARGET_DEFAULT_NORETURN.
7490
c29302cc
TT
74912014-02-19 Tom Tromey <tromey@redhat.com>
7492
7493 * target-delegates.c: Rebuild.
7494 * target.c (target_insn_history_range): Unconditionally delegate.
7495 * target.h (struct target_ops) <to_insn_history_range>: Use
7496 TARGET_DEFAULT_NORETURN.
7497
170049d4
TT
74982014-02-19 Tom Tromey <tromey@redhat.com>
7499
7500 * target-delegates.c: Rebuild.
7501 * target.c (target_call_history): Unconditionally delegate.
7502 * target.h (struct target_ops) <to_call_history>: Use
7503 TARGET_DEFAULT_NORETURN.
7504
16fc27d6
TT
75052014-02-19 Tom Tromey <tromey@redhat.com>
7506
7507 * target-delegates.c: Rebuild.
7508 * target.c (target_call_history_from): Unconditionally delegate.
7509 * target.h (struct target_ops) <to_call_history_from>: Use
7510 TARGET_DEFAULT_NORETURN.
7511
115d9817
TT
75122014-02-19 Tom Tromey <tromey@redhat.com>
7513
7514 * target-delegates.c: Rebuild.
7515 * target.c (target_call_history_range): Unconditionally delegate.
7516 * target.h (struct target_ops) <to_call_history_range>: Use
7517 TARGET_DEFAULT_NORETURN.
7518
eb276a6b
TT
75192014-02-19 Tom Tromey <tromey@redhat.com>
7520
7521 * target-delegates.c: Rebuild.
7522 * target.c (target_verify_memory): Unconditionally delegate.
7523 * target.h (struct target_ops) <to_verify_memory>: Use
7524 TARGET_DEFAULT_NORETURN.
7525
9e538d0d
TT
75262014-02-19 Tom Tromey <tromey@redhat.com>
7527
7528 * target-delegates.c: Rebuild.
7529 * target.c (target_core_of_thread): Unconditionally delegate.
7530 * target.h (struct target_ops) <to_core_of_thread>: Use
7531 TARGET_DEFAULT_RETURN.
7532
f6fb2925
TT
75332014-02-19 Tom Tromey <tromey@redhat.com>
7534
7535 * target-delegates.c: Rebuild.
7536 * target.c (target_flash_done): Unconditionally delegate.
7537 * target.h (struct target_ops) <to_flash_done>: Use
7538 TARGET_DEFAULT_NORETURN.
7539
e8a6c6ac
TT
75402014-02-19 Tom Tromey <tromey@redhat.com>
7541
7542 * target-delegates.c: Rebuild.
7543 * target.c (target_flash_erase): Unconditionally delegate.
7544 * target.h (struct target_ops) <to_flash_erase>: Use
7545 TARGET_DEFAULT_NORETURN.
7546
7e35c012
TT
75472014-02-19 Tom Tromey <tromey@redhat.com>
7548
7549 * target-delegates.c: Rebuild.
7550 * target.c (target_get_section_table): Unconditionally delegate.
7551 * target.h (struct target_ops) <to_get_section_table>: Use
7552 TARGET_DEFAULT_RETURN.
7553
770234d3
TT
75542014-02-19 Tom Tromey <tromey@redhat.com>
7555
7556 * target-delegates.c: Rebuild.
7557 * target.c (target_pid_to_str): Unconditionally delegate.
7558 (init_dummy_target): Don't initialize to_pid_to_str.
7559 (default_pid_to_str): Rename from dummy_pid_to_str.
7560 * target.h (struct target_ops) <to_pid_to_str>: Use
7561 TARGET_DEFAULT_FUNC.
7562
09b0dc2b
TT
75632014-02-19 Tom Tromey <tromey@redhat.com>
7564
7565 * target-delegates.c: Rebuild.
7566 * target.c (target_find_new_threads): Unconditionally delegate.
7567 * target.h (struct target_ops) <to_find_new_threads>: Use
7568 TARGET_DEFAULT_RETURN.
7569
7d4f8efa
TT
75702014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * target-delegates.c: Rebuild.
7573 * target.c (target_program_signals): Unconditionally delegate.
7574 * target.h (struct target_ops) <to_program_signals>: Use
7575 TARGET_DEFAULT_IGNORE.
7576
035cad7f
TT
75772014-02-19 Tom Tromey <tromey@redhat.com>
7578
7579 * target-delegates.c: Rebuild.
7580 * target.c (target_pass_signals): Unconditionally delegate.
7581 * target.h (struct target_ops) <to_pass_signals>: Use
7582 TARGET_DEFAULT_IGNORE.
7583
8d657035
TT
75842014-02-19 Tom Tromey <tromey@redhat.com>
7585
7586 * target-delegates.c: Rebuild.
7587 * target.c (default_mourn_inferior): New function.
7588 (target_mourn_inferior): Unconditionally delegate.
7589 * target.h (struct target_ops) <to_mourn_inferior>: Use
7590 TARGET_DEFAULT_FUNC.
7591
098dba18
TT
75922014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * target-delegates.c: Rebuild.
7595 * target.c (default_follow_fork): New function.
7596 (target_follow_fork): Unconditionally delegate.
7597 * target.h (struct target_ops) <to_follow_fork>: Use
7598 TARGET_DEFAULT_FUNC.
7599
423a4807
TT
76002014-02-19 Tom Tromey <tromey@redhat.com>
7601
7602 * target-delegates.c: Rebuild.
7603 * target.c (target_kill): Unconditionally delegate.
7604 * target.h (struct target_ops) <to_kill>: Use
7605 TARGET_DEFAULT_NORETURN.
7606
6c7e5e5c
TT
76072014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target-delegates.c: Rebuild.
7610 * target.c (target_masked_watch_num_registers): Unconditionally
7611 delegate.
7612 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7613 Use TARGET_DEFAULT_RETURN.
7614
8b1c364c
TT
76152014-02-19 Tom Tromey <tromey@redhat.com>
7616
7617 * target-delegates.c: Rebuild.
7618 * target.c (target_remove_mask_watchpoint): Unconditionally
7619 delegate.
7620 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7621 TARGET_DEFAULT_RETURN.
7622
cd4ae029
TT
76232014-02-19 Tom Tromey <tromey@redhat.com>
7624
7625 * target-delegates.c: Rebuild.
7626 * target.c (target_insert_mask_watchpoint): Unconditionally
7627 delegate.
7628 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7629 TARGET_DEFAULT_RETURN.
7630
a134316b
TT
76312014-02-19 Tom Tromey <tromey@redhat.com>
7632
7633 * target-delegates.c: Rebuild.
7634 * target.c (target_ranged_break_num_registers): Unconditionally
7635 delegate.
7636 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7637 Use TARGET_DEFAULT_RETURN.
7638
ad5989bd
TT
76392014-02-19 Tom Tromey <tromey@redhat.com>
7640
7641 * target-delegates.c: Rebuild.
7642 * target.c (target_fetch_registers): Unconditionally delegate.
7643 * target.h (struct target_ops) <to_fetch_registers>: Use
7644 TARGET_DEFAULT_NORETURN.
7645
46ee7e8d
TT
76462014-02-19 Tom Tromey <tromey@redhat.com>
7647
7648 * target-delegates.c: Rebuild.
7649 * target.c (update_current_target): Don't inherit or default
7650 to_stop.
7651 * target.h (struct target_ops) <to_stop>: Use
7652 TARGET_DEFAULT_IGNORE.
7653
843f59ed
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * target-delegates.c: Rebuild.
7657 * target.c (update_current_target): Don't inherit or default
7658 to_can_run_breakpoint_commands.
7659 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7660 Use TARGET_DEFAULT_RETURN.
7661
ccfde2a0
TT
76622014-02-19 Tom Tromey <tromey@redhat.com>
7663
7664 * target-delegates.c: Rebuild.
7665 * target.c (update_current_target): Don't inherit or default
7666 to_supports_evaluation_of_breakpoint_conditions.
7667 * target.h (struct target_ops)
7668 <to_supports_evaluation_of_breakpoint_conditions>: Use
7669 TARGET_DEFAULT_RETURN.
7670
0de91722
TT
76712014-02-19 Tom Tromey <tromey@redhat.com>
7672
7673 * target-delegates.c: Rebuild.
7674 * target.c (update_current_target): Don't inherit or default
7675 to_augmented_libraries_svr4_read.
7676 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7677 Use TARGET_DEFAULT_RETURN.
7678
9a7d8b48
TT
76792014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * target-delegates.c: Rebuild.
7682 * target.c (update_current_target): Don't inherit or default
7683 to_can_use_agent.
7684 * target.h (struct target_ops) <to_can_use_agent>: Use
7685 TARGET_DEFAULT_RETURN.
7686
d9db5b21
TT
76872014-02-19 Tom Tromey <tromey@redhat.com>
7688
7689 * target-delegates.c: Rebuild.
7690 * target.c (update_current_target): Don't inherit or default
7691 to_use_agent.
7692 * target.h (struct target_ops) <to_use_agent>: Use
7693 TARGET_DEFAULT_NORETURN.
7694
92155eeb
TT
76952014-02-19 Tom Tromey <tromey@redhat.com>
7696
7697 * target-delegates.c: Rebuild.
7698 * target.c (update_current_target): Don't inherit or default
7699 to_traceframe_info.
7700 (return_null): Remove.
7701 * target.h (struct target_ops) <to_traceframe_info>: Use
7702 TARGET_DEFAULT_RETURN.
7703
d6522a22
TT
77042014-02-19 Tom Tromey <tromey@redhat.com>
7705
7706 * target-delegates.c: Rebuild.
7707 * target.c (update_current_target): Don't inherit or default
7708 to_static_tracepoint_markers_by_strid.
7709 * target.h (struct target_ops)
7710 <to_static_tracepoint_markers_by_strid>: Use
7711 TARGET_DEFAULT_NORETURN.
7712
4c3e4425
TT
77132014-02-19 Tom Tromey <tromey@redhat.com>
7714
7715 * target-delegates.c: Rebuild.
7716 * target.c (update_current_target): Don't inherit or default
7717 to_static_tracepoint_marker_at.
7718 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7719 Use TARGET_DEFAULT_RETURN.
7720
dcd6917f
TT
77212014-02-19 Tom Tromey <tromey@redhat.com>
7722
7723 * target-delegates.c: Rebuild.
7724 * target.c (update_current_target): Don't inherit or default
7725 to_set_permissions.
7726 * target.h (struct target_ops) <to_set_permissions>: Use
7727 TARGET_DEFAULT_IGNORE.
7728
22bcceee
TT
77292014-02-19 Tom Tromey <tromey@redhat.com>
7730
7731 * target-delegates.c: Rebuild.
7732 * target.c (update_current_target): Don't inherit or default
7733 to_get_tib_address.
7734 * target.h (struct target_ops) <to_get_tib_address>: Use
7735 TARGET_DEFAULT_NORETURN.
7736
8586ccaa
TT
77372014-02-19 Tom Tromey <tromey@redhat.com>
7738
7739 * target-delegates.c: Rebuild.
7740 * target.c (update_current_target): Don't inherit or default
7741 to_set_trace_notes.
7742 * target.h (struct target_ops) <to_set_trace_notes>: Use
7743 TARGET_DEFAULT_RETURN.
7744
91df8d1d
TT
77452014-02-19 Tom Tromey <tromey@redhat.com>
7746
7747 * target-delegates.c: Rebuild.
7748 * target.c (update_current_target): Don't initialize
7749 to_set_trace_buffer_size.
7750 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7751 TARGET_DEFAULT_IGNORE.
7752
8d526939
TT
77532014-02-19 Tom Tromey <tromey@redhat.com>
7754
7755 * target-delegates.c: Rebuild.
7756 * target.c (update_current_target): Don't inherit or default
7757 to_set_circular_trace_buffer.
7758 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7759 TARGET_DEFAULT_IGNORE.
7760
0bcfeddf
TT
77612014-02-19 Tom Tromey <tromey@redhat.com>
7762
7763 * target-delegates.c: Rebuild.
7764 * target.c (update_current_target): Don't inherit or default
7765 to_set_disconnected_tracing.
7766 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7767 TARGET_DEFAULT_IGNORE.
7768
9249843f
TT
77692014-02-19 Tom Tromey <tromey@redhat.com>
7770
7771 * target-delegates.c: Rebuild.
7772 * target.c (update_current_target): Don't inherit or default
7773 to_get_min_fast_tracepoint_insn_len.
7774 (return_minus_one): Remove.
7775 * target.h (struct target_ops)
7776 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7777
ace92e7d
TT
77782014-02-19 Tom Tromey <tromey@redhat.com>
7779
7780 * target-delegates.c: Rebuild.
7781 * target.c (update_current_target): Don't inherit or default
7782 to_get_raw_trace_data.
7783 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7784 TARGET_DEFAULT_NORETURN.
7785
08120467
TT
77862014-02-19 Tom Tromey <tromey@redhat.com>
7787
7788 * target-delegates.c: Rebuild.
7789 * target.c (update_current_target): Don't inherit or default
7790 to_upload_trace_state_variables.
7791 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7792 Use TARGET_DEFAULT_RETURN.
7793
1e949b00
TT
77942014-02-19 Tom Tromey <tromey@redhat.com>
7795
7796 * target-delegates.c: Rebuild.
7797 * target.c (update_current_target): Don't inherit or default
7798 to_upload_tracepoints.
7799 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7800 TARGET_DEFAULT_RETURN.
7801
a2e6c147
TT
78022014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (update_current_target): Don't inherit or default
7806 to_save_trace_data.
7807 * target.h (struct target_ops) <to_save_trace_data>: Use
7808 TARGET_DEFAULT_NORETURN.
7809
959bcd0b
TT
78102014-02-19 Tom Tromey <tromey@redhat.com>
7811
7812 * target-delegates.c: Rebuild.
7813 * target.c (update_current_target): Don't inherit or default
7814 to_get_trace_state_variable_value.
7815 * target.h (struct target_ops)
7816 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7817
afc94e66
TT
78182014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * target-delegates.c: Rebuild.
7821 * target.c (update_current_target): Don't inherit or default
7822 to_trace_find.
7823 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7824
e51c07ea
TT
78252014-02-19 Tom Tromey <tromey@redhat.com>
7826
7827 * target-delegates.c: Rebuild.
7828 * target.c (update_current_target): Don't inherit or default
7829 to_trace_stop.
7830 * target.h (struct target_ops) <to_trace_stop>: Use
7831 TARGET_DEFAULT_NORETURN.
7832
6fea14cd
TT
78332014-02-19 Tom Tromey <tromey@redhat.com>
7834
7835 * target-delegates.c: Rebuild.
7836 * target.c (update_current_target): Don't inherit or default
7837 to_get_tracepoint_status.
7838 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7839 TARGET_DEFAULT_NORETURN.
7840
4072d4ff
TT
78412014-02-19 Tom Tromey <tromey@redhat.com>
7842
7843 * target-delegates.c: Rebuild.
7844 * target.c (update_current_target): Don't inherit or default
7845 to_get_trace_status.
7846 * target.h (struct target_ops) <to_get_trace_status>: Use
7847 TARGET_DEFAULT_RETURN.
7848
25da2e80
TT
78492014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * target-delegates.c: Rebuild.
7852 * target.c (update_current_target): Don't inherit or default
7853 to_trace_start.
7854 * target.h (struct target_ops) <to_trace_start>: Use
7855 TARGET_DEFAULT_NORETURN.
7856
86dd181d
TT
78572014-02-19 Tom Tromey <tromey@redhat.com>
7858
7859 * target-delegates.c: Rebuild.
7860 * target.c (update_current_target): Don't inherit or default
7861 to_trace_set_readonly_regions.
7862 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7863 Use TARGET_DEFAULT_NORETURN.
7864
05c41993
TT
78652014-02-19 Tom Tromey <tromey@redhat.com>
7866
7867 * target-delegates.c: Rebuild.
7868 * target.c (update_current_target): Don't inherit or default
7869 to_disable_tracepoint.
7870 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7871 TARGET_DEFAULT_NORETURN.
7872
151f70f1
TT
78732014-02-19 Tom Tromey <tromey@redhat.com>
7874
7875 * target-delegates.c: Rebuild.
7876 * target.c (update_current_target): Don't inherit or default
7877 to_enable_tracepoint.
7878 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7879 TARGET_DEFAULT_NORETURN.
7880
94eb98b9
TT
78812014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target-delegates.c: Rebuild.
7884 * target.c (update_current_target): Don't inherit or default
7885 to_download_trace_state_variable.
7886 * target.h (struct target_ops) <to_download_trace_state_variable>:
7887 Use TARGET_DEFAULT_NORETURN.
7888
719acc4a
TT
78892014-02-19 Tom Tromey <tromey@redhat.com>
7890
7891 * target-delegates.c: Rebuild.
7892 * target.c (update_current_target): Don't inherit or default
7893 to_can_download_tracepoint.
7894 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7895 TARGET_DEFAULT_RETURN.
7896
9a980a22
TT
78972014-02-19 Tom Tromey <tromey@redhat.com>
7898
7899 * target-delegates.c: Rebuild.
7900 * target.c (update_current_target): Don't inherit or default
7901 to_download_tracepoint.
7902 * target.h (struct target_ops) <to_download_tracepoint>: Use
7903 TARGET_DEFAULT_NORETURN.
7904
5536135b
TT
79052014-02-19 Tom Tromey <tromey@redhat.com>
7906
7907 * target-delegates.c: Rebuild.
7908 * target.c (update_current_target): Don't inherit or default
7909 to_trace_init.
7910 * target.h (struct target_ops) <to_trace_init>: Use
7911 TARGET_DEFAULT_RETURN.
7912
9409d39e
TT
79132014-02-19 Tom Tromey <tromey@redhat.com>
7914
7915 * target-delegates.c: Rebuild.
7916 * target.c (update_current_target): Don't inherit or default
7917 to_supports_string_tracing.
7918 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7919 TARGET_DEFAULT_RETURN.
7920
aab1b22d
TT
79212014-02-19 Tom Tromey <tromey@redhat.com>
7922
7923 * target-delegates.c: Rebuild.
7924 * target.c (update_current_target): Don't inherit or default
7925 to_supports_enable_disable_tracepoint.
7926 * target.h (struct target_ops)
7927 <to_supports_enable_disable_tracepoint>: Use
7928 TARGET_DEFAULT_RETURN.
7929
a7304748
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * target-delegates.c: Rebuild.
7933 * target.c (update_current_target): Don't inherit or default
7934 to_supports_multi_process.
7935 * target.h (struct target_ops) <to_supports_multi_process>: Use
7936 TARGET_DEFAULT_RETURN.
7937
4229b31d
TT
79382014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * target-delegates.c: Rebuild.
7941 * target.c (update_current_target): Don't inherit or default
7942 to_get_ada_task_ptid.
7943 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7944 TARGET_DEFAULT_FUNC.
7945
43eba180
TT
79462014-02-19 Tom Tromey <tromey@redhat.com>
7947
7948 * target-delegates.c: Rebuild.
7949 * target.c (update_current_target): Don't inherit or default
7950 to_thread_architecture.
7951 * target.h (struct target_ops) <to_thread_architecture>: Use
7952 TARGET_DEFAULT_FUNC.
7953
fe31bf5b
TT
79542014-02-19 Tom Tromey <tromey@redhat.com>
7955
7956 * target-delegates.c: Rebuild.
7957 * target.c (update_current_target): Don't inherit or default
7958 to_execution_direction.
7959 * target.h (struct target_ops) <to_execution_direction>: Use
7960 TARGET_DEFAULT_FUNC.
7961
53e1cfc7
TT
79622014-02-19 Tom Tromey <tromey@redhat.com>
7963
7964 * target-delegates.c: Rebuild.
7965 * target.c (update_current_target): Don't inherit or default
7966 to_can_execute_reverse.
7967 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7968 TARGET_DEFAULT_RETURN.
7969 (target_can_execute_reverse): Unconditionally delegate.
7970
9bb9d61d
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target-delegates.c: Rebuild.
7974 * target.c (update_current_target): Don't inherit or default
7975 to_goto_bookmark.
7976 (dummy_goto_bookmark): Remove.
7977 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7978 * target.h (struct target_ops) <to_goto_bookmark>: Use
7979 TARGET_DEFAULT_NORETURN.
7980
3dbafbbb
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_get_bookmark.
7986 (dummy_get_bookmark): Remove.
7987 (init_dummy_target): Don't inherit or default to_get_bookmark.
7988 * target.h (struct target_ops) <to_get_bookmark>: Use
7989 TARGET_DEFAULT_NORETURN
7990
16f796b1
TT
79912014-02-19 Tom Tromey <tromey@redhat.com>
7992
7993 * target-delegates.c: Rebuild.
7994 * target.c (update_current_target): Don't inherit or default
7995 to_make_corefile_notes.
7996 (init_dummy_target): Don't initialize to_make_corefile_notes.
7997 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7998 TARGET_DEFAULT_FUNC.
7999
0b5a2719
TT
80002014-02-19 Tom Tromey <tromey@redhat.com>
8001
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8004 to_find_memory_regions.
8005 (init_dummy_target): Don't initialize to_find_memory_regions.
8006 * target.h (struct target_ops) <to_find_memory_regions>: Use
8007 TARGET_DEFAULT_FUNC.
8008
d9cb0195
TT
80092014-02-19 Tom Tromey <tromey@redhat.com>
8010
8011 * target-delegates.c: Rebuild.
8012 * target.c (update_current_target): Don't inherit or default
8013 to_log_command.
8014 * target.h (struct target_ops) <to_log_command>: Use
8015 TARGET_DEFAULT_IGNORE.
8016 (target_log_command): Unconditionally delegate.
8017
830ca330
TT
80182014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target-delegates.c: Rebuild.
8021 * target.c (update_current_target): Don't inherit or default
8022 to_pid_to_exec_file.
8023 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8024 TARGET_DEFAULT_RETURN.
8025
825828fc
TT
80262014-02-19 Tom Tromey <tromey@redhat.com>
8027
8028 * target-delegates.c: Rebuild.
8029 * target.c (update_current_target): Don't inherit or default
8030 to_thread_name.
8031 (target_thread_name): Unconditionally delegate.
8032 * target.h (struct target_ops) <to_thread_name>: Use
8033 TARGET_DEFAULT_RETURN.
8034
4a7e6dda
TT
80352014-02-19 Tom Tromey <tromey@redhat.com>
8036
8037 * target-delegates.c: Rebuild.
8038 * target.c (update_current_target): Don't inherit or default
8039 to_extra_thread_info.
8040 * target.h (struct target_ops) <to_extra_thread_info>: Use
8041 TARGET_DEFAULT_RETURN.
8042
0db88c1d
TT
80432014-02-19 Tom Tromey <tromey@redhat.com>
8044
8045 * target-delegates.c: Rebuild.
8046 * target.c (update_current_target): Don't inherit or default
8047 to_has_exited.
8048 * target.h (struct target_ops) <to_has_exited>: Use
8049 TARGET_DEFAULT_RETURN..
8050
6a9fa051
TT
80512014-02-19 Tom Tromey <tromey@redhat.com>
8052
8053 * target-delegates.c: Rebuild.
8054 * target.c (update_current_target): Don't inherit or default
8055 to_set_syscall_catchpoint.
8056 (return_one): Remove.
8057 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8058 TARGET_DEFAULT_RETURN.
8059
62f64d7a
TT
80602014-02-19 Tom Tromey <tromey@redhat.com>
8061
8062 * target-delegates.c: Rebuild.
8063 * target.c (update_current_target): Don't inherit or default
8064 to_insert_exec_catchpoint.
8065 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8066 TARGET_DEFAULT_RETURN.
8067
cda0f38c
TT
80682014-01-08 Tom Tromey <tromey@redhat.com>
8069
8070 * target-delegates.c: Rebuild.
8071 * target.c (update_current_target): Don't inherit or default
8072 to_insert_exec_catchpoint.
8073 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8074 TARGET_DEFAULT_RETURN.
8075
95c3375e
TT
80762014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * target-delegates.c: Rebuild.
8079 * target.c (update_current_target): Don't inherit or default
8080 to_remove_vfork_catchpoint.
8081 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8082 TARGET_DEFAULT_RETURN.
8083
7e18a8dc
TT
80842014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (update_current_target): Don't inherit or default
8088 to_insert_vfork_catchpoint.
8089 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8090 TARGET_DEFAULT_RETURN.
8091
e1a21fb7
TT
80922014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.c (update_current_target): Don't inherit or default
8096 to_remove_fork_catchpoint.
8097 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8098 TARGET_DEFAULT_RETURN.
8099
5958ebeb
TT
81002014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (update_current_target): Don't inherit or default
8104 to_insert_fork_catchpoint.
8105 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8106 TARGET_DEFAULT_RETURN.
8107
340ba4bf
TT
81082014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (update_current_target): Don't inherit or default
8112 to_post_startup_inferior.
8113 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8114 TARGET_DEFAULT_IGNORE.
8115
7634da87
TT
81162014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target-delegates.c: Rebuild.
8119 * target.c (update_current_target): Don't inherit or default
8120 to_load.
8121 * target.h (struct target_ops) <to_load>: Use
8122 TARGET_DEFAULT_NORETURN.
8123
e19e919f
TT
81242014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target-delegates.c: Rebuild.
8127 * target.c (update_current_target): Don't inherit or default
8128 to_terminal_info.
8129 * target.h (struct target_ops) <to_terminal_info>: Use
8130 TARGET_DEFAULT_FUNC.
8131
c6ea8f79
TT
81322014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (update_current_target): Don't inherit or default
8136 to_terminal_save_ours.
8137 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8138 TARGET_DEFAULT_IGNORE.
8139
e4a733f1
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_terminal_ours.
8145 * target.h (struct target_ops) <to_terminal_ours>: Use
8146 TARGET_DEFAULT_IGNORE.
8147
74fcbef9
TT
81482014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8152 to_terminal_ours_for_output.
8153 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8154 TARGET_DEFAULT_IGNORE.
8155
ddeaacc9
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (update_current_target): Don't inherit or default
8160 to_terminal_inferior.
8161 * target.h (struct target_ops) <to_terminal_inferior>: Use
8162 TARGET_DEFAULT_IGNORE.
8163
0343661d
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8168 to_terminal_init.
8169 * target.h (struct target_ops) <to_terminal_init>: Use
8170 TARGET_DEFAULT_IGNORE.
8171
77cdffe9
TT
81722014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (update_current_target): Don't inherit or default
8176 to_can_accel_watchpoint_condition.
8177 * target.h (struct target_ops)
8178 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8179
d03655e4
TT
81802014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * target-delegates.c: Rebuild.
8183 * target.c (update_current_target): Don't inherit or default
8184 to_region_ok_for_hw_watchpoint.
8185 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8186 Use TARGET_DEFAULT_FUNC.
8187
65f160a9
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target-delegates.c: Rebuild.
8191 * target.c (update_current_target): Don't inherit or default
8192 to_watchpoint_addr_within_range.
8193 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8194 Use TARGET_DEFAULT_FUNC.
8195
61dd109f
TT
81962014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target-delegates.c: Rebuild.
8199 * target.c (update_current_target): Don't inherit or default
8200 to_remove_watchpoint.
8201 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8202 TARGET_DEFAULT_NORETURN.
8203
016facd4
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target-delegates.c: Rebuild.
8207 * target.c (update_current_target): Don't inherit or default
8208 to_insert_watchpoint.
8209 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8210 TARGET_DEFAULT_RETURN.
8211
418dabac
TT
82122014-02-19 Tom Tromey <tromey@redhat.com>
8213
8214 * target-delegates.c: Rebuild.
8215 * target.c (update_current_target): Don't inherit or default
8216 to_remove_hw_breakpoint.
8217 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8218 TARGET_DEFAULT_RETURN.
8219
61b371f9
TT
82202014-02-19 Tom Tromey <tromey@redhat.com>
8221
8222 * target-delegates.c: Rebuild.
8223 * target.c (update_current_target): Don't inherit or default
8224 to_insert_hw_breakpoint.
8225 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8226 TARGET_DEFAULT_RETURN.
8227
52b51d06
TT
82282014-02-19 Tom Tromey <tromey@redhat.com>
8229
8230 * target-delegates.c: Rebuild.
8231 * target.c (update_current_target): Don't inherit or default
8232 to_can_use_hw_breakpoint.
8233 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8234 TARGET_DEFAULT_RETURN.
8235
f86e59b2
TT
82362014-02-19 Tom Tromey <tromey@redhat.com>
8237
8238 * target-delegates.c: Rebuild.
8239 * target.c (update_current_target): Don't inherit or default
8240 to_files_info.
8241 * target.h (struct target_ops) <to_files_info>: Use
8242 TARGET_DEFAULT_IGNORE.
8243
6c628163
TT
82442014-02-19 Tom Tromey <tromey@redhat.com>
8245
8246 * target-delegates.c: Rebuild.
8247 * target.c (update_current_target): Don't inherit or default
8248 to_store.
8249 * target.h (struct target_ops) <to_store>: Use
8250 TARGET_DEFAULT_NORETURN.
8251
bebd3233
TT
82522014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8256 to_post_attach.
8257 * target.h (struct target_ops) <to_post_attach>: Use
8258 TARGET_DEFAULT_IGNORE.
8259
a53f3625
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_rcmd.
8265 (default_rcmd): New function.
8266 (do_monitor_command): Unconditionally delegate.
8267 * target.h (struct target_ops) <to_rmcd>: Use
8268 TARGET_DEFAULT_FUNC.
8269
e9a29200
TT
82702014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target-delegates.c: Rebuild.
8273 * target.c (init_dummy_target): Don't initialize to_attach.
8274 (target_attach): Unconditionally delegate.
8275 * target.h (struct target_ops) <to_attach>: Use
8276 TARGET_DEFAULT_FUNC.
8277
09da0d0a
TT
82782014-02-19 Tom Tromey <tromey@redhat.com>
8279
8280 * target-delegates.c: Rebuild.
8281 * target.c (target_detach): Unconditionally delegate.
8282 (init_dummy_target): Don't initialize to_detach.
8283 * target.h (struct target_ops) <to_detach>: Use
8284 TARGET_DEFAULT_IGNORE.
8285
5436ff03
TT
82862014-02-19 Tom Tromey <tromey@redhat.com>
8287
8288 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8289 Add argument.
8290 (target_augmented_libraries_svr4_read): Add argument.
8291 * target.c (update_current_target): Update.
8292 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8293 argument.
8294
f0d960ea
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target.h (struct target_ops) <to_call_history_range>: Add
8298 argument.
8299 * target.c (target_call_history_range): Add argument.
8300 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8301 argument.
8302 (record_btrace_call_history_from): Update.
8303
ec0aea04
TT
83042014-02-19 Tom Tromey <tromey@redhat.com>
8305
8306 * target.h (struct target_ops) <to_call_history_from>: Add
8307 argument.
8308 * target.c (target_call_history_from): Add argument.
8309 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8310 argument.
8311
5df2fcba
TT
83122014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target.h (struct target_ops) <to_call_history>: Add argument.
8315 * target.c (target_call_history): Add argument.
8316 * record-btrace.c (record_btrace_call_history): Add 'self'
8317 argument.
8318
4e99c6b7
TT
83192014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target.h (struct target_ops) <to_insn_history_range>: Add
8322 argument.
8323 * target.c (target_insn_history_range): Add argument.
8324 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8325 argument.
8326 (record_btrace_insn_history_from): Update.
8327
9abc3ff3
TT
83282014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * target.h (struct target_ops) <to_insn_history_from>: Add
8331 argument.
8332 * target.c (target_insn_history_from): Add argument.
8333 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8334 argument.
8335
7a6c5609
TT
83362014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * target.h (struct target_ops) <to_insn_history>: Add argument.
8339 * target.c (target_insn_history): Add argument.
8340 * record-btrace.c (record_btrace_insn_history): Add 'self'
8341 argument.
8342
606183ac
TT
83432014-02-19 Tom Tromey <tromey@redhat.com>
8344
8345 * target.h (struct target_ops) <to_goto_record>: Add argument.
8346 * target.c (target_goto_record): Add argument.
8347 * record-full.c (record_full_goto): Add 'self' argument.
8348 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8349
307a1b91
TT
83502014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8353 * target.c (target_goto_record_end): Add argument.
8354 * record-full.c (record_full_goto_end): Add 'self' argument.
8355 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8356
08475817
TT
83572014-02-19 Tom Tromey <tromey@redhat.com>
8358
8359 * target.h (struct target_ops) <to_goto_record_begin>: Add
8360 argument.
8361 * target.c (target_goto_record_begin): Add argument.
8362 * record-full.c (record_full_goto_begin): Add 'self' argument.
8363 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8364 argument.
8365
1c63c994
TT
83662014-02-19 Tom Tromey <tromey@redhat.com>
8367
8368 * target.h (struct target_ops) <to_record_is_replaying>: Add
8369 argument.
8370 * target.c (target_record_is_replaying): Add argument.
8371 * record-full.c (record_full_is_replaying): Add 'self' argument.
8372 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8373 argument.
8374 (record_btrace_xfer_partial, record_btrace_store_registers)
8375 (record_btrace_prepare_to_store, record_btrace_resume)
8376 (record_btrace_wait, record_btrace_decr_pc_after_break)
8377 (record_btrace_find_new_threads, record_btrace_thread_alive):
8378 Update.
8379
d1b55219
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target.h (struct target_ops) <to_delete_record>: Add argument.
8383 * target.c (target_delete_record): Add argument.
8384 * record-full.c (record_full_delete): Add 'self' argument.
8385
1390f529
TT
83862014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target.h (struct target_ops) <to_save_record>: Add argument.
8389 * target.c (target_save_record): Add argument.
8390 * record-full.c (record_full_save): Add 'self' argument.
8391 (record_full_save): Add 'self' argument.
8392
630d6a4a
TT
83932014-02-19 Tom Tromey <tromey@redhat.com>
8394
8395 * target.h (struct target_ops) <to_info_record>: Add argument.
8396 * target.c (target_info_record): Add argument.
8397 * record.c (info_record_command): Add argument.
8398 * record-full.c (record_full_info): Add 'self' argument.
8399 * record-btrace.c (record_btrace_info): Add 'self' argument.
8400
c6cd7c02
TT
84012014-02-19 Tom Tromey <tromey@redhat.com>
8402
8403 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8404 * target.c (target_stop_recording): Add argument.
8405 * record.c (record_stop): Add argument.
8406 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8407 argument.
8408
39c49f83
TT
84092014-02-19 Tom Tromey <tromey@redhat.com>
8410
8411 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8412 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8413 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8414 argument.
8415 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8416 (_initialize_amd64_linux_nat): Use it.
8417 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8418 (_initialize_i386_linux_nat): Use it.
8419
1777056d
TT
84202014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8423 * target.c (target_teardown_btrace): Add argument.
8424 * remote.c (remote_teardown_btrace): Add 'self' argument.
8425 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8426 argument.
8427 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8428 argument.
8429
25e95349
TT
84302014-02-19 Tom Tromey <tromey@redhat.com>
8431
8432 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8433 * target.c (target_disable_btrace): Add argument.
8434 * remote.c (remote_disable_btrace): Add 'self' argument.
8435 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8436 argument.
8437 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8438 argument.
8439
e3c49f88
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8443 * target.c (target_enable_btrace): Add argument.
8444 * remote.c (remote_enable_btrace): Add 'self' argument.
8445 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8446 argument.
8447 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8448 argument.
8449
fe38f897
TT
84502014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8453 (target_can_use_agent): Add argument.
8454 * target.c (update_current_target): Update.
8455 * remote.c (remote_can_use_agent): Add 'self' argument.
8456 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8457
2c152180
TT
84582014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target.h (struct target_ops) <to_use_agent>: Add argument.
8461 (target_use_agent): Add argument.
8462 * target.c (update_current_target): Update.
8463 * remote.c (remote_use_agent): Add 'self' argument.
8464 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8465
a893e81f
TT
84662014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8469 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8470 (target_traceframe_info): Add argument.
8471 * target.c (update_current_target): Update.
8472 * remote.c (remote_traceframe_info): Add 'self' argument.
8473 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8474
c686c57f
TT
84752014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target.h (target_static_tracepoint_markers_by_strid): Add
8478 argument.
8479 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8480 'self' argument.
8481 * target.c (update_current_target): Update.
8482 * remote.c (struct target_ops)
8483 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8484 * linux-nat.c (struct target_ops)
8485 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8486
61fc905d
TT
84872014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8490 Add argument.
8491 (target_static_tracepoint_marker_at): Add argument.
8492 * target.c (update_current_target): Update.
8493 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8494 argument.
8495
c378d69d
TT
84962014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8499 (target_set_permissions): Add argument.
8500 * target.c (update_current_target): Update.
8501 * remote.c (remote_set_permissions): Add 'self' argument.
8502 (remote_start_remote): Update.
8503
bd7ae0f5
TT
85042014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8507 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8508 (target_get_tib_address): Add argument.
8509 * target.c (update_current_target): Update.
8510 * remote.c (remote_get_tib_address): Add 'self' argument.
8511
d9e68a2c
TT
85122014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8515 (target_set_trace_notes): Add argument.
8516 * target.c (update_current_target): Update.
8517 * remote.c (remote_set_trace_notes): Add 'self' argument.
8518
4da384be
TT
85192014-02-19 Tom Tromey <tromey@redhat.com>
8520
8521 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8522 argument.
8523 (target_set_trace_buffer_size): Add argument.
8524 * target.c (update_current_target): Update.
8525 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8526
736d5b1f
TT
85272014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8530 argument.
8531 (target_set_circular_trace_buffer): Add argument.
8532 * target.c (update_current_target): Update.
8533 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8534 argument.
8535
37b25738
TT
85362014-02-19 Tom Tromey <tromey@redhat.com>
8537
8538 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8539 argument.
8540 (target_set_disconnected_tracing): Add argument.
8541 * target.c (update_current_target): Update.
8542 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8543
0e67620a
TT
85442014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target.h (struct target_ops)
8547 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8548 (target_get_min_fast_tracepoint_insn_len): Add argument.
8549 * target.c (update_current_target): Update.
8550 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8551 argument.
8552
88ee6f45
TT
85532014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8556 argument.
8557 (target_get_raw_trace_data): Add argument.
8558 * target.c (update_current_target): Update.
8559 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8560
181e3713
TT
85612014-02-19 Tom Tromey <tromey@redhat.com>
8562
8563 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8564 Add argument.
8565 (target_upload_trace_state_variables): Add argument.
8566 * target.c (update_current_target): Update.
8567 * remote.c (remote_upload_trace_state_variables): Add 'self'
8568 argument.
8569 (remote_start_remote): Update.
8570
ab6617cc
TT
85712014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8574 argument.
8575 (target_upload_tracepoints): Add argument.
8576 * target.c (update_current_target): Update.
8577 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8578 (remote_start_remote): Update.
8579
dc3decaf
TT
85802014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8583 (target_save_trace_data): Add argument.
8584 * target.c (update_current_target): Update.
8585 * remote.c (remote_save_trace_data): Add 'self' argument.
8586
4011015b
TT
85872014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8590 argument.
8591 * target.h (struct target_ops)
8592 <to_get_trace_state_variable_value>: Add argument.
8593 (target_get_trace_state_variable_value): Add argument.
8594 * target.c (update_current_target): Update.
8595 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8596 argument.
8597 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8598
bd4c6793
TT
85992014-02-19 Tom Tromey <tromey@redhat.com>
8600
8601 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8602 * target.h (struct target_ops) <to_trace_find>: Add argument.
8603 (target_trace_find): Add argument.
8604 * target.c (update_current_target): Update.
8605 * remote.c (remote_trace_find): Add 'self' argument.
8606 * ctf.c (ctf_trace_find): Add 'self' argument.
8607
74499f1b
TT
86082014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8611 (target_trace_stop): Add argument.
8612 * target.c (update_current_target): Update.
8613 * remote.c (remote_trace_stop): Add 'self' argument.
8614
db90e85c
TT
86152014-02-19 Tom Tromey <tromey@redhat.com>
8616
8617 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8618 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8619 argument.
8620 (target_get_tracepoint_status): Add argument.
8621 * target.c (update_current_target): Update.
8622 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8623
8bd200f1
TT
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8627 * target.h (struct target_ops) <to_get_trace_status>: Add
8628 argument.
8629 (target_get_trace_status): Add argument.
8630 * target.c (update_current_target): Update.
8631 * remote.c (remote_get_trace_status): Add 'self' argument.
8632 (remote_start_remote, remote_can_download_tracepoint): Update.
8633 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8634
e2d1aae3
TT
86352014-02-19 Tom Tromey <tromey@redhat.com>
8636
8637 * target.h (struct target_ops) <to_trace_start>: Add argument.
8638 (target_trace_start): Add argument.
8639 * target.c (update_current_target): Update.
8640 * remote.c (remote_trace_start): Add 'self' argument.
8641
583f9a86
TT
86422014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8645 Add argument.
8646 (target_trace_set_readonly_regions): Add argument.
8647 * target.c (update_current_target): Update.
8648 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8649 argument.
8650
780b049c
TT
86512014-02-19 Tom Tromey <tromey@redhat.com>
8652
8653 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8654 argument.
8655 (target_disable_tracepoint): Add argument.
8656 * target.c (update_current_target): Update.
8657 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8658
46670d57
TT
86592014-02-19 Tom Tromey <tromey@redhat.com>
8660
8661 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8662 argument.
8663 (target_enable_tracepoint): Add argument.
8664 * target.c (update_current_target): Update.
8665 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8666
559d2b81
TT
86672014-02-19 Tom Tromey <tromey@redhat.com>
8668
8669 * target.h (struct target_ops) <to_download_trace_state_variable>:
8670 Add argument.
8671 (target_download_trace_state_variable): Add argument.
8672 * target.c (update_current_target): Update.
8673 * remote.c (remote_download_trace_state_variable): Add 'self'
8674 argument.
8675
a52a8357
TT
86762014-02-19 Tom Tromey <tromey@redhat.com>
8677
8678 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8679 argument.
8680 (target_can_download_tracepoint): Add argument.
8681 * target.c (update_current_target): Update.
8682 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8683
548f7808
TT
86842014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target.h (struct target_ops) <to_download_tracepoint>: Add
8687 argument.
8688 (target_download_tracepoint): Add argument.
8689 * target.c (update_current_target): Update.
8690 * remote.c (remote_download_tracepoint): Add 'self' argument.
8691
ecae04e1
TT
86922014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target.h (struct target_ops) <to_trace_init>: Add argument.
8695 (target_trace_init): Add argument.
8696 * target.c (update_current_target): Update.
8697 * remote.c (remote_trace_init): Add 'self' argument.
8698
fab5aa7c
TT
86992014-02-19 Tom Tromey <tromey@redhat.com>
8700
8701 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8702 * target.c (target_fileio_readlink): Add argument.
8703 * remote.c (remote_hostio_readlink): Add 'self' argument.
8704 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8705
dbbca37d
TT
87062014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8709 * target.c (target_fileio_unlink): Add argument.
8710 * remote.c (remote_hostio_unlink): Add 'self' argument.
8711 (remote_file_delete): Update.
8712 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8713
df39ea25
TT
87142014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8717 * target.c (target_fileio_close): Add argument.
8718 * remote.c (remote_hostio_close): Add 'self' argument.
8719 (remote_hostio_close_cleanup): Update.
8720 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8721 Update.
8722 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8723
a3be983c
TT
87242014-02-19 Tom Tromey <tromey@redhat.com>
8725
8726 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8727 * target.c (target_fileio_pread): Add argument.
8728 * remote.c (remote_hostio_pread): Add 'self' argument.
8729 (remote_bfd_iovec_pread, remote_file_get): Update.
8730 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8731
0d866f62
TT
87322014-02-19 Tom Tromey <tromey@redhat.com>
8733
8734 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8735 * target.c (target_fileio_pwrite): Add argument.
8736 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8737 (remote_file_put): Update.
8738 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8739
cd897586
TT
87402014-02-19 Tom Tromey <tromey@redhat.com>
8741
8742 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8743 * target.c (target_fileio_open): Add argument.
8744 * remote.c (remote_hostio_open): Add 'self' argument.
8745 (remote_bfd_iovec_open): Add 'self' argument.
8746 (remote_file_put): Add 'self' argument.
8747 (remote_file_get): Add 'self' argument.
8748 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8749
78eff0ec
TT
87502014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8753 Add argument.
8754 (target_can_run_breakpoint_commands): Add argument.
8755 * target.c (update_current_target): Update.
8756 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8757 argument.
8758 (remote_insert_breakpoint): Add 'self' argument.
8759 (remote_insert_hw_breakpoint): Add 'self' argument.
8760 (remote_can_run_breakpoint_commands): Add 'self' argument.
8761
efcc2da7
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target.h (struct target_ops)
8765 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8766 (target_supports_evaluation_of_breakpoint_conditions): Add
8767 argument.
8768 * target.c (update_current_target): Update.
8769 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8770 argument.
8771 (remote_insert_breakpoint): Add 'self' argument.
8772 (remote_insert_hw_breakpoint): Add 'self' argument.
8773 (remote_supports_cond_breakpoints): Add 'self' argument.
8774
6de37a3a
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8778 argument.
8779 (target_supports_string_tracing): Add argument.
8780 * target.c (update_current_target): Update.
8781 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8782
2bfc0540
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target.h (struct target_ops)
8786 <to_supports_disable_randomization>: Add argument.
8787 * target.c (find_default_supports_disable_randomization): Add
8788 argument.
8789 (target_supports_disable_randomization): Add argument.
8790 (find_default_supports_disable_randomization): Add 'self'
8791 argument.
8792 * remote.c (extended_remote_supports_disable_randomization): Add
8793 'self' argument.
8794 (remote_supports_disable_randomization): Add 'self' argument.
8795 (extended_remote_create_inferior): Update.
8796 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8797 'self' argument.
8798
7d178d6a
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target.h (struct target_ops)
8802 <to_supports_enable_disable_tracepoint>: Add argument.
8803 (target_supports_enable_disable_tracepoint): Add argument.
8804 * target.c (update_current_target): Update.
8805 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8806 argument.
8807
86ce2668
TT
88082014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * target.h (struct target_ops) <to_supports_multi_process>: Add
8811 argument.
8812 (target_supports_multi_process): Add argument.
8813 * target.c (update_current_target): Update.
8814 * remote.c (remote_supports_multi_process): Add 'self' argument.
8815 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8816 argument.
8817 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8818 argument.
8819
4c612759
TT
88202014-02-19 Tom Tromey <tromey@redhat.com>
8821
8822 * target.h (struct target_ops) <to_execution_direction>: Add
8823 argument.
8824 (target_execution_direction): Add argument.
8825 * target.c (default_execution_direction): Add 'self' argument.
8826 * record-full.c (record_full_execution_direction): Add 'self'
8827 argument.
8828
19db3e69
TT
88292014-02-19 Tom Tromey <tromey@redhat.com>
8830
8831 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8832 argument.
8833 (target_can_execute_reverse): Add argument.
8834 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8835 * record-full.c (record_full_can_execute_reverse): Add 'self'
8836 argument.
8837 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8838 argument.
8839
1e6b91a4
TT
88402014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8843 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8844 argument.
8845 (target_get_ada_task_ptid): Add argument.
8846 * target.c (update_current_target): Update.
8847 (default_get_ada_task_ptid): Add 'self' argument.
8848 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8849 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8850 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8851 argument.
8852 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8853 argument.
8854 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8855 argument.
8856 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8857 argument.
8858 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8859 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8860 argument.
8861
3c80fb48
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8865 (target_goto_bookmark): Add argument.
8866 * target.c (dummy_goto_bookmark): Add 'self' argument.
8867 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8868
dd0e2830
TT
88692014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8872 (target_get_bookmark): Add argument.
8873 * target.c (dummy_get_bookmark): Add 'self' argument.
8874 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8875
fc6691b2
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8879 argument.
8880 (target_make_corefile_notes): Add argument.
8881 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8882 * procfs.c (procfs_make_note_section): Add 'self' argument.
8883 (procfs_make_note_section): Add 'self' argument.
8884 (procfs_make_note_section): Add 'self' argument.
8885 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8886 argument.
8887 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8888 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8889 * exec.c (exec_make_note_section): Add 'self' argument.
8890 (exec_make_note_section): Add 'self' argument.
8891
2e73927c
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops) <to_find_memory_regions>: Add
8895 argument.
8896 (target_find_memory_regions): Add argument.
8897 * target.c (dummy_find_memory_regions): Add 'self' argument.
8898 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8899 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8900 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8901 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8902 * exec. (exec_do_find_memory_regions): New global.
8903 (exec_set_find_memory_regions): Rewrite.
8904 (exec_find_memory_regions): New function.
8905 (init_exec_ops): Use exec_find_memory_regions.
8906
2a9a2795
TT
89072014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target.h (struct target_ops) <to_supports_non_stop>: Add
8910 argument.
8911 * target.c (find_default_supports_non_stop): Add argument.
8912 (target_supports_non_stop): Add argument.
8913 (find_default_supports_non_stop): Add 'self' argument.
8914 * remote.c (remote_supports_non_stop): Add 'self' argument.
8915 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8916
4ab76ea3
TT
89172014-02-19 Tom Tromey <tromey@redhat.com>
8918
8919 * target.h (struct target_ops) <to_log_command>: Add argument.
8920 (target_log_command): Add argument.
8921 * serial.h (serial_log_command): Add 'self' argument.
8922 * serial.c (serial_log_command): Add 'self' argument.
8923
8dd27370
TT
89242014-02-19 Tom Tromey <tromey@redhat.com>
8925
8926 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8927 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8928 argument.
8929 (target_pid_to_exec_file): Add argument.
8930 * target.c (debug_to_pid_to_exec_file): Add argument.
8931 (update_current_target): Update.
8932 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8933 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8934 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8935 (linux_handle_extended_wait): Update.
8936 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8937 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8938 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8939 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8940
1aac633b
TT
89412014-02-19 Tom Tromey <tromey@redhat.com>
8942
8943 * target.h (struct target_ops) <to_rcmd>: Add argument.
8944 (target_rcmd): Add argument.
8945 * target.c (debug_to_rcmd): Add argument.
8946 (update_current_target, do_monitor_command): Update.
8947 * remote.c (remote_rcmd): Add 'self' argument.
8948 * monitor.c (monitor_rcmd): Add 'self' argument.
8949
1eab8a48
TT
89502014-02-19 Tom Tromey <tromey@redhat.com>
8951
8952 * windows-nat.c (windows_stop): Add 'self' argument.
8953 * target.h (struct target_ops) <to_stop>: Add argument.
8954 * target.c (target_stop): Add argument.
8955 (debug_to_stop): Add argument.
8956 (update_current_target): Update.
8957 * remote.c (remote_stop): Add 'self' argument.
8958 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8959 (gdbsim_cntrl_c): Update.
8960 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8961 * procfs.c (procfs_stop): Add 'self' argument.
8962 * nto-procfs.c (procfs_stop): Add 'self' argument.
8963 * monitor.c (monitor_stop): Add 'self' argument.
8964 (monitor_open): Update.
8965 * linux-nat.c (linux_nat_stop): Add argument.
8966 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8967 * gnu-nat.c (gnu_stop): Add 'self' argument.
8968 * darwin-nat.c (darwin_stop): Add 'self' argument.
8969
503a628d
TT
89702014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target.h (struct target_ops) <to_thread_name>: Add argument.
8973 * target.c (target_thread_name): Add argument.
8974 (update_current_target): Update.
8975 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8976
c15906d8
TT
89772014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target.h (struct target_ops) <to_extra_thread_info>: Add
8980 argument.
8981 (target_extra_thread_info): Add argument.
8982 * target.c (update_current_target): Update.
8983 * remote.c (remote_threads_extra_info): Add 'self' argument.
8984 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8985 argument.
8986 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8987 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8988 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8989 argument.
8990 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8991 argument.
8992 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8993 argument.
8994 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8995 argument.
8996
daf5e9b6
TT
89972014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target.h (struct target_ops) <to_program_signals>: Add argument.
9000 * target.c (target_program_signals): Add argument.
9001 * remote.c (remote_program_signals): Add 'self' argument.
9002
94bedb42
TT
90032014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9006 * target.c (target_pass_signals): Add argument.
9007 * remote.c (remote_pass_signals): Add 'self' argument.
9008 (remote_start_remote): Update.
9009 * procfs.c (procfs_pass_signals): Add 'self' argument.
9010 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9011 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9012 (linux_nat_create_inferior, linux_nat_attach): Update.
9013
da82bd6b
TT
90142014-02-19 Tom Tromey <tromey@redhat.com>
9015
9016 * windows-nat.c (windows_can_run): Add 'self' argument.
9017 * target.h (struct target_ops) <to_can_run>: Add argument.
9018 (target_can_run): Add argument.
9019 * target.c (debug_to_can_run): Add argument.
9020 (update_current_target): Update.
9021 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9022 * inf-child.c (inf_child_can_run): Add 'self' argument.
9023 * go32-nat.c (go32_can_run): Add 'self' argument.
9024
d796e1d6
TT
90252014-02-19 Tom Tromey <tromey@redhat.com>
9026
9027 * target.h (struct target_ops) <to_has_exited>: Add argument.
9028 (target_has_exited): Add argument.
9029 * target.c (debug_to_has_exited): Add argument.
9030 (update_current_target): Update.
9031
ff214e67
TT
90322014-02-19 Tom Tromey <tromey@redhat.com>
9033
9034 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9035 argument.
9036 (target_set_syscall_catchpoint): Add argument.
9037 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9038 argument.
9039 * target.c (update_current_target): Update.
9040
758e29d2
TT
90412014-02-19 Tom Tromey <tromey@redhat.com>
9042
9043 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9044 argument.
9045 (target_remove_exec_catchpoint): Add argument.
9046 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9047 (update_current_target): Update.
9048 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9049 argument.
9050
ba025e51
TT
90512014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9054 argument.
9055 (target_insert_exec_catchpoint): Add argument.
9056 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9057 (update_current_target): Update.
9058 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9059 argument.
9060
e98cf0cd
TT
90612014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9064 argument.
9065 (target_remove_vfork_catchpoint): Add argument.
9066 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9067 (update_current_target): Update.
9068 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9069 argument.
9070
3ecc7da0
TT
90712014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9074 argument.
9075 (target_insert_vfork_catchpoint): Add argument.
9076 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9077 (update_current_target): Update.
9078 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9079 argument.
9080
973fc227
TT
90812014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9084 argument.
9085 (target_remove_fork_catchpoint): Add argument.
9086 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9087 (update_current_target): Update.
9088 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9089 argument.
9090
a863b201
TT
90912014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9094 argument.
9095 (target_insert_fork_catchpoint): Add argument.
9096 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9097 (update_current_target): Update.
9098 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9099 argument.
9100
2e97a79e
TT
91012014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9104 argument.
9105 (target_post_startup_inferior): Add argument.
9106 * target.c (debug_to_post_startup_inferior): Add argument.
9107 (update_current_target): Update.
9108 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9109 argument.
9110 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9111 argument.
9112 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9113 argument.
9114 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9115 argument.
9116 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9117 'self' argument.
9118 (super_post_startup_inferior): Likewise.
9119 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9120 'self' argument.
9121 (super_post_startup_inferior): Likewise.
9122 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9123 Add 'self' argument.
9124 (super_post_startup_inferior): Likewise.
9125
71a9f134
TT
91262014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (struct target_ops) <to_load>: Add argument.
9129 * target.c (target_load): Add argument.
9130 (debug_to_load): Add argument.
9131 (update_current_target): Update.
9132 * remote.c (remote_load): Add 'self' argument.
9133 * remote-sim.c (gdbsim_load): Add 'self' argument.
9134 * remote-mips.c (mips_load): Add 'self' argument.
9135 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9136 * monitor.c (monitor_load): Add 'self' argument.
9137 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9138
0a4f40a2
TT
91392014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9142 (target_terminal_info): Add argument.
9143 * target.c (debug_to_terminal_info): Add argument.
9144 (default_terminal_info): Likewise.
9145 * inflow.c (child_terminal_info): Add 'self' argument.
9146 * inferior.h (child_terminal_info): Add 'self' argument.
9147 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9148
ae3bd431
TT
91492014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9152 argument.
9153 (target_terminal_save_ours): Add argument.
9154 * target.c (debug_to_terminal_save_ours): Add argument.
9155 (update_current_target): Update.
9156 * inflow.c (terminal_save_ours): Add 'self' argument.
9157 * inferior.h (terminal_save_ours): Add 'self' argument.
9158
e3594fd1
TT
91592014-02-19 Tom Tromey <tromey@redhat.com>
9160
9161 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9162 (target_terminal_ours): Add argument.
9163 * target.c (debug_to_terminal_ours): Add argument.
9164 (update_current_target): Update.
9165 * remote.c (remote_terminal_ours): Add 'self' argument.
9166 (remote_close): Update.
9167 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9168 * inflow.c (terminal_ours): Add 'self' argument.
9169 * inferior.h (terminal_ours): Add 'self' argument.
9170 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9171
2e1e1a19
TT
91722014-02-19 Pedro Alves <palves@redhat.com>
9173 Tom Tromey <tromey@redhat.com>
9174
9175 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9176 argument.
9177 (target_terminal_ours_for_output): Add argument.
9178 * target.c (debug_to_terminal_ours_for_output): Add argument.
9179 (update_current_target): Update.
9180 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9181 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9182 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9183
d2f640d4
TT
91842014-02-19 Tom Tromey <tromey@redhat.com>
9185
9186 * target.h (struct target_ops) <to_terminal_inferior>: Add
9187 argument.
9188 * target.c (target_terminal_inferior): Add argument.
9189 (update_current_target): Update.
9190 * remote.c (remote_terminal_inferior): Add 'self' argument.
9191 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9192 * inflow.c (terminal_inferior): Add 'self' argument.
9193 * inferior.h (terminal_inferior): Add 'self' argument.
9194 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9195 (go32_terminal_inferior): Add 'self' argument.
9196
c42bf286
TT
91972014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9200 (target_terminal_init): Add argument.
9201 * target.c (debug_to_terminal_init): Add argument.
9202 (update_current_target): Update.
9203 * inflow.c (terminal_init_inferior): Add 'self' argument.
9204 * inferior.h (terminal_init_inferior): Add 'self' argument.
9205 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9206 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9207
c3a5ff89
TT
92082014-02-19 Tom Tromey <tromey@redhat.com>
9209
9210 * target.h (struct target_ops)
9211 <to_can_accel_watchpoint_condition>: Add argument.
9212 (target_can_accel_watchpoint_condition): Add argument.
9213 * target.c (debug_to_can_accel_watchpoint_condition): Add
9214 argument.
9215 (update_current_target): Update.
9216 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9217 'self' argument.
9218
31568a15
TT
92192014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9222 Add argument.
9223 (target_region_ok_for_hw_watchpoint): Add argument.
9224 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9225 (default_region_ok_for_hw_watchpoint): Add argument.
9226 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9227 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9228 argument.
9229 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9230 argument.
9231 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9232 argument.
9233 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9234 'self' argument.
9235 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9236 'self' argument.
9237 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9238 'self' argument.
9239 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9240 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9241 'self' argument.
9242 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9243 Add 'self' argument.
9244
7bb99c53
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9248 argument.
9249 (target_insert_watchpoint): Add argument.
9250 * target.c (debug_to_insert_watchpoint): Add argument.
9251 (update_current_target): Update.
9252 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9253 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9254 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9255 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9256 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9257 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9258 argument.
9259 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9260 (procfs_insert_hw_watchpoint): Add 'self' argument.
9261 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9262 argument.
9263 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9264 argument.
9265 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9266 argument.
9267 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9268 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9269 argument.
9270 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9271 'self' argument.
9272
11b5219a
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9276 argument.
9277 (target_remove_watchpoint): Add argument.
9278 * target.c (debug_to_remove_watchpoint): Add argument.
9279 (update_current_target): Update.
9280 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9281 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9282 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9283 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9284 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9285 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9286 argument.
9287 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9288 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9289 argument.
9290 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9291 argument.
9292 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9293 argument.
9294 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9295 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9296 argument.
9297 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9298 'self' argument.
9299
a64dc96c
TT
93002014-02-19 Tom Tromey <tromey@redhat.com>
9301
9302 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9303 argument.
9304 (target_remove_hw_breakpoint): Add argument.
9305 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9306 (update_current_target): Update.
9307 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9308 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9309 argument.
9310 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9311 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9312 argument.
9313 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9314 'self' argument.
9315
23a26771
TT
93162014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9319 argument.
9320 (target_insert_hw_breakpoint): Add argument.
9321 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9322 (update_current_target): Update.
9323 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9324 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9325 argument.
9326 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9327 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9328 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9329 argument.
9330 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9331 'self' argument.
9332
5461485a
TT
93332014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9336 argument.
9337 (target_can_use_hardware_watchpoint): Add argument.
9338 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9339 (update_current_target): Update.
9340 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9341 argument.
9342 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9343 argument.
9344 * remote.c (remote_check_watch_resources): Add 'self' argument.
9345 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9346 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9347 argument.
9348 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9349 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9350 argument.
9351 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9352 argument.
9353 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9354 argument.
9355 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9356 argument.
9357 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9358 argument.
9359 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9360 argument.
9361 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9362 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9363 argument.
9364 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9365 'self' argument.
9366
f045800c
TT
93672014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target.h (struct target_ops) <to_post_attach>: Add argument.
9370 (target_post_attach): Add argument.
9371 * target.c (debug_to_post_attach): Add argument.
9372 (update_current_target): Update.
9373 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9374 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9375 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9376 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9377 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9378
de90e03d
TT
93792014-02-19 Tom Tromey <tromey@redhat.com>
9380
9381 * windows-nat.c (windows_close): Add 'self' argument.
9382 * tracepoint.c (tfile_close): Add 'self' argument.
9383 * target.h (struct target_ops) <to_close>: Add argument.
9384 * target.c (target_close): Add argument.
9385 (update_current_target): Update.
9386 * remote.c (remote_close): Add 'self' argument.
9387 * remote-sim.c (gdbsim_close): Add 'self' argument.
9388 * remote-mips.c (mips_close): Add 'self' argument.
9389 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9390 * record-full.c (record_full_close): Add 'self' argument.
9391 * record-btrace.c (record_btrace_close): Add 'self' argument.
9392 * monitor.h (monitor_close): Add 'self' argument.
9393 * monitor.c (monitor_close): Add 'self' argument.
9394 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9395 * linux-nat.c (linux_nat_close): Add argument.
9396 * go32-nat.c (go32_close): Add 'self' argument.
9397 * exec.c (exec_close_1): Add 'self' argument.
9398 * ctf.c (ctf_close): Add 'self' argument.
9399 * corelow.c (core_close): Add 'self' argument.
9400 (core_close_cleanup): Update.
9401 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9402 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9403
9dd130a0
TT
94042014-02-19 Tom Tromey <tromey@redhat.com>
9405
9406 * remote.c (remote_load): New function.
9407 (init_remote_ops): Use it.
9408
46917d26
TT
94092014-02-19 Tom Tromey <tromey@redhat.com>
9410
9411 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9412 argument.
9413 * common/linux-btrace.h (linux_supports_btrace): Update.
9414 * remote.c (remote_supports_btrace): Add "self" argument.
9415 * target-delegates.c: Rebuild.
9416 * target.c (target_supports_btrace): Remove.
9417 * target.h (struct target_ops) <to_supports_btrace>: Add
9418 target_ops argument.
9419 (target_supports_btrace): New define.
9420
6b84065d
TT
94212014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * record-full.c (record_full_beneath_to_resume_ops)
9424 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9425 (record_full_beneath_to_wait)
9426 (record_full_beneath_to_store_registers_ops)
9427 (record_full_beneath_to_store_registers)
9428 (record_full_beneath_to_xfer_partial_ops)
9429 (record_full_beneath_to_xfer_partial)
9430 (record_full_beneath_to_insert_breakpoint_ops)
9431 (record_full_beneath_to_insert_breakpoint)
9432 (record_full_beneath_to_remove_breakpoint_ops)
9433 (record_full_beneath_to_remove_breakpoint)
9434 (record_full_beneath_to_stopped_by_watchpoint)
9435 (record_full_beneath_to_stopped_data_address)
9436 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9437 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9438 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9439 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9440 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9441 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9442 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9443 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9444 (record_full_resume, record_full_wait_1)
9445 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9446 (record_full_store_registers, record_full_xfer_partial)
9447 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9448 (record_full_async, record_full_core_xfer_partial): Use target
9449 delegation.
9450 * target-delegates.c: Rebuild.
9451 * target.c (current_xfer_partial): Remove.
9452 (update_current_target): Do not INHERIT or de_fault
9453 to_insert_breakpoint, to_remove_breakpoint,
9454 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9455 to_is_async_p, to_async. Do not set to_xfer_partial field.
9456 (default_xfer_partial): Simplify.
9457 (current_xfer_partial): Remove.
9458 (target_wait, target_resume): Simplify.
9459 (find_default_can_async_p, find_default_is_async_p): Update.
9460 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9461 to_xfer_partial, to_stopped_by_watchpoint,
9462 to_stopped_data_address.
9463 (target_store_registers): Simplify.
9464 (forward_target_remove_breakpoint)
9465 (forward_target_insert_breakpoint): Remove.
9466 (target_remove_breakpoint, target_insert_breakpoint)
9467 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9468 * target.h (struct target_ops) <to_resume, to_wait,
9469 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9470 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9471 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9472 markup.
9473 (forward_target_remove_breakpoint)
9474 (forward_target_insert_breakpoint): Remove.
9475 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9476 directly.
9477 (record_btrace_insert_breakpoint): Delegate directly.
9478
1101cb7b
TT
94792014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 PR build/7701:
9482 * target-delegates.c: New file.
9483 * target.c: Include target-delegates.c.
9484 (init_dummy_target): Call install_dummy_methods.
9485 (complete_target_initialization): Call install_delegators.
9486 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9487 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9488 * make-target-delegates: New file.
9489
8b06beed
TT
94902014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * record.c (find_record_target): Use find_target_at.
9493 * target.c (find_target_at): New function.
9494 * target.h (find_target_at): Declare.
9495
6a109b6b
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9499 Add 'ops' argument.
9500 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9501 'ops' argument.
9502 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9503 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9504 'ops' argument.
9505 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9506 argument.
9507 * linux-nat.c (save_sigtrap): Update.
9508 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9509 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9510 (linux_nat_close): Update.
9511 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9512 argument.
9513 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9514 argument.
9515 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9516 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9517 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9518 (tmp_to_async): Add 'ops' argument.
9519 (record_full_stopped_by_watchpoint, record_full_async)
9520 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9521 argument.
9522 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9523 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9524 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9525 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9526 (remote_is_async_p, remote_async): Add 'ops' argument.
9527 (remote_stopped_data_address): Update.
9528 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9529 * target.c (update_current_target)
9530 (find_default_can_async_p, find_default_is_async_p): Update.
9531 (init_dummy_target): Update.
9532 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9533 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9534 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9535 (target_can_async_p, target_is_async_p, target_async)
9536 (target_stopped_by_watchpoint): Update.
9537
e095146b
YQ
95382014-02-19 Yao Qi <yao@codesourcery.com>
9539
9540 PR gdb/16220
9541 * gdbarch.sh: Remove startup_gdbarch.
9542 * gdbarch.c: Regenerated.
9543 * gdbarch.h: Likewise.
9544
bc3c6b36
KB
95452014-02-17 Kevin Buettner <kevinb@redhat.com>
9546
9547 * rl78-tdep.c (rl78_g10_register_name): New function.
9548 (rl78_return_value): Add g10 support.
9549 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9550 g10.
9551
98dc0167 95522014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9553
9554 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9555 (SUBDIR_GUILE_SRCS): Ditto.
9556 (scm-gsmob.o): Ditto.
9557
842c05cd
YQ
95582014-02-17 Yao Qi <yao@codesourcery.com>
9559
9560 * gnu-nat.c (ILL_RPC): Declare defined function.
9561
25c0bd04
YQ
95622014-02-17 Yao Qi <yao@codesourcery.com>
9563
9564 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9565 mach_msg_type_number_t.
9566 (gnu_write_inferior): Likewise.
9567
a9a758e3
YQ
95682014-02-17 Yao Qi <yao@codesourcery.com>
9569
9570 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9571 in format string.
9572 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9573 (inf_validate_procs, inf_signal): Likewise.
9574 (S_exception_raise_request): Likewise.
9575 (do_mach_notify_dead_name): Likewise.
9576 (steal_exc_port): Likewise.
9577 (gnu_read_inferior): Change 'copy_count''s type to
9578 mach_msg_type_number_t.
9579 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9580 format string.
9581
bae8023e
TS
95822014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9583
c82f56d9
TS
9584 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9585 flag. Adjust all users; in particular...
9586 (gnu_wait): ..., don't decrement its value in here...
9587 (gnu_create_inferior): ..., and instead set the flag in here,
9588 around the startup_inferior call, and call that one with
9589 START_INFERIOR_TRAPS_EXPECTED.
9590
3398af6a
TS
9591 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9592 (ILL_RPC): ... new macro.
9593 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9594 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9595 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9596 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9597 functions with ILL_RPC macro.
9598 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9599 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9600 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9601 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9602 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9603 (S_proc_getlogin_reply, S_proc_getsid_reply)
9604 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9605 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9606 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9607 (S_proc_getnports_reply, S_proc_is_important_reply)
9608 (S_proc_get_code_reply): New stub functions, generated with
9609 ILL_RPC macro.
9610
d47642c9
TS
9611 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9612 collected the type check structures.
9613
bae8023e
TS
9614 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9615
8a55ffb0
DE
96162014-02-14 Doug Evans <dje@google.com>
9617
9618 * target.c (target_write_partial): Fix result type.
9619
c2853f3d
JM
96202014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9621
9622 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9623 the proper offsets to access fpregset_t.
9624
ac61d2db
SA
96252014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9626
9627 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9628 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9629 * h8300-tdep.c (setmachinelist): Remove global.
9630 * hppa-tdep.c (hppa_sigtramp): Remove global.
9631 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9632 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9633 * ravenscar-thread.c (update_target_observer): Remove global.
9634 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9635
9d2d0b8b
TT
96362014-02-12 Tom Tromey <tromey@redhat.com>
9637
9638 * common/rsp-low.c: Update comments.
9639 * common/rsp-low.h: Update comments.
9640
a7191e8b
TT
96412014-02-12 Tom Tromey <tromey@redhat.com>
9642
9643 * common/rsp-low.c (convert_ascii_to_int): Remove.
9644 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9645
ff0e980e
TT
96462014-02-12 Tom Tromey <tromey@redhat.com>
9647
9648 * common/rsp-low.h (unhexify): Don't declare.
9649 * common/rsp-low.c (unhexify): Remove.
9650
e9371aff
TT
96512014-02-12 Tom Tromey <tromey@redhat.com>
9652
9653 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9654 * common/rsp-low.c (convert_int_to_ascii): Remove.
9655
971dc0b8
TT
96562014-02-12 Tom Tromey <tromey@redhat.com>
9657
9658 * common/rsp-low.h (hexify): Don't declare.
9659 * common/rsp-low.c (hexify): Remove.
9660
0a822afb
TT
96612014-02-12 Tom Tromey <tromey@redhat.com>
9662
9663 * common/rsp-low.c (hexify): Never take strlen of argument.
9664
9f1b45b0
TT
96652014-02-12 Tom Tromey <tromey@redhat.com>
9666
9667 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9668 * remote.c (extended_remote_run, remote_rcmd)
9669 (remote_download_trace_state_variable, remote_save_trace_data)
9670 (remote_set_trace_notes): Update.
9671 * tracepoint.c (encode_source_string, tfile_write_status)
9672 (tfile_write_uploaded_tsv): Update.
9673
9c3d6531
TT
96742014-02-12 Tom Tromey <tromey@redhat.com>
9675
9676 * tracepoint.c: Include rsp-low.h.
9677 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9678 * remote.c: Include rsp-low.h.
9679 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9680 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9681 (remote_unescape_input): Move to common/rsp-low.c.
9682 * common/rsp-low.h: New file.
9683 * common/rsp-low.c: New file.
9684 * Makefile.in (SFILES): Add common/rsp-low.c.
9685 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9686 (COMMON_OBS): Add rsp-low.o.
9687 (rsp-low.o): New target.
9688
01fd3ea5
TT
96892014-02-12 Tom Tromey <tromey@redhat.com>
9690
9691 * utils.h: Include print-utils.h.
9692 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9693 (int_string, core_addr_to_string, core_addr_to_string_nz)
9694 (hex_string, hex_string_custom): Don't declare.
9695 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9696 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9697 (hex_string_custom, int_string, core_addr_to_string)
9698 (core_addr_to_string_nz, host_address_to_string): Move to
9699 common/print-utils.c.
9700 * common/print-utils.h: New file.
9701 * common/print-utils.c: New file
9702 * Makefile.in (SFILES): Add common/print-utils.c.
9703 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9704 (COMMON_OBS): Add print-utils.o.
9705 (print-utils.o): New target.
9706
9fb50108
TT
97072014-02-12 Tom Tromey <tromey@redhat.com>
9708
9709 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9710
0548b5db
MK
97112014-02-12 Mark Kettenis <kettenis@gnu.org>
9712
9713 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9714
493443a4
MK
97152014-02-12 Mark Kettenis <kettenis@gnu.org>
9716
9717 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9718 if a PT_IO ptrace request returns sucessfully but indicates that 0
9719 bytes were transferred.
9720
706d0883
PA
97212014-02-12 Pedro Alves <palves@redhat.com>
9722 Kevin Buettner <kevinb@redhat.com>
9723
9724 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9725 TYPE_INSTANCE_FLAG_CODE_SPACE.
9726
5caa2f0b
PA
97272014-02-12 Pedro Alves <palves@redhat.com>
9728
9729 * h8300-tdep.c (pseudo_from_raw_register)
9730 (raw_from_pseudo_register): New functions.
9731 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9732 them.
9733
76fd5f74
PA
97342014-02-12 Pedro Alves <palves@redhat.com>
9735
9736 * h8300-tdep.c (h8300_register_sim_regno): New function.
9737 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9738 gdbarch_register_sim_regno hook.
9739
8f008406
SA
97402014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9741
9742 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9743
195abc10
SA
97442014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9745
9746 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9747
93ffa5b9
MK
97482014-02-12 Mark Kettenis <kettenis@gnu.org>
9749
9750 * obsd-tdep.h (obsd_init_abi): New prototype.
9751 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9752 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9753 (obsd_init_abi): New functions.
9754 * i386obsd-tdep.c: Include "obsd-tdep.h".
9755 (i386obsd_init_abi): Call obsd_init_abi.
9756 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9757 (amd64obsd_init_abi): Call obsd_init_abi.
9758 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9759 obsd-tdep.c to gdb_target_obs.
9760
49caec94
JM
97612014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9762
9763 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9764 double float arguments to 16-byte in the argument slots.
9765
e1402065
DE
97662014-02-11 Doug Evans <xdje42@gmail.com>
9767
9768 * configure.ac: Don't crash if pkg-config is not found and guile
9769 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9770 in guile checks.
9771 * configure: Regenerate.
9772
edcc890f
YQ
97732014-02-11 Yao Qi <yao@codesourcery.com>
9774
9775 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9776 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9777 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9778 * gnu-nat.c (gnu_xfer_memory): Likewise.
9779 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9780 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9781 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9782 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9783
9b409511
YQ
97842014-02-11 Yao Qi <yao@codesourcery.com>
9785
9786 * target.h (enum target_xfer_error): Rename to ...
9787 (enum target_xfer_status): ... it. New. All users updated.
9788 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9789 New.
9790 (TARGET_XFER_STATUS_ERROR_P): New macro.
9791 (target_xfer_error_to_string): Remove declaration.
9792 (target_xfer_status_to_string): Declare.
9793 (target_xfer_partial_ftype): Adjust it.
9794 (struct target_ops) <to_xfer_partial>: Return
9795 target_xfer_status. Add argument xfered_len. Update
9796 comments.
9797 * target.c (target_xfer_error_to_string): Rename to ...
9798 (target_xfer_status_to_string): ... it. New. All callers
9799 updated.
9800 (target_read_live_memory): Likewise. Call target_xfer_partial
9801 instead of target_read.
9802 (memory_xfer_live_readonly_partial): Return
9803 target_xfer_status. Add argument xfered_len.
9804 (raw_memory_xfer_partial): Likewise.
9805 (memory_xfer_partial_1): Likewise.
9806 (memory_xfer_partial): Likewise.
9807 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9808 properly. Update debug message.
9809 (default_xfer_partial, current_xfer_partial): Likewise.
9810 (target_write_partial): Likewise.
9811 (target_read_partial): Likewise. All callers updated.
9812 (read_whatever_is_readable): Likewise.
9813 (target_write_with_progress): Likewise.
9814 (target_read_alloc_1): Likewise.
9815
9816 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9817 * auxv.c (procfs_xfer_auxv): Likewise.
9818 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9819 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9820 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9821 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9822 * corefile.c (read_memory): Adjust.
9823 * corelow.c (core_xfer_partial): Likewise.
9824 * ctf.c (ctf_xfer_partial): Likewise.
9825 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9826 updated.
9827 (darwin_xfer_partial): Likewise.
9828 * exec.c (section_table_xfer_memory_partial): Likewise. All
9829 callers updated.
9830 (exec_xfer_partial): Likewise.
9831 * exec.h (section_table_xfer_memory_partial): Update
9832 declaration.
9833 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9834 negative.
9835 (gnu_xfer_partial): Likewise.
9836 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9837 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9838 (ia64_hpux_xfer_solib_got): Likewise.
9839 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9840 type of 'partial_len' to ULONGEST.
9841 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9842 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9843 (linux_nat_xfer_partial): Likewise.
9844 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9845 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9846 * monitor.c (monitor_xfer_memory): Likewise.
9847 (monitor_xfer_partial): Likewise.
9848 * procfs.c (procfs_xfer_partial): Likewise.
9849 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9850 * record-full.c (record_full_xfer_partial): Likewise.
9851 (record_full_core_xfer_partial): Likewise.
9852 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9853 (gdbsim_xfer_partial): Likewise.
9854 * remote.c (remote_write_bytes_aux): Likewise. All callers
9855 updated.
9856 (remote_write_bytes, remote_read_bytes): Likewise. All
9857 callers updated.
9858 (remote_flash_erase): Likewise. All callers updated.
9859 (remote_write_qxfer): Likewise. All callers updated.
9860 (remote_read_qxfer): Likewise. All callers updated.
9861 (remote_xfer_partial): Likewise.
9862 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9863 (rs6000_xfer_shared_libraries): Likewise.
9864 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9865 (sol_thread_xfer_partial): Likewise.
9866 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9867 (sparc_xfer_partial): Likewise.
9868 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9869 updated.
9870 (spu_xfer_partial): Likewise.
9871 * spu-multiarch.c (spu_xfer_partial): Likewise.
9872 * tracepoint.c (tfile_xfer_partial): Likewise.
9873 * windows-nat.c (windows_xfer_memory): Likewise.
9874 (windows_xfer_shared_libraries): Likewise.
9875 (windows_xfer_partial): Likewise.
9876 * valprint.c: Replace 'target_xfer_error' with
9877 'target_xfer_status' in comments.
9878
a8e63083
JB
98792014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9880
9881 Checked in by Joel Brobecker <brobecker@adacore.com>.
9882 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9883
e86b67d3
JB
98842014-02-11 Joel Brobecker <brobecker@adacore.com>
9885
9886 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9887 function parameters.
9888
4b7d1f7f
WN
98892014-02-10 Will Newton <will.newton@linaro.org>
9890
9891 * elfread.c (elf_rel_plt_read): Look for a .got section if
9892 looking up .got.plt fails.
9893 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9894 on address passed to elf_gnu_ifunc_record_cache.
9895 (elf_gnu_ifunc_resolve_addr): Likewise.
9896 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9897
961842b2
JM
98982014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9899
9900 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9901 (X_RETTURN): New macro.
9902 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9903
9904 * sparc64-tdep.c (sparc64_init_abi): Hook
9905 sparc_in_function_epilogue_p.
9906
3f03e7b1
GB
99072014-02-10 Gary Benson <gbenson@redhat.com>
9908
9909 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9910 Rename name_matcher to symbol_matcher.
9911
96f861ef
GB
99122014-02-10 Gary Benson <gbenson@redhat.com>
9913
9914 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9915 Use expand_symtabs_file_matcher_ftype and
9916 expand_symtabs_symbol_matcher_ftype.
9917
ee01b665
JB
99182014-02-10 Joel Brobecker <brobecker@adacore.com>
9919
9920 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9921 (struct ada_symbol_cache): New.
9922 (ada_free_symbol_cache): Forward declare.
9923 (struct ada_pspace_data): New.
9924 (ada_pspace_data_handle): New static global.
9925 (get_ada_pspace_data, ada_pspace_data_cleanup)
9926 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9927 (cache_space, cache): Delete, now folded inside struct
9928 ada_pspace_data.
9929 (ada_get_symbol_cache): New function.
9930 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9931 implementation.
9932 (_initialize_ada_language): Remove initialization of cache_space.
9933 Move call to observer_attach_inferior_exit up, grouping it
9934 with the other observer registrations inside this function.
9935 Rename command to be more general. Add call to
9936 register_program_space_data_with_cleanup.
9937
143adbbf
JB
99382014-02-10 Joel Brobecker <brobecker@adacore.com>
9939
9940 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9941 ada_new_objfile_observer.
9942 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9943 (_initialize_tasks): Update uses of ada_new_objfile_observer
9944 and ada_tasks_normal_stop_observer.
9945
aa4fb036
JB
99462014-02-10 Joel Brobecker <brobecker@adacore.com>
9947
9948 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9949 returned by the 'Length attribute to integer.
9950
9dee8cc6
JB
99512014-02-10 Joel Brobecker <brobecker@adacore.com>
9952
9953 * ada-lang.c (_initialize_ada_language): Initialize
9954 cache_space obstack.
9955
3d9434b5
JB
99562014-02-10 Joel Brobecker <brobecker@adacore.com>
9957
9958 * ada-lang.c (HASH_SIZE): New macro.
9959 (struct cache_entry): New type.
9960 (cache_space, cache): New static globals.
9961 (ada_clear_symbol_cache, find_entry): New functions.
9962 (lookup_cached_symbol, cache_symbol): Implement.
9963 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9964 (_initialize_ada_language): Attach ada_new_objfile_observer
9965 and ada_free_objfile_observer.
9966
f0c5f9b2
JB
99672014-02-10 Joel Brobecker <brobecker@adacore.com>
9968
9969 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9970 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9971 struct block * parameter.
9972 (ada_lookup_symbol_list_worker): Constify local variable "block".
9973 Remove cast which is no longer necessary.
9974
ed3ef339
DE
99752014-02-10 Doug Evans <xdje42@gmail.com>
9976
9977 Add Guile as an extension language.
9978 * NEWS: Mention Guile scripting.
9979 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9980 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9981 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9982 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9983 (CLIBS): Add GUILE_LIBS.
9984 (install-guile): New rule.
9985 (guile.o): New rule.
9986 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9987 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9988 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9989 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9990 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9991 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9992 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9993 * configure.ac: New option --with-guile.
9994 * configure: Regenerate.
9995 * config.in: Regenerate.
9996 * auto-load.c: Remove #include "python/python.h". Add #include
9997 "gdb/section-scripts.h".
9998 (source_section_scripts): Handle Guile scripts.
9999 (_initialize_auto_load): Add name of Guile objfile script to
10000 scripts-directory help text.
10001 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10002 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10003 (struct breakpoint): New member scm_bp_object.
10004 * defs.h (enum command_control_type): New value guile_control.
10005 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10006 "extension.h".
10007 (show_user): Update comment.
10008 (_initialize_cli_cmds): Update help text for "show user". Update help
10009 text for max-user-call-depth.
10010 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10011 "extension.h".
10012 (multi_line_command_p): Add guile_control.
10013 (print_command_lines): Handle guile_control.
10014 (execute_control_command, recurse_read_control_structure): Ditto.
10015 (process_next_line): Recognize "guile" commands.
10016 * disasm.c (gdb_disassemble_info): Make non-static.
10017 * disasm.h: #include "dis-asm.h".
10018 (struct gdbarch): Add forward decl.
10019 (gdb_disassemble_info): Declare.
10020 * extension.c: #include "guile/guile.h".
10021 (extension_languages): Add guile.
10022 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10023 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10024 * gdbtypes.c (get_unsigned_type_max): New function.
10025 (get_signed_type_minmax): New function.
10026 * gdbtypes.h (get_unsigned_type_max): Declare.
10027 (get_signed_type_minmax): Declare.
10028 * guile/README: New file.
10029 * guile/guile-internal.h: New file.
10030 * guile/guile.c: New file.
10031 * guile/guile.h: New file.
10032 * guile/scm-arch.c: New file.
10033 * guile/scm-auto-load.c: New file.
10034 * guile/scm-block.c: New file.
10035 * guile/scm-breakpoint.c: New file.
10036 * guile/scm-disasm.c: New file.
10037 * guile/scm-exception.c: New file.
10038 * guile/scm-frame.c: New file.
10039 * guile/scm-gsmob.c: New file.
10040 * guile/scm-iterator.c: New file.
10041 * guile/scm-lazy-string.c: New file.
10042 * guile/scm-math.c: New file.
10043 * guile/scm-objfile.c: New file.
10044 * guile/scm-ports.c: New file.
10045 * guile/scm-pretty-print.c: New file.
10046 * guile/scm-safe-call.c: New file.
10047 * guile/scm-string.c: New file.
10048 * guile/scm-symbol.c: New file.
10049 * guile/scm-symtab.c: New file.
10050 * guile/scm-type.c: New file.
10051 * guile/scm-utils.c: New file.
10052 * guile/scm-value.c: New file.
10053 * guile/lib/gdb.scm: New file.
10054 * guile/lib/gdb/boot.scm: New file.
10055 * guile/lib/gdb/experimental.scm: New file.
10056 * guile/lib/gdb/init.scm: New file.
10057 * guile/lib/gdb/iterator.scm: New file.
10058 * guile/lib/gdb/printing.scm: New file.
10059 * guile/lib/gdb/types.scm: New file.
10060 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10061 (VPATH): Add $(GUILE_SRCDIR).
10062 (GUILE_DIR): New variable.
10063 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10064 (all): Add stamp-guile dependency.
10065 (stamp-guile): New rule.
10066 (clean-guile, install-guile, uninstall-guile): New rules.
10067 (install-only): Add install-guile dependency.
10068 (uninstall): Add uninstall-guile dependency.
10069 (clean): Add clean-guile dependency.
10070
ac020ec5
DE
100712014-02-09 Doug Evans <xdje42@gmail.com>
10072
10073 Revert this patch (which I approved, mea culpa).
10074
10075 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10076
10077 * Makefile.in (all-lib): Remove.
10078 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10079
2a081c59
JK
100802014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10081
10082 Fix Python stack corruption.
10083 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10084 gdb_py_longest.
10085
0a6bd22d
MK
100862014-02-08 Mark Kettenis <kettenis@gnu.org>
10087
10088 * Makefile.in (all-lib): Remove.
10089 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10090
1a860409
DE
100912014-02-07 Doug Evans <dje@google.com>
10092
10093 * extension-priv.h (extension_language_script_ops): Add comment.
10094 (extension_language_ops): Add comment.
caf5a491 10095 (active_ext_lang_state): Fix typo in comment.
1a860409 10096
d137e6dc
PA
100972014-02-07 Pedro Alves <palves@redhat.com>
10098
0dcb32c3 10099 PR breakpoints/16292
d137e6dc
PA
10100 * infrun.c (handle_signal_stop) <signal arrives while stepping
10101 over a breakpoint>: Switch back to the stepping thread.
10102
ce6d0892
YQ
101032014-02-07 Yao Qi <yao@codesourcery.com>
10104
10105 * target.c (target_xfer_partial): Return zero if LEN is zero.
10106
2ed4b548
YQ
101072014-02-07 Yao Qi <yao@codesourcery.com>
10108
10109 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10110 (ld_so_xfer_auxv): Likewise.
10111 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10112 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10113 * corelow.c (core_xfer_partial): Likewise.
10114 * ctf.c (ctf_xfer_partial): Likewise.
10115 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10116 (darwin_xfer_partial): Likewise.
10117 * exec.c (exec_xfer_partial): Likewise.
10118 * gnu-nat.c (gnu_xfer_partial): Likewise.
10119 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10120 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10121 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10122 * linux-nat.c (linux_xfer_siginfo): Likewise.
10123 (linux_proc_xfer_spu): Likewise.
10124 * procfs.c (procfs_xfer_partial): Likewise.
10125 * record-full.c (record_full_xfer_partial): Likewise.
10126 (record_full_core_xfer_partial): Likewise.
10127 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10128 * remote.c (remote_write_qxfer): Likewise.
10129 (remote_write_qxfer, remote_read_qxfer): Likewise.
10130 (remote_xfer_partial): Likewise.
10131 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10132 (rs6000_xfer_shared_libraries): Likewise.
10133 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10134 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10135 (spu_xfer_partial): Likewise.
10136 * target.c (memory_xfer_partial_1): Likewise.
10137 * tracepoint.c (tfile_xfer_partial): Likewise.
10138 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10139 (windows_xfer_partial): Likewise.
10140
c09f20e4
YQ
101412014-02-07 Yao Qi <yao@codesourcery.com>
10142
10143 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10144 comments.
10145 (core_xfer_shared_libraries_aix): Likewise.
10146 * gdbarch.c, gdbarch.h: Regenerated.
10147 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10148 ULONGEST. Change 'len_avail' type to ULONGEST.
10149 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10150 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10151 declaration.
10152 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10153
8635b3bf
YQ
101542014-02-07 Yao Qi <yao@codesourcery.com>
10155
10156 * corefile.c (memory_error): Get 'exception' from ERR and pass
10157 'exception' to throw_error.
10158
6dddc817
DE
101592014-02-06 Doug Evans <xdje42@gmail.com>
10160
10161 * configure.ac (libpython checking): Remove all but python.o from
10162 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10163 * configure: Regenerate.
10164
10165 * Makefile.in (SFILES): Add extension.c.
10166 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10167 (COMMON_OBS): Add extension.o.
10168 * extension.h: New file.
10169 * extension-priv.h: New file.
10170 * extension.c: New file.
10171
10172 * python/python-internal.h: #include "extension.h".
10173 (gdbpy_auto_load_enabled): Declare.
10174 (gdbpy_apply_val_pretty_printer): Declare.
10175 (gdbpy_apply_frame_filter): Declare.
10176 (gdbpy_preserve_values): Declare.
10177 (gdbpy_breakpoint_cond_says_stop): Declare.
10178 (gdbpy_breakpoint_has_cond): Declare.
10179 (void source_python_script_for_objfile): Delete.
10180 * python/python.c: #include "extension-priv.h".
10181 Delete inclusion of "observer.h".
10182 (extension_language_python): Moved here and renamed from
10183 script_language_python in py-auto-load.c.
10184 Redefined to be of type extension_language_defn.
10185 (python_extension_script_ops): New global.
10186 (python_extension_ops): New global.
10187 (struct python_env): New member previous_active.
10188 (restore_python_env): Call restore_active_ext_lang.
10189 (ensure_python_env): Call set_active_ext_lang.
10190 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10191 New arg extlang.
10192 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10193 New arg extlang.
10194 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10195 New arg extlang.
10196 (gdbpy_eval_from_control_command): Renamed from
10197 eval_python_from_control_command, made static. New arg extlang.
10198 (gdbpy_source_script) Renamed from source_python_script, made static.
10199 New arg extlang.
10200 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10201 result to int. New arg extlang.
10202 (gdbpy_source_objfile_script): Renamed from
10203 source_python_script_for_objfile, made static. New arg extlang.
10204 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10205 static. New args extlang, extlang_printers. Change result type to
10206 "void".
10207 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10208 static. New arg extlang. Rename arg printers to extlang_printers
10209 and change type to ext_lang_type_printers *.
10210 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10211 static. Replace argument arg with extlang, extlang_printers.
10212 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10213 (!HAVE_PYTHON, source_python_script): Delete.
10214 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10215 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10216 (!HAVE_PYTHON, start_type_printers): Delete.
10217 (!HAVE_PYTHON, apply_type_printers): Delete.
10218 (!HAVE_PYTHON, free_type_printers): Delete.
10219 (_initialize_python): Delete call to observer_attach_before_prompt.
10220 (finalize_python): Set/restore active extension language.
10221 (gdbpy_finish_initialization) Renamed from
10222 finish_python_initialization, made static. New arg extlang.
10223 (gdbpy_initialized): New function.
10224 * python/python.h: #include "extension.h". Delete #include
10225 "value.h", "mi/mi-cmds.h".
10226 (extension_language_python): Declare.
10227 (GDBPY_AUTO_FILE_NAME): Delete.
10228 (enum py_bt_status): Moved to extension.h and renamed to
10229 ext_lang_bt_status.
10230 (enum frame_filter_flags): Moved to extension.h.
10231 (enum py_frame_args): Moved to extension.h and renamed to
10232 ext_lang_frame_args.
10233 (finish_python_initialization): Delete.
10234 (eval_python_from_control_command): Delete.
10235 (source_python_script): Delete.
10236 (apply_val_pretty_printer): Delete.
10237 (apply_frame_filter): Delete.
10238 (preserve_python_values): Delete.
10239 (gdbpy_script_language_defn): Delete.
10240 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10241 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10242
10243 * auto-load.c: #include "extension.h".
10244 (GDB_AUTO_FILE_NAME): Delete.
10245 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10246 (script_language_gdb): Delete, moved to extension.c and renamed to
10247 extension_language_gdb.
10248 (source_gdb_script_for_objfile): Delete.
10249 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10250 (loaded_script): Change type of language member to
10251 struct extension_language_defn *.
10252 (init_loaded_scripts_info): Initialize
10253 unsupported_script_warning_printed.
10254 (maybe_add_script): Make static. Change type of language arg to
10255 struct extension_language_defn *.
10256 (clear_section_scripts): Reset unsupported_script_warning_printed.
10257 (auto_load_objfile_script_1): Rewrite to use extension language API.
10258 (auto_load_objfile_script): Make public. Remove support-compiled-in
10259 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10260 (source_section_scripts): Rewrite to use extension language API.
10261 (load_auto_scripts_for_objfile): Rewrite to use
10262 auto_load_scripts_for_objfile.
10263 (collect_matching_scripts_data): Change type of language member to
10264 struct extension_language_defn *.
10265 (auto_load_info_scripts): Change type of language arg to
10266 struct extension_language_defn *.
10267 (unsupported_script_warning_print): New function.
10268 (script_not_found_warning_print): Make static.
10269 (_initialize_auto_load): Rewrite construction of scripts-directory
10270 help.
10271 * auto-load.h (struct objfile): Add forward decl.
10272 (struct script_language): Delete.
10273 (struct auto_load_pspace_info): Add forward decl.
10274 (struct extension_language_defn): Add forward decl.
10275 (maybe_add_script): Delete.
10276 (auto_load_objfile_script): Declare.
10277 (script_not_found_warning_print): Delete.
10278 (auto_load_info_scripts): Update prototype.
10279 (auto_load_gdb_scripts_enabled): Declare.
10280 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10281 auto_load_python_scripts_enabled and made public.
10282 (script_language_python): Delete, moved to python.c.
10283 (gdbpy_script_language_defn): Delete.
10284 (info_auto_load_python_scripts): Update to use
10285 extension_language_python.
10286
10287 * breakpoint.c (condition_command): Replace call to
10288 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10289 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10290 with call to breakpoint_ext_lang_cond_says_stop.
10291 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10292 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10293 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10294 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10295 New arg slang.
10296 (local_setattro): Print name of extension language with existing
10297 stop condition.
10298
10299 * valprint.c (val_print, value_print): Update to call
10300 apply_ext_lang_val_pretty_printer.
10301 * cp-valprint.c (cp_print_value): Update call to
10302 apply_ext_lang_val_pretty_printer.
10303 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10304 (gdbpy_apply_val_pretty_printer): Renamed from
10305 apply_val_pretty_printer. New arg extlang.
10306 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10307
10308 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10309 extension language API.
10310 * cli/cli-script.c (execute_control_command): Update to call
10311 eval_ext_lang_from_control_command.
10312
10313 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10314 enum ext_lang_bt_status values. Update call to
10315 apply_ext_lang_frame_filter.
10316 (mi_cmd_stack_list_locals): Ditto.
10317 (mi_cmd_stack_list_args): Ditto.
10318 (mi_cmd_stack_list_variables): Ditto.
10319 * mi/mi-main.c: Delete #include "python/python-internal.h".
10320 Add #include "extension.h".
10321 (mi_cmd_list_features): Replace reference to python internal variable
10322 gdb_python_initialized with call to ext_lang_initialized_p.
10323
10324 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10325 Update to use enum ext_lang_frame_args. Update to call
10326 apply_ext_lang_frame_filter.
10327 * python/py-framefilter.c (extract_sym): Update to use enum
10328 ext_lang_bt_status.
10329 (extract_value, py_print_type, py_print_value): Ditto.
10330 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10331 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10332 (py_print_frame): Ditto.
10333 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10334 New arg extlang. Update to use enum ext_lang_bt_status.
10335
10336 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10337 finish_python_initialization. Replace with call to
10338 finish_ext_lang_initialization.
10339
10340 * typeprint.c (do_free_global_table): Update to call
10341 free_ext_lang_type_printers.
10342 (create_global_typedef_table): Update to call
10343 start_ext_lang_type_printers.
10344 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10345 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10346 (type_print_options): Change type of global_printers from "void *"
10347 to "struct ext_lang_type_printers *".
10348
10349 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10350 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10351 (gdbpy_preserve_values): Renamed from preserve_python_values.
10352 New arg extlang.
10353 (!HAVE_PYTHON, preserve_python_values): Delete.
10354
10355 * utils.c (quit_flag): Delete, moved to extension.c.
10356 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10357 extension.c.
10358
10359 * eval.c: Delete #include "python/python.h".
10360 * main.c: Delete #include "python/python.h".
10361
10362 * defs.h: Update comment.
10363
6af79985
JB
103642014-02-06 Joel Brobecker <brobecker@adacore.com>
10365
10366 GDB 7.7 released.
10367
12c5175d
MK
103682014-02-05 Mark Kettenis <kettenis@gnu.org>
10369
10370 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10371 defined.
10372
8dc5b319
YQ
103732014-02-05 Yao Qi <yao@codesourcery.com>
10374
10375 * remote.c (remote_pass_signals): Remove local 'buf' and use
10376 rs->buf.
10377 (remote_program_signals): Likewise.
10378
de7b2893
YQ
103792014-02-05 Yao Qi <yao@codesourcery.com>
10380
10381 * ctf.c: Include "inferior.h" and "gdbthread.h".
10382 (CTF_PID): A new macro.
10383 (ctf_open): Call inferior_appeared and add_thread_silent.
10384 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10385 (ctf_thread_alive): New function.
10386 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10387
66d032ac
YQ
103882014-02-05 Yao Qi <yao@codesourcery.com>
10389
10390 Revert this patch:
10391
10392 2013-05-24 Yao Qi <yao@codesourcery.com>
10393
10394 * tracepoint.c (TFILE_PID): Remove.
10395 (tfile_open): Don't add thread and inferior.
10396 (tfile_close): Don't set 'inferior_ptid'. Don't call
10397 exit_inferior_silent.
10398 (tfile_thread_alive): Remove.
10399 (init_tfile_ops): Don't set field 'to_thread_alive' of
10400 tfile_ops.
10401
f4ccffad
CE
104022014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10403
10404 * remote.c (remote_start_remote): Call remote_check_symbols even
10405 if only symbol-file (not file) has been given.
10406
591a12a1
UW
104072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10408
10409 * gdbarch.sh (skip_entrypoint): New callback.
10410 * gdbarch.c, gdbarch.h: Regenerate.
10411 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10412 * infrun.c (fill_in_stop_func): Likewise.
10413 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10414 (ppc_elfv2_elf_make_msymbol_special): New function.
10415 (ppc_elfv2_skip_entrypoint): Likewise.
10416 (ppc_linux_init_abi): Install them for ELFv2.
10417
cc0e89c5
UW
104182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10419
10420 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10421 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10422 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10423 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10424 structures returned in GPRs.
10425
52f548e4
UW
104262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10427
10428 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10429 offset to the stack parameter list for the ELFv2 ABI.
10430
d4094b6a
UW
104312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10432
10433 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10434 set_gdbarch_convert_from_func_ptr_addr and
10435 set_gdbarch_elf_make_msymbol_special for ELFv1.
10436 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10437 function descriptors on ELFv1.
10438 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10439 set up r12 at function entry.
10440
cd453cd0
UW
104412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10442
10443 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10444 (struct gdbarch_tdep): New member elf_abi.
10445
10446 * rs6000-tdep.c: Include "elf/ppc64.h".
10447 (rs6000_gdbarch_init): Detect ELF ABI version.
10448
0ff3e01f
UW
104492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10450
10451 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10452 within a register pair holding a DFP 128-bit value on little-endian.
10453 (ppc64_sysv_abi_return_value_base): Likewise.
10454 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10455 (dfp_pseudo_register_write): Likewise.
10456
5b757e5d
UW
104572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10458
10459 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10460 offset on little-endian when passing _Decimal32.
10461 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10462
084ee545
UW
104632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10464
10465 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10466 of the overlapped FP register within the VSX register on little-
10467 endian platforms.
10468 (efpr_pseudo_register_write): Likewise.
10469
d63167af
UW
104702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10471
10472 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10473 offset on little-endian when passing small structures.
10474
e765b44c
UW
104752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10476
10477 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10478 (struct ppc64_sysv_argpos): New data structure.
10479 (ppc64_sysv_abi_push_float): Remove.
10480 (ppc64_sysv_abi_push_val): New function.
10481 (ppc64_sysv_abi_push_integer): Likewise.
10482 (ppc64_sysv_abi_push_freg): Likewise.
10483 (ppc64_sysv_abi_push_vreg): Likewise.
10484 (ppc64_sysv_abi_push_param): Likewise.
10485 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10486 (ppc64_sysv_abi_return_value_base): New function.
10487 (ppc64_sysv_abi_return_value): Refactor to use it.
10488
36c24d95
UW
104892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10490
10491 * NEWS: Document new target powerpc64le-*-linux*.
10492
26fd9228
MK
104932014-02-04 Mark Kettenis <kettenis@gnu.org>
10494
10495 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10496 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10497 core dumps.
10498 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10499 register set used in ELF core dumps. Add floating-point register set.
10500
c5bb7362
KB
105012014-02-03 Kevin Buettner <kevinb@redhat.com>
10502
74228e77 10503 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10504 dwarf2_to_gdb[] table using symbolic constants. Adjust
10505 penultimate entry from number representing the PC register
10506 to symbolic constant representing the MDR register. Add
10507 constant for the PC register to the end of the table.
10508
af09351e
MK
105092014-02-03 Mark Kettenis <kettenis@gnu.org>
10510
10511 * bsd-kvm.c: Include <sys/param.h>
10512
8507e05d
MK
105132014-02-03 Mark Kettenis <kettenis@gnu.org>
10514
10515 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10516
ae56bfb8
JB
105172014-01-31 Joel Brobecker <brobecker@adacore.com>
10518
10519 * ada-lang.h (clear_ada_sym_cache): Delete.
10520
718ee4dc
UW
105212014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10522
10523 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10524
401e27fd
JM
105252014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10526
10527 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10528 the sigreturn register save area only if the syscall is
10529 sigreturn.
10530
a7c88acd
JB
105312014-01-29 Joel Brobecker <brobecker@adacore.com>
10532
10533 * valops.c (value_slice): Minor reformatting.
10534
fa0079ea
UW
105352014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10536
10537 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10538
c6044dd1
JB
105392014-01-28 Joel Brobecker <brobecker@adacore.com>
10540
10541 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10542 New static globals.
10543 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10544 (ada_ignore_descriptive_types_p): New static global.
10545 (find_parallel_type_by_descriptive_type): Return immediately
10546 if ada_ignore_descriptive_types_p is set.
10547 (_initialize_ada_language): Register new commands "maintenance
10548 set ada", "maintenance show ada", "maintenance set ada
10549 ignore-descriptive-types" and "maintenance show ada
10550 ignore-descriptive-types".
10551 * NEWS: Add entry for new "maint ada set/show
10552 ignore-descriptive-types" commands.
10553
568e808b
MM
105542014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10555
10556 * record-btrace.c (record_btrace_close): Call btrace_teardown
10557 for all threads.
10558
467d141b
JB
105592014-01-27 Joel Brobecker <brobecker@adacore.com>
10560
10561 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10562 "ui-out.h".
10563
fb151210
JB
105642014-01-27 Joel Brobecker <brobecker@adacore.com>
10565
10566 * ada-typeprint (type_is_full_subrange_of_target_type):
10567 New function.
10568 (print_range): Add parameter bounds_prefered_p. If not set,
10569 try printing range types using the name of their base type.
10570 (print_range_type): Add parameter bounds_prefered_p.
10571 Use it in call to print_range.
10572 (print_array_type, ada_print_type): Update calls to print_range
10573 and print_range_type.
10574
aba02109
JB
105752014-01-27 Joel Brobecker <brobecker@adacore.com>
10576
10577 * ada-typeprint.c (print_array_type, print_choices, print_range)
10578 (print_range_bound, print_dynamic_range_bound, print_range_type):
10579 Remove declaration.
10580
e62e21fd
JB
105812014-01-27 Joel Brobecker <brobecker@adacore.com>
10582
10583 * ada-typeprint.c (print_range): Add missing empty line
10584 after local declaration.
10585
859cf5d1
JB
105862014-01-27 Joel Brobecker <brobecker@adacore.com>
10587
10588 * ada-valprint.c (print_optional_low_bound): Get index_type's
10589 target type for as long as it is a TYPE_CODE_RANGE.
10590
25790f6f
JB
105912014-01-27 Joel Brobecker <brobecker@adacore.com>
10592
10593 * procfs.c (procfs_make_note_section): Remove assertion and
10594 associated comment.
10595
6b6aa828
YQ
105962014-01-24 Yao Qi <yao@codesourcery.com>
10597
10598 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10599 * corelow.c (get_core_siginfo): Likewise.
10600
5d6df423
YQ
106012014-01-24 Yao Qi <yao@codesourcery.com>
10602
10603 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10604 ULONGEST. Don't check 'len' is negative.
10605 (remote_write_bytes): Change type of 'len' to ULONGEST.
10606
83b645b8
TT
106072014-01-23 Tom Tromey <tromey@redhat.com>
10608
10609 PR python/16485:
10610 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10611 Handle exception from frame.block.
10612 (FrameVars.fetch_frame_locals): Likewise.
10613
0740f8d8
TT
106142014-01-23 Tom Tromey <tromey@redhat.com>
10615
10616 PR python/16487:
10617 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10618 on a NULL pointer. Move "goto error" to correct place.
10619
21909fa1
TT
106202014-01-23 Tom Tromey <tromey@redhat.com>
10621
10622 PR python/16491:
10623 * python/py-framefilter.c (apply_frame_filter): Call
10624 ensure_python_env after computing gdbarch.
10625
17fde6d0
YQ
106262014-01-23 Yao Qi <yao@codesourcery.com>
10627
10628 * target.c (raw_memory_xfer_partial): Change argument type
10629 from void * to gdb_byte *.
10630 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10631
87ce2a04
DE
106322014-01-22 Doug Evans <dje@google.com>
10633
10634 New gdbserver option --debug-format=timestamp.
10635 * NEWS: Mention it.
10636
237b092b
AA
106372014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10638
10639 * syscalls/s390x-linux.xml: New file.
10640 * syscalls/s390-linux.xml: New file.
10641 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10642 (XML_SYSCALL_FILENAME_S390X): Likewise.
10643 (op_svc): New enum value for SVC opcode.
10644 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10645 (s390_linux_get_syscall_number): New function.
10646 (s390_gdbarch_init): Register '*get_syscall_number' and the
10647 syscall xml file name.
10648 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10649 "s390-linux.xml" and "s390x-linux.xml".
10650 * NEWS: Announce new feature.
10651
54bff650
BS
106522014-01-22 Baruch Siach <baruch@tkos.co.il>
10653
10654 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10655
14e361d7
PA
106562014-01-22 Pedro Alves <palves@redhat.com>
10657
10658 * xtensa-config.c: Include defs.h.
10659
46bbb3ed
JB
106602014-01-22 Joel Brobecker <brobecker@adacore.com>
10661
10662 * common/common-utils.h: Add "ARI:" comment beside __func__
10663 reference.
10664
3a80edfc
JB
106652014-01-22 Joel Brobecker <brobecker@adacore.com>
10666
10667 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10668 documentation a bit.
10669
4869db5e
RM
106702014-01-21 Roland McGrath <mcgrathr@google.com>
10671
10672 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10673 * configure: Regenerate.
10674 * aclocal.m4: Regenerate.
10675 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10676 New substituted variables.
10677 (install-strip): New target.
10678 (INSTALL_SCRIPT): New substituted variable.
10679 (FLAGS_TO_PASS): Add it.
10680 (install-only): Use $(INSTALL_SCRIPT) rather than
10681 $(INSTALL_PROGRAM) for gcore.
10682
9ea4267d
TT
106832014-01-20 Tom Tromey <tromey@redhat.com>
10684
10685 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10686 together.
10687
1f2bdf09
TT
106882014-01-20 Tom Tromey <tromey@redhat.com>
10689
10690 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10691 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10692 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10693 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10694 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10695 (struct cmd_list_element) <flags>: Remove.
10696 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10697 doc_allocated>: New fields.
10698 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10699 bitfields.
10700 * maint.c (maintenance_do_deprecate): Update.
10701 * top.c (execute_command): Update.
10702
e671835b
BS
107032014-01-20 Baruch Siach <baruch@tkos.co.il>
10704
10705 * xtensa-linux-nat.c: Include asm/ptrace.h.
10706
50367cd2
IB
107072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10708
10709 * Makefile.in (SFILES): Add d-support.c.
10710 (COMMON_OBS): Add d-support.o.
10711 * d-lang.h (d_parse_symbol): Add comment, now defined in
10712 d-support.c.
10713 * d-lang.c (parse_call_convention)
10714 (parse_attributes, parse_function_types)
10715 (parse_function_args, parse_type, parse_identifier)
10716 (call_convention_p, d_parse_symbol): Move functions to ...
10717 * d-support.c: ... New file.
10718
ec9f644a
IB
107192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10720
10721 * d-lang.h (d_parse_symbol): Add declaration.
10722 * d-lang.c (extract_identifiers)
10723 (extract_type_info): Remove functions.
10724 (parse_call_convention, parse_attributes)
10725 (parse_function_types, parse_function_args)
10726 (parse_type, parse_identifier, call_convention_p)
10727 (d_parse_symbol): New functions.
10728 (d_demangle): Use d_parse_symbol to demangle D symbols.
10729
94b1b47e
IB
107302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10731
10732 * d-lang.h (struct builtin_d_type): New data type.
10733 (builtin_d_type): Add declaration.
10734 * d-lang.c (d_language_arch_info, build_d_types)
10735 (builtin_d_type): New functions.
10736 (enum d_primitive_types): New data type.
10737 (d_language_defn): Change c_language_arch_info to
10738 d_language_arch_info.
10739 (d_type_data): New static variable.
10740 (_initialize_d_language): Initialize d_type_data.
10741
63778547
IB
107422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10743
10744 * d-lang.h (d_main_name): Add declaration.
10745 * d-lang.c (d_main_name): New function.
10746 * symtab.c (find_main_name): Add call to d_main_name.
10747
3271ba66
IB
107482014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10749
10750 * d-lang.c (d_language_defn): Change macro_expansion_c to
10751 macro_expansion_no.
10752
d36b3012
IB
107532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10754
10755 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10756
c90a6fb7
SDJ
107572014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10758
10759 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10760 gdb_exception" declaration.
10761 * remote.c (getpkt_or_notif_sane): Likewise.
10762
749234e5
DE
107632014-01-17 Doug Evans <dje@google.com>
10764
10765 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10766 function, contents of dirnames_to_char_ptr_vec_append moved here.
10767 (delim_string_to_char_ptr_vec): New function.
10768 (dirnames_to_char_ptr_vec_append): Rewrite.
10769 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10770
df049a58
DE
107712014-01-17 Doug Evans <dje@google.com>
10772
10773 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10774 and moved here ...
10775 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10776 #include "common-utils.h".
10777 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10778 * common/vec.h (VEC_ASSERT_PASS): Update.
10779 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10780 (MACH_CHECK_ERROR): Update.
10781
69f97648
SM
107822014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10783
10784 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10785 comments.
10786 * gdbarch.h: Regenerate.
10787
98b1cfdc
TT
107882014-01-16 Tom Tromey <tromey@redhat.com>
10789
10790 * value.c (struct value) <regnum>: Move earlier.
10791
77a19445
TT
107922014-01-16 Tom Tromey <tromey@redhat.com>
10793
10794 * remote.c (extended_remote_create_inferior): Rename from
10795 extended_remote_create_inferior_1. Add "ops" argument. Remove
10796 old implementation.
10797
62261490
PA
107982014-01-16 Pedro Alves <palves@redhat.com>
10799
10800 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10801 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10802 the backchain.
10803
4d65956b
DE
108042014-01-16 Doug Evans <dje@google.com>
10805
10806 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10807
52834460
MM
108082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10809
10810 * btrace.h (btrace_thread_flag): New.
10811 (struct btrace_thread_info) <flags>: New.
10812 * record-btrace.c (record_btrace_resume_thread)
10813 (record_btrace_find_thread_to_move, btrace_step_no_history)
10814 (btrace_step_stopped, record_btrace_start_replaying)
10815 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10816 (record_btrace_find_resume_thread): New.
10817 (record_btrace_resume, record_btrace_wait): Extend.
10818 (record_btrace_can_execute_reverse): New.
10819 (record_btrace_open): Fail in non-stop mode.
10820 (record_btrace_set_replay): Split into this, ...
10821 (record_btrace_stop_replaying): ... this, ...
10822 (record_btrace_clear_histories): ... and this.
10823 (init_record_btrace_ops): Init to_can_execute_reverse.
10824 * NEWS: Announce it.
10825
118e6252
MM
108262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10827
10828 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10829 (forward_target_decr_pc_after_break)
10830 (target_decr_pc_after_break): New.
10831 * target.c (forward_target_decr_pc_after_break)
10832 (target_decr_pc_after_break): New.
10833 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10834 instead of gdbarch_decr_pc_after_break.
10835 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10836 instead of gdbarch_decr_pc_after_break.
10837 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10838 instead of gdbarch_decr_pc_after_break.
10839 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10840 instead of gdbarch_decr_pc_after_break.
10841 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10842 instead of gdbarch_decr_pc_after_break.
10843 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10844 instead of gdbarch_decr_pc_after_break.
10845
6e07b1d2
MM
108462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10847
10848 * btrace.c: Include regcache.h.
10849 (btrace_add_pc): New.
10850 (btrace_enable): Call btrace_add_pc.
10851 (btrace_is_empty): New.
10852 * btrace.h (btrace_is_empty): New.
10853 * record-btrace.c (require_btrace, record_btrace_info): Call
10854 btrace_is_empty.
10855
969c39fb
MM
108562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10857
10858 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10859 Support delta reads.
10860 (linux_disable_btrace): Change return type.
10861 * common/linux-btrace.h (linux_read_btrace): Change parameters
10862 and return type to allow error reporting. Update users.
10863 (linux_disable_btrace): Change return type. Update users.
10864 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10865 New.
10866 (btrace_error): New.
10867 (btrace_block) <begin>: Comment on BEGIN == 0.
10868 * btrace.c (btrace_compute_ftrace): Start from the end of
10869 the current trace.
10870 (btrace_stitch_trace, btrace_clear_history): New.
10871 (btrace_fetch): Read delta trace, return if replaying.
10872 (btrace_clear): Move clear history code to btrace_clear_history.
10873 (parse_xml_btrace): Throw an error if parsing failed.
10874 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10875 and return type to allow error reporting.
10876 (target_read_btrace): Change parameters and return type to allow
10877 error reporting.
10878 * target.c (target_read_btrace): Update.
10879 * remote.c (remote_read_btrace): Support delta reads. Pass
10880 errors on.
10881 * NEWS: Announce it.
10882
0b722aec
MM
108832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10884
10885 * record.h (record_btrace_frame_unwind)
10886 (record_btrace_tailcall_frame_unwind): New declarations.
10887 * dwarf2-frame: Include record.h
10888 (dwarf2_frame_cfa): Throw an error for btrace frames.
10889 * record-btrace.c: Include hashtab.h.
10890 (btrace_get_bfun_name): New.
10891 (btrace_call_history): Call btrace_get_bfun_name.
10892 (struct btrace_frame_cache): New.
10893 (bfcache): New.
10894 (bfcache_hash, bfcache_eq, bfcache_new): New.
10895 (btrace_get_frame_function): New.
10896 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10897 (record_btrace_frame_this_id): Compute own id.
10898 (record_btrace_frame_prev_register): Provide PC, throw_error
10899 for all other registers.
10900 (record_btrace_frame_sniffer): Detect btrace frames.
10901 (record_btrace_tailcall_frame_sniffer): New.
10902 (record_btrace_frame_dealloc_cache): New.
10903 (record_btrace_frame_unwind): Add new functions.
10904 (record_btrace_tailcall_frame_unwind): New.
10905 (_initialize_record_btrace): Allocate cache.
10906 * btrace.c (btrace_clear): Call reinit_frame_cache.
10907 * NEWS: Announce it.
10908
066ce621
MM
109092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10910
10911 * record-btrace.c (record_btrace_set_replay)
10912 (record_btrace_goto_begin, record_btrace_goto_end)
10913 (record_btrace_goto): New.
10914 (init_record_btrace_ops): Initialize them.
10915 * NEWS: Announce it.
10916
e2887aa3
MM
109172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10918
10919 * record-btrace.c (record_btrace_find_new_threads)
10920 (record_btrace_thread_alive): New.
10921 (init_record_btrace_ops): Initialize to_find_new_threads and
10922 to_thread_alive.
10923
b2f4cfde
MM
109242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10925
10926 * record-btrace.c (record_btrace_resume): New.
10927 (record_btrace_wait): New.
10928 (init_record_btrace_ops): Initialize to_wait and to_resume.
10929
633785ff
MM
109302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10931
10932 * record-btrace.c (record_btrace_xfer_partial)
10933 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10934 (record_btrace_allow_memory_access): New.
10935 (init_record_btrace_ops): Initialize new methods.
10936 * target.c (raw_memory_xfer_partial): Bail out if target reports
10937 that this memory is not available.
10938
3db08215
MM
109392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10940
10941 * target.h (target_ops) <to_insert_breakpoint>
10942 <to_remove_breakpoint>: Add target_ops parameter.
10943 (forward_target_insert_breakpoint): New.
10944 (forward_target_remove_breakpoint): New.
10945 (memory_remove_breakpoint, memory_insert_breakpoint):
10946 Add target_ops parameter.
10947 * target.c (target_insert_breakpoint): Split into this and ...
10948 (forward_target_insert_breakpoint): ... this.
10949 (target_remove_breakpoint): Split into this and ...
10950 (forward_target_remove_breakpoint): ... this.
10951 (debug_to_insert_breakpoint): Add target_ops parameter.
10952 Call forward_target_insert_breakpoint.
10953 (debug_to_remove_breakpoint): Add target_ops parameter.
10954 Call forward_target_remove_breakpoint.
10955 (update_current_target): Do not inherit or default to_insert_breakpoint
10956 and to_remove_breakpoint.
10957 * corelow.c (ignore): Add target_ops parameter.
10958 * exec.c (ignore): Add target_ops parameter.
10959 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10960 Add target_ops parameter.
10961 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10962 Add target_ops parameter.
10963 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10964 Add target_ops parameter.
10965 * record-full.c (record_full_beneath_to_insert_breakpoint)
10966 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10967 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10968 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10969 (record_full_core_remove_breakpoint): Add target_ops parameter.
10970 Update users.
10971 (record_full_beneath_to_insert_breakpoint_ops)
10972 (record_full_beneath_to_remove_breakpoint_ops)
10973 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10974 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10975 tmp_to_remove_breakpoint_ops,
10976 record_full_beneath_to_insert_breakpoint_ops, and
10977 record_full_beneath_to_remove_breakpoint_ops.
10978 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10979 (m32r_remove_breakpoint): Add target_ops parameter.
10980 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10981 Add target_ops parameter.
10982 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10983 Add target_ops parameter.
10984
cecac1ab
MM
109852014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10986 Markus Metzger <markus.t.metzger@intel.com>
10987
10988 * record-btrace.c: Include frame-unwind.h.
10989 (record_btrace_frame_unwind_stop_reason)
10990 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10991 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10992 New.
10993 (init_record_btrace_ops): Install it.
10994
824344ca
MM
109952014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10996
10997 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10998 get_prev_frame_1.
10999
32261e52
MM
110002014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11001
11002 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11003 earlier.
11004
ea001bdc
MM
110052014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11006
11007 * frame-unwind.c: Include target.h.
11008 (frame_unwind_try_unwinder): New function with code from ...
11009 (frame_unwind_find_by_frame): ... here. New variable
11010 unwinder_from_target, call also target_get_unwinder)
11011 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11012 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11013 * target.h (struct target_ops): New fields to_get_unwinder and
11014 to_get_tailcall_unwinder.
11015 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11016
1f3ef581
MM
110172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11018
11019 * record-btrace.c (record_btrace_fetch_registers)
11020 (record_btrace_store_registers)
11021 (record_btrace_to_prepare_to_store): New.
11022 (init_record_btrace_ops): Add the above.
11023
f32dbf8c
MM
110242014-01-16 Tom Tromey <tromey@redhat.com>
11025
11026 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11027 * target.h (struct target_ops) <to_prepare_to_store>: Add
11028 argument.
11029 (target_prepare_to_store): Add argument.
11030 * target.c (debug_to_prepare_to_store): Add argument.
11031 (update_current_target): Update.
11032 * remote.c (remote_prepare_to_store): Add 'self' argument.
11033 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11034 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11035 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11036 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11037 argument.
11038 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11039 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11040 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11041 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11042 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11043
07bbe694
MM
110442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11045
11046 * btrace.h (replay) <replay>: New.
11047 (btrace_is_replaying): New.
11048 * btrace.c (btrace_clear): Free replay iterator.
11049 (btrace_is_replaying): New.
11050 * record-btrace.c (record_btrace_is_replaying): New.
11051 (record_btrace_info): Print insn number if replaying.
11052 (record_btrace_insn_history): Start at replay position.
11053 (record_btrace_call_history): Start at replay position.
11054 (init_record_btrace_ops): Init to_record_is_replaying.
11055
0688d04e
MM
110562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11057
11058 * record-btrace.c (record_btrace_insn_history_range): Include
11059 end.
11060 (record_btrace_insn_history_from): Adjust range.
11061 (record_btrace_call_history_range): Include
11062 end.
11063 (record_btrace_call_history_from): Adjust range.
11064 * NEWS: Announce changes.
11065
8710b709
MM
110662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11067
11068 * record.h (enum record_print_flag)
11069 <record_print_indent_calls>: New.
11070 * record.c (get_call_history_modifiers): Recognize /c modifier.
11071 (_initialize_record): Document /c modifier.
11072 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11073 Reorder fields. Optionally indent the function name. Update
11074 all users.
11075 * NEWS: Announce changes.
11076
d0fa7535
MM
110772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11078
11079 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11080
5de9129b
MM
110812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11082
11083 * btrace.c (ftrace_new_function): Start counting at one.
11084 * record-btrace.c (record_btrace_info): Adjust number of calls
11085 and insns.
11086 * NEWS: Announce it.
11087
7acbe133
MM
110882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11089
11090 * record-btrace.c (btrace_call_history_insn_range): Print
11091 insn range as [begin, end].
11092
23a7fe75
MM
110932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11094
11095 * btrace.h (struct btrace_func_link): New.
11096 (enum btrace_function_flag): New.
11097 (struct btrace_inst): Rename to ...
11098 (struct btrace_insn): ...this. Update all users.
11099 (struct btrace_func) <ibegin, iend>: Remove.
11100 (struct btrace_func_link): New.
11101 (struct btrace_func): Rename to ...
11102 (struct btrace_function): ...this. Update all users.
11103 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11104 (number, level, flags>: New.
11105 (struct btrace_insn_iterator): Rename to ...
11106 (struct btrace_insn_history): ...this.
11107 Update all users.
11108 (struct btrace_insn_iterator, btrace_call_iterator): New.
11109 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11110 (struct btrace_target_info) <begin, end, level>
11111 <insn_history, call_history>: New.
11112 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11113 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11114 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11115 (btrace_call_number, btrace_call_begin, btrace_call_end)
11116 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11117 (btrace_find_function_by_number, btrace_set_insn_history)
11118 (btrace_set_call_history): New.
11119 * btrace.c (btrace_init_insn_iterator)
11120 (btrace_init_func_iterator, compute_itrace): Remove.
11121 (ftrace_print_function_name, ftrace_print_filename)
11122 (ftrace_skip_file): Change
11123 parameter to const.
11124 (ftrace_init_func): Remove.
11125 (ftrace_debug): Use new btrace_function fields.
11126 (ftrace_function_switched): Also consider gaining and
11127 losing symbol information).
11128 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11129 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11130 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11131 New.
11132 (ftrace_new_function): Move. Remove debug print.
11133 (ftrace_update_lines, ftrace_update_insns): New.
11134 (ftrace_update_function): Check for call, ret, and jump.
11135 (compute_ftrace): Renamed to ...
11136 (btrace_compute_ftrace): ...this. Rewritten to compute call
11137 stack.
11138 (btrace_fetch, btrace_clear): Updated.
11139 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11140 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11141 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11142 (btrace_call_number, btrace_call_begin, btrace_call_end)
11143 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11144 (btrace_find_function_by_number, btrace_set_insn_history)
11145 (btrace_set_call_history): New.
11146 * record-btrace.c (require_btrace): Use new btrace thread
11147 info fields.
11148 (record_btrace_info, btrace_insn_history)
11149 (record_btrace_insn_history, record_btrace_insn_history_range):
11150 Use new btrace thread info fields and new iterator.
11151 (btrace_func_history_src_line): Rename to ...
11152 (btrace_call_history_src_line): ...this. Use new btrace
11153 thread info fields.
11154 (btrace_func_history): Rename to ...
11155 (btrace_call_history): ...this. Use new btrace thread info
11156 fields and new iterator.
11157 (record_btrace_call_history, record_btrace_call_history_range):
11158 Use new btrace thread info fields and new iterator.
11159
8372a7cb
MM
111602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11161
11162 * frame.h (frame_id_build_unavailable_stack_special): New.
11163 * frame.c (frame_id_build_unavailable_stack_special): New.
11164
c2170eef
MM
111652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11166
11167 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11168 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11169 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11170 to gdbarch.
11171 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11172 (i386_insn_is_jump, i386_jmp_p): New.
11173 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11174 insn_is_jump to gdbarch.
11175 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11176 * gdbarch.h: Regenerated.
11177 * gdbarch.c: Regenerated.
11178 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11179 (default_insn_is_jump): New.
11180 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11181 (default_insn_is_jump): New.
11182
864089d2
MM
111832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11184
11185 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11186 Change to ...
11187 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11188 (btrace_read_type) <btrace_read_new>: Change to ...
11189 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11190
ed9edfb5
MM
111912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11192
11193 * common/linux-btrace.c (linux_read_btrace): Free trace from
11194 previous iteration.
11195
fbcbc3fd
DE
111962014-01-15 Doug Evans <dje@google.com>
11197
11198 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11199 uint32_t.
11200
3d548a53
TT
112012014-01-15 Tom Tromey <tromey@redhat.com>
11202
11203 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11204 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11205 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11206 (set_objfile_main_name): New function.
11207 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11208 language_of_main>: New fields.
11209 (set_objfile_main_name): Declare.
11210 * symtab.c (find_main_name): Loop over objfiles to find the main
11211 name and language.
11212 (set_main_name): Now static.
11213 (get_main_info): Add comment.
11214 * symtab.h (set_main_name): Don't declare.
11215
32ac0d11
TT
112162014-01-15 Tom Tromey <tromey@redhat.com>
11217
11218 * symtab.c (main_progspace_key): New global.
11219 (struct main_info): New.
11220 (name_of_main, language_of_main): Remove.
11221 (get_main_info, main_info_cleanup): New function.
11222 (set_main_name, main_name, main_language): Use get_main_info.
11223 (_initialize_symtab): Initialize main_progspace_key.
11224
9e6c82ad
TT
112252014-01-15 Tom Tromey <tromey@redhat.com>
11226
11227 * dbxread.c (process_one_symbol): Update.
11228 * dwarf2read.c (read_partial_die): Update.
11229 * symfile.c (set_initial_language): Call main_language.
11230 * symtab.c (language_of_main): Now static.
11231 (set_main_name): Add 'lang' parameter.
11232 (find_main_name): Update.
11233 (main_language): New function.
11234 (symtab_observer_executable_changed): Update.
11235 * symtab.h (set_main_name): Update.
11236 (language_of_main): Remove.
11237 (main_language): Declare.
11238
6ef55de7
TT
112392014-01-15 Tom Tromey <tromey@redhat.com>
11240
11241 * symfile.c (init_entry_point_info): Use new "initialized" field.
11242 Update.
11243 * objfiles.h (struct entry_point) <initialized>: New field.
11244 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11245 (struct objfile) <ei>: ...here. Remove.
11246 * objfiles.c (entry_point_address_query): Update.
11247
53eddfa6
TT
112482014-01-15 Tom Tromey <tromey@redhat.com>
11249
11250 * objfiles.c (entry_point_address_query): Relocate entry point
11251 address.
11252 (objfile_relocate1): Do not relocate entry point address.
11253 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11254 <the_bfd_section_index>: New field.
11255 * symfile.c (init_entry_point_info): Find the entry point's
11256 section.
11257
d56e56aa
TT
112582014-01-15 Tom Tromey <tromey@redhat.com>
11259
11260 * solib-frv.c (enable_break): Use entry_point_address_query.
11261
33a97bbe
OJ
112622014-01-15 Omair Javaid <omair.javaid@linaro.org>
11263
11264 * NEWS: Add note on improved process record-replay on
11265 arm*-linux* targets.
11266
c6ec2b30
OJ
112672014-01-15 Omair Javaid <omair.javaid@linaro.org>
11268
11269 * arm-tdep.c (enum arm_record_result): New enum.
11270 (arm_record_unsupported_insn): New function.
11271 (arm_record_coproc_data_proc): Removed.
11272 (thumb2_record_ld_st_multiple): New function.
11273 (thumb2_record_ld_st_dual_ex_tbb): New function.
11274 (thumb2_record_data_proc_sreg_mimm): New function.
11275 (thumb2_record_ps_dest_generic): New function.
11276 (thumb2_record_branch_misc_cntrl): New function.
11277 (thumb2_record_str_single_data): New function.
11278 (thumb2_record_ld_mem_hints): New function.
11279 (thumb2_record_ld_word): New function.
11280 (thumb2_record_lmul_lmla_div): New function.
11281 (thumb2_record_decode_insn_handler): New function.
11282 (decode_insn): Add thumb32 instruction handlers.
11283
97dfe206
OJ
112842014-01-15 Omair Javaid <omair.javaid@linaro.org>
11285
11286 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11287 (struct arm_linux_record_tdep): Declare.
11288 (arm_canonicalize_syscall): New function.
11289 (arm_all_but_pc_registers_record): New function.
11290 (arm_linux_syscall_record): New function.
11291 (arm_linux_init_abi): Add syscall recording constructs.
11292 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11293 decoding. (arm_record_coproc_data_proc): Update arm syscall
11294 decoding.
11295 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11296 <arm_syscall_record>: New field.
11297 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11298 gdb_target_obs.
11299
9904a494
OJ
113002014-01-15 Omair Javaid <omair.javaid@linaro.org>
11301
11302 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11303 register for push instruction recording.
11304
f969241e
OJ
113052014-01-15 Omair Javaid <omair.javaid@linaro.org>
11306
11307 * arm-tdep.c (thumb_record_misc): Update to correct logical
11308 error while recording ldm, ldmia and pop instructions.
11309
bfbbec00
OJ
113102014-01-15 Omair Javaid <omair.javaid@linaro.org>
11311
11312 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11313
e40adcc9
PA
113142014-01-15 Pedro Alves <palves@redhat.com>
11315
11316 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11317 (go32_resume, go32_fetch_registers, store_register)
11318 (go32_store_registers, go32_prepare_to_store)
11319 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11320 (go32_create_inferior, go32_can_run, go32_terminal_init)
11321 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11322 declarations.
11323
b0a16e66
TT
113242014-01-15 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (async_callback_ftype): New typedef.
11327 (struct target_ops) <to_async>: Use it.
11328
bf7105a4
JB
113292014-01-15 Joel Brobecker <brobecker@adacore.com>
11330
11331 * python/py-value.c (get_field_type): Remove unnecessary curly
11332 braces for single-statement if block.
11333
a8f35c2e
JB
113342014-01-15 Joel Brobecker <brobecker@adacore.com>
11335
11336 * python/py-type.c (convert_field): Add missing empty line
11337 after declarations.
11338
bb4142cf
DE
113392014-01-14 Doug Evans <dje@google.com>
11340
11341 * symfile.h (expand_symtabs_matching): Renamed from
11342 expand_partial_symbol_names. Update prototype.
11343 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11344 * symfile.c (expand_symtabs_matching): Renamed from
11345 expand_partial_symbol_names. New args file_matcher, kind.
11346 Rename arg fun to symbol_matcher.
11347 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11348 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11349 ada_expand_partial_symbol_name.
11350 (ada_make_symbol_completion_list): Update to call
11351 expand_symtabs_matching.
11352 (ada_add_global_exceptions): Call expand_symtabs_matching.
11353 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11354 call map_symbol_filenames.
11355 * symtab.c (sources_info): Update to call map_symbol_filenames.
11356 (search_symbols): Call expand_symtabs_matching.
11357 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11358 (default_make_symbol_completion_list_break_on): Update to call
11359 expand_symtabs_matching.
11360 (make_source_files_completion_list): Update to call
11361 map_symbol_filenames.
11362
206f2a57
DE
113632014-01-14 Doug Evans <dje@google.com>
11364
11365 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11366 (expand_symtabs_symbol_matcher_ftype): New typedef.
11367 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11368 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11369 * symfile.c (expand_partial_symbol_names): Update to use
11370 expand_symtabs_symbol_matcher_ftype.
11371 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11372 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11373 Arg name_matcher renamed to symbol_matcher.
11374 * psymtab.c (recursively_search_psymtabs): Update to use
11375 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11376 sym_matcher.
11377 (expand_symtabs_matching_via_partial): Update to use
11378 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11379 Arg name_matcher renamed to symbol_matcher.
11380
540c2971
DE
113812014-01-14 Doug Evans <dje@google.com>
11382
11383 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11384 (map_partial_symbol_filenames): Ditto.
11385 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11386 (map_partial_symbol_filenames): Ditto.
11387 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11388 (map_partial_symbol_filenames): Ditto.
11389 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11390 (map_partial_symbol_filenames): Ditto.
11391 * symtab.c: Delete #include "psymtab.h".
11392
8213266a
PA
113932014-01-14 Pedro Alves <palves@redhat.com>
11394 Tom Tromey <tromey@redhat.com>
11395
11396 * infrun.c (use_displaced_stepping): Use find_record_target
11397 instead of RECORD_IS_USED.
11398 (adjust_pc_after_break): Use record_full_is_used instead of
11399 RECORD_IS_USED.
11400 * record-btrace.c (record_btrace_open): Call record_preopen
11401 instead of checking RECORD_IS_USED.
11402 * record-full.c (record_full_shortname)
11403 (record_full_core_shortname): New globals.
11404 (record_full_is_used): New function.
11405 (find_full_open): Call record_preopen instead of checking
11406 RECORD_IS_USED.
11407 (init_record_full_ops): Set the target's shortname to
11408 record_full_shortname.
11409 (init_record_full_core_ops): Set the target's shortname to
11410 record_full_core_shortname.
11411 * record-full.h (record_full_is_used): Declare.
11412 * record.c (find_record_target): Make extern.
11413 (record_preopen): New function.
11414 * record.h (RECORD_IS_USED): Delete macro.
11415 (find_record_target, record_preopen): Declare functions.
11416
7ec1862d
YQ
114172014-01-14 Yao Qi <yao@codesourcery.com>
11418
11419 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11420 'len''s type to ULONGEST.
11421 (core_xfer_shared_libraries_aix): Likewise.
11422 * gdbarch.c, gdbarch.h: Regenerated.
11423 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11424 Change type of 'len' to ULONGEST.
11425 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11426 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11427
dea80a27
YQ
114282014-01-14 Yao Qi <yao@codesourcery.com>
11429
11430 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11431 type of 'len' to ULONGEST.
11432 (linux_xfer_osdata_processgroups): Likewise.
11433 (linux_xfer_osdata_threads): Likewise.
11434 (linux_xfer_osdata_fds): Likewise.
11435 (linux_xfer_osdata_isockets): Likewise.
11436 (linux_xfer_osdata_shm): Likewise.
11437 (linux_xfer_osdata_sem): Likewise.
11438 (linux_xfer_osdata_msg): Likewise.
11439 (linux_common_xfer_osdata): Likewise.
11440 (struct osdata_type) <getter>: Likewise.
11441 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11442 the declaration.
11443
b55e14c7
YQ
114442014-01-14 Yao Qi <yao@codesourcery.com>
11445
11446 * target.h (target_xfer_partial_ftype): Update.
11447 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11448 ULONGEST.
11449 * aix-thread.c (aix_thread_xfer_partial): Change type of
11450 argument 'len' to ULONGEST.
11451 * auxv.c (procfs_xfer_auxv): Likewise.
11452 (ld_so_xfer_auxv): Likewise.
11453 (memory_xfer_auxv): Likewise.
11454 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11455 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11456 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11457 * corelow.c (core_xfer_partial): Likewise.
11458 * ctf.c (ctf_xfer_partial): Likewise.
11459 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11460 '%u'.
11461 (darwin_read_dyld_info): Likewise.
11462 (darwin_xfer_partial): Likewise.
11463 * exec.c (section_table_xfer_memory_partial): Likewise.
11464 (exec_xfer_partial): Likewise.
11465 * exec.h (section_table_xfer_memory_partial): Update
11466 declaration.
11467 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11468 instead of plongest.
11469 (gnu_xfer_partial): Likewise.
11470 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11471 (ia64_hpux_xfer_solib_got): Likewise.
11472 (ia64_hpux_xfer_partial): Likewise.
11473 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11474 * inf-ptrace.c (inf_ptrace_xfer_partial):
11475 * inf-ttrace.c (inf_ttrace_xfer_partial):
11476 * linux-nat.c (linux_xfer_siginfo): Likewise.
11477 (linux_nat_xfer_partial): Likewise.
11478 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11479 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11480 * monitor.c (monitor_xfer_memory): Likewise.
11481 (monitor_xfer_partial): Likewise.
11482 * procfs.c (procfs_xfer_partial): Likewise.
11483 * record-full.c (record_full_xfer_partial): Likewise.
11484 (record_full_core_xfer_partial): Likewise.
11485 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11486 instead of plongest.
11487 (gdbsim_xfer_partial): Likewise.
11488 * remote.c (remote_xfer_partial): Likewise.
11489 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11490 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11491 declaration.
11492 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11493 (rs6000_xfer_shared_libraries): Likewise.
11494 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11495 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11496 (sparc_xfer_partial): Likewise.
11497 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11498 (spu_xfer_partial): Likewise.
11499 * spu-multiarch.c (spu_xfer_partial): Likewise.
11500 * target.c (target_read_live_memory): Likewise.
11501 (memory_xfer_live_readonly_partial): Likewise.
11502 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11503 (target_xfer_partial, default_xfer_partial): Likewise.
11504 (current_xfer_partial): Likewise.
11505 * tracepoint.c (tfile_xfer_partial): Likewise.
11506 * windows-nat.c (windows_xfer_memory): Likewise. Call
11507 pulongest instead of plongest.
11508 (windows_xfer_partial): Likewise.
11509 (windows_xfer_shared_libraries): Likewise.
11510
05804640
YQ
115112014-01-14 Yao Qi <yao@codesourcery.com>
11512
11513 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11514 target_xfer_partial_ftype.
11515
b5b08fb4
SC
115162014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11517
11518 PR python/15464
11519 PR python/16113
11520 * valops.c (value_struct_elt_bitpos): New function
11521 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11522 object to 'None' if the field name is an empty string ("").
11523 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11524 attribute to look for a field when 'name' is 'None'.
11525 (get_field_type): New function
11526
13aaf454
DE
115272014-01-13 Doug Evans <dje@google.com>
11528
11529 PR symtab/16426
11530 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11531 (try_open_dwop_file): Ditto.
11532 * gdb_bfd.c: #include "vec.h".
11533 (bfdp): New typedef.
11534 (struct gdb_bfd_data): New member included_bfds.
11535 (gdb_bfd_unref): Unref all included bfds.
11536 (gdb_bfd_record_inclusion): New function.
11537 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11538
c2cec97c
TT
115392014-01-13 Tom Tromey <tromey@redhat.com>
11540
11541 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11542
78e5999d
TT
115432014-01-13 Tom Tromey <tromey@redhat.com>
11544
11545 * defs.h (use_windows): Remove.
11546 * gdb.c (main): Update.
11547 * main.c (captured_main, gdb_main): Update.
11548 * main.h (struct captured_main_args) <use_windows>: Remove.
11549 * top.c (use_windows): Remove.
11550
f2052bbe
TT
115512014-01-13 Tom Tromey <tromey@redhat.com>
11552
11553 * defs.h (deprecated_flush_hook): Remove.
11554
fde4f8ed
JK
115552014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11556
11557 PR threads/16216
11558 * linux-thread-db.c (try_thread_db_load): Add parameter
11559 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11560 (try_thread_db_load_from_pdir_1): Move it there from here.
11561 (try_thread_db_load_from_sdir): Update caller.
11562 (try_thread_db_load_from_dir): Move it there from here.
11563
bdf61915
PP
115642014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11565
11566 * regformats/regdat.sh: Always rewrite the register file.
11567
f71e1a8d
PA
115682014-01-13 Pedro Alves <palves@redhat.com>
11569
11570 * Makefile.in (CHECK_HEADERS): New variable.
11571 (check-headers:): New rule.
11572
42c85435
TT
115732014-01-13 Tom Tromey <tromey@redhat.com>
11574
11575 * cli/cli-setshow.c (do_set_command): Update.
11576 * defs.h (deprecated_set_hook): Remove.
11577 * top.c (deprecated_set_hook): Remove.
11578
f8de5129
PA
115792014-01-13 Pedro Alves <palves@redhat.com>
11580
11581 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11582 the tracepoint if the PC is a pseudo-register.
11583
fc270c35
TT
115842014-01-13 Tom Tromey <tromey@redhat.com>
11585
11586 * defs.h (XCALLOC): Remove.
11587 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11588 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11589 * dwarf2loc.c (allocate_piece_closure): Likewise.
11590 * elfread.c (elf_symfile_segments): Likewise.
11591 (elf_symfile_segments): Likewise.
11592 * gdbtypes.c (copy_type_recursive): Likewise.
11593 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11594 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11595 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11596 XCALLOC.
11597 * mt-tdep.c (mt_gdbarch_init): Likewise.
11598 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11599 XCALLOC.
11600 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11601 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11602 * registry.c (registry_alloc_data): Likewise.
11603 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11604 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11605 * serial.c (serial_fdopen_ops): Likewise.
11606 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11607 XCALLOC.
11608 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11609 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11610 not XCALLOC.
11611
70ba0933
TT
116122014-01-13 Tom Tromey <tromey@redhat.com>
11613
11614 * defs.h (XMALLOC): Remove.
11615 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11616 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11617 * cli-out.c (struct ui_out *): Likewise.
11618 * cli/cli-dump.c (add_dump_command): Likewise.
11619 (add_dump_command): Likewise.
11620 * complaints.c (get_complaints): Likewise.
11621 (find_complaint): Likewise.
11622 * dwarf2-frame.c (execute_cfa_program): Likewise.
11623 * dwarf2read.c (abbrev_table_read_table): Likewise.
11624 * gdbarch.sh: Likewise.
11625 * gdbarch.c: Rebuild.
11626 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11627 * interps.c (interp_new): Likewise.
11628 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11629 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11630 * mi/mi-console.c (mi_console_file_new): Likewise.
11631 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11632 * mi/mi-out.c (mi_out_new): Likewise.
11633 * mi/mi-parse.c (mi_parse): Likewise.
11634 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11635 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11636 * observer.c (xalloc_observer_list_node): Likewise.
11637 * regcache.c (regcache_xmalloc_1): Likewise.
11638 * reggroups.c (reggroup_new): Likewise.
11639 (_initialize_reggroup): Likewise.
11640 * registry.c (register_data_with_cleanup): Likewise.
11641 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11642 * ser-base.c (serial_ttystate): Likewise.
11643 * ser-mingw.c (make_pipe_state): Likewise.
11644 * ser-pipe.c (pipe_open): Likewise.
11645 * serial.c (serial_open): Likewise.
11646 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11647 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11648 (tui_alloc_win_info): Likewise.
11649 (tui_add_content_elements): Likewise.
11650 * tui/tui-file.c (tui_file_new): Likewise.
11651 * tui/tui-out.c (tui_out_new): Likewise.
11652 * ui-file.c (mem_file_new): Likewise.
11653 * ui-out.c (push_level): Likewise.
11654 (make_cleanup_ui_out_end): Likewise.
11655 (append_header_to_list): Likewise.
11656 (ui_out_new): Likewise.
11657 * user-regs.c (user_reg_add_builtin): Likewise.
11658
41bf6aca
TT
116592014-01-13 Tom Tromey <tromey@redhat.com>
11660
11661 * defs.h (XZALLOC): Remove.
11662 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11663 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11664 (get_ada_tasks_inferior_data): Likewise.
11665 * auto-load.c (get_auto_load_pspace_data): Likewise.
11666 * auxv.c (get_auxv_inferior_data): Likewise.
11667 * bfd-target.c (target_bfd_reopen): Likewise.
11668 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11669 (deprecated_insert_raw_breakpoint): Likewise.
11670 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11671 * corelow.c (core_open): Likewise.
11672 * darwin-nat.c (darwin_check_new_threads): Likewise.
11673 (darwin_attach_pid): Likewise.
11674 * dummy-frame.c (dummy_frame_push): Likewise.
11675 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11676 * dwarf2loc.c (allocate_piece_closure): Likewise.
11677 * elfread.c (elf_symfile_segments): Likewise.
11678 * eval.c (ptrmath_type_p): Likewise.
11679 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11680 * gdbtypes.c (alloc_type_arch): Likewise.
11681 (alloc_type_instance): Likewise.
11682 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11683 * inf-child.c (inf_child_can_use_agent): Likewise.
11684 * inflow.c (get_inflow_inferior_data): Likewise.
11685 * infrun.c (save_infcall_suspend_state): Likewise.
11686 * jit.c (jit_reader_load): Likewise.
11687 (get_jit_objfile_data): Likewise.
11688 (get_jit_program_space_data): Likewise.
11689 (jit_object_open_impl): Likewise.
11690 (jit_symtab_open_impl): Likewise.
11691 (jit_block_open_impl): Likewise.
11692 (jit_frame_sniffer): Likewise.
11693 * linux-fork.c (add_fork): Likewise.
11694 * maint.c (make_command_stats_cleanup): Likewise.
11695 * objfiles.c (get_objfile_pspace_data): Likewise.
11696 * opencl-lang.c (struct lval_closure): Likewise.
11697 * osdata.c (osdata_start_osdata): Likewise.
11698 * progspace.c (new_address_space): Likewise.
11699 (add_program_space): Likewise.
11700 * remote-sim.c (get_sim_inferior_data): Likewise.
11701 * sh-tdep.c (sh_gdbarch_init): Likewise.
11702 * skip.c (Ignore): Likewise.
11703 (skip_delete_command): Likewise.
11704 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11705 (library_list_start_library): Likewise.
11706 (solib_aix_current_sos): Likewise.
11707 * solib-darwin.c (get_darwin_info): Likewise.
11708 (darwin_current_sos): Likewise.
11709 * solib-dsbt.c (get_dsbt_info): Likewise.
11710 * solib-ia64-hpux.c (new_so_list): Likewise.
11711 (ia64_hpux_get_solib_linkage_addr): Likewise.
11712 * solib-spu.c (append_ocl_sos): Likewise.
11713 (spu_current_sos): Likewise.
11714 * solib-svr4.c (get_svr4_info): Likewise.
11715 (svr4_keep_data_in_core): Likewise.
11716 (library_list_start_library): Likewise.
11717 (svr4_default_sos): Likewise.
11718 (svr4_read_so_list): Likewise.
11719 * solib-target.c (library_list_start_library): Likewise.
11720 (solib_target_current_sos): Likewise.
11721 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11722 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11723 * symfile.c (default_symfile_segments): Likewise.
11724 * target-descriptions.c (tdesc_data_init): Likewise.
11725 (tdesc_create_reg): Likewise.
11726 (struct tdesc_type *): Likewise.
11727 (tdesc_create_vector): Likewise.
11728 (tdesc_set_struct_size): Likewise.
11729 (struct tdesc_type *): Likewise.
11730 (tdesc_free_feature): Likewise.
11731 (tdesc_create_feature): Likewise.
11732 * windows-nat.c (windows_add_thread): Likewise.
11733 (windows_make_so): Likewise.
11734 * xml-support.c (gdb_xml_body_text): Likewise.
11735 (gdb_xml_create_parser_and_cleanup): Likewise.
11736 (xml_process_xincludes): Likewise.
11737 * xml-syscall.c (allocate_syscalls_info): Likewise.
11738 (syscall_create_syscall_desc): Likewise.
11739
5acfdbae
SDJ
117402014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11741
11742 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11743 function, with code from i386_stap_parse_special_token.
11744 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11745 (i386_stap_parse_special_token): Move code to the two functions
11746 above; simplify it.
11747
0000e5cc
PA
117482014-01-09 Pedro Alves <palves@redhat.com>
11749 Hui Zhu <hui@codesourcery.com>
11750
11751 PR gdb/16101
11752 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11753 bp_err_string. Don't mark the location shlib_disabled if the
11754 error thrown wasn't a generic or memory error. Catch errors
11755 thrown while inserting breakpoints in overlayed code. Output
11756 error message of software breakpoints.
11757 * remote.c (remote_insert_breakpoint): If this breakpoint has
11758 target-side commands but this stub doesn't support Z0 packets,
11759 throw NOT_SUPPORTED_ERROR error.
11760 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11761 * target.h (target_insert_breakpoint): Extend comment.
11762 (target_insert_hw_breakpoint): Add comment.
11763
b7ea362b
PA
117642014-01-08 Pedro Alves <palves@redhat.com>
11765
11766 * remote.c (remote_add_thread): Add threads silently if starting
11767 up.
11768 (remote_notice_new_inferior): If in all-stop, and starting up,
11769 don't call notice_new_inferior.
11770 (get_current_thread): New function, factored out from ...
11771 (add_current_inferior_and_thread): ... this. Adjust.
11772 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11773 found any thread, then select the remote's current thread as GDB's
11774 current thread too.
11775
b7bba001
JB
117762014-01-08 Joel Brobecker <brobecker@adacore.com>
11777
11778 * NEWS: Create a new section for the next release branch.
11779 Rename the section of the current branch, now that it has
11780 been cut.
11781
16dfbded
JB
117822014-01-08 Joel Brobecker <brobecker@adacore.com>
11783
11784 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11785 * version.in: Bump version to 7.7.50.DATE-cvs.
11786
22c90ac1
YQ
117872014-01-08 Yao Qi <yao@codesourcery.com>
11788
11789 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11790 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11791 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11792
d64ad97c
YQ
117932014-01-08 Yao Qi <yao@codesourcery.com>
11794
11795 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11796 return value of bfd_get_filename to symbol_file_add_from_bfd.
11797
f93ba80c
PM
117982014-01-08 Pierre Muller <muller@sourceware.org>
11799
11800 Fix PR16201.
11801 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11802 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11803 to prim_record_mininal_symbol_and_info.
11804 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11805 in call to prim_record_minimal_symbol_and_info.
11806 (read_pe_exported_syms): Set index field of section_data.
11807
a4d9ba85
AP
118082014-01-07 Andrew Pinski <apinski@cavium.com>
11809
11810 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11811 * features/aarch64.c: Regenerate.
11812
1b67eb02
AS
118132014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11814
11815 * target.c (return_null): Define.
11816 (update_current_target): Use it instead of return_zero for
11817 functions that return a pointer.
11818
5e3f4fab
EBM
118192014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11820
11821 * source.c (add_path): Fix check for duplicated paths in the previously
11822 included paths.
11823
e2616788
HK
118242014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11825
11826 * ada-lang.c: Remove duplicated include statements.
11827 * alphabsd-nat.c: Ditto.
11828 * amd64-darwin-tdep.c: Ditto.
11829 * amd64fbsd-nat.c: Ditto.
11830 * auto-load.c: Ditto.
11831 * ax-gdb.c: Ditto.
11832 * breakpoint.c: Ditto.
11833 * dbxread.c: Ditto.
11834 * fork-child.c: Ditto.
11835 * gdb_usleep.c: Ditto.
11836 * i386-darwin-tdep.c: Ditto.
11837 * i386fbsd-nat.c: Ditto.
11838 * infcmd.c: Ditto.
11839 * inferior.c: Ditto.
11840 * jv-lang.c: Ditto.
11841 * linux-nat.c: Ditto.
11842 * linux-tdep.c: Ditto.
11843 * m68kbsd-nat.c: Ditto.
11844 * m68klinux-nat.c: Ditto.
11845 * microblaze-tdep.c: Ditto.
11846 * mips-linux-tdep.c: Ditto.
11847 * mn10300-tdep.c: Ditto.
11848 * nto-tdep.c: Ditto.
11849 * opencl-lang.c: Ditto.
11850 * osdata.c: Ditto.
11851 * printcmd.c: Ditto.
11852 * regcache.c: Ditto.
11853 * remote-m32r-sdi.c: Ditto.
11854 * remote.c: Ditto.
11855 * symfile.c: Ditto.
11856 * symtab.c: Ditto.
11857 * tilegx-linux-nat.c: Ditto.
11858 * tilegx-tdep.c: Ditto.
11859 * tracepoint.c: Ditto.
11860 * valops.c: Ditto.
11861 * vaxbsd-nat.c: Ditto.
11862 * windows-nat.c: Ditto.
11863 * xtensa-tdep.c: Ditto.
11864
bd1f7788
YQ
118652014-01-07 Yao Qi <yao@codesourcery.com>
11866
11867 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11868
79301218
JB
118692014-01-07 Yao Qi <yao@codesourcery.com>
11870 Joel Brobecker <brobecker@adacore.com>
11871
11872 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11873 (pdc_write_regs): Likewise.
11874 (fetch_regs_kernel_thread): Likewise.
11875 (store_regs_kernel_thread): Likewise.
11876
118772014-01-07 Joel Brobecker <brobecker@adacore.com>
11878
11879 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11880 tagged type objects to their actual type.
11881
8e355c5d
JB
118822014-01-07 Joel Brobecker <brobecker@adacore.com>
11883
11884 * ada-valprint.c (print_field_values): Add "language" parameter.
11885 Update calls to print_field_values and print_variant_part.
11886 Pass new parameter "language" in call to val_print instead
11887 of "current_language". Replace call to ada_val_print by call
11888 to val_print.
11889 (print_variant_part): Add "language" parameter.
11890 (ada_val_print_struct_union): Update call to print_field_values.
11891
4fbf5aa5
JB
118922014-01-07 Joel Brobecker <brobecker@adacore.com>
11893
11894 * ada-valprint.c (ui_memcpy): Delete.
11895 (ada_print_floating): Update documentation. Add empty line
11896 between between function documentation and implementation.
11897 Delete variable "buffer". Use ui_file_xstrdup in place of
11898 ui_file_put. Minor adjustments following this change.
11899
71855601
JB
119002014-01-07 Joel Brobecker <brobecker@adacore.com>
11901
11902 * ada-valprint.c (ada_val_print_string): New function,
11903 extracted from ada_val_print_array.
11904 (ada_val_print_array): Replace extracted code by call
11905 to ada_val_print_string followed by a return. Move
11906 "else" branch to the function's top block.
11907
4eb27a30
JB
119082014-01-07 Joel Brobecker <brobecker@adacore.com>
11909
11910 * ada-valprint.c (ada_val_print_array): Move implementation
11911 down. Rename parameter "offset" and "val" into "offset_aligned"
11912 and "original_value" respectively. Add parameter "offset".
11913
34b27950
JB
119142014-01-07 Joel Brobecker <brobecker@adacore.com>
11915
11916 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11917 re-organizing the code. Change the "???" message printed
11918 when target type is a TYPE_CODE_UNDEF into
11919 "<ref to undefined type>".
11920
079e4591
JB
119212014-01-07 Joel Brobecker <brobecker@adacore.com>
11922
11923 * ada-valprint.c (print_record): Delete, implementation inlined...
11924 (ada_val_print_struct_union): ... here. Remove call to
11925 ada_check_typedef in inlined implementation.
11926
8004dfd1
JB
119272014-01-07 Joel Brobecker <brobecker@adacore.com>
11928
11929 * ada-valprint.c (ada_val_print_gnat_array): New function,
11930 extracted from ada_val_print_1;
11931 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11932 (ada_val_print_flt, ada_val_print_struct_union)
11933 (ada_val_print_ref): Likewise.
11934 (ada_val_print_1): Delete variables i and elttype.
11935 Replace extracted-out code by call to corresponding
11936 new functions.
11937
760a2db0
JB
119382014-01-07 Joel Brobecker <brobecker@adacore.com>
11939
11940 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11941
3a92c861
JB
119422014-01-07 Joel Brobecker <brobecker@adacore.com>
11943
11944 * ada-valprint.c (ada_val_print_1): Replace calls to
11945 ada_val_print_1 by calls to val_print.
11946
cd1630f9
JB
119472014-01-07 Joel Brobecker <brobecker@adacore.com>
11948
11949 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11950 Update calls to self accordingly. Replace calls to c_val_print
11951 by calls to val_print.
11952
bdf779a0
JB
119532014-01-07 Joel Brobecker <brobecker@adacore.com>
11954
11955 * ada-valprint.c (print_record): Delete declaration.
11956 (adjust_type_signedness, ada_val_print_1): Likewise.
11957 (ada_val_print): Move function implementation down.
11958 (print_variant_part, print_field_values, print_record):
11959 Move function implementation up.
11960
c0d48811
JB
119612014-01-07 Joel Brobecker <brobecker@adacore.com>
11962
11963 * python/py-type.c (typy_get_name): New function.
11964 (type_object_getset): Add entry for attribute "name".
11965 * NEWS: Add entry mentioning this new attribute.
11966
c26e9cbb
YQ
119672014-01-07 Yao Qi <yao@codesourcery.com>
11968
11969 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11970 statement.
11971
0cc6f43d
YQ
119722014-01-07 Yao Qi <yao@codesourcery.com>
11973
11974 * gnu-nat.c (info_port_rights): Add qualifier const to
11975 argument args.
11976
eec03155
YQ
119772014-01-07 Yao Qi <yao@codesourcery.com>
11978
11979 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11980
f04a82ef
YQ
119812014-01-07 Yao Qi <yao@codesourcery.com>
11982
11983 * gnu-nat.c (make_inf) Update declaration.
11984 (make_inf): Make it static.
11985 (inf_set_traced): Likewise.
11986 (inf_port_to_thread, inf_task_died_status): Likewise.
11987
d57dda0a
YQ
119882014-01-07 Yao Qi <yao@codesourcery.com>
11989
11990 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11991
3aa8c969
YQ
119922014-01-07 Yao Qi <yao@codesourcery.com>
11993
11994 * gnu-nat.c (_initialize_gnu_nat): Declare.
11995
94123b4f
YQ
119962014-01-07 Yao Qi <yao@codesourcery.com>
11997
11998 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11999 'enum bfd_endian'.
12000 (struct gdbarch_info) <byte_order>: Change type to
12001 'enum bfd_endian'.
12002 <byte_order_for_code>: Likewise.
12003 * gdbarch.c, gdbarch.h: Regenerated.
12004
dc81d70a
TT
120052014-01-06 Sasha Smundak <asmundak@google.com>
12006
12007 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12008
cc2f3c35
TT
120092014-01-06 Tom Tromey <tromey@redhat.com>
12010
12011 * doublest.c (convert_doublest_to_floatformat): Use const, not
12012 CONST.
12013 * somread.c (som_symtab_read): Likewise.
12014
adcf2eed
HZ
120152014-01-07 Hui Zhu <hui@codesourcery.com>
12016
12017 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12018 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12019 (gdb_bfd_fopen): Ditto.
12020 (gdb_bfd_openr): Ditto.
12021 (gdb_bfd_openw): Ditto.
12022 (gdb_bfd_openr_iovec): Ditto.
12023 (gdb_bfd_fdopenr): Ditto.
12024 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12025 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12026 with xstrdup.
12027 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12028 with xstrdup.
12029 * symfile-mem.c (symbol_file_add_from_memory): Removed
12030 gdb_bfd_stash_filename.
12031
50722198
DE
120322014-01-03 Doug Evans <dje@google.com>
12033
12034 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12035 output.
12036
2fa4b862
JB
120372014-01-01 Joel Brobecker <brobecker@adacore.com>
12038
12039 Update year range in copyright notice of all files.
12040
28498c42
JB
120412014-01-01 Joel Brobecker <brobecker@adacore.com>
12042
12043 * top.c (print_gdb_version): Set copyright year to 2014.
12044
7b6e1046
JB
120452014-01-01 Joel Brobecker <brobecker@adacore.com>
12046
12047 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12048
df96af55 12049For older changes see ChangeLog-2013.
c906108c
SS
12050\f
12051Local Variables:
12052mode: change-log
12053left-margin: 8
12054fill-column: 74
12055version-control: never
57da7796 12056coding: utf-8
c906108c 12057End:
This page took 2.173532 seconds and 4 git commands to generate.