1 2014-08-19 Tom Tromey <tromey@redhat.com>
2 Gary Benson <gbenson@redhat.com>
4 * common/common-debug.h: New file.
5 * common/common-debug.c: Likewise.
7 * Makefile.in (SFILES): Add common/common-debug.c.
8 (HFILES_NO_SRCDIR): Add common/common-debug.h.
9 (COMMON_OBS): Add common-debug.o and debug.o.
10 (common-debug.o): New rule.
11 * common/common-defs.h: Include common-debug.h.
12 * common/agent.c (debug_agent_printf): New function.
13 (DEBUG_AGENT): Redefine.
14 * nat/i386-dregs.c (debug_printf): Undefine.
16 2014-08-19 Gary Benson <gbenson@redhat.com>
18 * common/common-defs.h: Include print-utils.h.
19 * utils.h: Do not include print-utils.h.
21 2014-08-19 Tom Tromey <tromey@redhat.com>
22 Gary Benson <gbenson@redhat.com>
24 * common/common-types.h: New file.
25 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
26 * common/common-defs.h: Include common-types.h.
27 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
30 2014-08-19 Tom Tromey <tromey@redhat.com>
31 Gary Benson <gbenson@redhat.com>
33 * common/errors.h: New file.
34 * common/errors.c: Likewise.
35 * Makefile.in (SFILES): Add common/errors.c.
36 (HFILES_NO_SRCDIR): Add common/errors.h.
37 (COMMON_OBS): Add errors.o.
39 * common/common-defs.h: Include errors.h.
40 * utils.h (perror_with_name, error, verror, warning, vwarning):
42 * common/common-utils.h: (malloc_failure, internal_error):
45 2014-08-19 Gary Benson <gbenson@redhat.com>
47 * utils.c (internal_vproblem): Always print the message.
49 2014-08-18 Doug Evans <dje@google.com>
51 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
53 2014-08-18 Joel Brobecker <brobecker@adacore.com>
55 * ada-typeprint.c (type_is_full_subrange_of_target_type):
56 Return 0 if TYPE is dynamic.
57 (print_range): Add handling of dynamic ranges.
59 2014-08-18 Keven Boell <keven.boell@intel.com>
60 Joel Brobecker <brobecker@adacore.com>
62 * gdbtypes.h (struct main_type): Add field "data_location".
63 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
64 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
65 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
66 a dynamic data location.
67 (resolve_dynamic_type): Add DW_AT_data_location handling.
68 (copy_recursive, copy_type): Copy the data_location information
70 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
71 * value.c (value_from_contents_and_address): Add
72 DW_AT_data_location handling.
74 2014-08-18 Keven Boell <keven.boell@intel.com>
75 Joel Brobecker <brobecker@adacore.com>
77 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
78 field "get_object_address".
79 * dwarf2expr.c (execute_stack_op): Add handling for
80 DW_OP_push_object_address.
81 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
82 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
83 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
84 (dwarf_expr_get_obj_addr): New function.
85 (dwarf_expr_ctx_funcs): Add get_object_address field.
86 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
87 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
88 (dwarf2_evaluate_property): Add parameter "address". Use it.
89 (needs_get_obj_addr): New function.
90 (needs_frame_ctx_funcs): Add get_object_address field.
91 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
92 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
93 (resolve_dynamic_array): Likewise.
95 2014-08-18 Joel Brobecker <brobecker@adacore.com>
97 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
98 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
99 fixed value for records and unions for which some GNAT encodings
102 2014-08-18 Joel Brobecker <brobecker@adacore.com>
104 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
105 rewrite to avoid "else if" and "else" constructs. Should be
108 2014-08-18 Joel Brobecker <brobecker@adacore.com>
110 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
113 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
116 * eval.c: Update all calls to find_overload_match.
117 * valarith.c: Likewise.
118 (value_user_defined_cpp_op, value_user_defined_op): New
119 argument NOSIDE. Update all callers.
120 * valops.c (find_overload_match): New argument NOSIDE.
121 * value.h (find_overload_match): Update signature.
123 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
125 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
126 'items' methods instead of 'iteritems' method on dictionaries.
128 2014-08-15 Doug Evans <dje@google.com>
130 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
133 2014-08-15 Doug Evans <dje@google.com>
135 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
137 2014-08-15 Doug Evans <dje@google.com>
139 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
141 2014-08-15 Doug Evans <dje@google.com>
143 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
146 2014-08-15 Eli Zaretskii <eliz@gnu.org>
148 * dcache.h: Include target.h, to avoid compile time warnings.
150 2014-08-15 Joel Brobecker <brobecker@adacore.com>
152 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
153 frame_info" partial declaration.
154 * gdbarch.h: Regenerate.
156 2014-08-15 Yao Qi <yao@codesourcery.com>
158 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
159 Add parameter 'decode_for_pst_p'. Callers update.
161 2014-08-13 Yao Qi <yao@codesourcery.com>
164 * configure.ac: Use local variable 'pos'.
165 * configure: Regenerated.
167 2014-08-11 Doug Evans <dje@google.com>
169 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
170 message, it is redundant with "Reading symbols from ..." message.
172 2014-08-10 Doug Evans <xdje42@gmail.com>
174 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
176 2014-08-09 Yao Qi <yao@codesourcery.com>
179 * remote.c (remote_xfer_partial): Remove dead code.
181 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
183 * ia64-linux-tdep.c: Include "regset.h".
184 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
185 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
186 (ia64_linux_supply_fpregset): New function.
187 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
188 (ia64_linux_regset_from_core_section): New function.
189 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
192 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
194 * m68klinux-tdep.c: Include "regset.h".
195 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
196 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
197 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
198 (m68k_linux_regset_from_core_section): New function.
199 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
202 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
204 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
205 function. Move logic to...
206 (tilegx_linux_regmap): ... this new register map.
207 (tilegx_linux_regset): Refer to register map, replace supply
208 method by regcache_supply_regset, and add collect method.
209 * tilegx-tdep.h (enum tilegx_regnum): New enum value
210 TILEGX_FIRST_EASY_REGNUM.
212 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
214 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
215 that calls regcache_supply_regset and handles the EPC register
216 separately. Move main logic to...
217 (score7_linux_gregmap): ... this new register map.
218 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
219 (score7_linux_gregset): Refer to register map. Add collect method.
220 (score7_linux_regset_from_core_section): Replace
221 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
222 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
223 (struct regset): Delete unused forward declaraction.
224 (struct pt_regs): Delete structure definition.
225 (elf_gregset_t): Delete typedef.
227 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
229 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
230 (nios2_core_regset): Add collect method.
232 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
234 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
235 platform-independent and don't write to read-only input buffer.
236 (m32r_linux_collect_gregset): New function.
237 (m32r_linux_gregset): Add collect method.
239 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
241 * hppa-linux-tdep.c (greg_map): Rename to...
242 (hppa_linux_gregmap): ... this. Also convert to
243 regcache_map_entry format.
244 (hppa_linux_supply_regset): Delete function.
245 (hppa_linux_supply_fpregset): Delete function. Move logic to...
246 (hppa_linux_fpregmap): ... this new register map.
247 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
248 register map, replace supply method by regcache_supply_regset, and
249 add collect method regcache_collect_regset.
251 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
253 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
254 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
255 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
256 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
257 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
258 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
259 (frv_linux_supply_gregset): Replace main logic by call to
260 regcache_supply_regset, but keep clearing gr32-gr63.
261 (frv_linux_supply_fpregset): Delete function.
262 (frv_linux_gregset): Refer to appropriate register map and add
263 regcache_collect_regset as the collect method.
264 (frv_linux_fpregset): Likewise. Also exchange the supply method
265 by regcache_supply_regset.
267 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
269 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
270 by call to alpha_supply_int_regs.
271 (alpha_linux_collect_gregset): New function.
272 (alpha_linux_supply_fpregset): Replace logic by call to
273 alpha_supply_fp_regs.
274 (alpha_linux_collect_fpregset): New function.
275 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
277 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
279 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
280 by call to regcache_collect_regset.
281 (supply_gregset, supply_fpregset): Call regcache_supply_regset
282 instead of aarch64_linux_supply_gregset/_fpregset.
283 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
284 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
286 (aarch64_linux_supply_gregset, supply_gregset_from_core)
287 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
288 functions. Move logic to ...
289 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
291 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
292 refer to new register maps, replace *_regset_from_core by
293 regcache_supply_regset, and also use regcache_collect_regset.
294 * aarch64-linux-tdep.h: Include "regset.h".
295 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
297 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
298 macros, moved from C source file.
299 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
300 variable declarations.
302 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
304 * s390-linux-nat.c: Include "regset.h".
305 (regmap_gregset): Delete macro.
306 (s390_64_regmap_gregset): New register map for
307 regcache_supply/_collect_regset.
308 (s390_64_gregset): New regset.
309 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
310 (regmap_fpregset): Delete macro.
311 (s390_native_supply, s390_native_collect): Delete functions.
312 (supply_gregset, fill_gregset): Replace s390-specific regmap
313 handling by a call to regcache_supply/_collect_regset.
314 (supply_fpregset, fill_fpregset): Call regcache_supply/
315 _collect_regset instead of s390_native_supply/_collect.
316 (fetch_regset, store_regset): Likewise. Also change the last
317 parameter to a regset instead of a regmap.
318 (s390_linux_fetch_inferior_registers)
319 (390_linux_store_inferior_registers): Adjust last parameter in
320 calls to fetch_regset and store_regset.
321 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
322 (s390_gregmap): ... this. Also make static const and convert to
323 regcache_map_entry format.
324 (s390x_regmap_gregset): Delete.
325 (s390_regmap_fpregset): Rename to...
326 (s390_fpregmap): ... this. Make static const and convert to
327 regcache_map_entry format.
328 (s390_regmap_upper, s390_regmap_last_break)
329 (s390x_regmap_last_break, s390_regmap_system_call)
330 (s390_regmap_tdb): Likewise.
331 (s390_supply_regset, s390_collect_regset): Remove functions.
332 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
334 (s390_gregset, s390_fpregset, s390_upper_regset)
335 (s390_last_break_regset, s390x_last_break_regset)
336 (s390_system_call_regset, s390_tdb_regset): Make global and
337 replace s390_supply/_collect_regset by regcache_supply/
339 (s390x_gregset): Delete.
340 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
341 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
342 (s390_regmap_fpregset, s390_regmap_last_break)
343 (s390x_regmap_last_break, s390_regmap_system_call)
344 (s390_regmap_tdb): Delete global variable declarations.
345 (s390_gregset, s390_fpregset, s390_last_break_regset)
346 (s390x_last_break_regset, s390_system_call_regset)
347 (s390_tdb_regset): New global variable declarations.
349 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
351 * regcache.c: Include "regset.h".
352 (regcache_transfer_regset): New local function.
353 (regcache_supply_regset, regcache_collect_regset): New functions.
354 * regcache.h (struct regcache_map_entry): New structure.
355 (REGCACHE_MAP_SKIP): New enum value.
356 (regcache_supply_regset, regcache_collect_regset): New prototypes.
358 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
360 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
361 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
362 (ppc_linux_collect_gregset ): Likewise.
363 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
364 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
365 (ppc_collect_vrregset): Likewise.
366 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
369 2014-08-07 Yao Qi <yao@codesourcery.com>
371 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
372 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
373 * remote.c (remote_read_bytes): Likewise.
375 2014-08-07 Yao Qi <yao@codesourcery.com>
377 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
379 2014-08-07 Yao Qi <yao@codesourcery.com>
382 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
383 TARGET_XFER_OK instead of 0.
385 2014-08-07 Gary Benson <gbenson@redhat.com>
387 * common/common-defs.h: Include errno.h.
388 * defs.h: Do not include errno.h.
389 * ada-typeprint.c: Likewise.
390 * c-typeprint.c: Likewise.
391 * core-regset.c: Likewise.
392 * corefile.c: Likewise.
393 * corelow.c: Likewise.
394 * event-loop.c: Likewise.
395 * f-typeprint.c: Likewise.
396 * gnu-nat.c: Likewise.
397 * go32-nat.c: Likewise.
398 * i386gnu-nat.c: Likewise.
399 * m2-typeprint.c: Likewise.
400 * nat/linux-btrace.c: Likewise.
401 * p-typeprint.c: Likewise.
402 * procfs.c: Likewise.
403 * remote-sim.c: Likewise.
404 * rs6000-nat.c: Likewise.
405 * target.c: Likewise.
406 * typeprint.c: Likewise.
407 * ui-file.c: Likewise.
408 * valops.c: Likewise.
409 * valprint.c: Likewise.
411 2014-08-07 Gary Benson <gbenson@redhat.com>
413 * common/common-defs.h: Include string.h.
414 * aarch64-tdep.c: Do not include string.h.
415 * ada-exp.y: Likewise.
416 * ada-lang.c: Likewise.
417 * ada-lex.l: Likewise.
418 * ada-typeprint.c: Likewise.
419 * ada-valprint.c: Likewise.
420 * aix-thread.c: Likewise.
421 * alpha-linux-tdep.c: Likewise.
422 * alpha-mdebug-tdep.c: Likewise.
423 * alpha-nat.c: Likewise.
424 * alpha-osf1-tdep.c: Likewise.
425 * alpha-tdep.c: Likewise.
426 * alphanbsd-tdep.c: Likewise.
427 * amd64-dicos-tdep.c: Likewise.
428 * amd64-linux-tdep.c: Likewise.
429 * amd64-nat.c: Likewise.
430 * amd64-sol2-tdep.c: Likewise.
431 * amd64fbsd-tdep.c: Likewise.
432 * amd64obsd-tdep.c: Likewise.
433 * arch-utils.c: Likewise.
434 * arm-linux-nat.c: Likewise.
435 * arm-linux-tdep.c: Likewise.
436 * arm-tdep.c: Likewise.
437 * arm-wince-tdep.c: Likewise.
438 * armbsd-tdep.c: Likewise.
439 * armnbsd-nat.c: Likewise.
440 * armnbsd-tdep.c: Likewise.
441 * armobsd-tdep.c: Likewise.
442 * avr-tdep.c: Likewise.
443 * ax-gdb.c: Likewise.
444 * ax-general.c: Likewise.
445 * bcache.c: Likewise.
446 * bfin-tdep.c: Likewise.
447 * breakpoint.c: Likewise.
448 * build-id.c: Likewise.
449 * buildsym.c: Likewise.
451 * c-lang.c: Likewise.
452 * c-typeprint.c: Likewise.
453 * c-valprint.c: Likewise.
454 * charset.c: Likewise.
455 * cli-out.c: Likewise.
456 * cli/cli-cmds.c: Likewise.
457 * cli/cli-decode.c: Likewise.
458 * cli/cli-dump.c: Likewise.
459 * cli/cli-interp.c: Likewise.
460 * cli/cli-logging.c: Likewise.
461 * cli/cli-script.c: Likewise.
462 * cli/cli-setshow.c: Likewise.
463 * cli/cli-utils.c: Likewise.
464 * coffread.c: Likewise.
465 * common/agent.c: Likewise.
466 * common/buffer.c: Likewise.
467 * common/buffer.h: Likewise.
468 * common/common-utils.c: Likewise.
469 * common/filestuff.c: Likewise.
470 * common/filestuff.c: Likewise.
471 * common/format.c: Likewise.
472 * common/print-utils.c: Likewise.
473 * common/rsp-low.c: Likewise.
474 * common/signals.c: Likewise.
475 * common/vec.h: Likewise.
476 * common/xml-utils.c: Likewise.
477 * core-regset.c: Likewise.
478 * corefile.c: Likewise.
479 * corelow.c: Likewise.
480 * cp-abi.c: Likewise.
481 * cp-name-parser.y: Likewise.
482 * cp-support.c: Likewise.
483 * cp-valprint.c: Likewise.
484 * cris-tdep.c: Likewise.
486 * darwin-nat.c: Likewise.
487 * dbxread.c: Likewise.
488 * dcache.c: Likewise.
489 * demangle.c: Likewise.
490 * dicos-tdep.c: Likewise.
491 * disasm.c: Likewise.
492 * doublest.c: Likewise.
494 * dummy-frame.c: Likewise.
495 * dwarf2-frame.c: Likewise.
496 * dwarf2loc.c: Likewise.
497 * dwarf2read.c: Likewise.
498 * elfread.c: Likewise.
499 * environ.c: Likewise.
501 * event-loop.c: Likewise.
502 * exceptions.c: Likewise.
504 * expprint.c: Likewise.
506 * f-lang.c: Likewise.
507 * f-typeprint.c: Likewise.
508 * f-valprint.c: Likewise.
509 * fbsd-nat.c: Likewise.
510 * findcmd.c: Likewise.
511 * findvar.c: Likewise.
512 * fork-child.c: Likewise.
514 * frv-linux-tdep.c: Likewise.
515 * frv-tdep.c: Likewise.
517 * gdb_bfd.c: Likewise.
518 * gdbarch.c: Likewise.
519 * gdbarch.sh: Likewise.
520 * gdbtypes.c: Likewise.
521 * gnu-nat.c: Likewise.
522 * gnu-v2-abi.c: Likewise.
523 * gnu-v3-abi.c: Likewise.
524 * go-exp.y: Likewise.
525 * go-lang.c: Likewise.
526 * go32-nat.c: Likewise.
527 * guile/guile.c: Likewise.
528 * guile/scm-auto-load.c: Likewise.
529 * hppa-hpux-tdep.c: Likewise.
530 * hppa-linux-nat.c: Likewise.
531 * hppanbsd-tdep.c: Likewise.
532 * hppaobsd-tdep.c: Likewise.
533 * i386-cygwin-tdep.c: Likewise.
534 * i386-dicos-tdep.c: Likewise.
535 * i386-linux-tdep.c: Likewise.
536 * i386-nto-tdep.c: Likewise.
537 * i386-sol2-tdep.c: Likewise.
538 * i386-tdep.c: Likewise.
539 * i386bsd-tdep.c: Likewise.
540 * i386gnu-nat.c: Likewise.
541 * i386nbsd-tdep.c: Likewise.
542 * i386obsd-tdep.c: Likewise.
543 * i387-tdep.c: Likewise.
544 * ia64-libunwind-tdep.c: Likewise.
545 * ia64-linux-nat.c: Likewise.
546 * inf-child.c: Likewise.
547 * inf-ptrace.c: Likewise.
548 * inf-ttrace.c: Likewise.
549 * infcall.c: Likewise.
550 * infcmd.c: Likewise.
551 * inflow.c: Likewise.
552 * infrun.c: Likewise.
553 * interps.c: Likewise.
554 * iq2000-tdep.c: Likewise.
555 * irix5-nat.c: Likewise.
556 * jv-exp.y: Likewise.
557 * jv-lang.c: Likewise.
558 * jv-typeprint.c: Likewise.
559 * jv-valprint.c: Likewise.
560 * language.c: Likewise.
561 * linux-fork.c: Likewise.
562 * linux-nat.c: Likewise.
563 * lm32-tdep.c: Likewise.
564 * m2-exp.y: Likewise.
565 * m2-typeprint.c: Likewise.
566 * m32c-tdep.c: Likewise.
567 * m32r-linux-nat.c: Likewise.
568 * m32r-linux-tdep.c: Likewise.
569 * m32r-rom.c: Likewise.
570 * m32r-tdep.c: Likewise.
571 * m68hc11-tdep.c: Likewise.
572 * m68k-tdep.c: Likewise.
573 * m68kbsd-tdep.c: Likewise.
574 * m68klinux-nat.c: Likewise.
575 * m68klinux-tdep.c: Likewise.
576 * m88k-tdep.c: Likewise.
577 * machoread.c: Likewise.
578 * macrocmd.c: Likewise.
580 * mdebugread.c: Likewise.
581 * mem-break.c: Likewise.
582 * memattr.c: Likewise.
583 * memory-map.c: Likewise.
584 * mep-tdep.c: Likewise.
585 * mi/mi-cmd-break.c: Likewise.
586 * mi/mi-cmd-disas.c: Likewise.
587 * mi/mi-cmd-env.c: Likewise.
588 * mi/mi-cmd-stack.c: Likewise.
589 * mi/mi-cmd-var.c: Likewise.
590 * mi/mi-cmds.c: Likewise.
591 * mi/mi-console.c: Likewise.
592 * mi/mi-getopt.c: Likewise.
593 * mi/mi-interp.c: Likewise.
594 * mi/mi-main.c: Likewise.
595 * mi/mi-parse.c: Likewise.
596 * microblaze-rom.c: Likewise.
597 * microblaze-tdep.c: Likewise.
598 * mingw-hdep.c: Likewise.
599 * minidebug.c: Likewise.
600 * minsyms.c: Likewise.
601 * mips-irix-tdep.c: Likewise.
602 * mips-linux-tdep.c: Likewise.
603 * mips-tdep.c: Likewise.
604 * mips64obsd-tdep.c: Likewise.
605 * mipsnbsd-tdep.c: Likewise.
606 * mipsread.c: Likewise.
607 * mn10300-linux-tdep.c: Likewise.
608 * mn10300-tdep.c: Likewise.
609 * monitor.c: Likewise.
610 * moxie-tdep.c: Likewise.
611 * mt-tdep.c: Likewise.
612 * nat/linux-btrace.c: Likewise.
613 * nat/linux-osdata.c: Likewise.
614 * nat/linux-procfs.c: Likewise.
615 * nat/linux-ptrace.c: Likewise.
616 * nat/linux-waitpid.c: Likewise.
617 * nbsd-tdep.c: Likewise.
618 * nios2-linux-tdep.c: Likewise.
619 * nto-procfs.c: Likewise.
620 * nto-tdep.c: Likewise.
621 * objc-lang.c: Likewise.
622 * objfiles.c: Likewise.
623 * opencl-lang.c: Likewise.
625 * osdata.c: Likewise.
627 * p-lang.c: Likewise.
628 * p-typeprint.c: Likewise.
630 * posix-hdep.c: Likewise.
631 * ppc-linux-nat.c: Likewise.
632 * ppc-sysv-tdep.c: Likewise.
633 * ppcfbsd-tdep.c: Likewise.
634 * ppcnbsd-tdep.c: Likewise.
635 * ppcobsd-tdep.c: Likewise.
636 * printcmd.c: Likewise.
637 * procfs.c: Likewise.
638 * prologue-value.c: Likewise.
639 * python/py-auto-load.c: Likewise.
640 * python/py-gdb-readline.c: Likewise.
641 * ravenscar-thread.c: Likewise.
642 * regcache.c: Likewise.
643 * registry.c: Likewise.
644 * remote-fileio.c: Likewise.
645 * remote-m32r-sdi.c: Likewise.
646 * remote-mips.c: Likewise.
647 * remote-notif.c: Likewise.
648 * remote-sim.c: Likewise.
649 * remote.c: Likewise.
650 * reverse.c: Likewise.
651 * rs6000-aix-tdep.c: Likewise.
652 * ser-base.c: Likewise.
653 * ser-go32.c: Likewise.
654 * ser-mingw.c: Likewise.
655 * ser-pipe.c: Likewise.
656 * ser-tcp.c: Likewise.
657 * ser-unix.c: Likewise.
658 * serial.c: Likewise.
659 * sh-tdep.c: Likewise.
660 * sh64-tdep.c: Likewise.
661 * shnbsd-tdep.c: Likewise.
663 * sol-thread.c: Likewise.
664 * solib-dsbt.c: Likewise.
665 * solib-frv.c: Likewise.
666 * solib-osf.c: Likewise.
667 * solib-som.c: Likewise.
668 * solib-spu.c: Likewise.
669 * solib-target.c: Likewise.
671 * somread.c: Likewise.
672 * source.c: Likewise.
673 * sparc-nat.c: Likewise.
674 * sparc-sol2-tdep.c: Likewise.
675 * sparc-tdep.c: Likewise.
676 * sparc64-tdep.c: Likewise.
677 * sparc64fbsd-tdep.c: Likewise.
678 * sparc64nbsd-tdep.c: Likewise.
679 * sparcnbsd-tdep.c: Likewise.
680 * spu-linux-nat.c: Likewise.
681 * spu-multiarch.c: Likewise.
682 * spu-tdep.c: Likewise.
683 * stabsread.c: Likewise.
685 * std-regs.c: Likewise.
686 * symfile.c: Likewise.
687 * symmisc.c: Likewise.
688 * symtab.c: Likewise.
689 * target.c: Likewise.
690 * thread.c: Likewise.
691 * tilegx-linux-nat.c: Likewise.
692 * tilegx-tdep.c: Likewise.
694 * tracepoint.c: Likewise.
695 * tui/tui-command.c: Likewise.
696 * tui/tui-data.c: Likewise.
697 * tui/tui-disasm.c: Likewise.
698 * tui/tui-file.c: Likewise.
699 * tui/tui-layout.c: Likewise.
700 * tui/tui-out.c: Likewise.
701 * tui/tui-regs.c: Likewise.
702 * tui/tui-source.c: Likewise.
703 * tui/tui-stack.c: Likewise.
704 * tui/tui-win.c: Likewise.
705 * tui/tui-windata.c: Likewise.
706 * tui/tui-winsource.c: Likewise.
707 * typeprint.c: Likewise.
708 * ui-file.c: Likewise.
709 * ui-out.c: Likewise.
710 * user-regs.c: Likewise.
712 * v850-tdep.c: Likewise.
713 * valarith.c: Likewise.
714 * valops.c: Likewise.
715 * valprint.c: Likewise.
717 * varobj.c: Likewise.
718 * vax-tdep.c: Likewise.
719 * vaxnbsd-tdep.c: Likewise.
720 * vaxobsd-tdep.c: Likewise.
721 * windows-nat.c: Likewise.
722 * xcoffread.c: Likewise.
723 * xml-support.c: Likewise.
724 * xstormy16-tdep.c: Likewise.
725 * xtensa-linux-nat.c: Likewise.
727 2014-08-07 Gary Benson <gbenson@redhat.com>
729 * common/common-defs.h: Include gdb_assert.h.
730 * aarch64-tdep.c: Do not include gdb_assert.h.
731 * addrmap.c: Likewise.
732 * aix-thread.c: Likewise.
733 * alpha-linux-tdep.c: Likewise.
734 * alpha-mdebug-tdep.c: Likewise.
735 * alphanbsd-tdep.c: Likewise.
736 * amd64-nat.c: Likewise.
737 * amd64-tdep.c: Likewise.
738 * amd64bsd-nat.c: Likewise.
739 * amd64fbsd-nat.c: Likewise.
740 * amd64fbsd-tdep.c: Likewise.
741 * amd64nbsd-nat.c: Likewise.
742 * amd64nbsd-tdep.c: Likewise.
743 * amd64obsd-nat.c: Likewise.
744 * amd64obsd-tdep.c: Likewise.
745 * arch-utils.c: Likewise.
746 * arm-tdep.c: Likewise.
747 * armbsd-tdep.c: Likewise.
749 * bcache.c: Likewise.
750 * bfin-tdep.c: Likewise.
751 * blockframe.c: Likewise.
752 * breakpoint.c: Likewise.
753 * bsd-kvm.c: Likewise.
754 * bsd-uthread.c: Likewise.
755 * buildsym.c: Likewise.
757 * c-lang.c: Likewise.
758 * charset.c: Likewise.
759 * cleanups.c: Likewise.
760 * cli-out.c: Likewise.
761 * cli/cli-decode.c: Likewise.
762 * cli/cli-dump.c: Likewise.
763 * cli/cli-logging.c: Likewise.
764 * cli/cli-script.c: Likewise.
765 * cli/cli-utils.c: Likewise.
766 * coffread.c: Likewise.
767 * common/common-utils.c: Likewise.
768 * common/queue.h: Likewise.
769 * common/signals.c: Likewise.
770 * common/vec.h: Likewise.
771 * complaints.c: Likewise.
772 * completer.c: Likewise.
773 * corelow.c: Likewise.
774 * cp-abi.c: Likewise.
775 * cp-name-parser.y: Likewise.
776 * cp-namespace.c: Likewise.
777 * cp-support.c: Likewise.
778 * cris-tdep.c: Likewise.
779 * dbxread.c: Likewise.
780 * dictionary.c: Likewise.
781 * doublest.c: Likewise.
783 * dummy-frame.c: Likewise.
784 * dwarf2-frame-tailcall.c: Likewise.
785 * dwarf2-frame.c: Likewise.
786 * dwarf2expr.c: Likewise.
787 * dwarf2loc.c: Likewise.
788 * dwarf2read.c: Likewise.
790 * event-loop.c: Likewise.
791 * exceptions.c: Likewise.
792 * expprint.c: Likewise.
793 * f-valprint.c: Likewise.
794 * fbsd-nat.c: Likewise.
795 * findvar.c: Likewise.
796 * frame-unwind.c: Likewise.
798 * frv-tdep.c: Likewise.
800 * gdb-dlfcn.c: Likewise.
801 * gdb_bfd.c: Likewise.
802 * gdbarch.c: Likewise.
803 * gdbarch.sh: Likewise.
804 * gdbtypes.c: Likewise.
805 * gnu-nat.c: Likewise.
806 * gnu-v3-abi.c: Likewise.
807 * go-lang.c: Likewise.
808 * guile/scm-exception.c: Likewise.
809 * guile/scm-gsmob.c: Likewise.
810 * guile/scm-lazy-string.c: Likewise.
811 * guile/scm-math.c: Likewise.
812 * guile/scm-pretty-print.c: Likewise.
813 * guile/scm-safe-call.c: Likewise.
814 * guile/scm-utils.c: Likewise.
815 * guile/scm-value.c: Likewise.
816 * h8300-tdep.c: Likewise.
817 * hppa-hpux-nat.c: Likewise.
818 * hppa-tdep.c: Likewise.
819 * hppanbsd-tdep.c: Likewise.
820 * hppaobsd-tdep.c: Likewise.
821 * i386-darwin-nat.c: Likewise.
822 * i386-darwin-tdep.c: Likewise.
823 * i386-nto-tdep.c: Likewise.
824 * i386-tdep.c: Likewise.
825 * i386bsd-nat.c: Likewise.
826 * i386fbsd-tdep.c: Likewise.
827 * i386gnu-nat.c: Likewise.
828 * i386nbsd-tdep.c: Likewise.
829 * i386obsd-tdep.c: Likewise.
830 * i387-tdep.c: Likewise.
831 * ia64-libunwind-tdep.c: Likewise.
832 * ia64-tdep.c: Likewise.
833 * inf-ptrace.c: Likewise.
834 * inf-ttrace.c: Likewise.
835 * infcall.c: Likewise.
836 * infcmd.c: Likewise.
837 * infrun.c: Likewise.
838 * inline-frame.c: Likewise.
839 * interps.c: Likewise.
840 * jv-lang.c: Likewise.
841 * jv-typeprint.c: Likewise.
842 * linux-fork.c: Likewise.
843 * linux-nat.c: Likewise.
844 * linux-thread-db.c: Likewise.
845 * m32c-tdep.c: Likewise.
846 * m32r-linux-nat.c: Likewise.
847 * m32r-tdep.c: Likewise.
848 * m68k-tdep.c: Likewise.
849 * m68kbsd-nat.c: Likewise.
850 * m68kbsd-tdep.c: Likewise.
851 * m88k-tdep.c: Likewise.
852 * machoread.c: Likewise.
853 * macroexp.c: Likewise.
854 * macrotab.c: Likewise.
856 * mdebugread.c: Likewise.
857 * memory-map.c: Likewise.
858 * mep-tdep.c: Likewise.
859 * mi/mi-common.c: Likewise.
860 * microblaze-tdep.c: Likewise.
861 * mingw-hdep.c: Likewise.
862 * mips-linux-nat.c: Likewise.
863 * mips-linux-tdep.c: Likewise.
864 * mips-tdep.c: Likewise.
865 * mips64obsd-tdep.c: Likewise.
866 * mipsnbsd-tdep.c: Likewise.
867 * mn10300-linux-tdep.c: Likewise.
868 * mn10300-tdep.c: Likewise.
869 * moxie-tdep.c: Likewise.
870 * mt-tdep.c: Likewise.
871 * nat/linux-btrace.c: Likewise.
872 * nat/linux-osdata.c: Likewise.
873 * nat/linux-ptrace.c: Likewise.
874 * nat/mips-linux-watch.c: Likewise.
875 * nios2-linux-tdep.c: Likewise.
876 * nios2-tdep.c: Likewise.
877 * objc-lang.c: Likewise.
878 * objfiles.c: Likewise.
879 * obsd-nat.c: Likewise.
880 * opencl-lang.c: Likewise.
883 * ppc-linux-nat.c: Likewise.
884 * ppc-sysv-tdep.c: Likewise.
885 * ppcfbsd-nat.c: Likewise.
886 * ppcfbsd-tdep.c: Likewise.
887 * ppcnbsd-nat.c: Likewise.
888 * ppcnbsd-tdep.c: Likewise.
889 * ppcobsd-nat.c: Likewise.
890 * ppcobsd-tdep.c: Likewise.
891 * printcmd.c: Likewise.
892 * procfs.c: Likewise.
893 * prologue-value.c: Likewise.
894 * psymtab.c: Likewise.
895 * python/py-lazy-string.c: Likewise.
896 * python/py-value.c: Likewise.
897 * regcache.c: Likewise.
898 * reggroups.c: Likewise.
899 * registry.c: Likewise.
900 * remote-sim.c: Likewise.
901 * remote.c: Likewise.
902 * rs6000-aix-tdep.c: Likewise.
903 * rs6000-tdep.c: Likewise.
904 * s390-linux-tdep.c: Likewise.
905 * score-tdep.c: Likewise.
906 * ser-base.c: Likewise.
907 * ser-mingw.c: Likewise.
908 * sh-tdep.c: Likewise.
909 * sh64-tdep.c: Likewise.
910 * solib-darwin.c: Likewise.
911 * solib-spu.c: Likewise.
912 * solib-svr4.c: Likewise.
913 * source.c: Likewise.
914 * sparc-nat.c: Likewise.
915 * sparc-sol2-tdep.c: Likewise.
916 * sparc-tdep.c: Likewise.
917 * sparc64-sol2-tdep.c: Likewise.
918 * sparc64-tdep.c: Likewise.
919 * sparc64fbsd-tdep.c: Likewise.
920 * sparc64nbsd-tdep.c: Likewise.
921 * sparc64obsd-tdep.c: Likewise.
922 * sparcnbsd-tdep.c: Likewise.
923 * sparcobsd-tdep.c: Likewise.
924 * spu-multiarch.c: Likewise.
925 * spu-tdep.c: Likewise.
926 * stabsread.c: Likewise.
928 * symfile.c: Likewise.
929 * symtab.c: Likewise.
930 * target-descriptions.c: Likewise.
931 * target-memory.c: Likewise.
932 * target.c: Likewise.
933 * tic6x-linux-tdep.c: Likewise.
934 * tic6x-tdep.c: Likewise.
935 * tilegx-linux-nat.c: Likewise.
936 * tilegx-tdep.c: Likewise.
938 * tramp-frame.c: Likewise.
939 * tui/tui-out.c: Likewise.
940 * tui/tui-winsource.c: Likewise.
941 * ui-out.c: Likewise.
942 * user-regs.c: Likewise.
944 * v850-tdep.c: Likewise.
945 * valops.c: Likewise.
947 * varobj.c: Likewise.
948 * vax-nat.c: Likewise.
949 * xml-syscall.c: Likewise.
950 * xml-tdesc.c: Likewise.
951 * xstormy16-tdep.c: Likewise.
952 * xtensa-linux-nat.c: Likewise.
953 * xtensa-tdep.c: Likewise.
955 2014-08-07 Gary Benson <gbenson@redhat.com>
957 * common/common-defs.h: Include common-utils.h.
958 * defs.h: Do not include common-utils.h.
959 * common/gdb_assert.h: Likewise.
960 * darwin-nat.h: Likewise.
961 * nat/linux-btrace.c: Likewise.
962 * target/waitstatus.h: Likewise.
964 2014-08-07 Gary Benson <gbenson@redhat.com>
966 * common/common-defs.h: Include ptid.h.
967 * defs.h: Do not include ptid.h.
968 * inferior.h: Likewise.
969 * infrun.h: Likewise.
970 * nat/linux-btrace.h: Likewise.
971 * nat/linux-osdata.h: Likewise.
972 * target/waitstatus.h: Likewise.
974 2014-08-07 Gary Benson <gbenson@redhat.com>
976 * common/common-defs.h: Include gdb_locale.h.
977 * defs.h: Do not include gdb_locale.h.
979 2014-08-07 Gary Benson <gbenson@redhat.com>
981 * common/common-defs.h: Include gdb/signals.h.
982 * defs.h: Do not include gdb/signals.h.
984 2014-08-07 Gary Benson <gbenson@redhat.com>
986 * common/common-defs.h: Include pathmax.h.
987 * defs.h: Do not include pathmax.h.
989 2014-08-07 Gary Benson <gbenson@redhat.com>
991 * common/common-defs.h: Include libiberty.h.
992 * defs.h: Do not include libiberty.h.
993 * common/queue.h: Likewise.
994 * cp-name-parser.y: Likewise.
995 * mi/mi-cmd-catch.c: Likewise.
996 * python/python.c: Likewise.
998 2014-08-07 Gary Benson <gbenson@redhat.com>
1000 * common/common-defs.h: Include ansidecl.h.
1001 * defs.h: Do not include ansidecl.h.
1002 * common/buffer.h: Likewise.
1003 * common/common-utils.h: Likewise.
1005 2014-08-07 Gary Benson <gbenson@redhat.com>
1007 * common/common-defs.h: Include stddef.h.
1008 * defs.h: Do not include stddef.h.
1009 * common/common-utils.h: Likewise.
1010 * amd64fbsd-nat.c: Likewise.
1011 * bcache.c: Likewise.
1012 * charset.c: Likewise.
1013 * common/buffer.h: Likewise.
1014 * common/vec.h: Likewise.
1015 * i386bsd-nat.c: Likewise.
1016 * nat/linux-btrace.h: Likewise.
1017 * ppcfbsd-nat.c: Likewise.
1018 * ppcnbsd-tdep.h: Likewise.
1019 * ppcobsd-nat.c: Likewise.
1020 * ppcobsd-tdep.h: Likewise.
1021 * python/py-gdb-readline.c: Likewise.
1023 2014-08-07 Gary Benson <gbenson@redhat.com>
1025 * common/common-defs.h: Include stdarg.h.
1026 * defs.h: Do not include stdarg.h.
1027 * ada-lang.c: Likewise.
1028 * common/common-utils.h: Likewise.
1029 * guile/scm-string.c: Likewise.
1030 * guile/scm-utils.c: Likewise.
1031 * m32c-tdep.c: Likewise.
1033 2014-08-07 Gary Benson <gbenson@redhat.com>
1035 * common/common-defs.h: Include stdlib.h.
1036 * defs.h: Do not include stdlib.h.
1037 * addrmap.c: Likewise.
1038 * bcache.c: Likewise.
1039 * common/buffer.c: Likewise.
1040 * common/common-utils.c: Likewise.
1041 * cp-name-parser.y: Likewise.
1042 * go32-nat.c: Likewise.
1043 * mn10300-linux-tdep.c: Likewise.
1044 * nat/linux-osdata.c: Likewise.
1045 * tui/tui.c: Likewise.
1046 * windows-nat.c: Likewise.
1048 2014-08-07 Gary Benson <gbenson@redhat.com>
1050 * common/common-defs.h: Include stdio.h.
1051 * defs.h: Do not include stdio.h.
1052 * ada-lang.c: Likewise.
1053 * common/buffer.c: Likewise.
1054 * common/common-utils.c: Likewise.
1055 * cp-name-parser.y: Likewise.
1056 * gnu-nat.c: Likewise.
1057 * go32-nat.c: Likewise.
1058 * i386gnu-nat.c: Likewise.
1059 * proc-api.c: Likewise.
1060 * proc-events.c: Likewise.
1061 * proc-flags.c: Likewise.
1062 * proc-why.c: Likewise.
1063 * python/python-internal.h: Likewise.
1064 * target-memory.c: Likewise.
1065 * tui/tui-io.c: Likewise.
1066 * tui/tui.c: Likewise.
1068 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1070 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1071 (scan_dyntag_auxv): Same.
1073 2014-08-06 Yao Qi <yao@codesourcery.com>
1075 * amd64-linux-nat.c: Remove duplicated include
1077 * i386-linux-nat.c: Likewise.
1079 2014-08-06 Yao Qi <yao@codesourcery.com>
1081 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1082 operand" with "Special opcode" in comments.
1084 2014-08-05 Gary Benson <gbenson@redhat.com>
1086 * interps.c (initialize_interps): Remove prototype.
1087 (interpreter_initialized): Remove static global.
1088 (interp_add): Do not call initialize_interps.
1089 (initialize_interps): Remove function.
1091 2014-08-05 Gary Benson <gbenson@redhat.com>
1093 * utils.c (vwarning): Remove spurious va_end.
1095 2014-08-05 Alan Modra <amodra@gmail.com>
1097 * charset.c (convert_between_encodings): Cast result of obstack_base.
1098 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1099 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1100 (read_unwind_info): Use size_t for some locals.
1101 * jit.c (finalize_symtab): Likewise.
1102 * utils.c (hashtab_obstack_allocate): Likewise.
1103 * symmisc.c (print_objfile_statistics): Update format strings.
1105 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1107 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1108 (Changes in GDB 7.8): ... here.
1110 2014-08-04 Tom Tromey <tromey@redhat.com>
1112 * target.c (set_targetdebug): New function.
1113 (initialize_targets): Pass set_targetdebug when creating "set
1116 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1118 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1119 if detecting a variable-sized field that is not the last field.
1120 Fix struct type length computation.
1122 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1124 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1127 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1129 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1130 Remove "+ 8" offset in computation of CHAIN_VMA.
1132 2014-07-31 Doug Evans <dje@google.com>
1134 * inflow.c (child_terminal_inferior): Add comment.
1135 (child_terminal_ours_for_output): Add comment.
1136 (child_terminal_ours): Add comment.
1137 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1138 (linux_nat_terminal_ours): Add comment.
1140 2014-07-31 Gary Benson <gbenson@redhat.com>
1142 * common/btrace-common.h: Do not include defs.h or server.h.
1143 * nat/mips-linux-watch.h: Likewise.
1144 * gdb-dlfcn.h: Do not include defs.h.
1145 * tracefile.h: Likewise.
1147 2014-07-30 Roland McGrath <mcgrathr@google.com>
1149 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1151 2014-07-30 Tom Tromey <tromey@redhat.com>
1153 * bsd-kvm.c (bsd_kvm_open): Constify.
1154 * corelow.c (core_open): Constify.
1155 * ctf.c (ctf_open): Constify.
1156 * dbug-rom.c (dbug_open): Constify.
1157 * exec.c (exec_open): Constify.
1158 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1159 * microblaze-rom.c (picobug_open): Constify.
1160 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1162 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1163 * record-btrace.c (record_btrace_open): Constify.
1164 * record-full.c (record_full_core_open_1, record_full_open_1)
1165 (record_full_open): Constify.
1166 * remote-m32r-sdi.c (m32r_open): Constify.
1167 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1168 (rockhopper_open, lsi_open): Constify.
1169 * remote-sim.c (gdbsim_open): Constify.
1170 * remote.c (remote_open, extended_remote_open, remote_open_1):
1172 * target.h (struct target_ops) <to_open>: Make "arg" const.
1173 * tracefile-tfile.c (tfile_open): Constify.
1175 2014-07-30 Tom Tromey <tromey@redhat.com>
1177 * breakpoint.c (map_breakpoint_numbers): Update.
1178 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1179 (get_number_const): New function.
1180 (get_number): Rewrite using get_number_const.
1181 (init_number_or_range): Make "string" const.
1182 (number_is_in_list): Make "list" const.
1183 * cli/cli-utils.h (get_number_const): Declare.
1184 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1185 (init_number_or_range, number_is_in_list): Update.
1186 * printcmd.c (map_display_numbers): Update.
1187 * value.c (value_from_history_ref): Constify.
1188 * value.h (value_from_history_ref): Update.
1190 2014-07-30 Tom Tromey <tromey@redhat.com>
1192 * corefile.c (hook_type, call_extra_exec_file_hooks)
1193 (specify_exec_file_hook): Constify.
1194 * exec.c (exec_file_attach): Make "filename" const.
1195 * gdbcore.h (deprecated_exec_file_display_hook)
1196 (specify_exec_file_hook, exec_file_attach): Constify.
1197 * main.c (captured_main): Use catch_command_errors_const.
1199 2014-07-30 Tom Tromey <tromey@redhat.com>
1201 * target.c (open_target): New function.
1202 (add_target_with_completer, add_deprecated_target_alias): Use
1203 set_cmd_sfunc, set_cmd_context.
1204 (debug_to_open): Remove.
1205 (setup_target_debug): Update.
1207 2014-07-30 Yao Qi <yao@codesourcery.com>
1209 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1211 * parse.c (exp_iterate): Update comments.
1213 2014-07-30 Gary Benson <gbenson@redhat.com>
1215 * common/common-defs.h: New file.
1216 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1217 * defs.h: Include common-defs.h.
1218 Do not include config.h or build-gnulib/config.h.
1220 2014-07-30 Gary Benson <gbenson@redhat.com>
1222 * common/common-utils.h: Do not include config.h.
1223 * nat/linux-btrace.h: Likewise.
1225 2014-07-30 Gary Benson <gbenson@redhat.com>
1227 * btrace.c: Include defs.h.
1228 * common/ptid.c: Include defs.h or server.h as appropriate.
1229 * nat/mips-linux-watch.c: Likewise.
1231 2014-07-29 Tom Tromey <tromey@redhat.com>
1233 * target.c (target_is_pushed): Simplify.
1235 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1239 2014-07-29 Yao Qi <yao@codesourcery.com>
1242 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1244 2014-07-28 Doug Evans <xdje42@gmail.com>
1247 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1248 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1251 2014-07-28 Will Newton <will.newton@linaro.org>
1253 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1254 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1255 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1256 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1257 (THUMB2_EABI_SYSCALL): Likewise.
1258 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1260 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1261 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1263 2014-07-27 Doug Evans <xdje42@gmail.com>
1265 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1267 2014-07-27 Doug Evans <xdje42@gmail.com>
1269 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1271 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1272 Doug Evans <xdje42@gmail.com>
1275 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1276 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1277 * configure.ac: Try to use guild to compile an scm file, if it fails
1278 then disable guile support.
1279 * configure: Regenerate.
1280 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1282 (GUILE_COMPILED_FILES): New variable.
1283 (GUILE_FILES) Update.
1284 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1285 (stamp-guile): Compile scm files.
1286 * guile/guile.c (boot_guile_support): New function.
1287 (standard_throw_args_p): New function.
1288 (print_standard_throw_error, print_throw_error): New functions.
1289 (handle_boot_error): New function.
1290 (initialize_scheme_side): Rewrite to call boot_guile_support.
1291 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1292 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1294 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1295 Doug Evans <xdje42@gmail.com>
1298 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1299 * guile/lib/gdb/support.scm: New file.
1300 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1301 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1303 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1305 (%assert-type): Ditto, and renamed to assert-type.
1306 (%exception-print-style): Delete.
1308 2014-07-26 Doug Evans <xdje42@gmail.com>
1311 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1312 * configure: Regenerate.
1313 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1315 (PYTHON_FILES): New variable.
1316 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1317 (GUILE_FILES): New variable.
1318 (stamp-python, install-python, uninstall-python): Handle empty
1320 (stamp-guile, install-guile, uninstall-guile): Ditto.
1322 2014-07-26 Doug Evans <xdje42@gmail.com>
1325 * guile/lib/gdb.scm (pretty-printers): Export.
1326 (set-pretty-printers!): Export.
1327 * guile/lib/gdb/printing.scm (gdb module): Update.
1328 (prepend-pretty-printer!, append-pretty-printer!): Update.
1329 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1330 (pretty_printer_list_var): Delete.
1331 (pretty_printer_list): New static global.
1332 (gdbscm_pretty_printers): New function.
1333 (gdbscm_set_pretty_printers_x): New function.
1334 (ppscm_find_pretty_printer_from_gdb): Update.
1335 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1336 (gdbscm_initialize_pretty_printers): Update.
1338 2014-07-26 Doug Evans <xdje42@gmail.com>
1341 * configure.ac: Add check for header gc/gc.h.
1342 Add check for function setenv.
1343 * configure: Regenerate.
1344 * config.in: Regenerate.
1345 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1347 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1349 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1350 variation in gdbarch matching.
1352 2014-07-25 Tom Tromey <tromey@redhat.com>
1354 * exec.c (using_exec_ops): Remove.
1355 (exec_close_1): Update. Remove extraneous block, reindent.
1356 (add_target_sections): Use target_is_pushed.
1358 2014-07-25 Pedro Alves <palves@redhat.com>
1360 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1361 * monitor.c (monitor_create_inferior): Likewise.
1362 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1363 * remote-sim.c (gdbsim_create_inferior): Likewise.
1364 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1365 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1366 * windows-nat.c (do_initial_windows_stuff): Likewise.
1368 2014-07-25 Pedro Alves <palves@redhat.com>
1370 * NEWS: Mention signal passing and "signal" command changes.
1371 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1373 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1375 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1376 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1377 (jump_command): Adjust clear_proceed_status call.
1378 (signal_command): Warn if other thread that are resumed have
1379 signals that will be delivered. Adjust clear_proceed_status call.
1380 (until_next_command, finish_command)
1381 (proceed_after_attach_callback, attach_command_post_wait)
1382 (attach_command): Adjust clear_proceed_status call.
1383 * infrun.c (proceed_after_vfork_done): Likewise.
1384 (proceed_after_attach_callback): Adjust comment.
1385 (clear_proceed_status_thread): Clear stop_signal if not in pass
1387 (clear_proceed_status_callback): Delete.
1388 (clear_proceed_status): New 'step' parameter. Only clear the
1389 proceed status of threads the command being prepared is about to
1391 (proceed): If passed in an explicit signal, override stop_signal
1392 with it. Don't pass the last stop signal to the thread we're
1394 (init_wait_for_inferior): Adjust clear_proceed_status call.
1395 (switch_back_to_stepped_thread): Clear the signal if it should not
1397 * infrun.h (clear_proceed_status): New 'step' parameter.
1398 (user_visible_resume_ptid): Add comment.
1399 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1400 signal is in pass state.
1401 * remote.c (append_pending_thread_resumptions): Likewise.
1402 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1404 2014-07-25 Tom Tromey <tromey@redhat.com>
1406 * target.h (target_stopped_data_address)
1407 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1410 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1412 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1414 (avr_pointer_to_address): Likewise.
1416 2014-07-24 Tom Tromey <tromey@redhat.com>
1418 * monitor.c (compile_pattern): Update.
1419 * target.h (struct target_ops) <to_shortname, to_longname,
1422 2014-07-24 Tom Tromey <tromey@redhat.com>
1424 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1425 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1426 (add_info_alias, add_com): Make "doc" const.
1427 (print_doc_line): Make "str" const.
1428 (delete_cmd): Update.
1429 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1430 (print_doc_line): Update.
1431 * cli/cli-script.c (document_command): Update.
1432 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1433 (add_com, add_info, add_info_alias): Update.
1434 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1435 * python/py-cmd.c (cmdpy_destroyer): Update.
1437 2014-07-24 Tom Tromey <tromey@redhat.com>
1439 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1440 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1441 (help_cmd_list): Constify.
1442 (lookup_cmd): Update.
1443 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1445 (help_cmd_list, apropos_cmd): Update.
1446 * cli/cli-script.c (show_user): Update.
1447 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1448 * cli/cli-setshow.h (cmd_show_list): Update.
1449 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1450 (cmd_show_list): Update.
1451 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1452 * python/py-cmd.c (cmdpy_destroyer): Update.
1454 2014-07-24 Tom Tromey <tromey@redhat.com>
1456 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1457 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1459 * command.h (deprecate_cmd): Update.
1460 * maint.c (maintenance_do_deprecate): Add casts.
1462 2014-07-24 Tom Tromey <tromey@redhat.com>
1464 * cli/cli-decode.c (help_cmd): Make parameter "const".
1465 * cli/cli-decode.h (help_cmd): Update.
1467 2014-07-24 Tom Tromey <tromey@redhat.com>
1469 * stack.c (up_silently_base, down_silently_base): Make argument
1472 2014-07-24 Tom Tromey <tromey@redhat.com>
1474 * solib.c (solib_add): Make "pattern" const.
1475 * solib.h (solib_add): Update.
1477 2014-07-24 Tom Tromey <tromey@redhat.com>
1479 * remote.c (remote_serial_open, print_packet, putpkt)
1480 (putpkt_binary): Constify.
1481 * remote.h (putpkt): Update.
1483 2014-07-24 Tom Tromey <tromey@redhat.com>
1485 * monitor.c (monitor_open): Make "args" const.
1486 * monitor.h (monitor_open): Update.
1488 2014-07-24 Tom Tromey <tromey@redhat.com>
1490 * maint.c (match_bfd_flags): Make "string" const.
1491 (print_bfd_section_info): Remove casts.
1492 (print_objfile_section_info): Make "string" const.
1494 2014-07-24 Tom Tromey <tromey@redhat.com>
1496 * inf-child.c (inf_child_open_target): Make "arg" const.
1497 * inf-child.h (inf_child_open_target): Update.
1499 2014-07-24 Tom Tromey <tromey@redhat.com>
1501 * environ.c (unset_in_environ): Make "var" const.
1502 * environ.h (unset_in_environ): Update.
1504 2014-07-24 Tom Tromey <tromey@redhat.com>
1506 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1508 (scan_filename_with_cleanup): Likewise.
1509 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1510 Make arguments const.
1511 (restore_command): Update.
1513 2014-07-24 Pedro Alves <palves@redhat.com>
1515 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1517 2014-07-24 Tom Tromey <tromey@redhat.com>
1518 Gary Benson <gbenson@redhat.com>
1520 * nat/linux-ptrace.c (additional_flags): New global.
1521 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1522 additional_flags; don't check GDBSERVER.
1523 (linux_ptrace_set_additional_flags): New function.
1524 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1526 * linux-nat.c (_initialize_linux_nat): Call
1527 linux_ptrace_set_additional_flags.
1529 2014-07-24 Tom Tromey <tromey@redhat.com>
1531 * make-target-delegates (munge_type, write_debugmethod): New
1533 (debug_names): New global.
1534 ($TARGET_DEBUG_PRINTER): New global.
1535 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1537 Write debug methods. Generate init_debug_target.
1538 * target-debug.h: New file.
1539 * target-delegates.c: Rebuild.
1540 * target.c: Include target-debug.h.
1541 (debug_target): Hoist definition.
1542 (target_kill, target_get_section_table, target_memory_map)
1543 (target_flash_erase, target_flash_done, target_detach)
1544 (target_disconnect, target_wait, target_resume)
1545 (target_pass_signals, target_program_signals, target_follow_fork)
1546 (target_mourn_inferior, target_search_memory)
1547 (target_thread_address_space, target_close)
1548 (target_find_new_threads, target_core_of_thread)
1549 (target_verify_memory, target_insert_mask_watchpoint)
1550 (target_remove_mask_watchpoint): Remove targetdebug code.
1551 (debug_to_post_attach, debug_to_prepare_to_store)
1552 (debug_to_files_info, debug_to_insert_breakpoint)
1553 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1554 (debug_to_region_ok_for_hw_watchpoint)
1555 (debug_to_can_accel_watchpoint_condition)
1556 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1557 (debug_to_watchpoint_addr_within_range)
1558 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1559 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1560 (debug_to_terminal_init, debug_to_terminal_inferior)
1561 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1562 (debug_to_terminal_save_ours, debug_to_terminal_info)
1563 (debug_to_load, debug_to_post_startup_inferior)
1564 (debug_to_insert_fork_catchpoint)
1565 (debug_to_remove_fork_catchpoint)
1566 (debug_to_insert_vfork_catchpoint)
1567 (debug_to_remove_vfork_catchpoint)
1568 (debug_to_insert_exec_catchpoint)
1569 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1570 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1571 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1572 (setup_target_debug): Call init_debug_target.
1573 * target.h (TARGET_DEBUG_PRINTER): New macro.
1574 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1575 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1577 2014-07-24 Gary Benson <gbenson@redhat.com>
1579 * exceptions.h (throw_vfatal): Renamed to...
1580 (throw_vquit): New declaration.
1581 (throw_quit): Likewise.
1582 * exceptions.c (throw_vfatal): Renamed to...
1583 (throw_vquit): New function.
1584 (throw_quit): Likewise.
1585 (throw_error): Call throw_verror rather than throw_it.
1586 * utils.h (vfatal): Removed.
1588 * utils.c (vfatal): Removed.
1590 (internal_verror): Replaced call to fatal with call to throw_quit.
1591 (quit): Replaced calls to fatal with calls to throw_quit.
1593 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1595 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1598 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1600 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1601 less than zero in conditional expression.
1603 2014-07-23 Tom Tromey <tromey@redhat.com>
1605 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1606 ($INTRO_PART): Don't match whitespace.
1607 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1609 ($METHOD): Add $METHOD_TRAILER.
1611 (scan_target_h): New sub.
1612 Change main loop not to collect state.
1613 * target-delegates.c: Rebuild.
1615 2014-07-23 Gary Benson <gbenson@redhat.com>
1617 * cp-support.c (gdb_demangle): Fix build on systems without
1620 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1622 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1623 for reference entry value target data value.
1625 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1627 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1628 value_available_contents_eq.
1630 2014-07-22 Pedro Alves <palves@redhat.com>
1632 * value.c (allocate_optimized_out_value): Don't mark value as
1635 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1637 * MAINTAINERS (Write After Approval): Update my email address.
1639 2014-07-20 Doug Evans <dje@google.com>
1642 * remote.c (putpkt_binary): Add text to error message.
1644 2014-07-20 Yao Qi <yao@codesourcery.com>
1646 * eval.c: Remove "Chill" from comments.
1647 * gdbtypes.h: Likewise.
1648 * symtab.h: Likewise.
1650 2014-07-20 Yao Qi <yao@codesourcery.com>
1652 * std-operator.def: Update comments to TERNOP_SLICE.
1654 2014-07-20 Yao Qi <yao@codesourcery.com>
1656 * std-operator.def: Remove BINOP_RANGE.
1657 * breakpoint.c (watchpoint_exp_is_const): Update.
1658 * expprint.c (dump_subexp_body_standard): Likewise.
1659 * eval.c (init_array_element): Remove dead code.
1660 (evaluate_subexp_standard): Likewise.
1662 2014-07-20 Yao Qi <yao@codesourcery.com>
1664 * std-operator.def: Remove BINOP_IN.
1665 * breakpoint.c (watchpoint_exp_is_const): Update.
1666 * eval.c (evaluate_subexp_standard): Likewise.
1667 * expprint.c (dump_subexp_body_standard): Likewise.
1669 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1671 * microblaze-tdep.c (microblaze_register_names): Add
1672 the rshr and rslr register names.
1673 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1674 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1675 Use of tdesc_numbered_register. Use of
1676 microblaze_register_g_packet_guesses. Use of
1677 tdesc_use_registers. Use of set_gdbarch_register_type.
1678 (microblaze_register_g_packet_guesses): New.
1679 * microblaze-tdep.h (microblaze_reg_num): Add
1680 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1681 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1682 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1683 * features/microblaze-core.xml: New file.
1684 * features/microblaze-stack-protect.xml: New file.
1685 * features/microblaze-with-stack-protect.c: New file.
1686 * features/microblaze-with-stack-protect.xml: New file.
1687 * features/microblaze.xml: New file.
1688 * features/microblaze.c: New file.
1689 * features/Makefile (microblaze-with-stack-protect): Add
1690 microblaze-with-stack-protect microblaze and microblaze-expedite.
1691 * regformats/microblaze-with-stack-protect.dat: New file.
1692 * regformats/microblaze.dat: New file.
1693 * doc/gdb.texinfo (MicroBlaze Features): Added.
1695 2014-07-18 Tom Tromey <tromey@redhat.com>
1697 * exec.c (exec_ops): Now static.
1698 * exec.h (exec_ops): Don't declare.
1700 2014-07-18 Tom Tromey <tromey@redhat.com>
1702 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1703 to find_target_beneath.
1704 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1705 find_target_beneath.
1706 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1708 2014-07-18 Tom Tromey <tromey@redhat.com>
1711 * utils.c (quit): Use target_supports_terminal_ours.
1712 * target.h (target_supports_terminal_ours): Declare.
1713 * target.c (target_supports_delete_record): Don't check
1714 to_delete_record against NULL.
1715 (target_supports_terminal_ours): New function.
1717 2014-07-18 Tom Tromey <tromey@redhat.com>
1720 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1721 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1722 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1723 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1724 * windows-nat.c (windows_xfer_partial): Always delegate.
1725 * record-btrace.c (record_btrace_xfer_partial): Simplify
1727 (record_btrace_fetch_registers, record_btrace_store_registers)
1728 (record_btrace_prepare_to_store, record_btrace_resume)
1729 (record_btrace_wait, record_btrace_find_new_threads)
1730 (record_btrace_thread_alive): Likewise.
1731 * procfs.c (procfs_xfer_partial): Always delegate.
1732 * corelow.c (core_xfer_partial): Always delegate.
1733 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1735 2014-07-18 Tom Tromey <tromey@redhat.com>
1737 * exec.c (exec_make_note_section): Move earlier.
1739 2014-07-17 Doug Evans <dje@google.com>
1742 * maint.c (count_symtabs_and_blocks): Handle NULL
1743 current_program_space.
1744 (report_command_stats): Check global enabled flag in addition to
1745 recorded enabled flag.
1746 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1748 2014-07-16 Pedro Alves <palves@redhat.com>
1750 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1752 2014-07-16 Tom Tromey <tromey@redhat.com>
1754 * target.h (struct target_ops) <to_delete_record>: Reformat
1757 2014-07-16 Tom Tromey <tromey@redhat.com>
1759 * target-delegates.c: Rebuild.
1761 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1763 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1764 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1765 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1766 (avr_pointer_to_address): Likewise.
1767 (avr_address_class_type_flags): New function.
1768 (avr_address_class_type_flags_to_name): Likewise.
1769 (avr_address_class_name_to_type_flags): Likewise.
1770 (avr_gdbarch_init): Set address_class_type_flags,
1771 address_class_type_flags_to_name and
1772 address_class_name_to_type_flags.
1774 2014-07-15 Pedro Alves <palves@redhat.com>
1776 * linux-nat.c (kill_callback): Save errno and work with saved
1779 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1781 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1783 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1785 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1786 breakpoint support correctly.
1788 2014-07-14 Pedro Alves <palves@redhat.com>
1790 * utils.c (prompt_for_continue): Call target_terminal_ours.
1792 2014-07-14 Pedro Alves <palves@redhat.com>
1794 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1795 catch_errors. Don't re-enable stdin or notify observers where,
1797 (fetch_inferior_event_wrapper): Delete.
1799 2014-07-14 Pedro Alves <palves@redhat.com>
1802 * top.c: Include "inf-loop.h".
1803 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1805 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1807 (gdb_readline_wrapper): Store whether the target is async, and
1810 2014-07-14 Pedro Alves <palves@redhat.com>
1813 * top.c (gdb_readline_wrapper_line): Tweak comment.
1814 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1815 the input handler callback.
1817 2014-07-14 Pedro Alves <palves@redhat.com>
1820 * main.c: Include event-top.h.
1821 (handle_command_errors): New function.
1822 (catch_command_errors, catch_command_errors_const): Use it.
1824 2014-07-14 Pedro Alves <palves@redhat.com>
1826 * exceptions.c (catch_command_errors, catch_command_errors_const):
1828 * exceptions.h (catch_command_errors_ftype)
1829 (catch_command_errors_const_ftype): Moved to main.c.
1830 (catch_command_errors, catch_command_errors_const): Delete
1832 * main.c (catch_command_errors_ftype)
1833 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1834 (catch_command_errors, catch_command_errors_const)): Moved here
1835 from exceptions.c and make static.
1837 2014-07-14 Pedro Alves <palves@redhat.com>
1839 * exceptions.c (print_any_exception): Delete.
1840 (catch_exceptions_with_msg): Use exception_print instead of
1841 print_any_exception.
1842 (catch_errors): Use exception_fprintf instead of
1843 print_any_exception.
1844 (catch_command_errors, catch_command_errors_const): Use
1845 exception_print instead of print_any_exception.
1847 2014-07-14 Pedro Alves <palves@redhat.com>
1849 * infcall.c (run_inferior_call): Set 'sync_execution' while
1850 running the inferior call.
1852 2014-07-14 Pedro Alves <palves@redhat.com>
1854 * value.c (value_contents_equal): Delete function.
1855 * value.h (value_contents_equal): Delete declaration.
1857 2014-07-14 Tom Tromey <tromey@redhat.com>
1860 * gdbtypes.c (is_dynamic_type_internal): New function, from
1862 (is_dynamic_type): Rewrite.
1863 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1864 (resolve_dynamic_struct): Likewise.
1865 (resolve_dynamic_type_internal): New function, from
1866 resolve_dynamic_type.
1867 (resolve_dynamic_type): Rewrite.
1869 2014-07-14 Tom Tromey <tromey@redhat.com>
1871 * target.c (target_require_runnable): Also check record_stratum.
1874 2014-07-11 Yao Qi <yao@codesourcery.com>
1876 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1877 thumb_instruction_restores_sp return true.
1879 2014-07-11 Yao Qi <yao@codesourcery.com>
1881 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1882 (thumb_in_function_epilogue_p): Call
1883 thumb_instruction_restores_sp.
1885 2014-07-11 Yao Qi <yao@codesourcery.com>
1887 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1889 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1891 2014-07-11 Gary Benson <gbenson@redhat.com>
1893 * amd64-linux-nat.c (gdbcore.h): Remove include.
1894 (regset.h): Likewise.
1895 (nat/linux-btrace.h): Likewise.
1896 (btrace.h): Likewise.
1897 (gdb_assert.h): Likewise.
1898 (string.h): Likewise.
1899 (sys/uio.h): Likewise.
1900 (sys/debugreg.h): Likewise.
1901 (sys/syscall.h): Likewise.
1902 (sys/procfs.h): Likewise.
1903 (sys/user.h): Likewise.
1904 (asm/ptrace.h): Likewise.
1905 (i386-nat.h): Likewise.
1906 * i386-linux-nat.c (i386-nat.h): Likewise.
1907 (regset.h): Likewise.
1908 (target.h): Likewise.
1909 (linux-nat.h): Likewise.
1910 (nat/linux-btrace.h): Likewise.
1911 (btrace.h): Likewise.
1912 (gdb_assert.h): Likewise.
1913 (string.h): Likewise.
1914 (sys/uio.h): Likewise.
1915 (sys/user.h): Likewise.
1916 (sys/procfs.h): Likewise.
1917 (sys/reg.h): Likewise.
1918 (sys/debugreg.h): Likewise.
1919 (ORIG_EAX): Remove definition.
1921 2014-07-11 Gary Benson <gbenson@redhat.com>
1923 * i386-linux-nat.h: New file.
1924 * x86-linux-nat.h: Likewise.
1925 * x86-linux-nat.c: Likewise.
1926 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1927 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1928 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1929 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1930 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1931 (PTRACE_SETREGSET): Likewise.
1932 (arch_lwp_info): Now in x86-linux-nat.c.
1933 (have_ptrace_getregset): Now in x86-linux-nat.h.
1934 (x86_linux_dr_get): Now in x86-linux-nat.c.
1935 (x86_linux_dr_set): Likewise.
1936 (x86_linux_dr_get_addr): Likewise.
1937 (x86_linux_dr_get_control): Likewise.
1938 (x86_linux_dr_get_status): Likewise.
1939 (update_debug_registers_callback): Likewise.
1940 (x86_linux_dr_set_control): Likewise.
1941 (x86_linux_dr_set_addr): Likewise.
1942 (x86_linux_prepare_to_resume): Likewise.
1943 (x86_linux_new_thread): Likewise.
1944 (x86_linux_new_fork): Likewise.
1945 (x86_linux_get_thread_area): Likewise.
1946 (super_post_startup_inferior): Likewise.
1947 (x86_linux_child_post_startup_inferior): Likewise.
1948 (AMD64_LINUX_USER64_CS): Likewise.
1949 (AMD64_LINUX_X32_DS): Likewise.
1950 (x86_linux_read_description): Likewise.
1951 (x86_linux_enable_btrace): Likewise.
1952 (x86_linux_disable_btrace): Likewise.
1953 (x86_linux_teardown_btrace): Likewise.
1954 (x86_linux_read_btrace): Likewise.
1955 (x86_linux_create_target): Likewise.
1956 (x86_linux_add_target): Likewise.
1957 * i386-linux-nat.c (x86-linux-nat.h): New include.
1958 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1959 (PTRACE_SETREGSET): Likewise.
1960 (arch_lwp_info): Now in x86-linux-nat.c.
1961 (have_ptrace_getregset): Now in x86-linux-nat.h.
1962 (x86_linux_dr_get): Now in x86-linux-nat.c.
1963 (x86_linux_dr_set): Likewise.
1964 (x86_linux_dr_get_addr): Likewise.
1965 (x86_linux_dr_get_control): Likewise.
1966 (x86_linux_dr_get_status): Likewise.
1967 (update_debug_registers_callback): Likewise.
1968 (x86_linux_dr_set_control): Likewise.
1969 (x86_linux_dr_set_addr): Likewise.
1970 (x86_linux_prepare_to_resume): Likewise.
1971 (x86_linux_new_thread): Likewise.
1972 (x86_linux_new_fork): Likewise.
1973 (x86_linux_get_thread_area): Likewise.
1974 (super_post_startup_inferior): Likewise.
1975 (x86_linux_child_post_startup_inferior): Likewise.
1976 (AMD64_LINUX_USER64_CS): Likewise.
1977 (AMD64_LINUX_X32_DS): Likewise.
1978 (x86_linux_read_description): Likewise.
1979 (x86_linux_enable_btrace): Likewise.
1980 (x86_linux_disable_btrace): Likewise.
1981 (x86_linux_teardown_btrace): Likewise.
1982 (x86_linux_read_btrace): Likewise.
1983 (x86_linux_create_target): Likewise.
1984 (x86_linux_add_target): Likewise.
1986 2014-07-11 Gary Benson <gbenson@redhat.com>
1988 * amd64-linux-nat.c: Comment and whitespace changes.
1989 * i386-linux-nat.c: Comment and whitespace changes.
1991 2014-07-11 Gary Benson <gbenson@redhat.com>
1993 * amd64-linux-nat.c (x86_linux_create_target): New function.
1994 (x86_linux_add_target): Likewise.
1995 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1996 * i386-linux-nat.c (x86_linux_create_target): New function.
1997 (x86_linux_add_target): Likewise.
1998 (_initialize_i386_linux_nat): Delegate to the above new functions.
2000 2014-07-11 Gary Benson <gbenson@redhat.com>
2002 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2003 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2004 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2005 (ps_get_thread_area): Delegate to the above.
2007 2014-07-11 Gary Benson <gbenson@redhat.com>
2009 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2010 x86_linux_read_description. All uses updated. amd64-specific
2011 code conditionalized. Conditionalized i386-specific code added.
2012 Redundant cast removed.
2013 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2014 x86_linux_read_description. All uses updated. i386-specific
2015 code conditionalized. Conditionalized amd64-specific code added.
2016 One sizeof replaced with the actual type it is describing.
2018 2014-07-11 Gary Benson <gbenson@redhat.com>
2020 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2021 x86_linux_dr_get. All uses updated.
2022 (amd64_linux_dr_set): Renamed to
2023 x86_linux_dr_set. All uses updated.
2024 (amd64_linux_dr_get_addr): Renamed to
2025 x86_linux_dr_get_addr. All uses updated.
2026 (amd64_linux_dr_get_control): Renamed to
2027 x86_linux_dr_get_control. All uses updated.
2028 (amd64_linux_dr_get_status): Renamed to
2029 x86_linux_dr_get_status. All uses updated.
2030 (amd64_linux_dr_set_control): Renamed to
2031 x86_linux_dr_set_control. All uses updated.
2032 (amd64_linux_dr_set_addr): Renamed to
2033 x86_linux_dr_set_addr. All uses updated.
2034 (amd64_linux_prepare_to_resume): Renamed to
2035 x86_linux_prepare_to_resume. All uses updated.
2036 (amd64_linux_new_thread): Renamed to
2037 x86_linux_new_thread. All uses updated.
2038 (amd64_linux_new_fork): Renamed to
2039 x86_linux_new_fork. All uses updated.
2040 (amd64_linux_child_post_startup_inferior): Renamed to
2041 x86_linux_child_post_startup_inferior. All uses updated.
2042 (amd64_linux_enable_btrace): Renamed to
2043 x86_linux_enable_btrace. All uses updated.
2044 (amd64_linux_disable_btrace): Renamed to
2045 x86_linux_disable_btrace. All uses updated.
2046 (amd64_linux_teardown_btrace): Renamed to
2047 x86_linux_teardown_btrace. All uses updated.
2048 (amd64_linux_read_btrace): Renamed to
2049 x86_linux_read_btrace. All uses updated.
2050 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2051 x86_linux_dr_get. All uses updated.
2052 (i386_linux_dr_set): Renamed to
2053 x86_linux_dr_set. All uses updated.
2054 (i386_linux_dr_get_addr): Renamed to
2055 x86_linux_dr_get_addr. All uses updated.
2056 (i386_linux_dr_get_control): Renamed to
2057 x86_linux_dr_get_control. All uses updated.
2058 (i386_linux_dr_get_status): Renamed to
2059 x86_linux_dr_get_status. All uses updated.
2060 (i386_linux_dr_set_control): Renamed to
2061 x86_linux_dr_set_control. All uses updated.
2062 (i386_linux_dr_set_addr): Renamed to
2063 x86_linux_dr_set_addr. All uses updated.
2064 (i386_linux_prepare_to_resume): Renamed to
2065 x86_linux_prepare_to_resume. All uses updated.
2066 (i386_linux_new_thread): Renamed to
2067 x86_linux_new_thread. All uses updated.
2068 (i386_linux_new_fork): Renamed to
2069 x86_linux_new_fork. All uses updated.
2070 (i386_linux_child_post_startup_inferior): Renamed to
2071 x86_linux_child_post_startup_inferior. All uses updated.
2072 (i386_linux_enable_btrace): Renamed to
2073 x86_linux_enable_btrace. All uses updated.
2074 (i386_linux_disable_btrace): Renamed to
2075 x86_linux_disable_btrace. All uses updated.
2076 (i386_linux_teardown_btrace): Renamed to
2077 x86_linux_teardown_btrace. All uses updated.
2078 (i386_linux_read_btrace): Renamed to
2079 x86_linux_read_btrace. All uses updated.
2081 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2083 * remote.c (extended_remote_post_attach): New function.
2084 (init_extended_remote_ops): Install it as to_post_attach method.
2086 2014-07-09 Pedro Alves <palves@redhat.com>
2088 * infcmd.c (attach_command_post_wait): Don't call
2089 target_terminal_inferior here.
2090 (attach_command): Call it here instead.
2092 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2094 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2096 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2097 from varobj.c, with additional checks.
2098 (c_varobj_ops): Fill in is_path_expr_parent field.
2099 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2100 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2102 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2104 (varobj_default_is_path_expr_parent): New function.
2105 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2106 (varobj_default_is_path_expr_parent): Declare new function.
2108 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2110 * infcmd.c (finish_backward): Turn internal error into normal error.
2112 2014-07-07 Pedro Alves <palves@redhat.com>
2115 * remote.c (async_handle_remote_sigint)
2116 (async_handle_remote_sigint_twice): Call
2117 gdb_call_async_signal_handler instead of
2118 mark_async_signal_handler.
2120 2014-07-07 Tom Tromey <tromey@redhat.com>
2122 * target-delegates.c: Rebuild.
2123 * target.c (target_info_record): Remove.
2124 * record.c (info_record_command): Unconditionally call
2126 * target.h (struct target_ops) <to_info_record>: Use
2127 TARGET_DEFAULT_IGNORE.
2128 (target_info_record): Remove.
2130 2014-07-07 Tom Tromey <tromey@redhat.com>
2132 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2133 TARGET_DEFAULT_NORETURN.
2134 * target.c (generic_tls_error): New function.
2135 (target_translate_tls_address): Don't search target stack.
2136 * target-delegates.c: Rebuild.
2137 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2139 * linux-thread-db.c (thread_db_get_thread_local_address):
2140 Unconditionally call beneath target.
2142 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2144 * cli/cli-logging.c (pop_output_files): Assign targerr to
2147 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2149 * MAINTAINERS (Write After Approval): Update my email address.
2151 2014-07-02 Gary Benson <gbenson@redhat.com>
2153 * proc-service.c (ps_xfer_memory): Update comment.
2154 (ps_pstop): Remove unused function.
2155 (ps_pcontinue): Likewise.
2156 (ps_lstop): Likewise.
2157 (ps_lcontinue): Likewise.
2158 (ps_lgetxregsize): Likewise.
2159 (ps_lgetxregs): Likewise.
2160 (ps_lsetxregs): Likewise.
2161 (ps_plog): Likewise.
2162 (ps_ptread): Likewise.
2163 (ps_ptwrite): Likewise.
2165 2014-07-01 Mark Wielaard <mjw@redhat.com>
2167 * dwarf2read.c (add_array_cv_type): New function.
2168 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2169 (read_tag_volatile_type): Likewise.
2171 2014-07-01 Tom Tromey <tromey@redhat.com>
2173 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2174 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2175 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2176 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2177 * command.h (cmd_cfunc_ftype): Move earlier.
2178 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2179 (add_com, add_info): Use cmd_cfunc_ftype.
2181 2014-06-30 Tom Tromey <tromey@redhat.com>
2183 * symtab.c (operator_chars): Make parameters and return type
2185 (file_matches): Make "files" const.
2186 (struct search_symbols_data) <files>: Now const.
2187 (search_symbols): Make "regexp" and "files" parameters const.
2189 (symtab_symbol_info): Remove cast.
2190 (rbreak_command): Update.
2191 * symtab.h (search_symbols): Update.
2193 2014-06-27 Yao Qi <yao@codesourcery.com>
2195 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2196 Change parameter type to 'struct thread_info *'. Caller
2198 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2200 * dummy-frame.c (struct dummy_frame_id): New.
2201 (dummy_frame_id_eq): New function.
2202 (struct dummy_frame) <id>: Change its type to 'struct
2204 (dummy_frame_push): Add parameter ptid and save it in
2206 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2208 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2210 (lookup_dummy_frame): Change parameter type to 'struct
2211 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2212 instead of frame_id_eq.
2213 (dummy_frame_pop): Add parameter ptid. Callers updated.
2214 Update comments. Compose dummy_frame_id and pass it to
2216 (dummy_frame_discard): Add parameter ptid.
2217 (dummy_frame_sniffer): Compose dummy_frame_id and call
2218 dummy_frame_id_eq instead of frame_id_eq.
2219 (fprint_dummy_frames): Print ptid.
2220 * dummy-frame.h: Remove comments.
2221 (dummy_frame_push): Add ptid in declaration.
2222 (dummy_frame_pop, dummy_frame_discard): Likewise.
2224 2014-06-26 Tom Tromey <tromey@redhat.com>
2226 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2227 * command.h (error_no_arg): Update.
2229 2014-06-26 Tom Tromey <tromey@redhat.com>
2231 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2232 (do_show_command): Make "arg" const.
2233 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2235 2014-06-26 Tom Tromey <tromey@redhat.com>
2237 * record-full.c (record_full_get_bookmark): Make "args" const.
2238 (record_full_goto_bookmark): Make "raw_bookmark" const.
2239 * record.c (record_goto): New function.
2240 (cmd_record_goto): Use it. Now static.
2241 * record.h (record_goto): Declare.
2242 (cmd_record_goto): Remove declaration.
2243 * target-delegates.c: Rebuild.
2244 * target.h (struct target_ops) <to_get_bookmark,
2245 to_goto_bookmark>: Make parameter const.
2247 2014-06-26 Tom Tromey <tromey@redhat.com>
2249 * defs.h (generic_load): Update.
2250 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2251 * monitor.c (monitor_load): Make "args" const.
2252 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2253 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2255 (mips_load): Make "file" const.
2256 * remote-sim.c (gdbsim_load): Make "args" const.
2257 * remote.c (remote_load): Make "name" const.
2258 * symfile.c (generic_load): Make "args" const.
2259 * target-delegates.c: Rebuild.
2260 * target.c (target_load): Make "arg" const.
2261 (debug_to_load): Make "args" const.
2262 * target.h (struct target_ops) <to_load>: Make parameter const.
2263 (target_load): Update.
2265 2014-06-26 Tom Tromey <tromey@redhat.com>
2268 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2269 (dwarf2_physname, read_partial_die)
2270 (guess_partial_die_structure_name, fixup_partial_die)
2271 (guess_full_die_structure_name, anonymous_struct_prefix)
2272 (dwarf2_name): Use per-BFD obstack.
2274 2014-06-26 Yao Qi <yao@codesourcery.com>
2276 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2277 dummyframe and this_id into inner block below.
2279 2014-06-26 Yao Qi <yao@codesourcery.com>
2281 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2282 with "signal_pass[0]" in the initialization of signal_pass.
2284 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2286 * record-btrace.c (record_btrace_generating_corefile)
2287 (record_btrace_prepare_to_generate_core)
2288 (record_btrace_done_generating_core): New.
2289 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2290 (record_btrace_store_registers, record_btrace_prepare_to_store):
2291 Forward request when generating a core file.
2292 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2293 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2294 to_done_generating_core.
2296 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2298 * target.h (target_ops) <to_prepare_to_generate_core>
2299 <to_done_generating_core>: New.
2300 (target_prepare_to_generate_core, target_done_generating_core): New.
2301 * target.c (target_prepare_to_generate_core)
2302 (target_done_generating_core): New.
2303 * target-delegates.c: Regenerate.
2304 * gcore.c: (write_gcore_file): Rename to ...
2305 (write_gcore_file_1): ...this.
2306 (write_gcore_file): Call target_prepare_to_generate_core
2307 and target_done_generating_core.
2309 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2311 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2312 * gcore.c (write_gcore_file): Free memory returned from
2313 make_corefile_notes.
2314 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2315 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2317 2014-06-24 Yao Qi <yao@codesourcery.com>
2319 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2320 (arm_linux_init_abi): Set skip_trampoline_code with
2321 gdbarch_skip_trampoline_code instead of
2322 find_solib_trampoline_target.
2324 2014-06-24 Yao Qi <yao@codesourcery.com>
2326 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2327 arm_skip_bx_reg returns non-zero.
2329 2014-06-24 Yao Qi <yao@codesourcery.com>
2331 * arm-tdep.c (arm_skip_bx_reg): New function.
2332 (arm_skip_stub): Call arm_skip_bx_reg.
2334 2014-06-23 Don Breazeal <donb@codesourcery.com>
2336 * MAINTAINERS: Add myself as write-after-approval maintainer.
2338 2014-06-23 Pedro Alves <palves@redhat.com>
2340 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2341 DR_CONTROL before setting DR0..DR3.
2342 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2343 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2344 bits of DR_CONTROL related to the debug register slot being
2345 disabled. If all slots are vacant, clear local slowdown as well,
2346 and assert DR_CONTROL is 0.
2348 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2350 * python/lib/gdb/command/xmethods.py
2351 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2352 current progspace only if the string "progspace" matches LOCUS_RE.
2354 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2356 Fix --with-system-readline with readline-6.3 patch 5.
2357 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2358 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2361 2014-06-20 Tom Tromey <tromey@redhat.com>
2363 * dwarf2read.c (dw2_get_real_path): Use correct type in
2365 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2367 2014-06-20 Gary Benson <gbenson@redhat.com>
2369 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2370 * common/glibc_thread_db.h: Likewise.
2371 * common/i386-cpuid.h: Likewise.
2372 * common/i386-gcc-cpuid.h: Likewise.
2373 * common/linux-btrace.h: Likewise.
2374 * common/linux-osdata.h: Likewise.
2375 * common/linux-procfs.h: Likewise.
2376 * common/linux-ptrace.h: Likewise.
2377 * common/mips-linux-watch.h: Likewise.
2378 * common/linux-btrace.c: Moved to nat.
2379 * common/linux-osdata.c: Likewise.
2380 * common/linux-procfs.c: Likewise.
2381 * common/linux-ptrace.c: Likewise.
2382 * common/mips-linux-watch.c: Likewise.
2383 * nat/gdb_thread_db.h: Moved from common.
2384 * nat/glibc_thread_db.h: Likewise.
2385 * nat/i386-cpuid.h: Likewise.
2386 * nat/i386-gcc-cpuid.h: Likewise.
2387 * nat/linux-btrace.c: Likewise.
2388 * nat/linux-btrace.h: Likewise.
2389 * nat/linux-osdata.c: Likewise.
2390 * nat/linux-osdata.h: Likewise.
2391 * nat/linux-procfs.c: Likewise.
2392 * nat/linux-procfs.h: Likewise.
2393 * nat/linux-ptrace.c: Likewise.
2394 * nat/linux-ptrace.h: Likewise.
2395 * nat/mips-linux-watch.c: Likewise.
2396 * nat/mips-linux-watch.h: Likewise.
2397 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2398 (object file files): Reordered.
2399 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2400 of glibc_thread_db.h.
2402 2014-06-20 Gary Benson <gbenson@redhat.com>
2404 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2405 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2406 (i386_dr_low): Likewise.
2407 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2408 (i386_dr_low_set_addr): Likewise.
2409 (i386_dr_low_get_addr): Likewise.
2410 (i386_dr_low_can_set_control): Likewise.
2411 (i386_dr_low_set_control): Likewise.
2412 (i386_dr_low_get_control): Likewise.
2413 (i386_dr_low_get_status): Likewise.
2414 (i386_get_debug_register_length): Likewise.
2415 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2416 (i386_dr_low): Likewise.
2417 * nat/i386-dregs.c (i386-low.h): Remove include.
2418 (i386-nat.h): Likewise.
2419 (nat/i386-dregs.h): New include.
2420 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2421 (i386_dr_low_set_addr): Likewise.
2422 (i386_dr_low_get_addr): Likewise.
2423 (i386_dr_low_can_set_control): Likewise.
2424 (i386_dr_low_set_control): Likewise.
2425 (i386_dr_low_get_control): Likewise.
2426 (i386_dr_low_get_status): Likewise.
2427 (i386_get_debug_register_length): Likewise.
2428 (debug_hw_points): Likewise.
2430 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2432 * Makefile.in (SFILES): Add d-exp.y.
2433 (YYFILES): Add d-exp.c.
2434 (YYOBJ): Add d-exp.o.
2435 (local-maintainer-clean): Delete d-exp.c.
2436 * d-exp.y: New file.
2437 * d-lang.h (d_parse): New declaration.
2438 (d_error): New declaration.
2439 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2440 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2441 PREC_ORDER operators.
2442 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2444 2014-06-19 Yao Qi <yao@codesourcery.com>
2446 * gdbthread.h (any_running): Remove the declaration.
2447 * thread.c (any_running): Remove.
2449 2014-06-19 Yao Qi <yao@codesourcery.com>
2451 * gdbthread.h (struct thread_info) <state>: Change its type to
2452 'enum thread_state'. Update comments.
2454 2014-06-19 Pedro Alves <palves@redhat.com>
2456 * gdbthread.h (ALL_THREADS): Delete.
2457 (ALL_NON_EXITED_THREADS): New macro.
2458 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2459 instead of ALL_THREADS.
2460 * infrun.c (find_thread_needs_step_over)
2461 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2462 instead of ALL_THREADS.
2463 * record-btrace.c (record_btrace_open)
2464 (record_btrace_stop_recording, record_btrace_close)
2465 (record_btrace_is_replaying, record_btrace_resume)
2466 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2467 * remote.c (append_pending_thread_resumptions): Likewise.
2468 * thread.c (thread_apply_all_command): Likewise.
2470 2014-06-19 Gary Benson <gbenson@redhat.com>
2472 * i386-nat.c (i386_stopped_by_watchpoint):
2473 Use i386_dr_stopped_by_watchpoint.
2474 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2475 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2477 2014-06-19 Gary Benson <gbenson@redhat.com>
2479 * nat/i386-dregs.c: New file.
2480 * Makefile.in (i386-dregs.o): New rule.
2481 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2482 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2483 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2484 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2485 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2486 * config/i386/go32.mh (NATDEPFILES): Likewise.
2487 * config/i386/linux.mh (NATDEPFILES): Likewise.
2488 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2489 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2490 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2491 * i386-nat.h (debug_hw_points): New declaration.
2492 * i386-nat.c (breakpoint.h): Remove include.
2493 (command.h): Likewise.
2494 (target.h): Likewise.
2495 (gdb_assert.h): Likewise.
2496 (debug_hw_points): Made nonstatic.
2497 (debug_printf): Now in i386-dregs.c.
2498 (TARGET_HAS_DR_LEN_8): Likewise.
2499 (DR_CONTROL_SHIFT): Likewise.
2500 (DR_CONTROL_SIZE): Likewise.
2501 (DR_RW_EXECUTE): Likewise.
2502 (DR_RW_WRITE): Likewise.
2503 (DR_RW_READ): Likewise.
2504 (DR_RW_IORW): Likewise.
2505 (DR_LEN_1): Likewise.
2506 (DR_LEN_2): Likewise.
2507 (DR_LEN_4): Likewise.
2508 (DR_LEN_8): Likewise.
2509 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2510 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2511 (DR_ENABLE_SIZE): Likewise.
2512 (DR_LOCAL_SLOWDOWN): Likewise.
2513 (DR_GLOBAL_SLOWDOWN): Likewise.
2514 (DR_CONTROL_RESERVED): Likewise.
2515 (I386_DR_CONTROL_MASK): Likewise.
2516 (I386_DR_VACANT): Likewise.
2517 (I386_DR_LOCAL_ENABLE): Likewise.
2518 (I386_DR_GLOBAL_ENABLE): Likewise.
2519 (I386_DR_DISABLE): Likewise.
2520 (I386_DR_SET_RW_LEN): Likewise.
2521 (I386_DR_GET_RW_LEN): Likewise.
2522 (I386_DR_WATCH_HIT): Likewise.
2523 (i386_wp_op_t): Likewise.
2524 (i386_show_dr): Likewise.
2525 (i386_length_and_rw_bits): Likewise.
2526 (i386_insert_aligned_watchpoint): Likewise.
2527 (i386_remove_aligned_watchpoint): Likewise.
2528 (i386_handle_nonaligned_watchpoint): Likewise.
2529 (i386_update_inferior_debug_regs): Likewise.
2530 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2531 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2532 (i386_region_ok_for_watchpoint):
2533 Use i386_dr_region_ok_for_watchpoint.
2534 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2536 2014-06-19 Gary Benson <gbenson@redhat.com>
2538 * i386-nat.c (i386_insert_hw_breakpoint): Use
2539 i386_insert_watchpoint.
2540 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2542 2014-06-19 Gary Benson <gbenson@redhat.com>
2544 * i386-nat.c (i386_dr_show): Renamed to
2545 i386_show_dr and made static. All uses updated.
2546 (i386_dr_length_and_rw_bits): Renamed to
2547 i386_length_and_rw_bits and made static.
2549 (i386_dr_insert_aligned_watchpoint): Renamed to
2550 i386_insert_aligned_watchpoint and made static.
2552 (i386_dr_remove_aligned_watchpoint): Renamed to
2553 i386_remove_aligned_watchpoint and made static.
2555 (i386_dr_update_inferior_debug_regs): Renamed to
2556 i386_update_inferior_debug_regs and made static.
2558 * nat/i386-dregs.h (i386_dr_show): Removed.
2559 (i386_dr_length_and_rw_bits): Likewise.
2560 (i386_dr_insert_aligned_watchpoint): Likewise.
2561 (i386_dr_remove_aligned_watchpoint): Likewise.
2562 (i386_dr_update_inferior_debug_regs): Likewise.
2564 2014-06-19 Gary Benson <gbenson@redhat.com>
2566 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2567 * configure: Regenerate.
2568 * config.in: Likewise.
2569 * main.c (signal.h): New include.
2570 (setup_alternate_signal_stack): New function.
2571 (captured_main): Call the above.
2572 * cp-support.c (signal.h): New include.
2573 (catch_demangler_crashes): New flag.
2574 (SIGJMP_BUF): New define.
2575 (SIGSETJMP): Likewise.
2576 (SIGLONGJMP): Likewise.
2577 (gdb_demangle_jmp_buf): New static global.
2578 (gdb_demangle_attempt_core_dump): Likewise.
2579 (gdb_demangle_signal_handler): New function.
2580 (gdb_demangle): If catch_demangler_crashes is set, install the
2581 above signal handler before calling bfd_demangle, and restore
2582 the original signal handler afterwards. Display the offending
2583 symbol and call demangler_warning the first time a segmentation
2585 (_initialize_cp_support): New maint set/show command.
2587 2014-06-19 Gary Benson <gbenson@redhat.com>
2589 * utils.h (resource_limit_kind): New enum.
2590 (can_dump_core): New declaration.
2591 (warn_cant_dump_core): Likewise.
2592 (dump_core): Likewise.
2593 * utils.c (dump_core): Made nonstatic. Added new
2594 parameter "limit_kind".
2595 (can_dump_core): Made nonstatic. Moved printing code to...
2596 (warn_cant_dump_core): New function.
2597 (can_dump_core_warn): Likewise.
2598 (internal_vproblem): Replace calls to can_dump_core with
2599 calls to can_dump_core_warn. Supply new argument to each.
2601 2014-06-19 Gary Benson <gbenson@redhat.com>
2603 * utils.h (demangler_vwarning): New declaration.
2604 (demangler_warning): Likewise.
2605 * utils.c (struct internal_problem)
2606 <user_settable_should_quit>: New field.
2607 <user_settable_should_dump_core>: Likewise
2608 (internal_error_problem): Add values for above new fields.
2609 (internal_warning_problem): Likewise.
2610 (demangler_warning_problem): New static global.
2611 (demangler_vwarning): New function.
2612 (demangler_warning): Likewise.
2613 (add_internal_problem_command): Selectively add commands.
2614 (_initialize_utils): New internal problem command.
2615 * maint.c (maintenance_demangler_warning): New function.
2616 (_initialize_maint_cmds): New command.
2618 2014-06-18 Tom Tromey <tromey@redhat.com>
2620 * f-valprint.c (info_common_command_for_block): Update.
2621 * symtab.h (struct general_symbol_info) <common_block>: Now
2624 2014-06-18 Tom Tromey <tromey@redhat.com>
2626 * symtab.h (struct symtab) <blockvector>: Now const.
2627 * ada-lang.c (ada_add_global_exceptions): Update.
2628 * buildsym.c (augment_type_symtab): Update.
2629 * dwarf2read.c (dw2_lookup_symbol): Update.
2630 * jit.c (finalize_symtab): Update.
2631 * jv-lang.c (add_class_symtab_symbol): Update.
2632 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2634 * objfiles.c (objfile_relocate1): Update.
2635 * psymtab.c (lookup_symbol_aux_psymtabs)
2636 (maintenance_check_psymtabs): Update.
2637 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2639 * spu-tdep.c (spu_catch_start): Update.
2640 * symmisc.c (dump_symtab_1): Update.
2641 * symtab.c (lookup_global_symbol_from_objfile)
2642 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2643 (basic_lookup_transparent_type_quick)
2644 (basic_lookup_transparent_type, find_pc_sect_symtab)
2645 (find_pc_sect_line, search_symbols): Update.
2646 * block.c (find_block_in_blockvector): Make "bl" const.
2647 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2649 (blockvector_contains_pc): Make "bv" const.
2650 (block_for_pc_sect): Update.
2651 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2652 (blockvector_contains_pc): Update.
2653 * breakpoint.c (resolve_sal_pc): Update.
2654 * inline-frame.c (block_starting_point_at): Update.
2656 2014-06-18 Tom Tromey <tromey@redhat.com>
2658 * completer.c (complete_line): Make "line_buffer" const.
2659 * completer.h (complete_line): Update.
2661 2014-06-18 Tom Tromey <tromey@redhat.com>
2663 * symtab.c (add_macro_name): Remove unneeded cast.
2665 2014-06-18 Tom Tromey <tromey@redhat.com>
2667 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2668 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2670 2014-06-18 Tom Tromey <tromey@redhat.com>
2672 * probe.c (info_probes_for_ops): Make "arg" const.
2673 * probe.h (info_probes_for_ops): Update.
2675 2014-06-18 Tom Tromey <tromey@redhat.com>
2677 * varobj.c (varobj_create): Update.
2678 * valops.c (value_of_this): Update.
2679 * tracepoint.c (add_local_symbols, scope_info): Update.
2680 * symtab.h (struct general_symbol_info) <block>: Now const.
2681 * symtab.c (skip_prologue_sal)
2682 (default_make_symbol_completion_list_break_on)
2683 (skip_prologue_using_sal): Update.
2684 * stack.h (iterate_over_block_locals)
2685 (iterate_over_block_local_vars): Update.
2686 * stack.c (print_frame_args): Update.
2687 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2689 (get_selected_block): Make return type const.
2690 * python/py-frame.c (frapy_block): Update.
2691 * python/py-block.c (gdbpy_block_for_pc): Update.
2692 * p-exp.y (%union) <bval>: Now const.
2693 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2694 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2695 * m2-exp.y (%union) <bval>: Now const.
2696 * linespec.c (get_current_search_block): Make return type const.
2697 (create_sals_line_offset, find_label_symbols): Update.
2698 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2700 (block_starting_point_at): Make "block" const.
2701 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2702 (check_exception_resume): Update.
2703 * guile/scm-frame.c (gdbscm_frame_block): Update.
2704 * guile/scm-block.c (gdbscm_lookup_block): Update.
2705 * frame.h (get_frame_block): Update.
2706 (get_selected_block): Make return type const.
2707 * frame.c (frame_id_inner): Update.
2708 * f-valprint.c (info_common_command_for_block)
2709 (info_common_command): Update.
2710 * dwarf2loc.c (dwarf2_find_location_expression)
2711 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2712 (locexpr_describe_location_piece): Update.
2713 * c-exp.y (%union) <bval>: Now const.
2714 * breakpoint.c (resolve_sal_pc): Update.
2715 * blockframe.c (get_frame_block):Make return type const.
2716 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2717 (block_innermost_frame): Update.
2718 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2719 (block_for_pc, block_for_pc_sect): Update.
2720 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2722 (block_for_pc_sect, block_for_pc): Make return type const.
2723 * ax-gdb.c (gen_expr): Update.
2724 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2725 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2726 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2727 (ada_read_var_value): Update.
2728 * ada-exp.y (struct name_info) <block>: Now const.
2730 (block_lookup): Constify.
2732 2014-06-18 Gary Benson <gbenson@redhat.com>
2734 * nat/i386-dregs.h: New file.
2735 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2736 * i386-nat.h (i386-dregs.h): New include.
2737 (DR_FIRSTADDR): Now in i386-dregs.h.
2738 (DR_LASTADDR): Likewise.
2739 (DR_NADDR): Likewise.
2740 (DR_STATUS): Likewise.
2741 (DR_CONTROL): Likewise.
2742 (i386_debug_reg_state): Likewise.
2743 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2745 2014-06-18 Don Breazeal <donb@codesourcery.com>
2747 * breakpoint.c (set_longjmp_breakpoint): Call
2748 momentary_breakpoint_from_master with additional argument.
2749 (set_longjmp_breakpoint_for_call_dummy): Call
2750 momentary_breakpoint_from_master with additional argument.
2751 (set_std_terminate_breakpoint): Call
2752 momentary_breakpoint_from_master with additional argument.
2753 (momentary_breakpoint_from_master): Add argument to function
2754 definition and use it to initialize structure member flag.
2755 (clone_momentary_breakpoint): Call
2756 momentary_breakpoint_from_master with additional argument.
2757 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2758 member flags set in momentary_breakpoint_from_master.
2760 2014-06-18 Gary Benson <gbenson@redhat.com>
2762 * i386-nat.c (i386_show_dr): Renamed to
2763 i386_dr_show and made nonstatic. All uses updated.
2764 (i386_length_and_rw_bits): Renamed to
2765 i386_dr_length_and_rw_bits and made nonstatic.
2767 (i386_insert_aligned_watchpoint): Renamed to
2768 i386_dr_insert_aligned_watchpoint and made nonstatic.
2770 (i386_remove_aligned_watchpoint): Renamed to
2771 i386_dr_remove_aligned_watchpoint and made nonstatic.
2773 (i386_update_inferior_debug_regs): Renamed to
2774 i386_dr_update_inferior_debug_regs and made nonstatic.
2777 2014-06-18 Gary Benson <gbenson@redhat.com>
2779 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2780 (i386_dr_low_can_set_control): Likewise.
2781 (i386_dr_low_set_addr): Likewise.
2782 (i386_dr_low_set_control): Likewise.
2783 (i386_dr_low_get_addr): Likewise.
2784 (i386_dr_low_get_status): Likewise.
2785 (i386_dr_low_get_control): Likewise.
2786 (i386_insert_aligned_watchpoint): Use new macros.
2787 (i386_update_inferior_debug_regs): Likewise.
2788 (i386_stopped_data_address): Likewise.
2790 2014-06-18 Gary Benson <gbenson@redhat.com>
2792 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2793 New parameter. All uses updated.
2795 2014-06-18 Gary Benson <gbenson@redhat.com>
2797 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2800 2014-06-18 Gary Benson <gbenson@redhat.com>
2802 * i386-nat.c (debug_printf): New macro.
2803 (i386_get_debug_register_length): Likewise.
2804 (TARGET_HAS_DR_LEN_8): Use above macro.
2805 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2806 and printf_unfiltered. Use phex to format values.
2808 2014-06-18 Gary Benson <gbenson@redhat.com>
2810 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2813 2014-06-18 Gary Benson <gbenson@redhat.com>
2815 * i386-nat.c: Comment changes.
2817 2014-06-18 Gary Benson <gbenson@redhat.com>
2819 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2821 2014-06-18 Gary Benson <gbenson@redhat.com>
2823 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2824 (i386_insert_aligned_watchpoint): Likewise.
2825 (i386_remove_aligned_watchpoint): Likewise.
2826 (i386_handle_nonaligned_watchpoint): Likewise.
2828 2014-06-18 Gary Benson <gbenson@redhat.com>
2830 * i386-nat.c: Whitespace changes.
2832 2014-06-17 Samuel Bronson <naesten@gmail.com>
2834 * MAINTAINERS: Update Roland McGrath's email address.
2835 Thanks to Sergio Durigan Junior for pointing out that he left
2836 Red Hat a while ago, and giving me a current address.
2838 2014-06-17 Tom Tromey <tromey@redhat.com>
2840 * utils.h (savestring): Remove declaration.
2842 2014-06-17 Tom Tromey <tromey@redhat.com>
2844 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2846 2014-06-16 Keith Seitz <keiths@redhat.com>
2849 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2850 to update the varobj if inferior_ptid is null_ptid.
2852 2014-06-16 Tom Tromey <tromey@redhat.com>
2854 * target.h (struct target_ops) <to_info_proc>: Make parameter
2856 (target_info_proc): Update.
2857 * target.c (target_info_proc): Make "args" const.
2858 * procfs.c (procfs_info_proc): Update.
2859 * linux-tdep.c (linux_info_proc): Update.
2860 (linux_core_info_proc_mappings): Make "args" const.
2861 (linux_core_info_proc): Update.
2862 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2863 * gdbarch.c: Rebuild.
2864 * gdbarch.h: Rebuild.
2865 * corelow.c (core_info_proc): Update.
2867 2014-06-16 Tom Tromey <tromey@redhat.com>
2869 * target.h (struct target_ops) <to_disconnect>: Make parameter
2871 (target_disconnect): Update.
2872 * target.c (target_disconnect): Make "args" const.
2873 * target-delegates.c: Rebuild.
2874 * remote.c (remote_disconnect): Update.
2875 * record.h (record_disconnect): Update.
2876 * record.c (record_disconnect): Update.
2877 * inf-child.c (inf_child_disconnect): Update.
2879 2014-06-16 Tom Tromey <tromey@redhat.com>
2881 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2882 * target.c (debug_to_rcmd, default_rcmd): Update.
2883 * target-delegates.c: Rebuild.
2884 * remote.c (remote_rcmd): Update.
2885 * monitor.c (monitor_rcmd): Update.
2887 2014-06-16 Pedro Alves <palves@redhat.com>
2889 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2890 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2891 have OBJF_SHARED set.
2892 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2893 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2894 instead of OBJF_USERLOADED.
2895 * objfiles.h (OBJF_SHARED): Update comment.
2896 (userloaded_objfile_contains_address_p): Rename to ...
2897 (shared_objfile_contains_address_p): ... this, and update
2899 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2901 (remove_symbol_file_command): Skip objfiles that don't have
2904 2014-06-16 Tom Tromey <tromey@redhat.com>
2906 * minsyms.h (prim_record_minimal_symbol)
2907 (prim_record_minimal_symbol_and_info): Update comments.
2909 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2911 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2912 or --without-guile, according to how GDB was built.
2914 2014-06-13 Tom Tromey <tromey@redhat.com>
2916 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2918 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2920 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2922 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2923 help_list.Pass all_commands, not -1, to help_list.
2924 * cli/cli-dump.c (dump_command, append_command)
2925 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2926 (binary_dump_command, binary_append_command): Pass all_commands,
2927 not -1, to help_list.
2928 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2930 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2932 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2934 * top.c (set_history): Pass all_commands, not -1, to help_list.
2935 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2936 all_commands, not -1, to help_list.
2937 * symfile.c (overlay_command): Pass all_commands, not -1, to
2939 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2941 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2943 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2945 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2946 not -1, to help_list.
2947 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2948 not -1, to help_list.
2949 * maint.c (maintenance_command, maintenance_info_command)
2950 (maintenance_print_command, maintenance_set_cmd): Pass
2951 all_commands, not -1, to help_list.
2952 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2954 * language.c (set_check): Pass all_commands, not -1, to help_list.
2955 * infcmd.c (unset_command): Pass all_commands, not -1, to
2957 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2959 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2961 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2963 * breakpoint.c (save_command): Pass all_commands, not -1, to
2965 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2966 all_commands, not -1, to help_list.
2968 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2970 * regcache.c (struct register_to_invalidate): New structure.
2971 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2973 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2975 2014-06-12 Yao Qi <yao@codesourcery.com>
2977 * varobj.c (varobj_get_num_children): Call
2978 varobj_is_dynamic_p.
2979 (varobj_list_children): Likewise.
2980 (varobj_update): Likewise. Update comments.
2982 2014-06-12 Yao Qi <yao@codesourcery.com>
2984 * varobj.c (varobj_pretty_printed_p): Rename to ...
2985 (varobj_is_dynamic_p): ... this. New function.
2986 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2987 (varobj_is_dynamic_p): Declare.
2988 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2989 (mi_print_value_p, varobj_update_one): Likewise.
2991 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2992 Yao Qi <yao@codesourcery.com>
2994 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2995 (varobj_get_iterator): Wrap up code for pretty-printer by
2996 "#if HAVE_PYTHON" and "#endif".
2997 (update_dynamic_varobj_children): Likewise.
2999 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3000 Yao Qi <yao@codesourcery.com>
3002 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3003 gdb_python_initialized is false. Move some code from varobj.c.
3004 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3005 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3006 (struct varobj_item): Moved to varobj-iter.h".
3007 (varobj_clear_saved_item): New function.
3008 (update_dynamic_varobj_children): Move python-related code to
3010 (free_variable): Call varobj_clear_saved_item and
3013 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3014 Yao Qi <yao@codesourcery.com>
3016 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3017 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3018 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3019 (py-varobj.o): New rule.
3020 * python/py-varobj.c: New file.
3021 * python/python-internal.h (py_varobj_get_iterator): Declare.
3022 * varobj-iter.h: New file.
3023 * varobj.c: Include "varobj-iter.h"
3024 (struct varobj) <child_iter>: Change its type from "PyObject *"
3025 to "struct varobj_iter *".
3026 <saved_item>: Likewise.
3027 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3028 [HAVE_PYTHON] (varobj_get_iterator): New function.
3029 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3030 python-specific code to python/py-varobj.c.
3031 (install_visualizer): Call varobj_iter_delete instead of
3033 * varobj.h (varobj_ensure_python_env): Declare.
3035 2014-06-12 Yao Qi <yao@codesourcery.com>
3037 * varobj.c (struct varobj_item): New structure.
3038 (create_child_with_value): Update declaration.
3039 (varobj_add_child): Replace arguments 'name' and 'value' with
3040 'item'. All callers updated.
3041 (install_dynamic_child): Likewise.
3042 (update_dynamic_varobj_children): Likewise.
3043 (varobj_add_child): Likewise.
3044 (create_child_with_value): Likewise.
3046 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3048 * NEWS: Create a new section for the next release branch.
3049 Rename the section of the current branch, now that it has
3052 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3054 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3055 * version.in: Bump version to 7.8.50.DATE-cvs.
3057 2014-06-11 Pedro Alves <palves@redhat.com>
3060 * ser-mingw.c (net_windows_socket_check_pending): New function.
3061 (net_windows_select_thread): Ignore spurious wakeups. Use
3062 net_windows_socket_check_pending.
3063 (net_windows_wait_handle): Check for pending events with
3064 ioctlsocket, through net_windows_socket_check_pending, instead of
3065 checking the socket's event.
3067 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3069 * python/python-internal.h (gdb_PyObject_GetAttrString)
3070 (gdb_PyObject_HasAttrString): New inline function definitions.
3071 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3072 char * of the second argument to PyObject_GetAttrString.
3074 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3076 * serial.c (serial_write): Fix index of character to be printed
3077 in call to serial_logchar when serial debug traces are enabled.
3079 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3081 * gdbtypes (resolve_dynamic_range): Add function description.
3083 2014-06-09 Pedro Alves <palves@redhat.com>
3085 * linux-nat.c (linux_child_follow_fork): Initialize status with
3086 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3087 inner block. Only pass the signal to PTRACE_DETACH if in pass
3090 2014-06-09 Gary Benson <gbenson@redhat.com>
3092 * common/signals.c (gdb_signal_from_host): Reorder to separate
3093 the always-available ANSI-standard signals from the signals that
3095 (do_gdb_signal_to_host): Likewise.
3096 * proc-events.c (signal_table): Likewise.
3098 2014-06-08 Hui Zhu <hui@codesourcery.com>
3100 * common/linux-ptrace.c (linux_disable_event_reporting): New
3102 * common/linux-ptrace.h (linux_disable_event_reporting): New
3104 * linux-nat.c (linux_child_follow_fork): Do a single step before
3107 2014-06-07 Keith Seitz <keiths@redhat.com>
3111 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3112 from symbol_matches_domain in symtab.c. All local callers
3113 of symbol_matches_domain updated.
3114 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3115 search STRUCT_DOMAIN.
3116 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3117 independently. standard_lookup will do that automatically.
3118 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3119 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3120 (cp_lookup_symbol_in_namespace): Likewise.
3121 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3122 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3123 may return a STRUCT_DOMAIN match.
3124 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3125 * cp-support.c: Include language.h.
3126 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3128 * psymtab.c (match_partial_symbol): Compare the requested
3129 domain with the symbol's domain directly.
3130 (lookup_partial_symbol): Likewise.
3131 * symtab.c (lookup_symbol_in_language): Explain when/why
3132 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3133 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3134 appropriate languages.
3135 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3136 and moved to ada-lang.c
3137 (lookup_block_symbol): Explain that this function only returns
3138 symbol matching the requested DOMAIN.
3139 Compare the requested domain with the symbol's domain directly.
3140 (iterate_over_symbols): Compare the requested domain with the
3141 symbol's domain directly.
3142 * symtab.h (symbol_matches_domain): Remove.
3144 2014-06-06 Doug Evans <xdje42@gmail.com>
3146 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3147 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3148 (gdbscm_guile_version_is_at_least): Declare.
3149 (gdbscm_scm_string_to_int): Declare.
3150 * guile/guile.c (gdbscm_guile_major_version): New global.
3151 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3152 (guile_datadir): New static global.
3153 (gdbscm_guile_data_directory): New function.
3154 (initialize_scheme_side): Update.
3155 (misc_guile_functions): Add guile-data-directory.
3156 (initialize_gdb_module): Fetch guile version number.
3157 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3158 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3159 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3160 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3162 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3163 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3164 * guile/scm-value.c (gdbscm_value_to_string): Only call
3165 scm_port_conversion_strategy if Guile version >= 2.0.6.
3167 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3169 * main.c (print_gdb_help): Add -q and --silent.
3171 2014-06-06 Gary Benson <gbenson@redhat.com>
3173 * common/signals.c: Remove preprocessor conditionals for
3174 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3175 SIGSEGV and SIGTERM.
3176 * proc-events.c: Likewise.
3178 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3180 * symfile.c (symfile_free_objfile): Remove restriction to
3182 * symfile-mem.c (symbol_file_add_from_memory): Call
3183 add_target_sections_of_objfile.
3185 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3187 * guile/scm-value.c (gdbscm_history_append_x): Use
3188 'vlscm_get_value_smob_arg_unsafe' instead of
3189 'vlscm_scm_to_value'.
3191 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3194 * utils.c (printchar): Don't escape at all if quoter is NUL.
3195 Update function documentation to clarify effect of parameter
3197 * remote.c (escape_buffer): Pass '\\' as the quoter to
3198 fputstrn_unfiltered.
3199 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3200 generate the output.
3201 (mi_solib_unloaded): Same.
3203 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3205 * development.sh: Delete.
3206 * Makefile.in (config.status): Adjust dependency on development.sh.
3207 * configure.ac: Adjust development.sh source call.
3208 * configure: Regenerate.
3210 2014-06-04 Doug Evans <xdje42@gmail.com>
3212 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3213 is_scheme_bkpt, spec.
3214 (bpscm_make_breakpoint_smob): Initialize new members.
3215 (gdbscm_create_breakpoint_x): Split into two ...
3216 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3217 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3218 (scheme_function breakpoint_functions): Update.
3219 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3220 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3221 register-breakpoint!.
3223 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3226 * mem-break.c (z_type_supported): Return zero if
3227 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3229 2014-06-04 Tom Tromey <tromey@redhat.com>
3231 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3232 value_from_contents_and_address_unresolved.
3233 (ada_template_to_fixed_record_type_1): Likewise.
3234 (ada_which_variant_applies): Likewise.
3235 * value.h (value_from_contents_and_address_unresolved): Declare.
3236 * value.c (value_from_contents_and_address_unresolved): New
3238 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3239 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3240 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3242 2014-06-04 Tom Tromey <tromey@redhat.com>
3244 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3246 2014-06-04 Tom Tromey <tromey@redhat.com>
3248 * procfs.c (procfs_attach): Make "args" const.
3249 * windows-nat.c (windows_attach): Make "args" const.
3250 * nto-procfs.c (procfs_attach): Make "args" const.
3251 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3252 * go32-nat.c (go32_attach): Make "args" const.
3253 * gnu-nat.c (gnu_attach): Make "args" const.
3254 * darwin-nat.c (darwin_attach): Make "args" const.
3255 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3256 * linux-nat.c (linux_nat_attach): Make "args" const.
3257 * remote.c (extended_remote_attach_1, extended_remote_attach):
3259 * target.h (struct target_ops) <to_attach>: Make "args" const.
3260 (find_default_attach): Likewise.
3261 * utils.c (parse_pid_to_attach): Make "args" const.
3262 * utils.h (parse_pid_to_attach): Update.
3264 2014-06-04 Tom Tromey <tromey@redhat.com>
3266 * target-delegates.c: Rebuild.
3267 * target.c (default_thread_address_space): New function.
3268 (target_thread_address_space): Simplify.
3269 * target.h (struct target_ops) <to_thread_address_space>: Add
3270 TARGET_DEFAULT_FUNC.
3272 2014-06-04 Doug Evans <xdje42@gmail.com>
3274 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3276 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3278 * record-btrace.c: Include event-loop.h and inf-loop.h.
3279 (record_btrace_resume_exec_dir)
3280 (record_btrace_async_inferior_event_handler)
3281 (record_btrace_handle_async_inferior_event): New.
3282 (record_btrace_open): Create async event handler.
3283 (record_btrace_close): Delete async event handler.
3284 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3285 Mark async event handler.
3286 (record_btrace_execution_direction): New.
3287 (init_record_btrace_ops): Initialize to_execution_direction.
3289 2014-06-03 Doug Evans <xdje42@gmail.com>
3291 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3292 (gdbscm_make_parameter): Ditto.
3294 2014-06-03 Doug Evans <dje@google.com>
3296 * exec.c (exec_close_1): Call clear_section_table instead of
3297 resize_section_table.
3298 (clear_section_table): New function.
3299 (resize_section_table): Make static. Rename arg num_added to
3301 * exec.h (clear_section_table): Declare.
3302 (resize_section_table): Delete.
3303 * progspace.c (release_program_space): Call clear_section_table
3304 instead of resize_section_table.
3306 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3308 * NEWS (Python Scripting): Add entry about the new xmethods
3311 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3313 * python/py-xmethods.c: New file.
3314 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3315 (objfpy_dealloc): XDECREF on the new xmethods field.
3316 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3318 (objfpy_get_xmethods): New function.
3319 (objfile_getset): New entry 'xmethods'.
3320 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3321 (pspy_dealloc): XDECREF on the new xmethods field.
3322 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3324 (pspy_get_xmethods): New function.
3325 (pspace_getset): New entry 'xmethods'.
3326 * python/python-internal.h: Add declarations for new functions.
3327 * python/python.c (_initialize_python): Invoke
3328 gdbpy_initialize_xmethods.
3329 * python/lib/gdb/__init__.py (xmethods): New
3331 * python/lib/gdb/xmethod.py: New file.
3332 * python/lib/gdb/command/xmethods.py: New file.
3334 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3336 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3337 best match method returned by find_overload_match is an xmethod.
3338 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3339 the best matching operator returned by find_overload_match is an
3341 * valops.c: #include "extension.h".
3342 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3343 Return void. The list of matching source methods is returned in
3344 "fn_list" and a vector of matching debug method workers is
3345 returned in "xm_worker_vec". Update all callers.
3346 (value_find_oload_method_list): Likewise.
3347 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3348 non-NULL, then the index of the best matching method in this
3349 vector is returned. Update all callers.
3350 (find_overload_match): Include xmethods while performing overload
3353 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3355 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3356 * extension-priv.h (struct extension_language_ops): Add the
3358 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3359 get_matching_xmethod_workers, get_xmethod_argtypes,
3360 invoke_xmethod, free_xmethod_worker,
3361 free_xmethod_worker_vec): New functions.
3362 * extension.h: #include "common/vec.h".
3363 New function declarations.
3364 (struct xmethod_worker): New struct.
3365 (VEC (xmethod_worker_ptr)): New vector type.
3366 (xmethod_worker_ptr): New typedef.
3367 (xmethod_worker_vec): Likewise.
3368 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3370 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3371 (struct builtin_type): New field "xmethod".
3372 * valarith.c (value_ptradd): Assert that the value argument is not
3374 * valops.c (value_must_coerce_to_target): Return 0 for
3375 lval_xcallable values.
3376 * value.c (struct value): New field XM_WORKER in the field
3378 (value_address, value_raw_address): Return 0 for lval_xcallable
3380 (set_value_address): Assert that the value is not an
3382 (value_free): Free the associated xmethod worker when freeing
3383 lval_xcallable values.
3384 (set_value_component_location): Assert that the WHOLE value is not
3386 (value_of_xmethod, call_xmethod): New functions.
3387 * value.h: Declare "struct xmethod_worker".
3388 Declare new functions value_of_xmethod, call_xmethod.
3390 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3391 Pedro Alves <palves@redhat.com>
3393 PR breakpoints/17000
3394 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3395 New function, extracted from software_breakpoint_inserted_here_p.
3396 (software_breakpoint_inserted_here_p): Replace factored out code
3397 by call to find_non_raw_software_breakpoint_inserted_here.
3398 (bp_target_info_copy_insertion_state): New function.
3399 (bkpt_insert_location): Handle the case of a single-step
3400 breakpoint already inserted at the same address.
3401 (bkpt_remove_location): Handle the case of a single-step
3402 breakpoint still inserted at the same address.
3403 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3404 breakpoint already inserted at the same address.
3405 (deprecated_remove_raw_breakpoint): Handle the case of a
3406 non-raw breakpoint still inserted at the same address.
3407 (find_single_step_breakpoint): New function, extracted from
3408 single_step_breakpoint_inserted_here_p.
3409 (find_single_step_breakpoint): New function,
3410 factored out from single_step_breakpoint_inserted_here_p.
3411 (single_step_breakpoint_inserted_here_p): Reimplement.
3413 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3415 Pushed by Joel Brobecker <brobecker@adacore.com>
3416 * source.c (show_substitute_path_command): Fix display of matching
3419 2014-06-03 Gary Benson <gbenson@redhat.com>
3421 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3423 2014-06-02 Doug Evans <xdje42@gmail.com>
3425 Add parameter support for Guile.
3426 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3427 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3428 (scm-param.o): New rule.
3429 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3430 (gdbscm_misc_error): Declare.
3431 (gdbscm_canonicalize_command_name): Declare.
3432 (gdbscm_scm_to_host_string): Declare.
3433 (gdbscm_scm_from_host_string): Declare.
3434 (gdbscm_initialize_parameters): Declare.
3435 * guile/guile.c (initialize_gdb_module): Call
3436 gdbscm_initialize_parameters.
3437 * guile/lib/gdb.scm: Export parameter symbols.
3438 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3439 cmdscm_canonicalize_name and made public. All callers updated.
3440 * guile/scm-exception.c (gdbscm_misc_error): New function.
3441 * guile/scm-param.c: New file.
3442 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3443 (gdbscm_scm_to_host_string): New function.
3444 (gdbscm_scm_from_host_string): New function.
3445 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3447 2014-06-02 Doug Evans <xdje42@gmail.com>
3449 Add command support for Guile.
3450 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3451 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3452 (scm-cmd.o): New rule.
3453 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3454 (gdbscm_user_error_p): Declare.
3455 (gdbscm_parse_command_name): Declare.
3456 (gdbscm_valid_command_class_p): Declare.
3457 (gdbscm_initialize_commands): Declare.
3458 * guile/guile.c (initialize_gdb_module): Call
3459 gdbscm_initialize_commands.
3460 * guile/lib/gdb.scm: Export command symbols.
3461 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3462 (throw-user-error): New function.
3463 * guile/scm-cmd.c: New file.
3464 * guile/scm-exception.c (user_error_symbol): New static global.
3465 (gdbscm_user_error_p): New function.
3466 (gdbscm_initialize_exceptions): Set user_error_symbol.
3467 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3469 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3471 * top.c (command_loop): Handle comments here...
3472 (command_line_input): ... not here.
3474 2014-06-02 Doug Evans <xdje42@gmail.com>
3476 Add progspace support for Guile.
3477 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3478 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3479 (scm-progspace.o): New rule.
3480 * guile/guile-internal.h (pspace_smob): New typedef.
3481 (psscm_pspace_smob_pretty_printers): Declare.
3482 (psscm_pspace_smob_from_pspace): Declare.
3483 (psscm_scm_from_pspace): Declare.
3484 * guile/guile.c (initialize_gdb_module): Call
3485 gdbscm_initialize_pspaces.
3486 * guile/lib/gdb.scm: Export progspace symbols.
3487 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3489 (append-pretty-printer!): Ditto.
3490 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3492 * guile/scm-progspace.c: New file.
3494 2014-06-03 Alan Modra <amodra@gmail.com>
3496 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3497 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3499 2014-06-02 Doug Evans <dje@google.com>
3501 Add support for skeletonless type units.
3502 * dwarf2read.c (struct dwarf2_per_objfile): New member
3503 n_allocated_type_units.
3504 (struct dwarf2_per_objfile) <tu_stats>: New member
3505 nr_all_type_units_reallocs.
3506 (create_signatured_type_table_from_index): Initialize
3507 n_allocated_type_units
3508 (create_all_type_units): Ditto.
3509 (add_type_unit): Move up in file. New arg slot.
3510 All callers updated. Increase space for all_type_units more
3512 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3513 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3514 (lookup_dwp_signatured_type): Ditto.
3515 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3516 All callers updated.
3517 (build_type_psymtabs_1): Leave type_unit_groups as
3518 NULL if no TUs present.
3519 (print_tu_stats): New function.
3520 (process_skeletonless_type_unit): New function.
3521 (process_dwo_file_for_skeletonless_type_units): New
3523 (process_skeletonless_type_units): New function.
3524 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3525 Call print tu_stats if debugging enabled.
3527 2014-06-02 Pedro Alves <palves@redhat.com>
3529 * breakpoint.c (build_target_command_list): Don't build a command
3530 list if we have any duplicate location that isn't a dprintf.
3532 2014-06-02 Pedro Alves <palves@redhat.com>
3534 * breakpoint.c (dprintf_breakpoint_hit): New function.
3535 (initialize_breakpoint_ops): Install it as dprintf's
3536 breakpoint_hit method.
3538 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3540 * source.c (substitute_path_rule_matches): Simplify using
3541 filename_ncmp instead of FILENAME_CMP.
3543 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3545 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3547 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3549 * configure.ac: When Guile is available, check for the
3550 availability of 'scm_new_smob'.
3551 * configure, config.h.in: Regenerate.
3552 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3555 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3557 * frame.c (struct frame_info): Add stop_string field.
3558 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3559 (get_prev_frame_always): Old content moved into
3560 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3561 TRY_CATCH, handle MEMORY_ERROR exceptions.
3562 (frame_stop_reason_string): New function definition.
3563 * frame.h (unwind_stop_reason_to_string): Extend comment to
3564 mention frame_stop_reason_string.
3565 (frame_stop_reason_string): New function declaration.
3566 * stack.c (frame_info): Switch to frame_stop_reason_string.
3567 (backtrace_command_1): Switch to frame_stop_reason_string.
3568 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3569 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3570 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3572 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3574 * frame.c (frame_stop_reason_string): Rename to ...
3575 (unwind_stop_reason_to_string): this.
3576 * frame.h (frame_stop_reason_string): Rename to ...
3577 (unwind_stop_reason_to_string): this.
3578 * stack.c (frame_info): Update call to frame_stop_reason_string.
3579 (backtrace_command_1): Likewise.
3580 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3581 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3583 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3585 * frame.c (remove_prev_frame): New function.
3586 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3589 2014-05-29 Pedro Alves <palves@redhat.com>
3591 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3592 and make it const. When a single-step decays to a continue,
3593 clear 'step', not 'hw_step'. Pass whether the caller wanted
3594 to step to user_visible_resume_ptid, not what we ask the
3597 2014-05-29 Pedro Alves <palves@redhat.com>
3599 * infrun.c (process_event_stop_test, handle_step_into_function)
3600 (handle_step_into_function_backward): Adjust.
3601 Don't set the even thread's stop_step and call stop_waiting before
3602 calling end_stepping_range. Instead do that ...
3603 (end_stepping_range): ... here. Take an ecs pointer parameter.
3605 2014-05-29 Pedro Alves <palves@redhat.com>
3607 * infrun.c (stop_stepping): Rename to ...
3608 (stop_waiting): ... this.
3609 (proceed): Update comment.
3610 (process_event_stop_test, handle_inferior_event)
3611 (handle_signal_stop, handle_step_into_function)
3612 (handle_step_into_function_backward): Update.
3614 2014-05-29 Pedro Alves <palves@redhat.com>
3616 * infcall.c (run_inferior_call): Don't check whether the current
3617 thread is running after the proceed call.
3619 2014-05-29 Pedro Alves <palves@redhat.com>
3620 Tom Tromey <tromey@redhat.com>
3622 * NEWS: Mention "maint set target-async", "set mi-async", and that
3623 background execution commands are now always available.
3624 * target.h (target_async_permitted): Update comment.
3625 * target.c (target_async_permitted, target_async_permitted_1):
3627 (set_target_async_command): Rename to ...
3628 (maint_set_target_async_command): ... this.
3629 (show_target_async_command): Rename to ...
3630 (maint_show_target_async_command): ... this.
3631 (_initialize_target): Adjust.
3632 * infcmd.c (prepare_execution_command): Make extern.
3633 * inferior.h (prepare_execution_command): Declare.
3634 * infrun.c (set_observer_mode): Leave target async alone.
3635 * mi/mi-interp.c (mi_interpreter_init): Install
3636 mi_on_sync_execution_done as sync_execution_done observer.
3637 (mi_on_sync_execution_done): New function.
3638 (mi_execute_command_input_handler): Don't print the prompt if we
3639 just started a synchronous command with an async target.
3640 (mi_on_resume): Check sync_execution before printing prompt.
3641 * mi/mi-main.h (mi_async_p): Declare.
3642 * mi/mi-main.c: Include gdbcmd.h.
3643 (mi_async_p): New function.
3644 (mi_async, mi_async_1): New globals.
3645 (set_mi_async_command, show_mi_async_command, mi_async): New
3647 (exec_continue): Call prepare_execution_command.
3648 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3649 (mi_execute_async_cli_command): Use mi_async_p.
3650 (_initialize_mi_main): Install "set mi-async". Make
3651 "target-async" a deprecated alias.
3653 2014-05-29 Pedro Alves <palves@redhat.com>
3655 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3656 (_initialize_cli_interp): Adjust.
3657 * event-loop.c: Include "observer.h".
3658 (start_event_loop): Notify 'command_error' observers instead of
3659 calling display_gdb_prompt. Remove FIXME comment.
3660 * event-top.c (display_gdb_prompt): Remove call into the
3662 * inf-loop.c: Include "observer.h".
3663 (inferior_event_handler): Notify 'command_error' observers instead
3664 of calling display_gdb_prompt.
3665 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3666 observers instead of calling display_gdb_prompt.
3667 * interps.c (interp_set): Don't call display_gdb_prompt.
3668 (current_interp_display_prompt_p): Delete.
3669 * interps.h (interp_prompt_p): Delete declaration.
3670 (interp_prompt_p_ftype): Delete.
3671 (struct interp_procs) <prompt_proc_p>: Delete field.
3672 (current_interp_display_prompt_p): Delete declaration.
3673 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3674 (_initialize_mi_interp): Adjust.
3675 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3676 'command_error' observers.
3677 (tui_on_sync_execution_done, tui_on_command_error): New
3679 (tui_display_prompt_p): Delete.
3680 (_initialize_tui_interp): Adjust.
3682 2014-05-29 Pedro Alves <palves@redhat.com>
3685 * cli/cli-interp.c: Include infrun.h and observer.h.
3686 (cli_uiout, cli_interp): New globals.
3687 (cli_on_signal_received, cli_on_end_stepping_range)
3688 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3690 (cli_interpreter_init): Install them as 'end_stepping_range',
3691 'signal_received' 'signal_exited', 'exited' and 'no_history'
3693 (_initialize_cli_interp): Remove cli_interp local.
3694 * infrun.c (handle_inferior_event): Call the several stop reason
3695 observers instead of printing the stop reason directly.
3696 (end_stepping_range): New function.
3697 (print_end_stepping_range_reason, print_signal_exited_reason)
3698 (print_exited_reason, print_signal_received_reason)
3699 (print_no_history_reason): Make static, and add an uiout
3700 parameter. Print to that instead of to CURRENT_UIOUT.
3701 * infrun.h (print_end_stepping_range_reason)
3702 (print_signal_exited_reason, print_exited_reason)
3703 (print_signal_received_reason print_no_history_reason): New
3705 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3707 <cli_uiout>: New field.
3708 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3709 uiout for CLI output. Install 'signal_received',
3710 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3712 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3713 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3714 (mi_on_no_history): New functions.
3715 (ui_out_free_cleanup): Delete function.
3716 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3717 instead use the one already stored in the MI interpreter data.
3718 (mi_ui_out): Adjust.
3719 * tui/tui-interp.c: Include infrun.h and observer.h.
3720 (tui_interp): New global.
3721 (tui_on_signal_received, tui_on_end_stepping_range)
3722 (tui_on_signal_exited, tui_on_exited)
3723 (tui_on_no_history): New functions.
3724 (tui_init): Install them as 'end_stepping_range',
3725 'signal_received' 'signal_exited', 'exited' and 'no_history'
3727 (_initialize_tui_interp): Delete tui_interp local.
3729 2014-05-29 Pedro Alves <palves@redhat.com>
3732 * linux-nat.c (linux_nat_resume_callback): Rename the second
3733 parameter to 'except'. Skip LP if it points to EXCEPT.
3734 (linux_nat_resume): Don't mark the event lwp as not stopped
3735 before resuming sibling lwps. Instead ask
3736 linux_nat_resume_callback to skip the event lwp. Mark it as not
3737 stopped after actually resuming it.
3738 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3740 (wait_lwp): Mark the lwp as stopped here.
3741 (stop_wait_callback): Mark the lwp as not stopped right after
3742 resuming it. Don't mark lwps as stopped here.
3743 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3744 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3746 2014-05-29 Pedro Alves <palves@redhat.com>
3749 * infrun.c (resume): Determine how much to resume depending on
3750 whether the caller wanted a step, not whether we can hardware step
3751 the target. Mark all threads that we intend to run as running,
3752 unless we're calling an inferior function.
3753 (normal_stop): If the thread is running an infcall, don't finish
3755 * target.c (target_resume): Don't mark threads as running here.
3757 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3759 * serial.c (_initialize_serial): Remove support for
3760 the "set remotebaud" and "show remotebaud" commands.
3761 * NEWS: Add entry documenting the removal of that command.
3763 2014-05-28 Yao Qi <yao@codesourcery.com>
3765 * charset.c: Fix typo in comments.
3767 2014-05-27 Gary Benson <gbenson@redhat.com>
3769 * utils.c (internal_vproblem): Prompt for a bug report.
3771 2014-05-26 Andy Wingo <wingo@igalia.com>
3773 * guile/scm-arch.c (arscm_mark_arch_smob):
3774 * guile/scm-block.c (bkscm_mark_block_smob)
3775 (bkscm_mark_block_syms_progress_smob):
3776 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3777 * guile/scm-exception.c (exscm_mark_exception_smob):
3778 * guile/scm-frame.c (frscm_mark_frame_smob):
3779 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3780 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3781 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3782 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3783 (ppscm_mark_pretty_printer_worker_smob):
3784 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3785 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3786 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3787 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3789 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3792 2014-05-26 Andy Wingo <wingo@igalia.com>
3793 Doug Evans <xdje42@gmail.com>
3795 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3796 empty_base_class. All uses updated.
3797 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3798 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3800 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3801 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3802 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3803 (gdbscm_gsmob_has_property_p, add_property_name)
3804 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3805 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3806 (gdb-object-has-property?, gdb-object-properties): Remove.
3807 (gdb-object-kind): Renamed from gsmob-kind.
3809 2014-05-26 Andy Wingo <wingo@igalia.com>
3811 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3812 * configure: Regenerate.
3814 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3816 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3818 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3820 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3821 (replay_memory_access_read_only, replay_memory_access_read_write)
3822 (replay_memory_access_types, replay_memory_access)
3823 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3824 (cmd_set_record_btrace, cmd_show_record_btrace)
3825 (cmd_show_replay_memory_access): New.
3826 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3827 (record_btrace_remove_breakpoint): Replace
3828 record_btrace_allow_memory_access with replay_memory_access.
3829 (_initialize_record_btrace): Add commands.
3830 * NEWS: Announce it.
3832 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3834 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3836 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3838 * MAINTAINERS (Write After Approval): Move self back from
3841 2014-05-22 Pedro Alves <palves@redhat.com>
3843 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3844 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3845 (disable_randomization, enum exec_direction_kind)
3846 (execution_direction, stop_registers, start_remote)
3847 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3848 (wait_for_inferior, normal_stop, get_last_target_status)
3849 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3850 (insert_step_resume_breakpoint_at_sal)
3851 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3852 (set_step_info, print_stop_event, signal_stop_state)
3853 (signal_print_state, signal_pass_state, signal_stop_update)
3854 (signal_print_update, signal_pass_update)
3855 (update_signals_program_target, clear_exit_convenience_vars)
3856 (displaced_step_dump_bytes, update_observer_mode)
3857 (signal_catch_update, gdb_signal_from_command): Move
3859 * infrun.h: ... to this new file.
3860 * amd64-tdep.c: Include infrun.h.
3861 * annotate.c: Include infrun.h.
3862 * arch-utils.c: Include infrun.h.
3863 * arm-linux-tdep.c: Include infrun.h.
3864 * arm-tdep.c: Include infrun.h.
3865 * break-catch-sig.c: Include infrun.h.
3866 * breakpoint.c: Include infrun.h.
3867 * common/agent.c: Include infrun.h instead of inferior.h.
3868 * corelow.c: Include infrun.h.
3869 * event-top.c: Include infrun.h.
3870 * go32-nat.c: Include infrun.h.
3871 * i386-tdep.c: Include infrun.h.
3872 * inf-loop.c: Include infrun.h.
3873 * infcall.c: Include infrun.h.
3874 * infcmd.c: Include infrun.h.
3875 * infrun.c: Include infrun.h.
3876 * linux-fork.c: Include infrun.h.
3877 * linux-nat.c: Include infrun.h.
3878 * linux-thread-db.c: Include infrun.h.
3879 * monitor.c: Include infrun.h.
3880 * nto-tdep.c: Include infrun.h.
3881 * procfs.c: Include infrun.h.
3882 * record-btrace.c: Include infrun.h.
3883 * record-full.c: Include infrun.h.
3884 * remote-m32r-sdi.c: Include infrun.h.
3885 * remote-mips.c: Include infrun.h.
3886 * remote-notif.c: Include infrun.h.
3887 * remote-sim.c: Include infrun.h.
3888 * remote.c: Include infrun.h.
3889 * reverse.c: Include infrun.h.
3890 * rs6000-tdep.c: Include infrun.h.
3891 * s390-linux-tdep.c: Include infrun.h.
3892 * solib-irix.c: Include infrun.h.
3893 * solib-osf.c: Include infrun.h.
3894 * solib-svr4.c: Include infrun.h.
3895 * target.c: Include infrun.h.
3896 * top.c: Include infrun.h.
3897 * windows-nat.c: Include infrun.h.
3898 * mi/mi-interp.c: Include infrun.h.
3899 * mi/mi-main.c: Include infrun.h.
3900 * python/py-threadevent.c: Include infrun.h.
3902 2014-05-22 Pedro Alves <palves@redhat.com>
3904 * infrun.c (handle_inferior_event): Store the exit code for
3905 --return-child-result here, instead of ...
3906 (print_exited_reason): ... here.
3908 2014-05-21 Pedro Alves <palves@redhat.com>
3911 * gdbthread.h (struct thread_control_state): New field
3913 * infrun.c (follow_fork): Copy the new thread control field to the
3915 (clear_proceed_status_thread): Clear the new thread control field.
3916 (proceed): Set the new thread control field.
3917 * interps.h (command_interp): Declare.
3918 * interps.c (command_interpreter): New global.
3919 (command_interp): New function.
3920 (interp_exec): Set `command_interpreter' while here.
3921 * cli-out.c (cli_uiout_dtor): New function.
3922 (cli_ui_out_impl): Install it.
3923 * mi/mi-interp.c: Include cli-out.h.
3924 (mi_cmd_interpreter_exec): Add comment.
3925 (restore_current_uiout_cleanup): New function.
3926 (ui_out_free_cleanup): New function.
3927 (mi_on_normal_stop): If finishing an execution command started by
3928 a CLI command, or any kind of breakpoint-like event triggered,
3929 print the stop event to the output (CLI) stream.
3930 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3932 2014-05-21 Pedro Alves <palves@redhat.com>
3934 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3935 current source line having changed.
3936 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3937 * infrun.c (normal_stop): Adjust call to
3938 set_current_sal_from_frame.
3939 * source.c (clear_lines_listed_range): New function.
3940 (set_current_source_symtab_and_line, identify_source_line): Clear
3941 the lines listed range.
3942 (line_info): Handle the first "info line" after the current source
3943 line having changed.
3944 * stack.c (print_stack_frame): Remove center handling.
3945 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3948 2014-05-21 Pedro Alves <palves@redhat.com>
3950 * inf-child.c (inf_child_mourn_inferior): New function.
3951 * inf-child.h (inf_child_mourn_inferior): New declaration.
3952 * darwin-nat.c (darwin_mourn_inferior): Use
3953 inf_child_mourn_inferior.
3954 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3955 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3956 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3957 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3958 * windows-nat.c (windows_mourn_inferior): Likewise.
3960 2014-05-21 Doug Evans <xdje42@gmail.com>
3962 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3964 2014-05-21 Doug Evans <xdje42@gmail.com>
3966 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3967 (gdbscm_out_of_range_error): Ditto.
3968 (gdbscm_memory_error): Ditto.
3969 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3970 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3971 (gdbscm_out_of_range_error): Update.
3972 (gdbscm_memory_error): Update.
3973 (gdbscm_scm_to_target_string_unsafe): Delete.
3975 2014-05-21 Pedro Alves <palves@redhat.com>
3977 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3979 (inf_child_open_target): New function.
3980 (inf_child_open): Use inf_child_open_target to push the target
3981 instead of erroring out.
3982 (inf_child_disconnect, inf_child_close)
3983 (inf_child_maybe_unpush_target): New functions.
3984 (inf_child_target): Install inf_child_disconnect and
3985 inf_child_close. Store a pointer to the returned object.
3986 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3988 * target.c (auto_connect_native_target): New global.
3989 (show_default_run_target): New function.
3990 (find_default_run_target): Return NULL if automatically connecting
3991 to the native target is disabled.
3992 (_initialize_target): Install set/show auto-connect-native-target.
3993 * NEWS: Mention "set auto-connect-native-target", and "target
3995 * linux-nat.c (super_close): New global.
3996 (linux_nat_close): Call super_close.
3997 (linux_nat_add_target): Store a pointer to the base class's
3999 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4000 inf_child_maybe_unpush.
4001 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4003 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4004 the inferior. Use inf_child_maybe_unpush_target.
4005 (inf_ttrace_attach): Don't push the target if it is already
4007 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4008 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4009 after mourning the inferior. Use inf_child_maybe_unpush_target.
4010 (darwin_attach_pid): Don't push the target if it is already
4012 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4013 mourning the inferior. Use inf_child_maybe_unpush_target.
4014 (gnu_detach): Use inf_child_maybe_unpush_target.
4015 * go32-nat.c (go32_create_inferior): Don't push the target if it
4017 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4018 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4019 (procfs_open): Rename to ...
4020 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4021 comments. Can target_preopen before changing node. Call
4022 inf_child_open_target to push the target explicitly.
4023 (procfs_attach): Don't push the target if it is already pushed.
4024 (procfs_detach): Use inf_child_maybe_unpush_target.
4025 (procfs_create_inferior): Don't push the target if it is already
4027 (nto_native_ops): New global.
4028 (procfs_open): Reimplement.
4029 (procfs_native_open): New function.
4030 (init_procfs_targets): Install procfs_native_open as to_open of
4031 "target native". Store a pointer to the "native" target in
4033 * procfs.c (procfs_attach): Don't push the target if it is already
4035 (procfs_detach): Use inf_child_maybe_unpush_target.
4036 (procfs_mourn_inferior): Only unpush the target after mourning the
4037 inferior. Use inf_child_maybe_unpush_target.
4038 (procfs_init_inferior): Don't push the target if it is already
4040 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4041 if it is already pushed.
4043 2014-05-21 Pedro Alves <palves@redhat.com>
4045 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4046 and "procfs" targets are now called "native" instead.
4048 2014-05-21 Pedro Alves <palves@redhat.com>
4050 * go32-nat.c (go32_open): Delete.
4051 (go32_target): Don't override the to_open method.
4053 2014-05-21 Pedro Alves <palves@redhat.com>
4055 * nto-procfs.c (procfs_can_run): New function.
4056 (nto_procfs_ops): New global.
4057 (init_procfs_targets): New, based on procfs_target. Install
4058 "target native" in addition to "target procfs".
4059 (_initialize_procfs): Call init_procfs_targets instead of adding
4062 2014-05-21 Pedro Alves <palves@redhat.com>
4064 * windows-nat.c (windows_target): Don't override to_shortname,
4065 to_longname or to_doc.
4067 2014-05-21 Pedro Alves <palves@redhat.com>
4069 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4072 2014-05-21 Pedro Alves <palves@redhat.com>
4074 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4075 to_shortname, to_longname or to_doc.
4077 2014-05-21 Pedro Alves <palves@redhat.com>
4079 * go32-nat.c (go32_target): Don't override to_shortname,
4080 to_longname or to_doc.
4082 2014-05-21 Pedro Alves <palves@redhat.com>
4084 * inf-child.c (inf_child_open): Remove mention of "child".
4085 (inf_child_target): Rename target to "native" instead of "child".
4087 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4089 * Makefile.in (SFILES): Delete "regset.c".
4090 (COMMON_OBS): Delete "regset.o".
4092 * regset.h (regset_alloc): Delete prototype.
4094 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4096 * sparc-linux-tdep.c (sparc32_linux_gregset)
4097 (sparc32_linux_fpregset): New static regset structures.
4098 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4099 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4101 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4102 (sparc64_linux_fpregset): New static regset structures.
4103 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4104 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4105 New static regset structures.
4106 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4107 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4108 New static regset structures.
4109 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4110 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4111 New static regset structures.
4112 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4113 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4114 New static regset structures.
4115 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4117 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4119 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4120 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4121 register maps ("regmaps") from "*regset" to "*regmap". Do this
4122 for all regmap types and variables.
4123 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4124 (sparc32_linux_supply_core_gregset)
4125 (sparc32_linux_collect_core_gregset)
4126 (sparc32_linux_supply_core_fpregset)
4127 (sparc32_linux_collect_core_fpregset): Likewise.
4128 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4129 (sparc_gregmap, sparc_fpregmap): ... these.
4130 (sparc_supply_gregset, sparc_collect_gregset)
4131 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4132 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4133 (_initialize_sparc_nat): Rename regmaps.
4134 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4135 (sparc_gregmap, sparc_fpregmap): ... these.
4136 (sparc_supply_gregset, sparc_collect_gregset)
4137 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4138 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4140 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4141 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4143 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4145 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4146 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4147 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4149 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4150 (sparc32_bsd_fpregset): Rename to...
4151 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4152 (sparc32_bsd_fpregmap): ... these.
4153 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4154 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4155 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4156 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4157 (struct sparc_gregmap, struct sparc_fpregmap)
4158 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4159 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4160 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4161 (sparc32_supply_regset, sparc32_collect_gregset)
4162 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4164 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4165 (sparc64_linux_ptrace_gregmap): ... this.
4166 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4167 (_initialize_sparc64_linux_nat): Rename regmaps.
4168 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4169 (sparc64_linux_core_gregmap): ... this.
4170 (sparc64_linux_supply_core_gregset)
4171 (sparc64_linux_collect_core_gregset)
4172 (sparc64_linux_supply_core_fpregset)
4173 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4174 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4175 (sparc64_sol2_fpregset): Rename to...
4176 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4177 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4178 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4180 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4181 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4182 (sparc64_bsd_fpregset): Rename to...
4183 (struct sparc_gregmap, sparc64_sol2_gregmap)
4184 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4185 (sparc64_bsd_fpregmap): ... these.
4186 (sparc64_supply_gregset, sparc64_collect_gregset)
4187 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4189 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4190 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4191 (sparc64fbsd_gregmap): ... this.
4192 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4193 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4195 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4196 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4197 (sparc64nbsd_collect_fpregset): Likewise.
4198 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4199 (sparc64nbsd_gregmap): ... this.
4200 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4202 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4203 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4204 (sparc64obsd_gregmap): ... this.
4205 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4207 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4208 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4209 (sparc32nbsd_gregmap): ... this.
4210 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4213 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4215 * score-tdep.c (score7_linux_gregset): New static regset
4217 (score7_linux_regset_from_core_section): Remove dynamic regset
4219 (score_gdbarch_init): Drop allocation of tdep structure.
4220 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4222 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4224 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4226 (am33_regset_from_core_section): Remove dynamic regset
4229 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4231 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4232 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4234 (mips_linux_regset_from_core_section): Remove dynamic regset
4236 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4237 'gregset64', 'fpregset', and 'fpregset64'.
4238 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4239 deleted tdep fields.
4241 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4243 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4245 (amd64_regset_from_core_section): Remove dynamic regset
4247 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4249 (amd64obsd_regset_from_core_section): Remove dynamic regset
4251 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4253 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4254 x86-common regset supply function.
4255 * i386-tdep.c (i386_collect_gregset): Make static.
4256 (i386_gregset): New global regset structure.
4257 (i386_fpregset, i386_xstateregset): New static regset structures.
4258 (i386_regset_from_core_section): Remove dynamic regset
4260 (i386_gdbarch_init): Remove initialization of tdep fields
4261 'gregset', 'fpregset', and 'xstateregset'.
4262 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4263 'fpregset', and 'xstateregset'.
4264 (i386_collect_gregset): Remove prototype.
4265 (i386_gregset): New declaration.
4266 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4268 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4271 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4273 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4274 (arm_linux_vfpregset): New static regset structures.
4275 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4277 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4278 and 'vfpregset' fields.
4280 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4282 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4283 (aarch64_linux_fpregset): New static regset structures.
4284 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4285 of regset structures.
4286 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4289 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4291 * regset.h (struct regset): Remove gdbarch field.
4292 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4293 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4294 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4296 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4297 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4298 (ppc32_linux_vsxregset): Likewise.
4299 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4300 via the regcache instead of the regset.
4301 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4302 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4303 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4304 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4307 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4309 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4310 Constify structures.
4311 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4312 (alphanbsd_aout_gregset): Likewise.
4313 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4314 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4316 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4317 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4319 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4320 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4321 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4322 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4323 * m88k-tdep.c (m88k_gregset): Likewise.
4324 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4325 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4326 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4327 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4328 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4329 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4330 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4331 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4332 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4334 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4335 * sh-tdep.h (sh_corefile_gregset): Likewise.
4336 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4337 * vax-tdep.c (vax_gregset): Likewise.
4339 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4341 Fix TLS access for -static -pthread.
4342 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4343 (try_thread_db_load_1): Initialize it.
4344 (thread_db_get_thread_local_address): Call it if LM is zero.
4345 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4346 * target.h (struct target_ops) (to_get_thread_local_address): Add
4347 load_module_addr comment.
4349 2014-05-21 Pedro Alves <palves@redhat.com>
4351 * dcache.c (dcache_read_memory_partial): If reading the cache line
4352 fails, fallback to reading just the memory the caller wanted.
4354 2014-05-20 Doug Evans <dje@google.com>
4356 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4357 instead of get_current_arch.
4359 2014-05-20 Pedro Alves <palves@redhat.com>
4361 * NEWS: Mention that compare-sections now works with all targets.
4363 * remote.c (PACKET_qCRC): New enum value.
4364 (remote_verify_memory): Don't send qCRC if the target has no
4365 execution. Use packet_support/packet_ok. If the target doesn't
4366 support the qCRC packet, fallback to a deep memory copy.
4367 (compare_sections_command): Say "target image" instead of "remote
4369 (_initialize_remote): Add PACKET_qCRC to the list of config
4370 packets that have no associated command. Extend comment.
4371 * target.c (simple_verify_memory, default_verify_memory): New
4373 * target.h (struct target_ops) <to_verify_memory>: Default to
4374 default_verify_memory.
4375 (simple_verify_memory): New declaration.
4376 * target-delegates.c: Regenerate.
4378 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4380 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4382 2014-05-20 Hui Zhu <hui@codesourcery.com>
4383 Yao Qi <yao@codesourcery.com>
4386 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4387 and change address of sp and pc.
4389 2014-05-19 Tom Tromey <tromey@redhat.com>
4391 * gdbtypes.c (rank_function): Use XNEWVEC.
4392 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4394 2014-05-19 Doug Evans <dje@google.com>
4396 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4397 build_type_unit_groups and moved closer to only caller. Remove
4398 arguments. All references updated. Remove outdated .gdb_index
4400 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4401 build_type_psymtabs_1.
4403 2014-05-19 Doug Evans <dje@google.com>
4405 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4406 n_type_unit_groups, all_type_unit_groups. All uses removed.
4407 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4408 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4409 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4410 (add_type_unit_group_to_table): Delete.
4412 2014-05-19 Doug Evans <dje@google.com>
4414 * eval.c (evaluate_subexp_standard): Add some comments.
4416 2014-05-17 Doug Evans <xdje42@gmail.com>
4418 * progspace.c (remove_program_space): Delete, unused.
4419 * progspace.h (remove_program_space): Ditto.
4421 2014-05-17 Doug Evans <xdje42@gmail.com>
4423 * inferior.c (prune_inferiors): Fix comment.
4424 (remove_inferior_command): Call prune_program_spaces.
4426 2014-05-16 Doug Evans <dje@google.com>
4428 New command line option -D.
4430 * main.c (set_gdb_data_directory): New function.
4431 (captured_main): Recognize -D. Flag error for --data-directory "".
4432 Call set_gdb_data_directory.
4433 (print_gdb_help): Print --data-directory, -D.
4434 * main.h (set_gdb_data_directory): Declare.
4435 * top.c (staged_gdb_datadir): New static global.
4436 (set_gdb_datadir): Call set_gdb_data_directory
4437 (show_gdb_datadir): New function.
4438 (init_main): Update init of data-directory parameter.
4440 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4442 Import the "dirfd" gnulib module.
4443 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4444 * gnulib/aclocal.m4: Update.
4445 * gnulib/config.in: Update.
4446 * gnulib/configure: Update.
4447 * gnulib/import/Makefile.am: Update.
4448 * gnulib/import/Makefile.in: Update.
4449 * gnulib/import/dirfd.c: New.
4450 * gnulib/import/m4/dirfd.m4: New.
4451 * gnulib/import/m4/gnulib-cache.m4: Update.
4452 * gnulib/import/m4/gnulib-comp.m4: Update.
4454 2014-05-16 Pierre Muller <muller@sourceware.org>
4455 Yao Qi <yao@codesourcery.com>
4457 * valprint.c (print_wchar): Move the code on checking whether
4458 W is a printable wide char to the default branch of switch
4459 statement below. Call wchar_printable instead of gdb_iswprint.
4461 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4463 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4464 ldr.w and ldrd instructions.
4466 2014-05-15 Doug Evans <dje@google.com>
4468 * dwarf2read.c (read_structure_type): Delete outdated comments.
4470 2014-05-14 Tom Tromey <tromey@redhat.com>
4472 * macrocmd.c (print_macro_definition): Reindent.
4474 2014-05-13 Doug Evans <xdje42@gmail.com>
4476 * python/py-cmd.c (cmdpy_completer): Add comment.
4477 (completers): Make const.
4479 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4481 * infrun.c (resume): Remove should_resume (unused). Move up
4482 declaration of resume_ptid.
4484 2014-05-13 Tom Tromey <tromey@redhat.com>
4486 * language.h (unop_type_check): Remove.
4487 (binop_type_check): Don't declare.
4489 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4491 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4492 call to regcache_raw_collect.
4494 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4496 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4497 mi_console->quote as the quoting character.
4499 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4501 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4503 2014-04-29 Tom Tromey <tromey@redhat.com>
4505 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4506 "show debug varobj".
4508 2014-05-07 Kyle McMartin <kyle@redhat.com>
4510 Pushed by Joel Brobecker <brobecker@adacore.com>.
4511 * aarch64-tdep.c (aarch64_software_single_step): New function.
4512 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4513 with aarch64_software_single_step.
4515 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4519 2014-05-05 Keith Seitz <keiths@redhat.com>
4521 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4522 variable or history value is successfully parsed.
4524 2014-05-05 Yao Qi <yao@codesourcery.com>
4525 Pedro Alves <palves@redhat.com>
4527 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4528 address of blocks that intersects the requested range. Trim
4529 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4531 * ctf.c (ctf_xfer_partial): Likewise.
4533 2014-05-05 Yao Qi <yao@codesourcery.com>
4535 * printcmd.c (display_command): Remove the check to
4536 target_has_execution.
4538 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4540 * ppcobsd-nat.c: Include "obsd-nat.h".
4541 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4543 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4545 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4547 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4548 and 16-bit signed and unsigned arguments. Update comment.
4549 (stap_parse_probe_arguments): Extend code to handle such
4550 arguments. Use warning instead of complaint to notify about
4551 unrecognized bitness.
4553 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4555 PR breakpoints/16889
4556 * stap-probe.c (stap_parse_probe_arguments): Simplify
4557 check for non-prefixed probes (i.e., probes whose
4558 arguments do not start with "N@"). Always set the
4559 argument type to a sane value.
4561 2014-05-01 David Taylor <dtaylor@emc.com>
4563 * remote.c (compare_sections_command): Add -r option to compare
4564 all loadable read-only sections.
4566 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4568 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4569 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4571 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4572 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4573 Remove unused CORE_ADDR argument. Update all callers.
4575 2014-04-29 Pedro Alves <palves@redhat.com>
4577 * remote.c (struct packet_config) <detect>: Extend comment.
4578 (add_packet_config_cmd): Don't set the config's detect or support
4580 (init_all_packet_configs): Also initialize the config's 'detect'
4582 (reset_all_packet_configs_support): New function.
4583 (remote_open_1): Call reset_all_packet_configs_support instead of
4584 init_all_packet_configs.
4585 (_initialize_remote): Initialize all packet configs. Assert that
4586 all packets have an associated command, except a few known
4589 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4591 * dwarf2read.c (read_subrange_type): Handle dynamic
4592 DW_AT_lower_bound attributes.
4594 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4596 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4597 dynamic bounds before computing its upper bound.
4598 (ada_discrete_type_low_bound): Same as above with the lower bound.
4600 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4602 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4603 range types. Adjust the array handling implementation to
4604 take advantage of this change.
4605 (resolve_dynamic_range): New function, mostly extracted from
4606 resolve_dynamic_bounds.
4607 (resolve_dynamic_array): New function, mostly extracted from
4608 resolve_dynamic_bounds.
4609 (resolve_dynamic_bounds): Delete.
4610 (resolve_dynamic_type): Reimplement. Add handling of
4611 TYPE_CODE_RANGE types.
4613 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4615 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4616 handling of parallel ___XA types.
4618 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4620 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4621 unnecessary second call to static_unwrap_type.
4623 2014-04-27 Hui Zhu <hui@codesourcery.com>
4625 * stack.c (print_frame_info): Call do_gdb_disassembly with
4626 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4628 2014-04-26 Doug Evans <xdje42@gmail.com>
4630 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4632 2014-04-25 Pedro Alves <palves@redhat.com>
4635 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4636 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4637 and newline from built string.
4638 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4639 (linux_ptrace_attach_fail_reason): ... this.
4640 * linux-nat.c (linux_nat_attach): Adjust to use
4641 linux_ptrace_attach_fail_reason.
4643 2014-04-25 Pedro Alves <palves@redhat.com>
4645 * remote.c (struct remote_state): Remove multi_process_aware,
4646 non_stop_aware, cond_tracepoints, cond_breakpoints,
4647 breakpoint_commands, fast_tracepoints, static_tracepoints,
4648 install_in_trace, disconnected_tracing,
4649 enable_disable_tracepoints, string_tracing, and
4650 augmented_libraries_svr4_read fields.
4651 (remote_multi_process_p): Move further below in the file.
4652 (struct packet_config): Add comments.
4653 (update_packet_config): Delete function.
4654 (show_packet_config_cmd): Use packet_config_support.
4655 (add_packet_config_cmd): Use NULL as set callback.
4656 (packet_ok): "set remote foo-packet"-style commands no longer
4657 change config->supported -- adjust.
4658 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4659 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4660 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4661 (PACKET_QNonStop, PACKET_multiprocess_feature)
4662 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4663 (PACKET_DisconnectedTracing_feature)
4664 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4665 (set_remote_protocol_packet_cmd): Delete function.
4666 (packet_config_support, packet_support): New functions.
4667 (set_remote_protocol_Z_packet_cmd): Don't call
4668 update_packet_config.
4669 (remote_query_attached, remote_pass_signals)
4670 (remote_program_signals, remote_threads_info)
4671 (remote_threads_extra_info, remote_start_remote): Use
4673 (remote_start_remote): Use packet_config_support and
4675 (init_all_packet_configs): Set all packets to unknown support,
4676 instead of calling update_packet_config.
4677 (remote_check_symbols): Use packet_support.
4678 (remote_supported_packet): Unconditionally set the packet config's
4680 (remote_multi_process_feature, remote_non_stop_feature)
4681 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4682 (remote_breakpoint_commands_feature)
4683 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4684 (remote_install_in_trace_feature)
4685 (remote_disconnected_tracing_feature)
4686 (remote_enable_disable_tracepoint_feature)
4687 (remote_string_tracing_feature)
4688 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4689 (remote_protocol_features): Adjust to use remote_supported_packet
4690 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4691 "ConditionalTracepoints", "ConditionalBreakpoints",
4692 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4693 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4694 "EnableDisableTracepoints", and "tracenz".
4695 (remote_query_supported): Use packet_support.
4696 (remote_open_1): Adjust.
4697 (extended_remote_attach_1): Use packet_support. Switch on the
4698 result of packet_ok instead of checking whether the packet ended
4700 (remote_vcont_resume): Use packet_support.
4701 (remote_resume, remote_stop_ns, fetch_register_using_p)
4702 (remote_prepare_to_store, store_register_using_P)
4703 (check_binary_download, remote_write_bytes): Use packet_support.
4704 (remote_vkill): Use packet_support. Switch on the result of
4705 packet_ok instead of checking whether the packet ended up
4707 (extended_remote_supports_disable_randomization): Use
4709 (extended_remote_run): Switch on the result of packet_ok instead
4710 of checking whether the packet ended up disabled.
4711 (remote_insert_breakpoint, remote_remove_breakpoint)
4712 (remote_insert_watchpoint, remote_remove_watchpoint)
4713 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4715 (remote_search_memory): Use packet_config_support.
4716 (remote_get_thread_local_address, remote_get_tib_address)
4717 (remote_hostio_send_command, remote_can_execute_reverse): Use
4719 (remote_supports_cond_tracepoints)
4720 (remote_supports_cond_breakpoints)
4721 (remote_supports_fast_tracepoints)
4722 (remote_supports_static_tracepoints)
4723 (remote_supports_install_in_trace)
4724 (remote_supports_enable_disable_tracepoint)
4725 (remote_supports_string_tracing)
4726 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4727 the packet config says the feature is enabled or disabled.
4728 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4729 (remote_get_trace_status): Use packet_support.
4730 (remote_set_disconnected_tracing): Adjust to check whether the
4731 feature is enabled with packet_support.
4732 (remote_set_trace_buffer_size, remote_use_agent)
4733 (remote_can_use_agent, remote_supports_btrace): Use
4735 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4736 Use packet_config_support.
4737 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4738 the packet config says the feature is enabled or disabled.
4739 (set_range_stepping): Use packet_support.
4741 2014-04-25 Tom Tromey <tromey@redhat.com>
4743 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4746 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4748 * NEWS: Mention support for C99 variable length arrays.
4750 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4752 * ada-lang.c (standard_exc): Expand introductory comment.
4754 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4755 Walfred Tedeschi <walfred.tedeschi@intel.com>
4757 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4759 (amd64_linux_read_description): Add code to handle AVX512 xstate
4760 mask and return respective tdesc.
4761 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4762 and features/i386/x32-avx512-linux.c.
4763 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4764 (amd64_linux_core_read_description): Add code to handle AVX512
4765 xstate mask and return respective tdesc.
4766 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4767 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4769 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4770 (tdesc_amd64_avx512_linux): New prototype.
4771 (tdesc_x32_avx512_linux): Likewise.
4772 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4773 features/i386/x32-avx512.c.
4774 (amd64_ymm_avx512_names): New register names for pseudo
4776 (amd64_ymmh_avx512_names): New register names for raw registers
4778 (amd64_k_names): New register names for K registers.
4779 (amd64_zmmh_names): New register names for ZMM raw registers.
4780 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4781 (amd64_xmm_avx512_names): New register names for XMM16-31
4783 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4785 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4786 if feature is present.
4787 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4788 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4789 (AMD64_NUM_REGS): Adjust to new number of registers.
4790 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4791 registers supplied via XSTATE by AVX512 registers.
4792 (i386_linux_read_description): Add case for AVX512.
4793 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4794 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4795 (i386_linux_core_read_description): Add case for AVX512.
4796 (i386_linux_init_abi): Install supported register note section
4798 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4800 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4801 registers to be number of zmm7h + 1.
4802 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4803 * i386-tdep.c: Include features/i386/i386-avx512.c.
4804 (i386_zmm_names): Add ZMM pseudo register names array.
4805 (i386_zmmh_names): Add ZMM raw register names array.
4806 (i386_k_names): Add K raw register names array.
4807 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4808 registers. AVX512 has 16 more ZMM registers than there are YMM
4810 (i386_zmmh_regnum_p): Add function to look up register number of
4812 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4813 (i386_k_regnum_p): Likewise for K raw registers.
4814 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4815 registers added by AVX512.
4816 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4817 registers added by AVX512.
4818 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4820 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4821 (i386_pseudo_register_name): Add ZMM pseudo registers.
4822 (i386_zmm_type): Construct and return vector registers type for ZMM
4824 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4825 ZMM0-31 pseudo registers and K registers.
4826 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4827 and YMM16-31 registers from register cache.
4828 (i386_pseudo_register_write): Add code to write K, ZMM and
4830 (i386_register_reggroup_p): Add code to include/exclude AVX512
4831 registers in/from respective register groups.
4832 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4833 registers if feature is present in xcr0.
4834 (i386_gdbarch_init): Add code to initialize AVX512 feature
4835 variables in tdep structure, wire in pseudo registers and call
4836 initialize_tdesc_i386_avx512.
4837 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4839 (i386_regnum): Add AVX512 registers.
4840 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4841 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4842 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4843 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4845 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4846 (i386_ymm_avx512_regnum_p): Likewise.
4847 (i386_k_regnum_p): Likewise.
4848 (i386_zmm_regnum_p): Likewise.
4849 (i386_zmmh_regnum_p): Likewise.
4850 * i387-tdep.c : Update year in copyright notice.
4851 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4853 (XSAVE_YMM_AVX512_ADDR): New macro.
4854 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4856 (XSAVE_XMM_AVX512_ADDR): New macro.
4857 (xsave_avx512_k_offset): New table for K register offsets in
4859 (XSAVE_AVX512_K_ADDR): New macro.
4860 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4862 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4863 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4865 (i387_collect_xsave): Add code to collect AVX512 registers from
4867 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4868 of XMM16-31 registers.
4869 (I387_NUM_K_REGS): New define for number of K registers.
4870 (I387_K0_REGNUM): New define for K0 register number.
4871 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4872 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4873 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4875 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4876 (I387_XMM16_REGNUM): New define for XMM16 register number.
4877 (I387_YMM0_REGNUM): New define for YMM0 register number.
4878 (I387_KEND_REGNUM): New define for last K register number.
4879 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4880 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4882 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4884 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4886 * features/Makefile: Add AVX512 related files.
4887 * features/i386/32bit-avx512.xml: New file.
4888 * features/i386/64bit-avx512.xml: Likewise.
4889 * features/i386/amd64-avx512-linux.c: Likewise.
4890 * features/i386/amd64-avx512-linux.xml: Likewise.
4891 * features/i386/amd64-avx512.c: Likewise.
4892 * features/i386/amd64-avx512.xml: Likewise.
4893 * features/i386/i386-avx512-linux.c: Likewise.
4894 * features/i386/i386-avx512-linux.xml: Likewise.
4895 * features/i386/i386-avx512.c: Likewise.
4896 * features/i386/i386-avx512.xml: Likewise.
4897 * features/i386/x32-avx512-linux.c: Likewise.
4898 * features/i386/x32-avx512-linux.xml: Likewise.
4899 * features/i386/x32-avx512.c: Likewise.
4900 * features/i386/x32-avx512.xml: Likewise.
4901 * regformats/i386/amd64-avx512-linux.dat: New file.
4902 * regformats/i386/amd64-avx512.dat: Likewise.
4903 * regformats/i386/i386-avx512-linux.dat: Likewise.
4904 * regformats/i386/i386-avx512.dat: Likewise.
4905 * regformats/i386/x32-avx512-linux.dat: Likewise.
4906 * regformats/i386/x32-avx512.dat: Likewise.
4907 * NEWS: Add note about new support for AVX512.
4910 2014-04-23 Pedro Alves <palves@redhat.com>
4912 * breakpoint.c (insert_bp_location): Tolerate errors if the
4913 breakpoint is set in a user-loaded objfile.
4914 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4915 location is marked shlib_disabled. If the breakpoint is set in a
4916 user-loaded objfile is a GDB-side memory breakpoint, validate it
4917 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4918 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4920 * mem-break.c (memory_validate_breakpoint): New function.
4921 * objfiles.c (userloaded_objfile_contains_address_p): New
4923 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4924 * target.h (memory_validate_breakpoint): New declaration.
4926 2014-04-23 Pedro Alves <palves@redhat.com>
4928 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4929 the breakpoint is set in a shared library, only suppress
4930 errors for software breakpoints, not hardware breakpoints.
4932 2014-04-22 Pedro Alves <palves@redhat.com>
4934 * infrun.c (schedlock_applies): New function, factored out from
4935 find_thread_needs_step_over.
4936 (find_thread_needs_step_over): Use it.
4937 (switch_back_to_stepped_thread): Always clear trap_expected if the
4938 step over is finished. Return early if scheduler locking applies.
4939 Look for the stepping thread and a potential step-over thread with
4941 (currently_stepping_or_nexting_callback): Delete.
4943 2014-04-22 Nick Clifton <nickc@redhat.com>
4945 * NEWS: Mention that ARM sim now supports tracing.
4947 2014-04-22 Yao Qi <yao@codesourcery.com>
4949 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4951 * tracefile.c (tracefile_fetch_registers): ... it. New
4953 * tracefile.h (tracefile_fetch_registers): Declare.
4954 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4955 tracefile_fetch_registers.
4957 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4960 * windows-nat.c (thread_rec): Don't display a warning when
4961 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4962 fails for any reason, set th->suspended to -1, so that we don't
4963 try to resume such a thread. Also, don't return NULL in these
4964 cases, to avoid completely ruin the session due to "PC register is
4965 not available" error.
4966 (do_windows_fetch_inferior_registers): Check errors in
4967 GetThreadContext call.
4968 (windows_continue): Accept an additional argument KILLED; if not
4969 zero, ignore errors in the SetThreadContext call, since the
4970 inferior was killed and is shutting down.
4971 (windows_resume, get_windows_debug_event)
4972 (windows_create_inferior, windows_mourn_inferior)
4973 (windows_kill_inferior): All callers of windows_continue changed
4974 to adjust to its new calling sequence.
4976 2014-04-19 Yao Qi <yao@codesourcery.com>
4978 * ctf.c (ctf_open): Call post_create_inferior.
4980 2014-04-19 Yao Qi <yao@codesourcery.com>
4982 * ctf.c (handle_id): New static variable.
4983 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4984 value. Get the declaration of event "register" and get length
4985 of field "contents".
4987 2014-04-19 Yao Qi <yao@codesourcery.com>
4989 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4991 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4993 * valops.c (oload_method_static): Remove unnecessary argument
4994 METHOD. Update all callers.
4996 2014-04-18 Pedro alves <palves@redhat.com>
4997 Tom Tromey <tromey@redhat.com>
5000 * frame.c (get_prev_frame_1): Rename to ...
5001 (get_prev_frame_always): ... this, and make extern. Adjust.
5002 (skip_artificial_frames): Use get_prev_frame_always.
5003 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5004 (get_frame_unwind_stop_reason): Adjust to rename.
5005 * frame.h (get_prev_frame_always): Declare.
5006 * inline-frame.c: Include frame.h.
5007 (inline_frame_this_id): Use get_prev_frame_always.
5009 2014-04-18 Tristan Gingold <gingold@adacore.com>
5011 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5012 code by using bfd_mach_o_get_base_address.
5014 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5016 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5017 (spu_ax_pseudo_register_collect): New function.
5018 (spu_ax_pseudo_register_push_stack): Likewise.
5019 (spu_dwarf_reg_to_regnum): Likewise.
5020 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5022 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5024 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5025 Replace FRAME argument with FRAME_ID.
5026 * gdbarch.c, gdbarch.h: Regenerate.
5027 * findvar.c (default_value_from_register): Add GDBARCH argument;
5028 replace FRAME by FRAME_ID. No longer call get_frame_id.
5029 (value_from_register): Update call to gdbarch_value_from_register.
5030 * value.h (default_value_from_register): Update prototype.
5031 * s390-linux-tdep.c (s390_value_from_register): Update interface
5032 and call to default_value_from_register.
5033 * spu-tdep.c (spu_value_from_register): Likewise.
5035 * findvar.c (address_from_register): Remove TYPE argument.
5036 Do not call value_from_register; use gdbarch_value_from_register
5037 with null_frame_id instead.
5038 * value.h (address_from_register): Update prototype.
5039 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5040 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5041 address_from_register interface change.
5043 2014-04-17 Yao Qi <yao@codesourcery.com>
5045 * gdbtypes.h: Update comments to link to types and macros'
5048 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5050 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5052 2014-04-16 Keith Seitz <keiths@redhat.com>
5055 * dwarf2read.c (skip_one_die): Check that all relative-offset
5056 sibling DIEs fall within range of the current reader's buffer.
5057 (read_partial_die): Likewise.
5059 2014-04-16 Keith Seitz <keiths@redhat.com>
5062 * cp-namespace.c (lookup_symbol_file): If the type name of
5063 `this' is NULL, return immediately.
5065 2014-04-14 Keith Seitz <keiths@redhat.com>
5068 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5069 from symbol_matches_domain in symtab.c. All local callers
5070 of symbol_matches_domain updated.
5071 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5072 search STRUCT_DOMAIN.
5073 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5074 independently. standard_lookup will do that automatically.
5075 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5076 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5077 (cp_lookup_symbol_in_namespace): Likewise.
5078 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5079 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5080 may return a STRUCT_DOMAIN match.
5081 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5082 * cp-support.c: Include language.h.
5083 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5085 * psymtab.c (match_partial_symbol): Compare the requested
5086 domain with the symbol's domain directly.
5087 (lookup_partial_symbol): Likewise.
5088 * symtab.c (lookup_symbol_in_language): Explain when/why
5089 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5090 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5091 appropriate languages.
5092 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5093 and moved to ada-lang.c
5094 (lookup_block_symbol): Explain that this function only returns
5095 symbol matching the requested DOMAIN.
5096 Compare the requested domain with the symbol's domain directly.
5097 (iterate_over_symbols): Compare the requested domain with the
5098 symbol's domain directly.
5099 * symtab.h (symbol_matches_domain): Remove.
5101 2014-04-14 Tom Tromey <tromey@redhat.com>
5104 * c-exp.y (type_aggregate_p): New function.
5105 (qualified_name, classify_inner_name): Use it.
5106 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5107 and TYPE_TARGET_TYPE of an enum type.
5108 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5110 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5111 handle TYPE_DECLARED_CLASS.
5112 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5114 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5115 * valops.c (enum_constant_from_type): New function.
5116 (value_aggregate_elt): Use it.
5117 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5120 2014-04-14 Tom Tromey <tromey@redhat.com>
5122 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5123 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5125 * value.h (value_aggregate_elt): Update.
5127 2014-04-14 Tom Tromey <tromey@redhat.com>
5129 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5131 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5133 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5134 (evaluate_subexp_standard): Pass noside argument.
5135 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5136 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5137 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5138 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5139 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5141 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5143 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5144 points to a constant blob.
5146 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5148 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5149 property and store it as the high bound and flag the range accordingly.
5150 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5151 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5152 * gdbtypes.h (enum range_flags): New enum.
5153 (struct range_bounds): Add flags member.
5155 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5157 * c-typeprint.c (c_type_print_varspec_suffix): Added
5158 check for not yet resolved high bound. If unresolved, print
5159 "variable length" string to the console instead of random
5162 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5164 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5166 (ada_template_to_fixed_record_type_1): Likewise.
5167 (ada_to_fixed_type_1): Likewise.
5168 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5169 (cp_print_value): Likewise.
5170 * d-valprint.c (dynamic_array_type): Likewise.
5171 * findvar.c (address_of_variable): Likewise.
5172 * jv-valprint.c (java_value_print): Likewise.
5173 * valops.c (value_ind): Likewise.
5174 * value.c (coerce_ref): Likewise.
5176 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5178 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5179 value and retrieve the dynamic type size.
5181 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5183 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5184 passed to sizeof is dynamic evaluate the argument to compute the length.
5186 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5187 Joel Brobecker <brobecker@adacore.com>
5189 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5190 (dwarf2_evaluate_property): New function.
5191 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5192 * dwarf2read.c (attr_to_dynamic_prop): New function.
5193 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5195 * gdbtypes.c: Include dwarf2loc.h.
5196 (is_dynamic_type): New function.
5197 (resolve_dynamic_type): New function.
5198 (resolve_dynamic_bounds): New function.
5199 (get_type_length): New function.
5200 (check_typedef): Use get_type_length to compute type length.
5201 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5202 (TYPE_LOW_BOUND_KIND): New macro.
5203 (is_dynamic_type): New function prototype.
5204 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5205 to resolve dynamic properties of the type. Update comment.
5206 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5208 2014-04-14 Richard Henderson <rth@redhat.com>
5210 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5212 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5213 Doug Evans <xdje42@gmail.com>
5215 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5216 dereference TYPE_CODE_REF values.
5218 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5220 Revert the following changes due to regressions:
5222 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5223 (dwarf2_evaluate_property): New function.
5224 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5225 * dwarf2read.c (attr_to_dynamic_prop): New function.
5226 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5228 * gdbtypes.c: Include dwarf2loc.h.
5229 (is_dynamic_type): New function.
5230 (resolve_dynamic_type): New function.
5231 (resolve_dynamic_bounds): New function.
5232 (get_type_length): New function.
5233 (check_typedef): Use get_type_length to compute type length.
5234 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5235 (TYPE_LOW_BOUND_KIND): New macro.
5236 (is_dynamic_type): New function prototype.
5237 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5238 to resolve dynamic properties of the type. Update comment.
5239 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5241 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5242 passed to sizeof is dynamic evaluate the argument to compute the length.
5244 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5245 value and retrieve the dynamic type size.
5247 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5248 (ada_template_to_fixed_record_type_1): Likewise.
5249 (ada_to_fixed_type_1): Likewise.
5250 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5251 (cp_print_value): Likewise.
5252 * d-valprint.c (dynamic_array_type): Likewise.
5253 * eval.c (evaluate_subexp_with_coercion): Likewise.
5254 * findvar.c (address_of_variable): Likewise.
5255 * jv-valprint.c (java_value_print): Likewise.
5256 * valops.c (value_ind): Likewise.
5257 * value.c (coerce_ref): Likewise.
5259 * c-typeprint.c (c_type_print_varspec_suffix): Added
5260 check for not yet resolved high bound. If unresolved, print
5261 "variable length" string to the console instead of random
5264 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5265 property and store it as the high bound and flag the range accordingly.
5266 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5267 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5268 * gdbtypes.h (enum range_flags): New enum.
5269 (struct range_bounds): Add flags member.
5271 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5272 points to a constant blob.
5274 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5275 (evaluate_subexp_standard): Pass noside argument.
5276 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5277 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5278 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5279 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5280 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5282 2014-04-11 Keith Seitz <keiths@redhat.com>
5285 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5286 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5289 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5291 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5292 (evaluate_subexp_standard): Pass noside argument.
5293 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5294 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5295 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5296 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5297 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5299 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5301 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5302 points to a constant blob.
5304 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5306 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5307 property and store it as the high bound and flag the range accordingly.
5308 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5309 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5310 * gdbtypes.h (enum range_flags): New enum.
5311 (struct range_bounds): Add flags member.
5313 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5315 * c-typeprint.c (c_type_print_varspec_suffix): Added
5316 check for not yet resolved high bound. If unresolved, print
5317 "variable length" string to the console instead of random
5320 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5322 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5323 (ada_template_to_fixed_record_type_1): Likewise.
5324 (ada_to_fixed_type_1): Likewise.
5325 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5326 (cp_print_value): Likewise.
5327 * d-valprint.c (dynamic_array_type): Likewise.
5328 * eval.c (evaluate_subexp_with_coercion): Likewise.
5329 * findvar.c (address_of_variable): Likewise.
5330 * jv-valprint.c (java_value_print): Likewise.
5331 * valops.c (value_ind): Likewise.
5332 * value.c (coerce_ref): Likewise.
5334 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5336 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5337 value and retrieve the dynamic type size.
5339 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5341 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5342 passed to sizeof is dynamic evaluate the argument to compute the length.
5344 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5346 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5347 (dwarf2_evaluate_property): New function.
5348 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5349 * dwarf2read.c (attr_to_dynamic_prop): New function.
5350 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5352 * gdbtypes.c: Include dwarf2loc.h.
5353 (is_dynamic_type): New function.
5354 (resolve_dynamic_type): New function.
5355 (resolve_dynamic_bounds): New function.
5356 (get_type_length): New function.
5357 (check_typedef): Use get_type_length to compute type length.
5358 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5359 (TYPE_LOW_BOUND_KIND): New macro.
5360 (is_dynamic_type): New function prototype.
5361 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5362 to resolve dynamic properties of the type. Update comment.
5363 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5365 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5367 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5368 declaring high/low bounds and change uses accordingly. Call
5369 create_range_type instead of create_static_range_type.
5370 * gdbtypes.c (create_range_type): New function.
5371 (create_range_type): Convert bounds into struct bound_prop and pass
5372 them to create_range_type.
5373 * gdbtypes.h (struct bound_prop): New struct.
5374 (create_range_type): New function prototype.
5375 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5376 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5377 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5379 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5381 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5383 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5384 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5385 * ada-lang.c: All uses of create_range_type updated.
5386 * coffread.c: All uses of create_range_type updated.
5387 * dwarf2read.c: All uses of create_range_type updated.
5388 * f-exp.y: All uses of create_range_type updated.
5389 * m2-valprint.c: All uses of create_range_type updated.
5390 * mdebugread.c: All uses of create_range_type updated.
5391 * stabsread.c: All uses of create_range_type updated.
5392 * valops.c: All uses of create_range_type updated.
5393 * valprint.c: All uses of create_range_type updated.
5395 2014-04-10 Pedro Alves <palves@redhat.com>
5397 * breakpoint.c (single_step_breakpoints)
5398 (single_step_gdbarch): Move up in the file.
5399 (one_breakpoint_xfer_memory): New function, factored out from ...
5400 (breakpoint_xfer_memory): ... here. Also process single-step
5403 2014-04-09 Tristan Gingold <gingold@adacore.com>
5405 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5407 (darwin_decode_exception_message): Free port only after use.
5409 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5411 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5412 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5413 when setting the size of call_length.
5415 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5417 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5418 dereference TYPE_CODE_REF values.
5420 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5422 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5423 end of warning message.
5425 2014-04-03 Doug Evans <dje@google.com>
5427 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5428 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5430 2014-04-02 Alan Modra <amodra@gmail.com>
5432 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5433 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5434 (struct symbol_file_add_from_memory_args): Add size field.
5435 (find_vdso_size): New function.
5436 (add_vsyscall_page): Attempt to find vdso size.
5438 2014-04-01 Doug Evans <dje@google.com>
5440 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5442 2014-04-01 Tristan Gingold <gingold@adacore.com>
5444 * darwin-nat.c (darwin_encode_reply): Add prototype.
5445 (darwin_decode_exception_message): Reply to unknown inferiors.
5446 (darwin_decode_message): Handle message by id. Ignore message
5447 to unknown inferior.
5448 (darwin_wait): Discard unknown messages, add debug trace.
5450 2014-03-31 Doug Evans <dje@google.com>
5452 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5455 2014-03-31 Doug Evans <dje@google.com>
5457 New option "set print symbol-loading".
5459 * solib.c (solib_read_symbols): Only print symbol loading messages
5461 (solib_add): If symbol loading is in "brief" mode, notify user
5462 symbols are being loaded.
5463 (reload_shared_libraries_1): Ditto.
5464 * symfile.c (print_symbol_loading_off): New static global.
5465 (print_symbol_loading_brief): New static global.
5466 (print_symbol_loading_full): New static global.
5467 (print_symbol_loading_enums): New static global.
5468 (print_symbol_loading): New static global.
5469 (print_symbol_loading_p): New function.
5470 (symbol_file_add_with_addrs): Only print symbol loading messages
5472 (_initialize_symfile): Register "print symbol-loading" set/show
5474 * symfile.h (print_symbol_loading_p): Declare.
5476 2014-03-30 Doug Evans <xdje42@gmail.com>
5478 * infrun.c (set_last_target_status): New function.
5479 (handle_inferior_event): Call it.
5481 2014-03-30 Doug Evans <xdje42@gmail.com>
5483 * inferior.h (enum stop_kind): Improve comment.
5485 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5487 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5488 a reference, strip the reference layer before calling
5489 the lang_ops value_has_mutated callback.
5491 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5493 Remove some globals from our parser.
5494 * language.c (unk_lang_parser): Add "struct parser_state"
5496 * language.h (struct language_defn) <la_parser>: Likewise.
5497 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5498 (initialize_expout): Add "struct parser_state" argument.
5499 Rewrite function to use the parser state.
5500 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5501 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5502 write_exp_elt_longcst, write_exp_elt_dblcst,
5503 write_exp_elt_decfloatcst, write_exp_elt_type,
5504 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5505 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5506 write_dollar_variable): Likewise.
5507 (parse_exp_in_context_1): Use parser state.
5508 (insert_type_address_space): Add "struct parser_state" argument.
5510 (increase_expout_size): New function.
5511 * parser-defs.h: Forward declare "struct language_defn" and
5512 "struct parser_state".
5513 (expout, expout_size, expout_ptr): Remove extern declarations.
5514 (parse_gdbarch, parse_language): Rewrite macro declarations to
5515 accept the parser state.
5516 (struct parser_state): New struct.
5517 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5518 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5519 write_exp_elt_decfloatcst, write_exp_elt_type,
5520 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5521 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5522 write_exp_msymbol, write_dollar_variable,
5523 mark_struct_expression, insert_type_address_space): Add "struct
5524 parser_state" argument.
5525 (increase_expout_size): New function.
5526 * utils.c (do_clear_parser_state): New function.
5527 (make_cleanup_clear_parser_state): Likewise.
5528 * utils.h (make_cleanup_clear_parser_state): New function
5530 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5531 Update calls to write_exp* in order to pass the parser state.
5532 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5533 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5534 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5535 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5536 * stap-probe.c (stap_parse_register_operand): Likewise.
5537 (stap_parse_single_operand): Likewise.
5538 (stap_parse_argument_1): Likewise.
5539 (stap_parse_argument): Use parser state.
5540 * stap-probe.h: Include "parser-defs.h".
5541 (struct stap_parse_info) <pstate>: New field.
5542 * c-exp.y (parse_type): Rewrite to use parser state.
5543 (yyparse): Redefine to c_parse_internal.
5544 (pstate): New global variable.
5545 (parse_number): Add "struct parser_state" argument.
5546 (write_destructor_name): Likewise.
5547 (type_exp): Update calls to write_exp* and similars in order to
5549 (exp1, exp, variable, qualified_name, space_identifier,
5550 typename, typebase): Likewise.
5551 (write_destructor_name, parse_number, lex_one_token,
5552 classify_name, classify_inner_name, c_parse): Add "struct
5553 parser_state" argument. Update function to use parser state.
5554 * c-lang.h: Forward declare "struct parser_state".
5555 (c_parse): Add "struct parser_state" argument.
5556 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5557 (yyparse): Redefine macro to ada_parse_internal.
5558 (pstate): New variable.
5559 (write_int, write_object_renaming, write_var_or_type,
5560 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5561 type_int, type_long, type_long_long, type_float, type_double,
5562 type_long_double, type_char, type_boolean, type_system_address):
5563 Add "struct parser_state" argument.
5564 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5565 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5566 var_or_type, aggregate, aggregate_component_list,
5567 positional_list, others, component_group,
5568 component_associations): Update calls to write_exp* and similar
5569 functions in order to use parser state.
5570 (ada_parse, write_var_from_sym, write_int,
5571 write_exp_op_with_string, write_object_renaming,
5572 find_primitive_type, write_selectors, write_ambiguous_var,
5573 write_var_or_type, write_name_assoc, type_int, type_long,
5574 type_long_long, type_float, type_double, type_long_double,
5575 type_char, type_boolean, type_system_address): Add "struct
5576 parser_state" argument. Adjust function to use parser state.
5577 * ada-lang.c (parse): Likewise.
5578 * ada-lang.h: Forward declare "struct parser_state".
5579 (ada_parse): Add "struct parser_state" argument.
5580 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5581 calls to both functions.
5582 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5584 (yyparse): Redefine macro to f_parse_internal.
5585 (pstate): New variable.
5586 (parse_number): Add "struct parser_state" argument.
5587 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5588 and similars in order to use parser state.
5589 (parse_number): Adjust code to use parser state.
5591 (f_parse): New function.
5592 * f-lang.h: Forward declare "struct parser_state".
5593 (f_parse): Add "struct parser_state" argument.
5594 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5596 (yyparse): Redefine macro for java_parse_internal.
5597 (pstate): New variable.
5598 (push_expression_name, push_expression_name, insert_exp): Add
5599 "struct parser_state" argument.
5600 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5601 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5602 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5603 PostIncrementExpression, PostDecrementExpression,
5604 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5605 UnaryExpressionNotPlusMinus, CastExpression,
5606 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5607 RelationalExpression, EqualityExpression, AndExpression,
5608 ExclusiveOrExpression, InclusiveOrExpression,
5609 ConditionalAndExpression, ConditionalOrExpression,
5610 ConditionalExpression, Assignment, LeftHandSide): Update
5611 calls to write_exp* and similars in order to use parser state.
5612 (parse_number): Ajust code to use parser state.
5614 (java_parse): New function.
5615 (push_variable): Add "struct parser_state" argument. Adjust
5616 code to user parser state.
5617 (push_fieldnames, push_qualified_expression_name,
5618 push_expression_name, insert_exp): Likewise.
5619 * jv-lang.h: Forward declare "struct parser_state".
5620 (java_parse): Add "struct parser_state" argument.
5621 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5623 (yyparse): Redefine macro to m2_parse_internal.
5624 (pstate): New variable.
5625 (type_exp, exp, fblock, variable, type): Update calls to
5626 write_exp* and similars to use parser state.
5628 (m2_parse): New function.
5629 * m2-lang.h: Forward declare "struct parser_state".
5630 (m2_parse): Add "struct parser_state" argument.
5631 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5632 * objc-lang.h: Forward declare "struct parser_state".
5633 (end_msglist): Add "struct parser_state" argument.
5634 * p-exp.y (parse_type): Rewrite macro to use parser state.
5635 (yyparse): Redefine macro to pascal_parse_internal.
5636 (pstate): New variable.
5637 (parse_number): Add "struct parser_state" argument.
5638 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5639 write_exp* and similars in order to use parser state.
5640 (parse_number, yylex): Adjust code to use parser state.
5641 (pascal_parse): New function.
5642 * p-lang.h: Forward declare "struct parser_state".
5643 (pascal_parse): Add "struct parser_state" argument.
5644 * go-exp.y (parse_type): Rewrite macro to use parser state.
5645 (yyparse): Redefine macro to go_parse_internal.
5646 (pstate): New variable.
5647 (parse_number): Add "struct parser_state" argument.
5648 (type_exp, exp1, exp, variable, type): Update calls to
5649 write_exp* and similars in order to use parser state.
5650 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5651 to use parser state.
5652 (go_parse): Likewise.
5653 * go-lang.h: Forward declare "struct parser_state".
5654 (go_parse): Add "struct parser_state" argument.
5656 2014-03-27 Doug Evans <dje@google.com>
5658 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5660 2014-03-27 Doug Evans <dje@google.com>
5662 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5663 Remove argument abbrev_section. All callers updated.
5665 2014-03-27 Doug Evans <dje@google.com>
5667 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5668 addr_base, ranges_base.
5670 2014-03-26 Keith Seitz <keiths@redhat.com>
5672 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5673 types, not VAR_DOMAIN.
5675 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5677 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5679 * features/nios2-linux.c: Regenerated.
5680 * features/nios2.c: Regenerated.
5682 2014-03-25 Pedro Alves <palves@redhat.com>
5684 * cli/cli-script.c (script_from_file): Force the interpreter to
5687 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5689 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5690 small stack allocation.
5692 2014-03-24 Tristan Gingold <gingold@adacore.com>
5694 * darwin-nat.c (exc_server): Remove unused prototype.
5695 (darwin_dump_message): Correctly display data on x86_64.
5696 (darwin_encode_reply): Fix style.
5697 Add comments and fix indentation.
5699 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5701 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5703 2014-03-22 Doug Evans <xdje42@gmail.com>
5705 * infcmd.c: Whitespace fixes.
5706 (interrupt_command): Merge two function comments into one.
5708 2014-03-22 Doug Evans <xdje42@gmail.com>
5710 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5713 2014-03-22 Yao Qi <yao@codesourcery.com>
5715 * remote.c (target_read_live_memory): Remove.
5716 (memory_xfer_live_readonly_partial): Rename it to
5717 remote_xfer_live_readonly_partial. Remove argument 'object'.
5718 All callers updated. Call remote_read_bytes_1
5719 instead of target_read_live_memory.
5720 * tracepoint.c (set_traceframe_number): Remove.
5721 (make_cleanup_restore_traceframe_number): Likewise .
5722 * tracepoint.h (set_traceframe_number): Remove declaration.
5723 (make_cleanup_restore_traceframe_number): Likewise.
5725 2014-03-22 Yao Qi <yao@codesourcery.com>
5727 * remote.c (remote_read_bytes): Move code on reading from the
5729 (remote_read_bytes_1): ... here. New function.
5731 2014-03-22 Yao Qi <yao@codesourcery.com>
5733 * ctf.c (ctf_xfer_partial): Check the return value of
5734 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5735 return TARGET_XFER_UNAVAILABLE.
5736 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5737 * target.c (target_read_live_memory): Move it to remote.c.
5738 (memory_xfer_live_readonly_partial): Likewise.
5739 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5740 * remote.c (target_read_live_memory): Moved from target.c.
5741 (memory_xfer_live_readonly_partial): Likewise.
5742 (remote_read_bytes): Factored out from
5743 memory_xfer_partial_1.
5745 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5747 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5750 2014-03-21 Pedro Alves <palves@redhat.com>
5752 * infrun.c (normal_stop): Extend comment.
5754 2014-03-21 Hui Zhu <hui@codesourcery.com>
5755 Pedro Alves <palves@redhat.com>
5757 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5759 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5760 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5761 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5763 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5765 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5766 `z' formatted output modifier.
5768 2014-03-20 Tom Tromey <tromey@redhat.com>
5769 Sergio Durigan Junior <sergiodj@redhat.com>
5771 * probe.c (parse_probes): Turn assert into an ordinary error.
5772 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5773 exceptions when parsing probes. Rearrange the code for clarity.
5775 2014-03-20 Tom Tromey <tromey@redhat.com>
5778 * top.c (execute_command): Only dispatch events if the command
5781 2014-03-20 Tom Tromey <tromey@redhat.com>
5784 * infcall.c: Include event-top.h.
5785 (run_inferior_call): Call async_disable_stdin if needed.
5787 2014-03-20 Pedro Alves <palves@redhat.com>
5789 * infrun.c (prepare_to_proceed): Delete.
5790 (thread_still_needs_step_over): New function.
5791 (find_thread_needs_step_over): New function.
5792 (proceed): If the current thread needs a step-over, set its
5793 steping_over_breakpoint flag. Adjust to use
5794 find_thread_needs_step_over instead of prepare_to_proceed.
5795 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5796 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5798 (switch_back_to_stepped_thread): Step over breakpoints of all
5799 threads not the stepping thread, before switching back to the
5802 2014-03-20 Pedro Alves <palves@redhat.com>
5804 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5806 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5807 * infrun.c (saved_singlestep_ptid)
5808 (stepping_past_singlestep_breakpoint): Delete.
5809 (resume): Remove stepping_past_singlestep_breakpoint handling.
5810 (proceed): Store the prev_pc of the stepping thread too.
5811 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5813 (enum infwait_states): Delete infwait_thread_hop_state.
5814 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5816 (handle_inferior_event): Adjust.
5817 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5818 handling and the thread-hop code. Before removing single-step
5819 breakpoints, check whether the thread hit a single-step breakpoint
5820 of another thread. If it did, the trap is not a random signal.
5821 (switch_back_to_stepped_thread): If the event thread hit a
5822 single-step breakpoint, unblock it before switching to the
5823 stepping thread. Handle the case of the stepped thread having
5825 (keep_going): Handle the case of the current thread moving past a
5826 single-step breakpoint.
5828 2014-03-20 Pedro Alves <palves@redhat.com>
5831 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5832 are being stepped over.
5833 (breakpoint_address_match): Make extern.
5834 * breakpoint.h (breakpoint_address_match): New declaration.
5835 * inferior.h (stepping_past_instruction_at): New declaration.
5836 * infrun.c (struct step_over_info): New type.
5837 (step_over_info): New global.
5838 (set_step_over_info, clear_step_over_info)
5839 (stepping_past_instruction_at): New functions.
5840 (handle_inferior_event): Clear the step-over info when
5841 trap_expected is cleared.
5842 (resume): Remove now stale comment.
5843 (clear_proceed_status): Clear step-over info.
5844 (proceed): Adjust step-over handling to set or clear the step-over
5845 info instead of removing all breakpoints.
5846 (handle_signal_stop): When setting up a thread-hop, don't remove
5848 (stop_stepping): Clear step-over info.
5849 (keep_going): Adjust step-over handling to set or clear step-over
5850 info and then always inserting breakpoints, instead of removing
5851 all breakpoints when stepping over one.
5853 2014-03-20 Pedro Alves <palves@redhat.com>
5855 * infrun.c (previous_inferior_ptid): Adjust comment.
5856 (deferred_step_ptid): Delete.
5857 (infrun_thread_ptid_changed, prepare_to_proceed)
5858 (init_wait_for_inferior): Adjust.
5859 (handle_signal_stop): Delete deferred_step_ptid handling.
5861 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5864 * defs.h (sync_quit_force_run): New declaration.
5865 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5866 * event-top.c (async_sigterm_handler): New declaration.
5867 (async_sigterm_token): New variable.
5868 (async_init_signals): Create also async_sigterm_token.
5869 (async_sigterm_handler): New function.
5870 (sync_quit_force_run): New variable.
5871 (handle_sigterm): Replace quit_force call by other calls.
5872 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5874 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5876 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5877 offset into SPE pseudo registers.
5879 2014-03-18 Pedro Alves <palves@redhat.com>
5882 * inferior.h (print_stop_event): Declare.
5883 * infrun.c (print_stop_event): New, factored out from ...
5884 (normal_stop): ... this.
5885 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5886 of bpstat_print/print_stack_frame.
5888 2014-03-17 Tom Tromey <tromey@redhat.com>
5890 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5892 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5894 * ada-lang.c (decode_constrained_packed_array): Perform a
5895 minimal coercion for reference with coerce_ref instead of
5898 2014-03-17 Tristan Gingold <gingold@adacore.com>
5900 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5901 (darwin_solib_create_inferior_hook): Emit a warning if version
5904 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5906 * python/py-value.c (get_field_flag): Cast flag_name argument to
5907 PyObject_GetAttrString to support Python 2.4.
5909 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5911 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5912 (Global Maintainers): Remove Jan Kratochvil.
5914 2014-03-14 Pedro Alves <palves@redhat.com>
5916 * inferior.h (terminal_ours_for_output): Rename to ...
5917 (child_terminal_ours_for_output): ... this.
5918 (terminal_save_ours): Rename to ...
5919 (child_terminal_save_ours): ... this.
5920 (terminal_ours): Rename to ...
5921 (child_terminal_ours): ... this.
5922 (terminal_inferior): Rename to ...
5923 (child_terminal_inferior): ... this.
5924 (terminal_init_inferior): Rename to ...
5925 (child_terminal_init_inferior): ... this.
5926 (terminal_init_inferior_with_pgrp): Rename to ...
5927 (child_terminal_init_inferior_with_pgrp): ... this.
5928 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5929 (child_terminal_init_with_pgrp): ... this.
5930 (terminal_save_ours): Rename to ...
5931 (child_terminal_save_ours): ... this.
5932 (terminal_init_inferior): Rename to ...
5933 (child_terminal_init): ... this. Adjust.
5934 (terminal_inferior): Rename to ...
5935 (child_terminal_inferior): ... this.
5936 (terminal_ours_for_output): Rename to ...
5937 (child_terminal_ours_for_output): ... this. Adjust.
5938 (terminal_ours): Rename to ...
5939 (child_terminal_ours): ... this.
5940 (terminal_ours_1): Rename to ...
5941 (child_terminal_ours_1): ... this. Adjust.
5942 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5943 * windows-nat.c (do_initial_windows_stuff): Adjust.
5944 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5945 (gnu_terminal_init): ... this. Adjust.
5946 (gnu_target): Adjust.
5947 * inf-child.c (inf_child_target): Adjust.
5949 2014-03-13 Doug Evans <xdje42@gmail.com>
5952 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5955 2014-03-13 Doug Evans <xdje42@gmail.com>
5957 * value.c (record_latest_value): Call release_value_or_incref
5958 instead of release_value.
5960 2014-03-13 Pedro Alves <palves@redhat.com>
5962 * procfs.c (procfs_target): Don't override to_shortname,
5963 to_longname or to_doc.
5965 2014-03-13 Pedro Alves <palves@redhat.com>
5967 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5968 Unix in user visible strings.
5970 2014-03-12 Stan Shebs <stan@codesourcery.com>
5972 * gdbtypes.h: Annotate comments for Doxygen, add a page
5973 block comment with some general info.
5975 2014-03-12 Pedro Alves <palves@redhat.com>
5977 * infcmd.c (prepare_execution_command): New function, factored out
5978 from several execution commands.
5979 (run_command_1, continue_command, step_1, jump_command)
5980 (signal_command, until_command, advance_command, finish_command)
5981 (attach_command): Use prepare_execution_command.
5983 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5985 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5988 (struct arm_linux_thread_points): Removed.
5989 (struct arm_linux_process_info): New.
5990 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5991 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5992 (arm_linux_find_breakpoints_by_tid): Removed.
5993 (struct arch_lwp_info): New.
5994 (arm_linux_find_process_pid): New functions.
5995 (arm_linux_add_process): New functions.
5996 (arm_linux_process_info_get): New functions.
5997 (arm_linux_forget_process): New function.
5998 (arm_linux_get_debug_reg_state): New function.
5999 (struct update_registers_data): New.
6000 (update_registers_callback): New function.
6001 (arm_linux_insert_hw_breakpoint1): Updated.
6002 (arm_linux_remove_hw_breakpoint1): Updated.
6003 (arm_linux_insert_hw_breakpoint): Updated.
6004 (arm_linux_remove_hw_breakpoint): Updated.
6005 (arm_linux_insert_watchpoint): Updated.
6006 (arm_linux_remove_watchpoint): Updated.
6007 (arm_linux_new_thread): Updated.
6008 (arm_linux_prepare_to_resume): New function.
6009 (arm_linux_new_fork): New function.
6010 (_initialize_arm_linux_nat): Updated.
6012 2014-03-12 Pedro Alves <palves@redhat.com>
6014 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6016 2014-03-12 Tom Tromey <tromey@redhat.com>
6018 * inf-child.c (return_zero): New function.
6019 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6020 * aix-thread.c (aix_thread_inferior_created): New function.
6021 (aix_thread_attach): Remove.
6022 (init_aix_thread_ops): Don't set to_attach.
6023 (_initialize_aix_thread): Register inferior_created observer.
6024 * corelow.c (init_core_ops): Don't set to_attach or
6026 * exec.c (init_exec_ops): Don't set to_attach or
6028 * infcmd.c (run_command_1): Use find_run_target. Make direct
6030 (attach_command): Use find_attach_target. Make direct target
6032 * record-btrace.c (init_record_btrace_ops): Don't set
6034 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6036 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6037 set to_create_inferior.
6038 * target.c (complete_target_initialization): Add assertion.
6039 (target_create_inferior): Remove.
6040 (find_default_attach, find_default_create_inferior): Remove.
6041 (find_attach_target, find_run_target): New functions.
6042 (find_default_is_async_p, find_default_can_async_p)
6043 (target_supports_non_stop, target_attach): Remove.
6044 (init_dummy_target): Don't set to_create_inferior or
6045 to_supports_non_stop.
6046 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6047 TARGET_DEFAULT_FUNC.
6048 <to_create_inferior>: Add comment.
6049 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6050 TARGET_DEFAULT_RETURN.
6051 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6052 (find_attach_target, find_run_target): Declare.
6053 (target_create_inferior): Remove.
6054 (target_has_execution_1): Update comment.
6055 (target_supports_non_stop): Remove.
6056 * target-delegates.c: Rebuild.
6058 2014-03-12 Pedro Alves <palves@redhat.com>
6060 * inf-child.h: Update comment to not mention Unix.
6062 2014-03-12 Pedro Alves <palves@redhat.com>
6064 * inf-child.c: Update top comment to not mention Unix. Add
6065 generic comment describing how this target is meant to be used.
6066 (inf_child_post_attach, inf_child_post_startup_inferior)
6067 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6070 2014-03-12 Pedro Alves <palves@redhat.com>
6072 * nto-procfs.c: Include inf-child.h.
6073 (procfs_ops): Delete global.
6074 (procfs_can_run): Delete method.
6075 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6076 target pointer instead of referencing procfs_ops.
6077 (procfs_prepare_to_store): Delete.
6078 (init_procfs_ops): Delete function.
6079 (procfs_target): New function, based on init_procfs_ops, but
6080 inherit inf_child_target.
6081 (_initialize_procfs): Use procfs_target.
6083 2014-03-12 Pedro Alves <palves@redhat.com>
6085 * windows-nat.c: Include inf-child.h.
6086 (windows_ops): Delete global.
6087 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6089 (init_windows_ops): Delete function.
6090 (windows_target): New function, based on init_windows_ops, but
6091 inherit inf_child_target.
6092 (_initialize_windows_nat): Use windows_target. Install x86
6093 specific target methods here.
6095 2014-03-10 Doug Evans <xdje42@gmail.com>
6097 * guile/guile.c (call_initialize_gdb_module): New function.
6098 (initialize_guile): Replace call to scm_init_guile with call to
6101 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6103 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6104 in call to TYPE_CODE macro.
6106 2014-03-10 Jerome Guitton <guitton@adacore.com>
6108 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6109 Resolve tagged types to full view.
6111 2014-03-10 Hui Zhu <hui@codesourcery.com>
6113 * target.h (target_insert_breakpoint): Remove "hardware" from its
6116 2014-03-07 Doug Evans <dje@google.com>
6118 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6120 2014-03-07 Doug Evans <dje@google.com>
6122 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6123 Remove unused local comp_dir_attr. Assert exactly one of
6124 stub_comp_unit_die, stub_comp_dir is non-NULL.
6126 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6128 * target.h (complete_target_initialization, add_target):
6131 2014-03-07 Pedro Alves <palves@redhat.com>
6133 * go32-nat.c: Include inf-child.h.
6134 (go32_ops): Delete global.
6135 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6137 (go32_create_inferior): Push the passed in target pointer instead
6138 of referencing go32_ops.
6139 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6140 (go32_target): New function, based on init_go32_ops, but inherit
6142 (_initialize_go32_nat): Use go32_target. Move parts of
6145 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6147 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6148 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6149 SYMBOL_VALUE_ADDRESS.
6150 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6152 2014-03-06 Yao Qi <yao@codesourcery.com>
6154 * breakpoint.c (get_tracepoint_by_number): Remove argument
6155 optional_p. All callers updated. Adjust comments. Update
6157 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6159 2014-03-06 Yao Qi <yao@codesourcery.com>
6161 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6162 early if get_number returns zero. Use 'p' instead of 'args'.
6164 2014-03-06 Yao Qi <yao@codesourcery.com>
6166 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6169 2014-03-06 Yao Qi <yao@codesourcery.com>
6171 PR breakpoints/16508
6172 * tracepoint.c (check_trace_running): New function.
6173 (trace_find_command): Move code to check_trace_running and
6174 call check_trace_running.
6175 (trace_find_pc_command): Likewise.
6176 (trace_find_tracepoint_command): Likewise.
6177 (trace_find_line_command): Likewise.
6178 (trace_find_range_command): Likewise.
6179 * tracepoint.h (check_trace_running): Likewise.
6180 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6182 2014-03-06 Yao Qi <yao@codesourcery.com>
6184 * target.h (struct target_ops) <to_traceframe_info>: Use
6185 TARGET_DEFAULT_NORETURN (tcomplain ()).
6186 * target-delegates.c: Regenerated.
6188 2014-03-05 Pedro Alves <palves@redhat.com>
6191 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6192 void. Update comment.
6193 (dcache_xfer_memory): Delete.
6194 (dcache_read_memory_partial): New, based on the read bits of
6196 (dcache_update): Add status parameter. Use ULONGEST for len, and
6197 adjust. Discard cache lines if the reason for the update was
6199 * dcache.h (dcache_xfer_memory): Delete declaration.
6200 (dcache_read_memory_partial): New declaration.
6201 (dcache_update): Update prototype.
6202 * target.c (raw_memory_xfer_partial): Update the dcache here.
6203 (memory_xfer_partial_1): Don't handle dcache writes here.
6205 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6207 * remote-sim.c (gdbsim_load): Add const to prog.
6209 2014-03-03 Tom Tromey <tromey@redhat.com>
6211 * elfread.c (probe_key): Change to bfd_data.
6212 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6213 now per-BFD, not per-objfile.
6214 * stap-probe.c (stap_probe_destroy): Update comment.
6215 (handle_stap_probe): Allocate on the per-BFD obstack.
6217 2014-03-03 Tom Tromey <tromey@redhat.com>
6219 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6220 * breakpoint.c (create_longjmp_master_breakpoint): Use
6222 (add_location_to_breakpoint, bkpt_probe_insert_location)
6223 (bkpt_probe_remove_location): Update.
6224 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6225 * elfread.c (elf_symfile_relocate_probe): Remove.
6226 (elf_probe_fns): Update.
6227 (insert_exception_resume_breakpoint): Change type of "probe"
6228 parameter to bound_probe.
6229 (check_exception_resume): Update.
6230 * objfiles.c (objfile_relocate1): Don't relocate probes.
6231 * probe.c (bound_probe_s): New typedef.
6232 (parse_probes): Use get_probe_address. Set sal's objfile.
6233 (find_probe_by_pc): Return a bound_probe.
6234 (collect_probes): Return a VEC(bound_probe_s).
6235 (compare_probes): Update.
6236 (gen_ui_out_table_header_info): Change type of "probes"
6238 (info_probes_for_ops): Update.
6239 (get_probe_address): New function.
6240 (probe_safe_evaluate_at_pc): Update.
6241 * probe.h (struct probe_ops) <get_probe_address>: New field.
6242 <set_semaphore, clear_semaphore>: Add objfile parameter.
6243 (struct probe) <objfile>: Remove field.
6245 <address>: Update comment.
6246 (struct bound_probe): New.
6247 (find_probe_by_pc): Return a bound_probe.
6248 (get_probe_address): Declare.
6249 * solib-svr4.c (struct probe_and_action) <address>: New field.
6250 (hash_probe_and_action, equal_probe_and_action): Update.
6251 (register_solib_event_probe): Add address parameter.
6252 (solib_event_probe_at): Update.
6253 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6255 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6256 (stap_get_probe_address): New function.
6257 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6258 (compile_probe_arg): Update.
6259 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6261 (handle_stap_probe): Don't relocate the probe.
6262 (stap_relocate): Remove.
6263 (stap_gen_info_probes_table_values): Update.
6264 (stap_probe_ops): Remove stap_relocate.
6265 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6266 (debug_sym_probe_fns): Update.
6267 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6268 * symtab.c (init_sal): Use memset.
6269 * symtab.h (struct symtab_and_line) <objfile>: New field.
6270 * tracepoint.c (start_tracing, stop_tracing): Update.
6272 2014-03-03 Tom Tromey <tromey@redhat.com>
6274 * probe.h (parse_probes, find_probe_by_pc)
6275 (find_probes_in_objfile): Fix comments.
6277 2014-03-02 Doug Evans <xdje42@gmail.com>
6279 * infrun.c (handle_signal_stop): Replace test for
6280 TARGET_WAITKIND_STOPPED with an assert.
6282 2014-03-02 Doug Evans <xdje42@gmail.com>
6284 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6286 2014-03-02 Doug Evans <xdje42@gmail.com>
6288 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6290 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6292 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6294 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6296 * i386obsd-nat.c: Include "obsd-nat.h".
6297 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6299 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6301 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6303 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6305 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6307 * mips64obsd-nat.c: Include "obsd-nath".
6308 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6310 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6312 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6314 * amd64obsd-nat.c: Include "obsd-nat,h.
6315 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6317 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6319 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6321 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6322 (find_overload_match): Update call to find_oload_champ.
6323 (find_oload_champ_namespace_loop): Likewise
6325 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6327 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6329 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6330 * config/sparc/obsd64.mh: New file.
6331 * sparc64obsd-nat.c: New file.
6333 * obsd-nat.h: New file.
6334 * obsd-nat.c: New file.
6335 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6336 (ALLDEPFILES): Add obsd-nat.c.
6338 2014-02-28 Tom Tromey <tromey@redhat.com>
6340 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6341 * cli-out.h (cli_ui_out_impl): Now const.
6342 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6343 * ui-out.c (struct ui_out) <impl>: Now const.
6344 (default_ui_out_impl): Now const.
6345 (ui_out_new): Make 'impl' parameter const.
6346 * ui-out.h (ui_out_new): Update.
6348 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6350 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6352 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6354 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6356 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6358 Additional PR 8882 fix.
6359 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6361 2014-02-27 Pedro Alves <palves@redhat.com>
6363 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6366 2014-02-27 Pedro Alves <palves@redhat.com>
6369 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6370 * nat/linux-waitpid.c: Include string.h.
6371 (status_to_str): Moved here and made extern.
6372 * nat/linux-waitpid.h (status_to_str): New declaration.
6374 2014-02-27 Hui Zhu <hui@codesourcery.com>
6377 * infrun.c (ptid_match): Move ...
6378 * common/ptid.c (ptid_match): ... here.
6379 * inferior.h (ptid_match): Move ...
6380 * common/ptid.h (ptid_match): ... here.
6382 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6384 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6385 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6388 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6390 * obsd-tdep.c (obsd_auxv_parse): New function.
6391 (obsd_init_abi): Set auxv_parse.
6393 * gdbarch.sh (auxv_parse): New.
6394 * gdbarch.h: Regenerated.
6395 * gdbarch.c: Regenerated.
6396 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6398 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6400 * guile/scm-value.c (gdbscm_history_append_x): New function.
6401 (value_functions): Add it.
6403 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6405 * dwarf2read.c (attr_value_as_address): New function.
6406 (dwarf2_find_base_address, read_call_site_scope): Use
6407 attr_value_as_address in place of DW_ADDR.
6408 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6409 the low and high addresses. Slight rework of the handling
6410 of the high pc being a constant form, and limit it to
6411 DWARF verson 4 or higher.
6412 (dwarf2_record_block_ranges): Likewise.
6413 (read_partial_die): Likewise.
6414 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6416 2014-02-26 Tom Tromey <tromey@redhat.com>
6418 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6420 2014-02-26 Tom Tromey <tromey@redhat.com>
6422 * elfread.c (elf_read_minimal_symbols): Return early if
6423 minimal symbols have already been read. Add "ei" parameter.
6424 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6425 * minsyms.c (prim_record_minimal_symbol_full): Update.
6426 * objfiles.h (struct objstats) <n_minsyms>: Move...
6427 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6428 * symmisc.c (print_objfile_statistics): Update.
6430 2014-02-26 Tom Tromey <tromey@redhat.com>
6432 * elfread.c (elf_read_minimal_symbols): New function, from
6434 (elf_symfile_read): Call it.
6436 2014-02-26 Tom Tromey <tromey@redhat.com>
6438 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6439 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6440 (lookup_minimal_symbol_solib_trampoline)
6441 (lookup_minimal_symbol_by_pc_section_1)
6442 (lookup_minimal_symbol_and_objfile): Update.
6443 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6444 Don't allocate a minimal symbol if minsyms have already been read.
6445 (build_minimal_symbol_hash_tables): Update.
6446 (install_minimal_symbols): Do nothing if minsyms already read.
6447 Use the per-BFD obstack.
6448 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6449 * objfiles.c (allocate_objfile): Call
6450 terminate_minimal_symbol_table later.
6451 (have_minimal_symbols): Update.
6452 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6453 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6454 Move from struct objfile.
6455 <minsyms_read>: New field.
6456 (struct objfile) <msymbols, minimal_symbol_count,
6457 msymbol_hash, msymbol_demangled_hash>: Move.
6458 (ALL_OBJFILE_MSYMBOLS): Update.
6459 * symfile.c (read_symbols): Set minsyms_read.
6460 (reread_symbols): Update.
6461 * symmisc.c (dump_objfile, dump_msymbols): Update.
6463 2014-02-26 Tom Tromey <tromey@redhat.com>
6465 * minsyms.c (msymbols_sort): Remove.
6466 * minsyms.h (msymbols_sort): Remove.
6467 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6468 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6469 * elfread.c (elf_symtab_read): Don't add section offsets.
6470 * xcoffread.c (record_minimal_symbol): Don't add section offset
6471 to minimal symbol address.
6472 * somread.c (text_offset, data_offset): Remove.
6473 (som_symtab_read): Don't add section offsets to minimal symbol
6475 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6476 Don't add section offsets to minimal symbols.
6477 * coffread.c (coff_symtab_read): Don't add section offsets
6478 to minimal symbol addresses.
6479 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6480 to minimal symbol addresses.
6481 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6482 section offset to minimal symbol addresses.
6483 * mdebugread.c (parse_partial_symbols): Don't add section
6484 offset to minimal symbol addresses.
6485 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6486 offset to minimal symbol addresses.
6488 2014-02-26 Tom Tromey <tromey@redhat.com>
6490 * ada-lang.c (ada_main_name): Update.
6491 (ada_add_standard_exceptions): Update.
6492 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6493 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6494 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6495 * auxv.c (ld_so_xfer_auxv): Update.
6496 * avr-tdep.c (avr_scan_prologue): Update.
6497 * ax-gdb.c (gen_var_ref): Update.
6498 * blockframe.c (get_pc_function_start)
6499 (find_pc_partial_function_gnu_ifunc): Update.
6500 * breakpoint.c (create_overlay_event_breakpoint)
6501 (create_longjmp_master_breakpoint)
6502 (create_std_terminate_master_breakpoint)
6503 (create_exception_master_breakpoint): Update.
6504 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6505 * c-valprint.c (c_val_print): Update.
6506 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6507 * common/agent.c (agent_look_up_symbols): Update.
6508 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6509 * dwarf2loc.c (call_site_to_target_addr): Update.
6510 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6511 * elfread.c (elf_gnu_ifunc_record_cache)
6512 (elf_gnu_ifunc_resolve_by_got): Update.
6513 * findvar.c (default_read_var_value): Update.
6514 * frame.c (inside_main_func): Update.
6515 * frv-tdep.c (frv_frame_this_id): Update.
6516 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6517 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6519 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6520 (hppa_hpux_find_dummy_bpaddr): Update.
6521 * hppa-tdep.c (hppa_symbol_address): Update.
6522 * infcmd.c (until_next_command): Update.
6523 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6525 * linespec.c (minsym_found, add_minsym): Update.
6526 * linux-nat.c (get_signo): Update.
6527 * linux-thread-db.c (inferior_has_bug): Update.
6528 * m32c-tdep.c (m32c_return_value)
6529 (m32c_m16c_address_to_pointer): Update.
6530 * m32r-tdep.c (m32r_frame_this_id): Update.
6531 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6532 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6533 * maint.c (maintenance_translate_address): Update.
6534 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6535 (frob_address): New function.
6536 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6537 frob_address. Rename parameter to "pc_in".
6538 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6540 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6542 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6543 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6544 * objc-lang.c (find_objc_msgsend): Update.
6545 * objfiles.c (objfile_relocate1): Update.
6546 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6547 * p-valprint.c (pascal_val_print): Update.
6548 * parse.c (write_exp_msymbol): Update.
6549 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6550 (ppc_elfv2_skip_entrypoint): Update.
6551 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6552 * printcmd.c (build_address_symbolic, msym_info)
6553 (address_info): Update.
6554 * proc-service.c (ps_pglobal_lookup): Update.
6555 * psymtab.c (find_pc_sect_psymtab_closer)
6556 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6557 Change msymbol parameter to bound_minimal_symbol.
6558 * ravenscar-thread.c (get_running_thread_id): Update.
6559 * remote.c (remote_check_symbols): Update.
6560 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6562 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6563 * solib-dsbt.c (lm_base): Update.
6564 * solib-frv.c (lm_base, main_got): Update.
6565 * solib-irix.c (locate_base): Update.
6566 * solib-som.c (som_solib_create_inferior_hook)
6567 (link_map_start): Update.
6568 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6569 * solib-svr4.c (elf_locate_base, enable_break): Update.
6570 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6571 (flush_ea_cache): Update.
6572 * stabsread.c (define_symbol, scan_file_globals): Update.
6573 * stack.c (find_frame_funname): Update.
6574 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6575 (debug_qf_find_pc_sect_symtab): Update.
6576 * symfile.c (simple_read_overlay_table)
6577 (simple_overlay_update): Update.
6578 * symfile.h (struct quick_symbol_functions)
6579 <find_pc_sect_symtab>: Change type of msymbol to
6580 bound_minimal_symbol.
6581 * symmisc.c (dump_msymbols): Update.
6582 * symtab.c (find_pc_sect_symtab_via_partial)
6583 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6584 (search_symbols, print_msymbol_info): Update.
6585 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6586 (MSYMBOL_VALUE_ADDRESS): Redefine.
6587 (BMSYMBOL_VALUE_ADDRESS): New macro.
6588 * tracepoint.c (scope_info): Update.
6589 * tui/tui-disasm.c (tui_find_disassembly_address)
6590 (tui_get_begin_asm_address): Update.
6591 * valops.c (find_function_in_inferior): Update.
6592 * value.c (value_static_field, value_fn_field): Update.
6594 2014-02-26 Tom Tromey <tromey@redhat.com>
6596 * ada-lang.c (ada_update_initial_language): Update.
6597 (ada_main_name, ada_has_this_exception_support): Update.
6598 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6599 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6600 * arm-tdep.c (arm_skip_stub): Update.
6601 * auxv.c (ld_so_xfer_auxv): Update.
6602 * avr-tdep.c (avr_scan_prologue): Update.
6603 * ax-gdb.c (gen_var_ref): Update.
6604 * breakpoint.c (struct breakpoint_objfile_data)
6605 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6606 type to bound_minimal_symbol.
6607 (create_overlay_event_breakpoint)
6608 (create_longjmp_master_breakpoint)
6609 (create_std_terminate_master_breakpoint)
6610 (create_exception_master_breakpoint): Update.
6611 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6612 * c-exp.y (classify_name): Update.
6613 * coffread.c (coff_symfile_read): Update.
6614 * common/agent.c (agent_look_up_symbols): Update.
6615 * d-lang.c (d_main_name): Update.
6616 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6617 * dec-thread.c (enable_dec_thread): Update.
6618 * dwarf2loc.c (call_site_to_target_addr): Update.
6619 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6620 * eval.c (evaluate_subexp_standard): Update.
6621 * findvar.c (struct minsym_lookup_data) <result>: Change type
6622 to bound_minimal_symbol.
6624 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6625 * frame.c (inside_main_func): Update.
6626 * frv-tdep.c (frv_frame_this_id): Update.
6627 * gcore.c (call_target_sbrk): Update.
6628 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6629 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6631 * go-lang.c (go_main_name): Update.
6632 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6633 (hppa_hpux_find_import_stub_for_addr): Update.
6634 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6635 Update. Change return type.
6636 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6638 * jit.c (jit_breakpoint_re_set_internal): Update.
6639 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6641 * linux-nat.c (get_signo): Update.
6642 * linux-thread-db.c (inferior_has_bug): Update
6643 * m32c-tdep.c (m32c_return_value)
6644 (m32c_m16c_address_to_pointer): Update.
6645 * m32r-tdep.c (m32r_frame_this_id): Update.
6646 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6647 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6648 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6649 lookup_minimal_symbol. Change return type.
6650 (lookup_minimal_symbol): Remove.
6651 (lookup_bound_minimal_symbol): Update.
6652 (lookup_minimal_symbol_text): Change return type.
6653 (lookup_minimal_symbol_solib_trampoline): Change return type.
6654 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6655 (lookup_minimal_symbol_solib_trampoline): Change return type.
6656 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6657 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6658 (value_nsstring, find_imps): Update.
6659 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6660 * p-lang.c (pascal_main_name): Update.
6661 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6662 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6663 * proc-service.c (ps_pglobal_lookup): Update.
6664 * ravenscar-thread.c (get_running_thread_msymbol): Change
6666 (has_ravenscar_runtime, get_running_thread_id): Update.
6667 * remote.c (remote_check_symbols): Update.
6668 * sol-thread.c (ps_pglobal_lookup): Update.
6669 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6670 * solib-dsbt.c (lm_base): Update.
6671 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6673 * solib-irix.c (locate_base): Update.
6674 * solib-som.c (som_solib_create_inferior_hook)
6675 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6677 * solib-spu.c (spu_enable_break): Update.
6678 * solib-svr4.c (elf_locate_base, enable_break): Update.
6679 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6680 (flush_ea_cache): Update.
6681 * stabsread.c (define_symbol): Update.
6682 * symfile.c (simple_read_overlay_table): Update.
6683 * symtab.c (find_pc_sect_line): Update.
6684 * tracepoint.c (scope_info): Update.
6685 * tui-disasm.c (tui_get_begin_asm_address): Update.
6686 * value.c (value_static_field): Update.
6688 2014-02-26 Tom Tromey <tromey@redhat.com>
6690 * minsyms.c (prim_record_minimal_symbol_full): Use
6691 SET_MSYMBOL_VALUE_ADDRESS.
6692 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6693 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6694 SET_MSYMBOL_VALUE_ADDRESS.
6695 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6696 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6698 2014-02-26 Tom Tromey <tromey@redhat.com>
6700 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6701 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6702 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6703 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6704 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6705 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6706 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6707 * ada-lang.c (ada_main_name): Update.
6708 (ada_lookup_simple_minsym): Update.
6709 (ada_make_symbol_completion_list): Update.
6710 (ada_add_standard_exceptions): Update.
6711 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6712 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6713 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6714 * arm-tdep.c (skip_prologue_function): Update.
6715 (arm_skip_stack_protector, arm_skip_stub): Update.
6716 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6717 (arm_wince_skip_main_prologue): Update.
6718 * auxv.c (ld_so_xfer_auxv): Update.
6719 * avr-tdep.c (avr_scan_prologue): Update.
6720 * ax-gdb.c (gen_var_ref): Update.
6721 * block.c (call_site_for_pc): Update.
6722 * blockframe.c (get_pc_function_start): Update.
6723 (find_pc_partial_function_gnu_ifunc): Update.
6724 * breakpoint.c (create_overlay_event_breakpoint): Update.
6725 (create_longjmp_master_breakpoint): Update.
6726 (create_std_terminate_master_breakpoint): Update.
6727 (create_exception_master_breakpoint): Update.
6728 (resolve_sal_pc): Update.
6729 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6730 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6732 * c-valprint.c (c_val_print): Update.
6733 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6734 * coffread.c (coff_symfile_read): Update.
6735 * common/agent.c (agent_look_up_symbols): Update.
6736 * dbxread.c (find_stab_function_addr): Update.
6737 (end_psymtab): Update.
6738 * dwarf2loc.c (call_site_to_target_addr): Update.
6739 (func_verify_no_selftailcall): Update.
6740 (tailcall_dump): Update.
6741 (call_site_find_chain_1): Update.
6742 (dwarf_expr_reg_to_entry_parameter): Update.
6743 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6744 (elf_gnu_ifunc_resolve_by_got): Update.
6745 * f-valprint.c (info_common_command): Update.
6746 * findvar.c (read_var_value): Update.
6747 * frame.c (get_prev_frame_1): Update.
6748 (inside_main_func): Update.
6749 * frv-tdep.c (frv_skip_main_prologue): Update.
6750 (frv_frame_this_id): Update.
6751 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6752 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6753 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6754 (gnuv3_skip_trampoline): Update.
6755 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6756 (hppa64_hpux_in_solib_call_trampoline): Update.
6757 (hppa_hpux_skip_trampoline_code): Update.
6758 (hppa64_hpux_search_dummy_call_sequence): Update.
6759 (hppa_hpux_find_import_stub_for_addr): Update.
6760 (hppa_hpux_find_dummy_bpaddr): Update.
6761 * hppa-tdep.c (hppa_symbol_address)
6762 (hppa_lookup_stub_minimal_symbol): Update.
6763 * i386-tdep.c (i386_skip_main_prologue): Update.
6764 (i386_pe_skip_trampoline_code): Update.
6765 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6766 * infcall.c (get_function_name): Update.
6767 * infcmd.c (until_next_command): Update.
6768 * jit.c (jit_breakpoint_re_set_internal): Update.
6769 (jit_inferior_init): Update.
6770 * linespec.c (minsym_found): Update.
6771 (add_minsym): Update.
6772 * linux-fork.c (info_checkpoints_command): Update.
6773 * linux-nat.c (get_signo): Update.
6774 * linux-thread-db.c (inferior_has_bug): Update.
6775 * m32c-tdep.c (m32c_return_value): Update.
6776 (m32c_m16c_address_to_pointer): Update.
6777 (m32c_m16c_pointer_to_address): Update.
6778 * m32r-tdep.c (m32r_frame_this_id): Update.
6779 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6780 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6781 * maint.c (maintenance_translate_address): Update.
6782 * minsyms.c (add_minsym_to_hash_table): Update.
6783 (add_minsym_to_demangled_hash_table): Update.
6784 (msymbol_objfile): Update.
6785 (lookup_minimal_symbol): Update.
6786 (iterate_over_minimal_symbols): Update.
6787 (lookup_minimal_symbol_text): Update.
6788 (lookup_minimal_symbol_by_pc_name): Update.
6789 (lookup_minimal_symbol_solib_trampoline): Update.
6790 (lookup_minimal_symbol_by_pc_section_1): Update.
6791 (lookup_minimal_symbol_and_objfile): Update.
6792 (prim_record_minimal_symbol_full): Update.
6793 (compare_minimal_symbols): Update.
6794 (compact_minimal_symbols): Update.
6795 (build_minimal_symbol_hash_tables): Update.
6796 (install_minimal_symbols): Update.
6797 (terminate_minimal_symbol_table): Update.
6798 (find_solib_trampoline_target): Update.
6799 (minimal_symbol_upper_bound): Update.
6800 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6801 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6802 (mips_skip_pic_trampoline_code): Update.
6803 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6804 * objc-lang.c (selectors_info): Update.
6805 (classes_info): Update.
6806 (find_methods): Update.
6807 (find_imps): Update.
6808 (find_objc_msgsend): Update.
6809 * objfiles.c (objfile_relocate1): Update.
6810 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6811 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6812 * p-valprint.c (pascal_val_print): Update.
6813 * parse.c (write_exp_msymbol): Update.
6814 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6815 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6816 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6817 * printcmd.c (build_address_symbolic): Update.
6819 (address_info): Update.
6820 * proc-service.c (ps_pglobal_lookup): Update.
6821 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6822 (find_pc_sect_psymtab): Update.
6823 * python/py-framefilter.c (py_print_frame): Update.
6824 * ravenscar-thread.c (get_running_thread_id): Update.
6825 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6827 * remote.c (remote_check_symbols): Update.
6828 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6829 (rs6000_skip_trampoline_code): Update.
6830 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6831 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6832 * solib-dsbt.c (lm_base): Update.
6833 * solib-frv.c (lm_base): Update.
6835 * solib-irix.c (locate_base): Update.
6836 * solib-som.c (som_solib_create_inferior_hook): Update.
6837 (som_solib_desire_dynamic_linker_symbols): Update.
6838 (link_map_start): Update.
6839 * solib-spu.c (spu_enable_break): Update.
6840 (ocl_enable_break): Update.
6841 * solib-svr4.c (elf_locate_base): Update.
6842 (enable_break): Update.
6843 * spu-tdep.c (spu_get_overlay_table): Update.
6844 (spu_catch_start): Update.
6845 (flush_ea_cache): Update.
6846 * stabsread.c (define_symbol): Update.
6847 (scan_file_globals): Update.
6848 * stack.c (find_frame_funname): Update.
6849 (frame_info): Update.
6850 * symfile.c (simple_read_overlay_table): Update.
6851 (simple_overlay_update): Update.
6852 * symmisc.c (dump_msymbols): Update.
6853 * symtab.c (fixup_section): Update.
6854 (find_pc_sect_line): Update.
6855 (skip_prologue_sal): Update.
6856 (search_symbols): Update.
6857 (print_msymbol_info): Update.
6858 (rbreak_command): Update.
6859 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6860 (completion_list_objc_symbol): Update.
6861 (default_make_symbol_completion_list_break_on): Update.
6862 * tracepoint.c (scope_info): Update.
6863 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6864 (tui_get_begin_asm_address): Update.
6865 * valops.c (find_function_in_inferior): Update.
6866 * value.c (value_static_field): Update.
6867 (value_fn_field): Update.
6869 2014-02-26 Tom Tromey <tromey@redhat.com>
6871 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6872 bound minimal symbols. Move code that knows about minsym
6874 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6876 * minsyms.h (minimal_symbol_upper_bound): Declare.
6877 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6878 minimal_symbol_upper_bound.
6880 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6882 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6883 Use the type's name if its basic type does not have a tag.
6885 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6887 * dwarf2read.c (read_subrange_type): Add comment.
6889 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6891 * dwarf2read.c (update_enumeration_type_from_children): New
6892 function, mostly extracted from process_structure_scope.
6893 (read_enumeration_type): Call update_enumeration_type_from_children.
6894 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6895 and flag_flag_enum fields.
6897 2014-02-26 Pedro Alves <palves@redhat.com>
6899 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6900 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6901 to_xfer_partial method.
6903 2014-02-26 Pedro Alves <palves@redhat.com>
6905 * target.c (complete_target_initialization): Don't install
6906 default_xfer_partial as to_xfer_partial hook.
6908 (update_current_target): Don't INHERIT nor de_fault
6909 deprecated_xfer_memory. Delete de_fault macro.
6910 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6911 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6912 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6915 2014-02-26 Pedro Alves <palves@redhat.com>
6917 * go32-nat.c (my_write_child): New function.
6918 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6919 (go32_xfer_partial): New function.
6920 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6921 Instead install a to_xfer_partial hook.
6923 2014-02-26 Pedro Alves <palves@redhat.com>
6925 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6926 to_xfer_partial helper. Rewrite.
6927 (procfs_xfer_partial): New function.
6928 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6929 Install a to_xfer_partial hook.
6931 2014-02-26 Pedro Alves <palves@redhat.com>
6933 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6934 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6935 (m32r_xfer_partial): New function.
6936 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6937 Install a to_xfer_partial hook.
6939 2014-02-26 Pedro Alves <palves@redhat.com>
6941 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6943 (mips_xfer_partial): New function.
6944 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6945 hook. Install a to_xfer_partial hook.
6947 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6949 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6950 * gdbtypes.c (create_array_type_with_stride): New function,
6951 renaming create_array_type, but with an added parameter
6952 called "bit_stride".
6953 (create_array_type): Re-implement using
6954 create_array_type_with_stride.
6955 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6956 and DW_AT_bit_stride attributes.
6958 2014-02-26 Pedro Alves <palves@redhat.com>
6960 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6961 task-specific breakpoints.
6963 2014-02-25 Pedro Alves <palves@redhat.com>
6965 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6966 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6968 2014-02-25 Stan Shebs <stan@codesourcery.com>
6970 * defs.h: Annotate comments for Doxygen.
6972 2014-02-25 Tom Tromey <tromey@redhat.com>
6974 * target.h (target_ignore): Don't declare.
6975 * target.c (target_ignore): Remove.
6977 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6980 * auto-load.c (auto_load_objfile_script_1): Change filename to
6983 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6985 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6986 documentation. Adjust prototype to match the target_ops
6987 to_xfer_partial method. Adjust implementation accordingly.
6989 2014-02-25 Hui Zhu <hui@codesourcery.com>
6991 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6994 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6996 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6997 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6998 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6999 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7000 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7001 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7002 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7003 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7005 (rl78_register_type): Use a data pointer type for SP and
7006 new pseudo registers mentioned above. Use a 16 bit integer
7007 type for all other register pairs.
7008 (rl78_register_name, rl78_g10_register_name): Update for
7009 new pseudo registers.
7010 (rl78_pseudo_register_read): Likewise.
7011 (rl78_pseudo_register_write): Likewise.
7012 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7013 to the newly added pseudo registers.
7015 2014-02-24 Doug Evans <dje@google.com>
7017 * value.c (record_latest_value): Fix comment.
7018 * printcmd.c (print_command_1): Remove code to handle -1 return from
7019 record_latest_value.
7021 2014-02-24 Pedro Alves <palves@redhat.com>
7023 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7024 deprecated_xfer_memory hook.
7025 (procfs_xfer_partial): Call procfs_xfer_memory instead
7026 of the deprecated_xfer_memory target hook.
7027 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7030 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7032 * windows-nat.c (windows_xfer_shared_libraries): Return
7033 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7034 requested object is TARGET_OBJECT_LIBRARIES.
7036 2014-02-24 Yao Qi <yao@codesourcery.com>
7038 * target.h (enum target_xfer_status)
7039 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7040 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7042 * corefile.c (memory_error_message): User updated.
7043 * exec.c (section_table_read_available_memory): Likewise.
7044 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7045 * target.c (target_xfer_status_to_string): Likewise.
7046 (raw_memory_xfer_partial): Likewise.
7047 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7048 * valops.c (read_value_memory): Likewise.
7049 * exec.h: Update comments.
7051 2014-02-24 Yao Qi <yao@codesourcery.com>
7053 * target.c (target_xfer_status_to_string): Rename argument err
7055 * target.h (target_xfer_status_to_string): Update declaration.
7056 Replace target_xfer_error_to_string with
7057 target_xfer_status_to_string in comment.
7059 2014-02-24 Yao Qi <yao@codesourcery.com>
7061 * mips-linux-nat.c (super_close): Update its type.
7062 (mips_linux_close): Pass 'self' to super_close.
7064 2014-02-24 Yao Qi <yao@codesourcery.com>
7066 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7067 * corefile.c (read_memory): Adjusted.
7068 * target.c (target_write_with_progress): Adjusted.
7070 2014-02-23 Yao Qi <yao@codesourcery.com>
7074 2013-10-25 Yao Qi <yao@codesourcery.com>
7076 * remote.c (remote_traceframe_info): Return early if
7077 traceframe is not selected.
7079 2013-07-19 Yao Qi <yao@codesourcery.com>
7081 * target.c (update_current_target): Change the default action
7082 of 'to_traceframe_info' from tcomplain to return_zero.
7083 * target.h (struct target_ops) <to_traceframe_info>: Add more
7086 2014-02-23 Yao Qi <yao@codesourcery.com>
7088 * valops.c (read_value_memory): Rewrite it. Call
7089 target_xfer_partial in a loop.
7090 * exec.h (section_table_available_memory): Remove declaration.
7091 Move comments to ...
7092 * exec.c (section_table_available_memory): ... here. Make it
7095 2014-02-23 Yao Qi <yao@codesourcery.com>
7097 * exec.c (section_table_read_available_memory): New function.
7098 * exec.h (section_table_read_available_memory): Declare.
7099 * ctf.c (ctf_xfer_partial): Call
7100 section_table_read_available_memory.
7101 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7103 2014-02-23 Yao Qi <yao@codesourcery.com>
7105 * ctf.c (ctf_xfer_partial): Move code to ...
7106 * exec.c (exec_read_partial_read_only): ... it. New function.
7107 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7108 * tracefile.c: Include "exec.h".
7109 * exec.h (exec_read_partial_read_only): Declare.
7111 2014-02-23 Yao Qi <yao@codesourcery.com>
7113 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7114 (tfile_has_memory): Remove.
7115 (init_tfile_ops): Don't set fields to_has_all_memory and
7116 to_has_memory of tfile_ops.
7117 * tracefile.c (tracefile_has_all_memory): New function.
7118 (tracefile_has_memory): New function.
7119 (init_tracefile_ops): Initialize fields to_has_all_memory and
7120 to_has_memory of 'ops'.
7122 2014-02-23 Yao Qi <yao@codesourcery.com>
7124 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7125 (ctf_thread_alive, ctf_get_trace_status): Remove.
7126 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7128 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7129 (tfile_has_stack, tfile_has_registers): Remove.
7130 (tfile_thread_alive): Remove.
7131 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7133 * tracefile.c (tracefile_has_stack): New function.
7134 (tracefile_has_registers): New function.
7135 (tracefile_thread_alive): New function.
7136 (tracefile_get_trace_status): New function.
7137 (init_tracefile_ops): New function.
7138 * tracefile.h (init_tracefile_ops): Declare.
7140 2014-02-23 Yao Qi <yao@codesourcery.com>
7142 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7143 (O_LARGEFILE): Likewise.
7144 (tfile_ops): Likewise.
7145 (TRACE_HEADER_SIZE): Likewise.
7146 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7147 (cur_data_size): Likewise.
7148 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7149 (tfile_close, tfile_files_info): Likewise.
7150 (tfile_get_trace_status): Likewise.
7151 (tfile_get_tracepoint_status): Likewise.
7152 (tfile_get_traceframe_address): Likewise.
7153 (tfile_trace_find, match_blocktype): Likewise.
7154 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7155 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7156 (tfile_get_trace_state_variable_value): Likewise.
7157 (tfile_has_all_memory, tfile_has_memory): Likewise.
7158 (tfile_has_stack, tfile_has_registers): Likewise.
7159 (tfile_thread_alive, build_traceframe_info): Likewise.
7160 (tfile_traceframe_info, init_tfile_ops): Likewise.
7161 (_initialize_tracepoint): Don't call init_tfile_ops
7162 and add_target_with_completer.
7163 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7164 exec.h, completer.h and filenames.h.
7165 (_initialize_tracefile_tfile): New function.
7167 2014-02-23 Yao Qi <yao@codesourcery.com>
7169 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7171 (HFILES_NO_SRCDIR): Add tracefile.h.
7172 * ctf.c: Include "tracefile.h".
7173 * tracefile.h: New file.
7174 * tracefile.c: New file
7175 * tracefile-tfile.c: New file.
7176 * tracepoint.c: Include "tracefile.h".
7177 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7178 (stop_reason_names): Add const.
7179 (trace_file_writer_xfree): Move it to tracefile.c.
7180 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7181 (trace_save_ctf): Likewise.
7182 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7183 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7184 (tfile_write_header, tfile_write_regblock_type): Likewise.
7185 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7186 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7187 (tfile_write_raw_data, tfile_end): Likewise.
7188 (tfile_trace_file_writer_new): Likewise.
7189 (free_uploaded_tp): Make it extern.
7190 (free_uploaded_tsv): Make it extern.
7191 (_initialize_tracepoint): Move code to register command 'tsave'
7193 * tracepoint.h (stop_reason_names): Declare.
7194 (struct trace_frame_write_ops): Move it to tracefile.h.
7195 (struct trace_file_write_ops): Likewise.
7196 (struct trace_file_writer): Likewise.
7197 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7199 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7202 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7204 (get_cores_used_by_process): New parameter num_cores, use it.
7205 (linux_xfer_osdata_processes): Pass num_cores to it.
7206 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7209 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7211 * target.c (memory_xfer_partial): Fix length arg in call to
7212 breakpoint_xfer_memory.
7214 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7217 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7218 number comes after the + or - signs. Adjust length of register
7219 name to be extracted.
7221 2014-02-20 Tom Tromey <tromey@redhat.com>
7223 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7224 (ada_varobj_ops): Mark "extern".
7226 2014-02-20 Tom Tromey <tromey@redhat.com>
7228 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7230 2014-02-20 Doug Evans <xdje42@gmail.com>
7232 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7233 All callers updated.
7234 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7235 All callers updated.
7236 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7237 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7239 2014-02-20 lin zuojian <manjian2006@gmail.com>
7240 Joel Brobecker <brobecker@adacore.com>
7241 Doug Evans <xdje42@gmail.com>
7244 * dwarf2read.c (struct die_info): New member in_process.
7245 (reset_die_in_process): New function.
7246 (process_die): Set it at the start, reset when returning.
7247 (inherit_abstract_dies): Only call process_die if origin_child_die
7248 not already being processed.
7250 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7252 * windows-nat.c (handle_unload_dll): Add function documentation.
7253 (do_initial_windows_stuff): Add comment explaining why we wait
7254 until after inferior initialization has finished before
7255 processing all DLLs.
7257 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7259 * windows-nat.c (get_module_name): Delete.
7260 (windows_get_exec_module_filename): New function, mostly
7261 inspired from get_module_name.
7262 (windows_pid_to_exec_file): Replace call to get_module_name
7263 by call to windows_get_exec_module_filename.
7265 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7267 * windows-nat.c (handle_load_dll): Rewrite this function's
7268 introductory comment. Remove code using get_module_name
7269 to get the DLL's name.
7271 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7273 * windows-nat.c (get_windows_debug_event): Ignore
7274 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7275 if windows_initialization_done == 0.
7276 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7277 Adjust implementation to always load all DLLs.
7278 (do_initial_windows_stuff): Replace call to
7279 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7281 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7283 * windows-nat.c (_initialize_windows_nat): Deprecate the
7284 "dll-symbols" command. Turn the "add-shared-symbol-files"
7285 and "assf" aliases into commands, and deprecate them as well.
7286 * NEWS: Add entry explaining that "dll-symbols" and its two
7287 aliases are now deprecated.
7289 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7291 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7292 new-line in debug string. Remove trailing spaces.
7294 2014-02-19 Stan Shebs <stan@codesourcery.com>
7296 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7298 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7300 * NEWS: Add entry for the new feature
7301 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7304 2014-02-19 Stan Shebs <stan@codesourcery.com>
7306 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7308 2014-02-19 Pedro Alves <palves@redhat.com>
7310 * common/ptid.h (struct ptid): Mention that process_stratum
7311 targets should prefer ptid.lwp.
7313 2014-02-19 Pedro Alves <palves@redhat.com>
7315 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7316 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7317 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7318 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7319 store remote thread ids rather than ptid.tid.
7320 (_initialize_remote): Adjust.
7322 2014-02-19 Tom Tromey <tromey@redhat.com>
7324 * target.c (target_get_unwinder): Rewrite.
7325 (target_get_tailcall_unwinder): Rewrite.
7326 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7327 (record_btrace_to_get_tailcall_unwinder): New function.
7328 (init_record_btrace_ops): Update.
7329 * target.h (struct target_ops) <to_get_unwinder,
7330 to_get_tailcall_unwinder>: Now function pointers. Use
7331 TARGET_DEFAULT_RETURN.
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7337 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7339 2014-02-19 Tom Tromey <tromey@redhat.com>
7341 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7343 * target-delegates.c: Rebuild.
7344 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7345 TARGET_DEFAULT_FUNC.
7346 * target.c (default_target_decr_pc_after_break): Rename from
7347 forward_target_decr_pc_after_break. Simplify.
7348 (target_decr_pc_after_break): Rely on delegation.
7350 2014-02-19 Tom Tromey <tromey@redhat.com>
7352 * target.c (update_current_target): Do not INHERIT to_doc or
7353 to_magic. Do not de_fault to_open or to_close.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * gcore.h (objfile_find_memory_regions): Declare.
7358 * gcore.c (objfile_find_memory_regions): No longer static. Add
7360 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7361 * exec.c: Include gcore.h.
7362 (exec_set_find_memory_regions): Remove.
7363 (exec_find_memory_regions): Remove.
7364 (exec_do_find_memory_regions): Remove.
7365 (init_exec_ops): Update.
7366 * defs.h (exec_set_find_memory_regions): Remove.
7368 2014-02-19 Tom Tromey <tromey@redhat.com>
7370 * target-delegates.c: Rebuild.
7371 * target.h (struct target_ops) <to_extra_thread_info,
7372 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7373 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7374 not 0, in TARGET_DEFAULT_RETURN.
7376 2014-02-19 Tom Tromey <tromey@redhat.com>
7378 * target.c (complete_target_initialization): Remove casts. Use
7379 return_zero_has_execution.
7380 (return_zero): Add "ignore" argument.
7381 (return_zero_has_execution): New function.
7382 (init_dummy_target): Remove casts. Use
7383 return_zero_has_execution.
7385 2014-02-19 Tom Tromey <tromey@redhat.com>
7387 * target.c (update_current_target): Update comments. Do not
7390 2014-02-19 Tom Tromey <tromey@redhat.com>
7392 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7394 * corelow.c (core_read_description): Delegate when needed.
7395 * remote.c (remote_read_description): Delegate when needed.
7396 * target-delegates.c: Rebuild.
7397 * target.c (target_read_description): Rewrite.
7398 * target.h (struct target_ops) <to_read_description>: Update
7399 comment. Use TARGET_DEFAULT_RETURN.
7401 2014-02-19 Tom Tromey <tromey@redhat.com>
7403 * target-delegates.c: Rebuild.
7404 * target.c (update_current_target): Don't inherit or default
7406 (find_default_run_target): Check against delegate_can_run.
7407 * target.h (struct target_ops) <to_can_run>: Use
7408 TARGET_DEFAULT_RETURN.
7410 2014-02-19 Tom Tromey <tromey@redhat.com>
7412 * target-delegates.c: Rebuild.
7413 * target.c (target_disconnect): Unconditionally delegate.
7414 * target.h (struct target_ops) <to_disconnect>: Use
7415 TARGET_DEFAULT_NORETURN.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * record.c (record_stop): Unconditionally delegate.
7420 * target-delegates.c: Rebuild.
7421 * target.c (target_stop_recording): Unconditionally delegate.
7422 * target.h (struct target_ops) <to_stop_recording>: Use
7423 TARGET_DEFAULT_IGNORE.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target-delegates.c: Rebuild.
7428 * target.c (target_enable_btrace): Unconditionally delegate.
7429 * target.h (struct target_ops) <to_enable_btrace>: Use
7430 TARGET_DEFAULT_NORETURN.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * target-delegates.c: Rebuild.
7435 * target.c (target_read_btrace): Unconditionally delegate.
7436 * target.h (struct target_ops) <to_read_btrace>: Use
7437 TARGET_DEFAULT_NORETURN.
7439 2014-02-19 Tom Tromey <tromey@redhat.com>
7441 * target-delegates.c: Rebuild.
7442 * target.c (target_teardown_btrace): Unconditionally delegate.
7443 * target.h (struct target_ops) <to_teardown_btrace>: Use
7444 TARGET_DEFAULT_NORETURN.
7446 2014-02-19 Tom Tromey <tromey@redhat.com>
7448 * target-delegates.c: Rebuild.
7449 * target.c (target_disable_btrace): Unconditionally delegate.
7450 * target.h (struct target_ops) <to_disable_btrace>: Use
7451 TARGET_DEFAULT_NORETURN.
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7455 * target-delegates.c: Rebuild.
7456 * target.c (default_search_memory): New function.
7457 (simple_search_memory): Update comment.
7458 (target_search_memory): Unconditionally delegate.
7459 * target.h (struct target_ops) <to_search_memory>: Use
7460 TARGET_DEFAULT_FUNC.
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * auxv.c (default_auxv_parse): No longer static.
7465 (target_auxv_parse): Unconditionally delegate.
7466 * auxv.h (default_auxv_parse): Declare.
7467 * target-delegates.c: Rebuild.
7468 * target.c: Include auxv.h.
7469 * target.h (struct target_ops) <to_auxv_parse>: Use
7470 TARGET_DEFAULT_FUNC.
7472 2014-02-19 Tom Tromey <tromey@redhat.com>
7474 * target-delegates.c: Rebuild.
7475 * target.c (target_memory_map): Unconditionally delegate.
7476 * target.h (struct target_ops) <to_memory_map>: Use
7477 TARGET_DEFAULT_RETURN.
7479 2014-02-19 Tom Tromey <tromey@redhat.com>
7481 * target-delegates.c: Rebuild.
7482 * target.c (target_thread_alive): Unconditionally delegate.
7483 * target.h (struct target_ops) <to_thread_alive>: Use
7484 TARGET_DEFAULT_RETURN.
7486 2014-02-19 Tom Tromey <tromey@redhat.com>
7488 * target-delegates.c: Rebuild.
7489 * target.c (target_save_record): Unconditionally delegate.
7490 * target.h (struct target_ops) <to_save_record>: Use
7491 TARGET_DEFAULT_NORETURN.
7493 2014-02-19 Tom Tromey <tromey@redhat.com>
7495 * target-delegates.c: Rebuild.
7496 * target.c (target_delete_record): Unconditionally delegate.
7497 * target.h (struct target_ops) <to_delete_record>: Use
7498 TARGET_DEFAULT_NORETURN.
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_record_is_replaying): Unconditionally
7505 * target.h (struct target_ops) <to_record_is_replaying>: Use
7506 TARGET_DEFAULT_RETURN.
7508 2014-02-19 Tom Tromey <tromey@redhat.com>
7510 * target-delegates.c: Rebuild.
7511 * target.c (target_goto_record_begin): Unconditionally delegate.
7512 * target.h (struct target_ops) <to_goto_record_begin>: Use
7513 TARGET_DEFAULT_NORETURN.
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7517 * target-delegates.c: Rebuild.
7518 * target.c (target_goto_record_end): Unconditionally delegate.
7519 * target.h (struct target_ops) <to_goto_record_end>: Use
7520 TARGET_DEFAULT_NORETURN.
7522 2014-02-19 Tom Tromey <tromey@redhat.com>
7524 * target-delegates.c: Rebuild.
7525 * target.c (target_goto_record): Unconditionally delegate.
7526 * target.h (struct target_ops) <to_goto_record>: Use
7527 TARGET_DEFAULT_NORETURN.
7529 2014-02-19 Tom Tromey <tromey@redhat.com>
7531 * target-delegates.c: Rebuild.
7532 * target.c (target_insn_history): Unconditionally delegate.
7533 * target.h (struct target_ops) <to_insn_history>: Use
7534 TARGET_DEFAULT_NORETURN.
7536 2014-02-19 Tom Tromey <tromey@redhat.com>
7538 * target-delegates.c: Rebuild.
7539 * target.c (target_insn_history_from): Unconditionally delegate.
7540 * target.h (struct target_ops) <to_insn_history_from>: Use
7541 TARGET_DEFAULT_NORETURN.
7543 2014-02-19 Tom Tromey <tromey@redhat.com>
7545 * target-delegates.c: Rebuild.
7546 * target.c (target_insn_history_range): Unconditionally delegate.
7547 * target.h (struct target_ops) <to_insn_history_range>: Use
7548 TARGET_DEFAULT_NORETURN.
7550 2014-02-19 Tom Tromey <tromey@redhat.com>
7552 * target-delegates.c: Rebuild.
7553 * target.c (target_call_history): Unconditionally delegate.
7554 * target.h (struct target_ops) <to_call_history>: Use
7555 TARGET_DEFAULT_NORETURN.
7557 2014-02-19 Tom Tromey <tromey@redhat.com>
7559 * target-delegates.c: Rebuild.
7560 * target.c (target_call_history_from): Unconditionally delegate.
7561 * target.h (struct target_ops) <to_call_history_from>: Use
7562 TARGET_DEFAULT_NORETURN.
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * target-delegates.c: Rebuild.
7567 * target.c (target_call_history_range): Unconditionally delegate.
7568 * target.h (struct target_ops) <to_call_history_range>: Use
7569 TARGET_DEFAULT_NORETURN.
7571 2014-02-19 Tom Tromey <tromey@redhat.com>
7573 * target-delegates.c: Rebuild.
7574 * target.c (target_verify_memory): Unconditionally delegate.
7575 * target.h (struct target_ops) <to_verify_memory>: Use
7576 TARGET_DEFAULT_NORETURN.
7578 2014-02-19 Tom Tromey <tromey@redhat.com>
7580 * target-delegates.c: Rebuild.
7581 * target.c (target_core_of_thread): Unconditionally delegate.
7582 * target.h (struct target_ops) <to_core_of_thread>: Use
7583 TARGET_DEFAULT_RETURN.
7585 2014-02-19 Tom Tromey <tromey@redhat.com>
7587 * target-delegates.c: Rebuild.
7588 * target.c (target_flash_done): Unconditionally delegate.
7589 * target.h (struct target_ops) <to_flash_done>: Use
7590 TARGET_DEFAULT_NORETURN.
7592 2014-02-19 Tom Tromey <tromey@redhat.com>
7594 * target-delegates.c: Rebuild.
7595 * target.c (target_flash_erase): Unconditionally delegate.
7596 * target.h (struct target_ops) <to_flash_erase>: Use
7597 TARGET_DEFAULT_NORETURN.
7599 2014-02-19 Tom Tromey <tromey@redhat.com>
7601 * target-delegates.c: Rebuild.
7602 * target.c (target_get_section_table): Unconditionally delegate.
7603 * target.h (struct target_ops) <to_get_section_table>: Use
7604 TARGET_DEFAULT_RETURN.
7606 2014-02-19 Tom Tromey <tromey@redhat.com>
7608 * target-delegates.c: Rebuild.
7609 * target.c (target_pid_to_str): Unconditionally delegate.
7610 (init_dummy_target): Don't initialize to_pid_to_str.
7611 (default_pid_to_str): Rename from dummy_pid_to_str.
7612 * target.h (struct target_ops) <to_pid_to_str>: Use
7613 TARGET_DEFAULT_FUNC.
7615 2014-02-19 Tom Tromey <tromey@redhat.com>
7617 * target-delegates.c: Rebuild.
7618 * target.c (target_find_new_threads): Unconditionally delegate.
7619 * target.h (struct target_ops) <to_find_new_threads>: Use
7620 TARGET_DEFAULT_RETURN.
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target-delegates.c: Rebuild.
7625 * target.c (target_program_signals): Unconditionally delegate.
7626 * target.h (struct target_ops) <to_program_signals>: Use
7627 TARGET_DEFAULT_IGNORE.
7629 2014-02-19 Tom Tromey <tromey@redhat.com>
7631 * target-delegates.c: Rebuild.
7632 * target.c (target_pass_signals): Unconditionally delegate.
7633 * target.h (struct target_ops) <to_pass_signals>: Use
7634 TARGET_DEFAULT_IGNORE.
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * target-delegates.c: Rebuild.
7639 * target.c (default_mourn_inferior): New function.
7640 (target_mourn_inferior): Unconditionally delegate.
7641 * target.h (struct target_ops) <to_mourn_inferior>: Use
7642 TARGET_DEFAULT_FUNC.
7644 2014-02-19 Tom Tromey <tromey@redhat.com>
7646 * target-delegates.c: Rebuild.
7647 * target.c (default_follow_fork): New function.
7648 (target_follow_fork): Unconditionally delegate.
7649 * target.h (struct target_ops) <to_follow_fork>: Use
7650 TARGET_DEFAULT_FUNC.
7652 2014-02-19 Tom Tromey <tromey@redhat.com>
7654 * target-delegates.c: Rebuild.
7655 * target.c (target_kill): Unconditionally delegate.
7656 * target.h (struct target_ops) <to_kill>: Use
7657 TARGET_DEFAULT_NORETURN.
7659 2014-02-19 Tom Tromey <tromey@redhat.com>
7661 * target-delegates.c: Rebuild.
7662 * target.c (target_masked_watch_num_registers): Unconditionally
7664 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7665 Use TARGET_DEFAULT_RETURN.
7667 2014-02-19 Tom Tromey <tromey@redhat.com>
7669 * target-delegates.c: Rebuild.
7670 * target.c (target_remove_mask_watchpoint): Unconditionally
7672 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7673 TARGET_DEFAULT_RETURN.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_insert_mask_watchpoint): Unconditionally
7680 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7681 TARGET_DEFAULT_RETURN.
7683 2014-02-19 Tom Tromey <tromey@redhat.com>
7685 * target-delegates.c: Rebuild.
7686 * target.c (target_ranged_break_num_registers): Unconditionally
7688 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7689 Use TARGET_DEFAULT_RETURN.
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * target-delegates.c: Rebuild.
7694 * target.c (target_fetch_registers): Unconditionally delegate.
7695 * target.h (struct target_ops) <to_fetch_registers>: Use
7696 TARGET_DEFAULT_NORETURN.
7698 2014-02-19 Tom Tromey <tromey@redhat.com>
7700 * target-delegates.c: Rebuild.
7701 * target.c (update_current_target): Don't inherit or default
7703 * target.h (struct target_ops) <to_stop>: Use
7704 TARGET_DEFAULT_IGNORE.
7706 2014-02-19 Tom Tromey <tromey@redhat.com>
7708 * target-delegates.c: Rebuild.
7709 * target.c (update_current_target): Don't inherit or default
7710 to_can_run_breakpoint_commands.
7711 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7712 Use TARGET_DEFAULT_RETURN.
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7716 * target-delegates.c: Rebuild.
7717 * target.c (update_current_target): Don't inherit or default
7718 to_supports_evaluation_of_breakpoint_conditions.
7719 * target.h (struct target_ops)
7720 <to_supports_evaluation_of_breakpoint_conditions>: Use
7721 TARGET_DEFAULT_RETURN.
7723 2014-02-19 Tom Tromey <tromey@redhat.com>
7725 * target-delegates.c: Rebuild.
7726 * target.c (update_current_target): Don't inherit or default
7727 to_augmented_libraries_svr4_read.
7728 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7729 Use TARGET_DEFAULT_RETURN.
7731 2014-02-19 Tom Tromey <tromey@redhat.com>
7733 * target-delegates.c: Rebuild.
7734 * target.c (update_current_target): Don't inherit or default
7736 * target.h (struct target_ops) <to_can_use_agent>: Use
7737 TARGET_DEFAULT_RETURN.
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7741 * target-delegates.c: Rebuild.
7742 * target.c (update_current_target): Don't inherit or default
7744 * target.h (struct target_ops) <to_use_agent>: Use
7745 TARGET_DEFAULT_NORETURN.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target-delegates.c: Rebuild.
7750 * target.c (update_current_target): Don't inherit or default
7752 (return_null): Remove.
7753 * target.h (struct target_ops) <to_traceframe_info>: Use
7754 TARGET_DEFAULT_RETURN.
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7758 * target-delegates.c: Rebuild.
7759 * target.c (update_current_target): Don't inherit or default
7760 to_static_tracepoint_markers_by_strid.
7761 * target.h (struct target_ops)
7762 <to_static_tracepoint_markers_by_strid>: Use
7763 TARGET_DEFAULT_NORETURN.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * target-delegates.c: Rebuild.
7768 * target.c (update_current_target): Don't inherit or default
7769 to_static_tracepoint_marker_at.
7770 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7771 Use TARGET_DEFAULT_RETURN.
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7775 * target-delegates.c: Rebuild.
7776 * target.c (update_current_target): Don't inherit or default
7778 * target.h (struct target_ops) <to_set_permissions>: Use
7779 TARGET_DEFAULT_IGNORE.
7781 2014-02-19 Tom Tromey <tromey@redhat.com>
7783 * target-delegates.c: Rebuild.
7784 * target.c (update_current_target): Don't inherit or default
7786 * target.h (struct target_ops) <to_get_tib_address>: Use
7787 TARGET_DEFAULT_NORETURN.
7789 2014-02-19 Tom Tromey <tromey@redhat.com>
7791 * target-delegates.c: Rebuild.
7792 * target.c (update_current_target): Don't inherit or default
7794 * target.h (struct target_ops) <to_set_trace_notes>: Use
7795 TARGET_DEFAULT_RETURN.
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7799 * target-delegates.c: Rebuild.
7800 * target.c (update_current_target): Don't initialize
7801 to_set_trace_buffer_size.
7802 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7803 TARGET_DEFAULT_IGNORE.
7805 2014-02-19 Tom Tromey <tromey@redhat.com>
7807 * target-delegates.c: Rebuild.
7808 * target.c (update_current_target): Don't inherit or default
7809 to_set_circular_trace_buffer.
7810 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7811 TARGET_DEFAULT_IGNORE.
7813 2014-02-19 Tom Tromey <tromey@redhat.com>
7815 * target-delegates.c: Rebuild.
7816 * target.c (update_current_target): Don't inherit or default
7817 to_set_disconnected_tracing.
7818 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7819 TARGET_DEFAULT_IGNORE.
7821 2014-02-19 Tom Tromey <tromey@redhat.com>
7823 * target-delegates.c: Rebuild.
7824 * target.c (update_current_target): Don't inherit or default
7825 to_get_min_fast_tracepoint_insn_len.
7826 (return_minus_one): Remove.
7827 * target.h (struct target_ops)
7828 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target-delegates.c: Rebuild.
7833 * target.c (update_current_target): Don't inherit or default
7834 to_get_raw_trace_data.
7835 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7836 TARGET_DEFAULT_NORETURN.
7838 2014-02-19 Tom Tromey <tromey@redhat.com>
7840 * target-delegates.c: Rebuild.
7841 * target.c (update_current_target): Don't inherit or default
7842 to_upload_trace_state_variables.
7843 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7844 Use TARGET_DEFAULT_RETURN.
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7848 * target-delegates.c: Rebuild.
7849 * target.c (update_current_target): Don't inherit or default
7850 to_upload_tracepoints.
7851 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7852 TARGET_DEFAULT_RETURN.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target-delegates.c: Rebuild.
7857 * target.c (update_current_target): Don't inherit or default
7859 * target.h (struct target_ops) <to_save_trace_data>: Use
7860 TARGET_DEFAULT_NORETURN.
7862 2014-02-19 Tom Tromey <tromey@redhat.com>
7864 * target-delegates.c: Rebuild.
7865 * target.c (update_current_target): Don't inherit or default
7866 to_get_trace_state_variable_value.
7867 * target.h (struct target_ops)
7868 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * target-delegates.c: Rebuild.
7873 * target.c (update_current_target): Don't inherit or default
7875 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target-delegates.c: Rebuild.
7880 * target.c (update_current_target): Don't inherit or default
7882 * target.h (struct target_ops) <to_trace_stop>: Use
7883 TARGET_DEFAULT_NORETURN.
7885 2014-02-19 Tom Tromey <tromey@redhat.com>
7887 * target-delegates.c: Rebuild.
7888 * target.c (update_current_target): Don't inherit or default
7889 to_get_tracepoint_status.
7890 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7891 TARGET_DEFAULT_NORETURN.
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7895 * target-delegates.c: Rebuild.
7896 * target.c (update_current_target): Don't inherit or default
7897 to_get_trace_status.
7898 * target.h (struct target_ops) <to_get_trace_status>: Use
7899 TARGET_DEFAULT_RETURN.
7901 2014-02-19 Tom Tromey <tromey@redhat.com>
7903 * target-delegates.c: Rebuild.
7904 * target.c (update_current_target): Don't inherit or default
7906 * target.h (struct target_ops) <to_trace_start>: Use
7907 TARGET_DEFAULT_NORETURN.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target-delegates.c: Rebuild.
7912 * target.c (update_current_target): Don't inherit or default
7913 to_trace_set_readonly_regions.
7914 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7915 Use TARGET_DEFAULT_NORETURN.
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7919 * target-delegates.c: Rebuild.
7920 * target.c (update_current_target): Don't inherit or default
7921 to_disable_tracepoint.
7922 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7923 TARGET_DEFAULT_NORETURN.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target-delegates.c: Rebuild.
7928 * target.c (update_current_target): Don't inherit or default
7929 to_enable_tracepoint.
7930 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7931 TARGET_DEFAULT_NORETURN.
7933 2014-02-19 Tom Tromey <tromey@redhat.com>
7935 * target-delegates.c: Rebuild.
7936 * target.c (update_current_target): Don't inherit or default
7937 to_download_trace_state_variable.
7938 * target.h (struct target_ops) <to_download_trace_state_variable>:
7939 Use TARGET_DEFAULT_NORETURN.
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7943 * target-delegates.c: Rebuild.
7944 * target.c (update_current_target): Don't inherit or default
7945 to_can_download_tracepoint.
7946 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7947 TARGET_DEFAULT_RETURN.
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7951 * target-delegates.c: Rebuild.
7952 * target.c (update_current_target): Don't inherit or default
7953 to_download_tracepoint.
7954 * target.h (struct target_ops) <to_download_tracepoint>: Use
7955 TARGET_DEFAULT_NORETURN.
7957 2014-02-19 Tom Tromey <tromey@redhat.com>
7959 * target-delegates.c: Rebuild.
7960 * target.c (update_current_target): Don't inherit or default
7962 * target.h (struct target_ops) <to_trace_init>: Use
7963 TARGET_DEFAULT_RETURN.
7965 2014-02-19 Tom Tromey <tromey@redhat.com>
7967 * target-delegates.c: Rebuild.
7968 * target.c (update_current_target): Don't inherit or default
7969 to_supports_string_tracing.
7970 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7971 TARGET_DEFAULT_RETURN.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_supports_enable_disable_tracepoint.
7978 * target.h (struct target_ops)
7979 <to_supports_enable_disable_tracepoint>: Use
7980 TARGET_DEFAULT_RETURN.
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target-delegates.c: Rebuild.
7985 * target.c (update_current_target): Don't inherit or default
7986 to_supports_multi_process.
7987 * target.h (struct target_ops) <to_supports_multi_process>: Use
7988 TARGET_DEFAULT_RETURN.
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target-delegates.c: Rebuild.
7993 * target.c (update_current_target): Don't inherit or default
7994 to_get_ada_task_ptid.
7995 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7996 TARGET_DEFAULT_FUNC.
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
8000 * target-delegates.c: Rebuild.
8001 * target.c (update_current_target): Don't inherit or default
8002 to_thread_architecture.
8003 * target.h (struct target_ops) <to_thread_architecture>: Use
8004 TARGET_DEFAULT_FUNC.
8006 2014-02-19 Tom Tromey <tromey@redhat.com>
8008 * target-delegates.c: Rebuild.
8009 * target.c (update_current_target): Don't inherit or default
8010 to_execution_direction.
8011 * target.h (struct target_ops) <to_execution_direction>: Use
8012 TARGET_DEFAULT_FUNC.
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8016 * target-delegates.c: Rebuild.
8017 * target.c (update_current_target): Don't inherit or default
8018 to_can_execute_reverse.
8019 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8020 TARGET_DEFAULT_RETURN.
8021 (target_can_execute_reverse): Unconditionally delegate.
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8025 * target-delegates.c: Rebuild.
8026 * target.c (update_current_target): Don't inherit or default
8028 (dummy_goto_bookmark): Remove.
8029 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8030 * target.h (struct target_ops) <to_goto_bookmark>: Use
8031 TARGET_DEFAULT_NORETURN.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8038 (dummy_get_bookmark): Remove.
8039 (init_dummy_target): Don't inherit or default to_get_bookmark.
8040 * target.h (struct target_ops) <to_get_bookmark>: Use
8041 TARGET_DEFAULT_NORETURN
8043 2014-02-19 Tom Tromey <tromey@redhat.com>
8045 * target-delegates.c: Rebuild.
8046 * target.c (update_current_target): Don't inherit or default
8047 to_make_corefile_notes.
8048 (init_dummy_target): Don't initialize to_make_corefile_notes.
8049 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8050 TARGET_DEFAULT_FUNC.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target-delegates.c: Rebuild.
8055 * target.c (update_current_target): Don't inherit or default
8056 to_find_memory_regions.
8057 (init_dummy_target): Don't initialize to_find_memory_regions.
8058 * target.h (struct target_ops) <to_find_memory_regions>: Use
8059 TARGET_DEFAULT_FUNC.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8066 * target.h (struct target_ops) <to_log_command>: Use
8067 TARGET_DEFAULT_IGNORE.
8068 (target_log_command): Unconditionally delegate.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8074 to_pid_to_exec_file.
8075 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8076 TARGET_DEFAULT_RETURN.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target-delegates.c: Rebuild.
8081 * target.c (update_current_target): Don't inherit or default
8083 (target_thread_name): Unconditionally delegate.
8084 * target.h (struct target_ops) <to_thread_name>: Use
8085 TARGET_DEFAULT_RETURN.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target-delegates.c: Rebuild.
8090 * target.c (update_current_target): Don't inherit or default
8091 to_extra_thread_info.
8092 * target.h (struct target_ops) <to_extra_thread_info>: Use
8093 TARGET_DEFAULT_RETURN.
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8100 * target.h (struct target_ops) <to_has_exited>: Use
8101 TARGET_DEFAULT_RETURN..
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8107 to_set_syscall_catchpoint.
8108 (return_one): Remove.
8109 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8110 TARGET_DEFAULT_RETURN.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target-delegates.c: Rebuild.
8115 * target.c (update_current_target): Don't inherit or default
8116 to_insert_exec_catchpoint.
8117 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8118 TARGET_DEFAULT_RETURN.
8120 2014-01-08 Tom Tromey <tromey@redhat.com>
8122 * target-delegates.c: Rebuild.
8123 * target.c (update_current_target): Don't inherit or default
8124 to_insert_exec_catchpoint.
8125 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8126 TARGET_DEFAULT_RETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (update_current_target): Don't inherit or default
8132 to_remove_vfork_catchpoint.
8133 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8134 TARGET_DEFAULT_RETURN.
8136 2014-02-19 Tom Tromey <tromey@redhat.com>
8138 * target-delegates.c: Rebuild.
8139 * target.c (update_current_target): Don't inherit or default
8140 to_insert_vfork_catchpoint.
8141 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8142 TARGET_DEFAULT_RETURN.
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target-delegates.c: Rebuild.
8147 * target.c (update_current_target): Don't inherit or default
8148 to_remove_fork_catchpoint.
8149 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8150 TARGET_DEFAULT_RETURN.
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8154 * target-delegates.c: Rebuild.
8155 * target.c (update_current_target): Don't inherit or default
8156 to_insert_fork_catchpoint.
8157 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8158 TARGET_DEFAULT_RETURN.
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8162 * target-delegates.c: Rebuild.
8163 * target.c (update_current_target): Don't inherit or default
8164 to_post_startup_inferior.
8165 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8166 TARGET_DEFAULT_IGNORE.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8173 * target.h (struct target_ops) <to_load>: Use
8174 TARGET_DEFAULT_NORETURN.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (update_current_target): Don't inherit or default
8181 * target.h (struct target_ops) <to_terminal_info>: Use
8182 TARGET_DEFAULT_FUNC.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (update_current_target): Don't inherit or default
8188 to_terminal_save_ours.
8189 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8190 TARGET_DEFAULT_IGNORE.
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target-delegates.c: Rebuild.
8195 * target.c (update_current_target): Don't inherit or default
8197 * target.h (struct target_ops) <to_terminal_ours>: Use
8198 TARGET_DEFAULT_IGNORE.
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8202 * target-delegates.c: Rebuild.
8203 * target.c (update_current_target): Don't inherit or default
8204 to_terminal_ours_for_output.
8205 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8206 TARGET_DEFAULT_IGNORE.
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_terminal_inferior.
8213 * target.h (struct target_ops) <to_terminal_inferior>: Use
8214 TARGET_DEFAULT_IGNORE.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8221 * target.h (struct target_ops) <to_terminal_init>: Use
8222 TARGET_DEFAULT_IGNORE.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_can_accel_watchpoint_condition.
8229 * target.h (struct target_ops)
8230 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8236 to_region_ok_for_hw_watchpoint.
8237 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8238 Use TARGET_DEFAULT_FUNC.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_watchpoint_addr_within_range.
8245 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8246 Use TARGET_DEFAULT_FUNC.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_remove_watchpoint.
8253 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8254 TARGET_DEFAULT_NORETURN.
8256 2014-02-19 Tom Tromey <tromey@redhat.com>
8258 * target-delegates.c: Rebuild.
8259 * target.c (update_current_target): Don't inherit or default
8260 to_insert_watchpoint.
8261 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8262 TARGET_DEFAULT_RETURN.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target-delegates.c: Rebuild.
8267 * target.c (update_current_target): Don't inherit or default
8268 to_remove_hw_breakpoint.
8269 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8270 TARGET_DEFAULT_RETURN.
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8274 * target-delegates.c: Rebuild.
8275 * target.c (update_current_target): Don't inherit or default
8276 to_insert_hw_breakpoint.
8277 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8278 TARGET_DEFAULT_RETURN.
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * target-delegates.c: Rebuild.
8283 * target.c (update_current_target): Don't inherit or default
8284 to_can_use_hw_breakpoint.
8285 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8286 TARGET_DEFAULT_RETURN.
8288 2014-02-19 Tom Tromey <tromey@redhat.com>
8290 * target-delegates.c: Rebuild.
8291 * target.c (update_current_target): Don't inherit or default
8293 * target.h (struct target_ops) <to_files_info>: Use
8294 TARGET_DEFAULT_IGNORE.
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8298 * target-delegates.c: Rebuild.
8299 * target.c (update_current_target): Don't inherit or default
8301 * target.h (struct target_ops) <to_store>: Use
8302 TARGET_DEFAULT_NORETURN.
8304 2014-02-19 Tom Tromey <tromey@redhat.com>
8306 * target-delegates.c: Rebuild.
8307 * target.c (update_current_target): Don't inherit or default
8309 * target.h (struct target_ops) <to_post_attach>: Use
8310 TARGET_DEFAULT_IGNORE.
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8314 * target-delegates.c: Rebuild.
8315 * target.c (update_current_target): Don't inherit or default
8317 (default_rcmd): New function.
8318 (do_monitor_command): Unconditionally delegate.
8319 * target.h (struct target_ops) <to_rmcd>: Use
8320 TARGET_DEFAULT_FUNC.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target-delegates.c: Rebuild.
8325 * target.c (init_dummy_target): Don't initialize to_attach.
8326 (target_attach): Unconditionally delegate.
8327 * target.h (struct target_ops) <to_attach>: Use
8328 TARGET_DEFAULT_FUNC.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target-delegates.c: Rebuild.
8333 * target.c (target_detach): Unconditionally delegate.
8334 (init_dummy_target): Don't initialize to_detach.
8335 * target.h (struct target_ops) <to_detach>: Use
8336 TARGET_DEFAULT_IGNORE.
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8340 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8342 (target_augmented_libraries_svr4_read): Add argument.
8343 * target.c (update_current_target): Update.
8344 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target.h (struct target_ops) <to_call_history_range>: Add
8351 * target.c (target_call_history_range): Add argument.
8352 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8354 (record_btrace_call_history_from): Update.
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8358 * target.h (struct target_ops) <to_call_history_from>: Add
8360 * target.c (target_call_history_from): Add argument.
8361 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target.h (struct target_ops) <to_call_history>: Add argument.
8367 * target.c (target_call_history): Add argument.
8368 * record-btrace.c (record_btrace_call_history): Add 'self'
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target.h (struct target_ops) <to_insn_history_range>: Add
8375 * target.c (target_insn_history_range): Add argument.
8376 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8378 (record_btrace_insn_history_from): Update.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target.h (struct target_ops) <to_insn_history_from>: Add
8384 * target.c (target_insn_history_from): Add argument.
8385 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target.h (struct target_ops) <to_insn_history>: Add argument.
8391 * target.c (target_insn_history): Add argument.
8392 * record-btrace.c (record_btrace_insn_history): Add 'self'
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8397 * target.h (struct target_ops) <to_goto_record>: Add argument.
8398 * target.c (target_goto_record): Add argument.
8399 * record-full.c (record_full_goto): Add 'self' argument.
8400 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8404 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8405 * target.c (target_goto_record_end): Add argument.
8406 * record-full.c (record_full_goto_end): Add 'self' argument.
8407 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8409 2014-02-19 Tom Tromey <tromey@redhat.com>
8411 * target.h (struct target_ops) <to_goto_record_begin>: Add
8413 * target.c (target_goto_record_begin): Add argument.
8414 * record-full.c (record_full_goto_begin): Add 'self' argument.
8415 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target.h (struct target_ops) <to_record_is_replaying>: Add
8422 * target.c (target_record_is_replaying): Add argument.
8423 * record-full.c (record_full_is_replaying): Add 'self' argument.
8424 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8426 (record_btrace_xfer_partial, record_btrace_store_registers)
8427 (record_btrace_prepare_to_store, record_btrace_resume)
8428 (record_btrace_wait, record_btrace_decr_pc_after_break)
8429 (record_btrace_find_new_threads, record_btrace_thread_alive):
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target.h (struct target_ops) <to_delete_record>: Add argument.
8435 * target.c (target_delete_record): Add argument.
8436 * record-full.c (record_full_delete): Add 'self' argument.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target.h (struct target_ops) <to_save_record>: Add argument.
8441 * target.c (target_save_record): Add argument.
8442 * record-full.c (record_full_save): Add 'self' argument.
8443 (record_full_save): Add 'self' argument.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target.h (struct target_ops) <to_info_record>: Add argument.
8448 * target.c (target_info_record): Add argument.
8449 * record.c (info_record_command): Add argument.
8450 * record-full.c (record_full_info): Add 'self' argument.
8451 * record-btrace.c (record_btrace_info): Add 'self' argument.
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8455 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8456 * target.c (target_stop_recording): Add argument.
8457 * record.c (record_stop): Add argument.
8458 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8464 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8465 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8467 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8468 (_initialize_amd64_linux_nat): Use it.
8469 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8470 (_initialize_i386_linux_nat): Use it.
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8474 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8475 * target.c (target_teardown_btrace): Add argument.
8476 * remote.c (remote_teardown_btrace): Add 'self' argument.
8477 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8479 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8484 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8485 * target.c (target_disable_btrace): Add argument.
8486 * remote.c (remote_disable_btrace): Add 'self' argument.
8487 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8489 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8495 * target.c (target_enable_btrace): Add argument.
8496 * remote.c (remote_enable_btrace): Add 'self' argument.
8497 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8499 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8505 (target_can_use_agent): Add argument.
8506 * target.c (update_current_target): Update.
8507 * remote.c (remote_can_use_agent): Add 'self' argument.
8508 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target.h (struct target_ops) <to_use_agent>: Add argument.
8513 (target_use_agent): Add argument.
8514 * target.c (update_current_target): Update.
8515 * remote.c (remote_use_agent): Add 'self' argument.
8516 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8521 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8522 (target_traceframe_info): Add argument.
8523 * target.c (update_current_target): Update.
8524 * remote.c (remote_traceframe_info): Add 'self' argument.
8525 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8529 * target.h (target_static_tracepoint_markers_by_strid): Add
8531 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8533 * target.c (update_current_target): Update.
8534 * remote.c (struct target_ops)
8535 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8536 * linux-nat.c (struct target_ops)
8537 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8541 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8543 (target_static_tracepoint_marker_at): Add argument.
8544 * target.c (update_current_target): Update.
8545 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8551 (target_set_permissions): Add argument.
8552 * target.c (update_current_target): Update.
8553 * remote.c (remote_set_permissions): Add 'self' argument.
8554 (remote_start_remote): Update.
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8559 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8560 (target_get_tib_address): Add argument.
8561 * target.c (update_current_target): Update.
8562 * remote.c (remote_get_tib_address): Add 'self' argument.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8567 (target_set_trace_notes): Add argument.
8568 * target.c (update_current_target): Update.
8569 * remote.c (remote_set_trace_notes): Add 'self' argument.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8575 (target_set_trace_buffer_size): Add argument.
8576 * target.c (update_current_target): Update.
8577 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8583 (target_set_circular_trace_buffer): Add argument.
8584 * target.c (update_current_target): Update.
8585 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8592 (target_set_disconnected_tracing): Add argument.
8593 * target.c (update_current_target): Update.
8594 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target.h (struct target_ops)
8599 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8600 (target_get_min_fast_tracepoint_insn_len): Add argument.
8601 * target.c (update_current_target): Update.
8602 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8609 (target_get_raw_trace_data): Add argument.
8610 * target.c (update_current_target): Update.
8611 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8617 (target_upload_trace_state_variables): Add argument.
8618 * target.c (update_current_target): Update.
8619 * remote.c (remote_upload_trace_state_variables): Add 'self'
8621 (remote_start_remote): Update.
8623 2014-02-19 Tom Tromey <tromey@redhat.com>
8625 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8627 (target_upload_tracepoints): Add argument.
8628 * target.c (update_current_target): Update.
8629 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8630 (remote_start_remote): Update.
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8634 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8635 (target_save_trace_data): Add argument.
8636 * target.c (update_current_target): Update.
8637 * remote.c (remote_save_trace_data): Add 'self' argument.
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8641 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8643 * target.h (struct target_ops)
8644 <to_get_trace_state_variable_value>: Add argument.
8645 (target_get_trace_state_variable_value): Add argument.
8646 * target.c (update_current_target): Update.
8647 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8649 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8653 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8654 * target.h (struct target_ops) <to_trace_find>: Add argument.
8655 (target_trace_find): Add argument.
8656 * target.c (update_current_target): Update.
8657 * remote.c (remote_trace_find): Add 'self' argument.
8658 * ctf.c (ctf_trace_find): Add 'self' argument.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8663 (target_trace_stop): Add argument.
8664 * target.c (update_current_target): Update.
8665 * remote.c (remote_trace_stop): Add 'self' argument.
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8670 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8672 (target_get_tracepoint_status): Add argument.
8673 * target.c (update_current_target): Update.
8674 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8678 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8679 * target.h (struct target_ops) <to_get_trace_status>: Add
8681 (target_get_trace_status): Add argument.
8682 * target.c (update_current_target): Update.
8683 * remote.c (remote_get_trace_status): Add 'self' argument.
8684 (remote_start_remote, remote_can_download_tracepoint): Update.
8685 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8689 * target.h (struct target_ops) <to_trace_start>: Add argument.
8690 (target_trace_start): Add argument.
8691 * target.c (update_current_target): Update.
8692 * remote.c (remote_trace_start): Add 'self' argument.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8698 (target_trace_set_readonly_regions): Add argument.
8699 * target.c (update_current_target): Update.
8700 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8707 (target_disable_tracepoint): Add argument.
8708 * target.c (update_current_target): Update.
8709 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8715 (target_enable_tracepoint): Add argument.
8716 * target.c (update_current_target): Update.
8717 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8719 2014-02-19 Tom Tromey <tromey@redhat.com>
8721 * target.h (struct target_ops) <to_download_trace_state_variable>:
8723 (target_download_trace_state_variable): Add argument.
8724 * target.c (update_current_target): Update.
8725 * remote.c (remote_download_trace_state_variable): Add 'self'
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8730 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8732 (target_can_download_tracepoint): Add argument.
8733 * target.c (update_current_target): Update.
8734 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target.h (struct target_ops) <to_download_tracepoint>: Add
8740 (target_download_tracepoint): Add argument.
8741 * target.c (update_current_target): Update.
8742 * remote.c (remote_download_tracepoint): Add 'self' argument.
8744 2014-02-19 Tom Tromey <tromey@redhat.com>
8746 * target.h (struct target_ops) <to_trace_init>: Add argument.
8747 (target_trace_init): Add argument.
8748 * target.c (update_current_target): Update.
8749 * remote.c (remote_trace_init): Add 'self' argument.
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8754 * target.c (target_fileio_readlink): Add argument.
8755 * remote.c (remote_hostio_readlink): Add 'self' argument.
8756 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8760 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8761 * target.c (target_fileio_unlink): Add argument.
8762 * remote.c (remote_hostio_unlink): Add 'self' argument.
8763 (remote_file_delete): Update.
8764 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8769 * target.c (target_fileio_close): Add argument.
8770 * remote.c (remote_hostio_close): Add 'self' argument.
8771 (remote_hostio_close_cleanup): Update.
8772 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8774 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8779 * target.c (target_fileio_pread): Add argument.
8780 * remote.c (remote_hostio_pread): Add 'self' argument.
8781 (remote_bfd_iovec_pread, remote_file_get): Update.
8782 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8784 2014-02-19 Tom Tromey <tromey@redhat.com>
8786 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8787 * target.c (target_fileio_pwrite): Add argument.
8788 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8789 (remote_file_put): Update.
8790 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8794 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8795 * target.c (target_fileio_open): Add argument.
8796 * remote.c (remote_hostio_open): Add 'self' argument.
8797 (remote_bfd_iovec_open): Add 'self' argument.
8798 (remote_file_put): Add 'self' argument.
8799 (remote_file_get): Add 'self' argument.
8800 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8804 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8806 (target_can_run_breakpoint_commands): Add argument.
8807 * target.c (update_current_target): Update.
8808 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8810 (remote_insert_breakpoint): Add 'self' argument.
8811 (remote_insert_hw_breakpoint): Add 'self' argument.
8812 (remote_can_run_breakpoint_commands): Add 'self' argument.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target.h (struct target_ops)
8817 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8818 (target_supports_evaluation_of_breakpoint_conditions): Add
8820 * target.c (update_current_target): Update.
8821 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8823 (remote_insert_breakpoint): Add 'self' argument.
8824 (remote_insert_hw_breakpoint): Add 'self' argument.
8825 (remote_supports_cond_breakpoints): Add 'self' argument.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8831 (target_supports_string_tracing): Add argument.
8832 * target.c (update_current_target): Update.
8833 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target.h (struct target_ops)
8838 <to_supports_disable_randomization>: Add argument.
8839 * target.c (find_default_supports_disable_randomization): Add
8841 (target_supports_disable_randomization): Add argument.
8842 (find_default_supports_disable_randomization): Add 'self'
8844 * remote.c (extended_remote_supports_disable_randomization): Add
8846 (remote_supports_disable_randomization): Add 'self' argument.
8847 (extended_remote_create_inferior): Update.
8848 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8853 * target.h (struct target_ops)
8854 <to_supports_enable_disable_tracepoint>: Add argument.
8855 (target_supports_enable_disable_tracepoint): Add argument.
8856 * target.c (update_current_target): Update.
8857 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8860 2014-02-19 Tom Tromey <tromey@redhat.com>
8862 * target.h (struct target_ops) <to_supports_multi_process>: Add
8864 (target_supports_multi_process): Add argument.
8865 * target.c (update_current_target): Update.
8866 * remote.c (remote_supports_multi_process): Add 'self' argument.
8867 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8869 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8874 * target.h (struct target_ops) <to_execution_direction>: Add
8876 (target_execution_direction): Add argument.
8877 * target.c (default_execution_direction): Add 'self' argument.
8878 * record-full.c (record_full_execution_direction): Add 'self'
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8885 (target_can_execute_reverse): Add argument.
8886 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8887 * record-full.c (record_full_can_execute_reverse): Add 'self'
8889 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8895 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8897 (target_get_ada_task_ptid): Add argument.
8898 * target.c (update_current_target): Update.
8899 (default_get_ada_task_ptid): Add 'self' argument.
8900 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8901 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8902 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8904 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8906 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8908 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8910 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8911 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8917 (target_goto_bookmark): Add argument.
8918 * target.c (dummy_goto_bookmark): Add 'self' argument.
8919 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8924 (target_get_bookmark): Add argument.
8925 * target.c (dummy_get_bookmark): Add 'self' argument.
8926 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8932 (target_make_corefile_notes): Add argument.
8933 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8934 * procfs.c (procfs_make_note_section): Add 'self' argument.
8935 (procfs_make_note_section): Add 'self' argument.
8936 (procfs_make_note_section): Add 'self' argument.
8937 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8939 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8940 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8941 * exec.c (exec_make_note_section): Add 'self' argument.
8942 (exec_make_note_section): Add 'self' argument.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target.h (struct target_ops) <to_find_memory_regions>: Add
8948 (target_find_memory_regions): Add argument.
8949 * target.c (dummy_find_memory_regions): Add 'self' argument.
8950 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8951 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8952 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8953 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8954 * exec. (exec_do_find_memory_regions): New global.
8955 (exec_set_find_memory_regions): Rewrite.
8956 (exec_find_memory_regions): New function.
8957 (init_exec_ops): Use exec_find_memory_regions.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target.h (struct target_ops) <to_supports_non_stop>: Add
8963 * target.c (find_default_supports_non_stop): Add argument.
8964 (target_supports_non_stop): Add argument.
8965 (find_default_supports_non_stop): Add 'self' argument.
8966 * remote.c (remote_supports_non_stop): Add 'self' argument.
8967 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target.h (struct target_ops) <to_log_command>: Add argument.
8972 (target_log_command): Add argument.
8973 * serial.h (serial_log_command): Add 'self' argument.
8974 * serial.c (serial_log_command): Add 'self' argument.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8979 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8981 (target_pid_to_exec_file): Add argument.
8982 * target.c (debug_to_pid_to_exec_file): Add argument.
8983 (update_current_target): Update.
8984 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8985 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8986 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8987 (linux_handle_extended_wait): Update.
8988 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8989 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8990 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8991 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * target.h (struct target_ops) <to_rcmd>: Add argument.
8996 (target_rcmd): Add argument.
8997 * target.c (debug_to_rcmd): Add argument.
8998 (update_current_target, do_monitor_command): Update.
8999 * remote.c (remote_rcmd): Add 'self' argument.
9000 * monitor.c (monitor_rcmd): Add 'self' argument.
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9004 * windows-nat.c (windows_stop): Add 'self' argument.
9005 * target.h (struct target_ops) <to_stop>: Add argument.
9006 * target.c (target_stop): Add argument.
9007 (debug_to_stop): Add argument.
9008 (update_current_target): Update.
9009 * remote.c (remote_stop): Add 'self' argument.
9010 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9011 (gdbsim_cntrl_c): Update.
9012 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9013 * procfs.c (procfs_stop): Add 'self' argument.
9014 * nto-procfs.c (procfs_stop): Add 'self' argument.
9015 * monitor.c (monitor_stop): Add 'self' argument.
9016 (monitor_open): Update.
9017 * linux-nat.c (linux_nat_stop): Add argument.
9018 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9019 * gnu-nat.c (gnu_stop): Add 'self' argument.
9020 * darwin-nat.c (darwin_stop): Add 'self' argument.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target.h (struct target_ops) <to_thread_name>: Add argument.
9025 * target.c (target_thread_name): Add argument.
9026 (update_current_target): Update.
9027 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9029 2014-02-19 Tom Tromey <tromey@redhat.com>
9031 * target.h (struct target_ops) <to_extra_thread_info>: Add
9033 (target_extra_thread_info): Add argument.
9034 * target.c (update_current_target): Update.
9035 * remote.c (remote_threads_extra_info): Add 'self' argument.
9036 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9038 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9039 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9040 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9042 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9044 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9046 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_program_signals>: Add argument.
9052 * target.c (target_program_signals): Add argument.
9053 * remote.c (remote_program_signals): Add 'self' argument.
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9057 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9058 * target.c (target_pass_signals): Add argument.
9059 * remote.c (remote_pass_signals): Add 'self' argument.
9060 (remote_start_remote): Update.
9061 * procfs.c (procfs_pass_signals): Add 'self' argument.
9062 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9063 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9064 (linux_nat_create_inferior, linux_nat_attach): Update.
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9068 * windows-nat.c (windows_can_run): Add 'self' argument.
9069 * target.h (struct target_ops) <to_can_run>: Add argument.
9070 (target_can_run): Add argument.
9071 * target.c (debug_to_can_run): Add argument.
9072 (update_current_target): Update.
9073 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9074 * inf-child.c (inf_child_can_run): Add 'self' argument.
9075 * go32-nat.c (go32_can_run): Add 'self' argument.
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9079 * target.h (struct target_ops) <to_has_exited>: Add argument.
9080 (target_has_exited): Add argument.
9081 * target.c (debug_to_has_exited): Add argument.
9082 (update_current_target): Update.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9088 (target_set_syscall_catchpoint): Add argument.
9089 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9091 * target.c (update_current_target): Update.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9097 (target_remove_exec_catchpoint): Add argument.
9098 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9099 (update_current_target): Update.
9100 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9103 2014-02-19 Tom Tromey <tromey@redhat.com>
9105 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9107 (target_insert_exec_catchpoint): Add argument.
9108 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9109 (update_current_target): Update.
9110 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9117 (target_remove_vfork_catchpoint): Add argument.
9118 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9119 (update_current_target): Update.
9120 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9127 (target_insert_vfork_catchpoint): Add argument.
9128 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9129 (update_current_target): Update.
9130 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9137 (target_remove_fork_catchpoint): Add argument.
9138 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9139 (update_current_target): Update.
9140 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9143 2014-02-19 Tom Tromey <tromey@redhat.com>
9145 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9147 (target_insert_fork_catchpoint): Add argument.
9148 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9149 (update_current_target): Update.
9150 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9155 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9157 (target_post_startup_inferior): Add argument.
9158 * target.c (debug_to_post_startup_inferior): Add argument.
9159 (update_current_target): Update.
9160 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9162 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9164 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9166 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9168 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9170 (super_post_startup_inferior): Likewise.
9171 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9173 (super_post_startup_inferior): Likewise.
9174 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9175 Add 'self' argument.
9176 (super_post_startup_inferior): Likewise.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target.h (struct target_ops) <to_load>: Add argument.
9181 * target.c (target_load): Add argument.
9182 (debug_to_load): Add argument.
9183 (update_current_target): Update.
9184 * remote.c (remote_load): Add 'self' argument.
9185 * remote-sim.c (gdbsim_load): Add 'self' argument.
9186 * remote-mips.c (mips_load): Add 'self' argument.
9187 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9188 * monitor.c (monitor_load): Add 'self' argument.
9189 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9193 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9194 (target_terminal_info): Add argument.
9195 * target.c (debug_to_terminal_info): Add argument.
9196 (default_terminal_info): Likewise.
9197 * inflow.c (child_terminal_info): Add 'self' argument.
9198 * inferior.h (child_terminal_info): Add 'self' argument.
9199 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9205 (target_terminal_save_ours): Add argument.
9206 * target.c (debug_to_terminal_save_ours): Add argument.
9207 (update_current_target): Update.
9208 * inflow.c (terminal_save_ours): Add 'self' argument.
9209 * inferior.h (terminal_save_ours): Add 'self' argument.
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9213 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9214 (target_terminal_ours): Add argument.
9215 * target.c (debug_to_terminal_ours): Add argument.
9216 (update_current_target): Update.
9217 * remote.c (remote_terminal_ours): Add 'self' argument.
9218 (remote_close): Update.
9219 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9220 * inflow.c (terminal_ours): Add 'self' argument.
9221 * inferior.h (terminal_ours): Add 'self' argument.
9222 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9224 2014-02-19 Pedro Alves <palves@redhat.com>
9225 Tom Tromey <tromey@redhat.com>
9227 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9229 (target_terminal_ours_for_output): Add argument.
9230 * target.c (debug_to_terminal_ours_for_output): Add argument.
9231 (update_current_target): Update.
9232 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9233 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9234 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target.h (struct target_ops) <to_terminal_inferior>: Add
9240 * target.c (target_terminal_inferior): Add argument.
9241 (update_current_target): Update.
9242 * remote.c (remote_terminal_inferior): Add 'self' argument.
9243 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9244 * inflow.c (terminal_inferior): Add 'self' argument.
9245 * inferior.h (terminal_inferior): Add 'self' argument.
9246 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9247 (go32_terminal_inferior): Add 'self' argument.
9249 2014-02-19 Tom Tromey <tromey@redhat.com>
9251 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9252 (target_terminal_init): Add argument.
9253 * target.c (debug_to_terminal_init): Add argument.
9254 (update_current_target): Update.
9255 * inflow.c (terminal_init_inferior): Add 'self' argument.
9256 * inferior.h (terminal_init_inferior): Add 'self' argument.
9257 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9258 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9262 * target.h (struct target_ops)
9263 <to_can_accel_watchpoint_condition>: Add argument.
9264 (target_can_accel_watchpoint_condition): Add argument.
9265 * target.c (debug_to_can_accel_watchpoint_condition): Add
9267 (update_current_target): Update.
9268 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9273 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9275 (target_region_ok_for_hw_watchpoint): Add argument.
9276 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9277 (default_region_ok_for_hw_watchpoint): Add argument.
9278 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9279 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9281 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9283 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9285 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9287 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9289 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9291 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9292 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9294 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9295 Add 'self' argument.
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9299 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9301 (target_insert_watchpoint): Add argument.
9302 * target.c (debug_to_insert_watchpoint): Add argument.
9303 (update_current_target): Update.
9304 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9305 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9306 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9307 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9308 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9309 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9311 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9312 (procfs_insert_hw_watchpoint): Add 'self' argument.
9313 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9315 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9317 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9319 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9320 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9322 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9329 (target_remove_watchpoint): Add argument.
9330 * target.c (debug_to_remove_watchpoint): Add argument.
9331 (update_current_target): Update.
9332 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9333 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9334 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9335 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9336 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9337 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9339 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9340 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9342 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9344 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9346 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9347 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9349 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9356 (target_remove_hw_breakpoint): Add argument.
9357 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9358 (update_current_target): Update.
9359 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9360 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9362 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9363 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9365 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9372 (target_insert_hw_breakpoint): Add argument.
9373 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9374 (update_current_target): Update.
9375 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9376 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9378 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9379 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9380 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9382 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9389 (target_can_use_hardware_watchpoint): Add argument.
9390 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9391 (update_current_target): Update.
9392 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9394 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9396 * remote.c (remote_check_watch_resources): Add 'self' argument.
9397 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9398 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9400 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9401 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9403 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9405 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9407 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9409 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9411 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9413 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9414 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9416 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target.h (struct target_ops) <to_post_attach>: Add argument.
9422 (target_post_attach): Add argument.
9423 * target.c (debug_to_post_attach): Add argument.
9424 (update_current_target): Update.
9425 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9426 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9427 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9428 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9429 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9433 * windows-nat.c (windows_close): Add 'self' argument.
9434 * tracepoint.c (tfile_close): Add 'self' argument.
9435 * target.h (struct target_ops) <to_close>: Add argument.
9436 * target.c (target_close): Add argument.
9437 (update_current_target): Update.
9438 * remote.c (remote_close): Add 'self' argument.
9439 * remote-sim.c (gdbsim_close): Add 'self' argument.
9440 * remote-mips.c (mips_close): Add 'self' argument.
9441 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9442 * record-full.c (record_full_close): Add 'self' argument.
9443 * record-btrace.c (record_btrace_close): Add 'self' argument.
9444 * monitor.h (monitor_close): Add 'self' argument.
9445 * monitor.c (monitor_close): Add 'self' argument.
9446 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9447 * linux-nat.c (linux_nat_close): Add argument.
9448 * go32-nat.c (go32_close): Add 'self' argument.
9449 * exec.c (exec_close_1): Add 'self' argument.
9450 * ctf.c (ctf_close): Add 'self' argument.
9451 * corelow.c (core_close): Add 'self' argument.
9452 (core_close_cleanup): Update.
9453 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9454 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * remote.c (remote_load): New function.
9459 (init_remote_ops): Use it.
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9465 * common/linux-btrace.h (linux_supports_btrace): Update.
9466 * remote.c (remote_supports_btrace): Add "self" argument.
9467 * target-delegates.c: Rebuild.
9468 * target.c (target_supports_btrace): Remove.
9469 * target.h (struct target_ops) <to_supports_btrace>: Add
9470 target_ops argument.
9471 (target_supports_btrace): New define.
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * record-full.c (record_full_beneath_to_resume_ops)
9476 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9477 (record_full_beneath_to_wait)
9478 (record_full_beneath_to_store_registers_ops)
9479 (record_full_beneath_to_store_registers)
9480 (record_full_beneath_to_xfer_partial_ops)
9481 (record_full_beneath_to_xfer_partial)
9482 (record_full_beneath_to_insert_breakpoint_ops)
9483 (record_full_beneath_to_insert_breakpoint)
9484 (record_full_beneath_to_remove_breakpoint_ops)
9485 (record_full_beneath_to_remove_breakpoint)
9486 (record_full_beneath_to_stopped_by_watchpoint)
9487 (record_full_beneath_to_stopped_data_address)
9488 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9489 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9490 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9491 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9492 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9493 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9494 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9495 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9496 (record_full_resume, record_full_wait_1)
9497 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9498 (record_full_store_registers, record_full_xfer_partial)
9499 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9500 (record_full_async, record_full_core_xfer_partial): Use target
9502 * target-delegates.c: Rebuild.
9503 * target.c (current_xfer_partial): Remove.
9504 (update_current_target): Do not INHERIT or de_fault
9505 to_insert_breakpoint, to_remove_breakpoint,
9506 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9507 to_is_async_p, to_async. Do not set to_xfer_partial field.
9508 (default_xfer_partial): Simplify.
9509 (current_xfer_partial): Remove.
9510 (target_wait, target_resume): Simplify.
9511 (find_default_can_async_p, find_default_is_async_p): Update.
9512 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9513 to_xfer_partial, to_stopped_by_watchpoint,
9514 to_stopped_data_address.
9515 (target_store_registers): Simplify.
9516 (forward_target_remove_breakpoint)
9517 (forward_target_insert_breakpoint): Remove.
9518 (target_remove_breakpoint, target_insert_breakpoint)
9519 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9520 * target.h (struct target_ops) <to_resume, to_wait,
9521 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9522 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9523 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9525 (forward_target_remove_breakpoint)
9526 (forward_target_insert_breakpoint): Remove.
9527 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9529 (record_btrace_insert_breakpoint): Delegate directly.
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target-delegates.c: New file.
9535 * target.c: Include target-delegates.c.
9536 (init_dummy_target): Call install_dummy_methods.
9537 (complete_target_initialization): Call install_delegators.
9538 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9539 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9540 * make-target-delegates: New file.
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9544 * record.c (find_record_target): Use find_target_at.
9545 * target.c (find_target_at): New function.
9546 * target.h (find_target_at): Declare.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9552 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9554 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9555 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9557 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9559 * linux-nat.c (save_sigtrap): Update.
9560 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9561 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9562 (linux_nat_close): Update.
9563 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9565 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9567 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9568 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9569 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9570 (tmp_to_async): Add 'ops' argument.
9571 (record_full_stopped_by_watchpoint, record_full_async)
9572 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9574 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9575 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9576 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9577 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9578 (remote_is_async_p, remote_async): Add 'ops' argument.
9579 (remote_stopped_data_address): Update.
9580 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9581 * target.c (update_current_target)
9582 (find_default_can_async_p, find_default_is_async_p): Update.
9583 (init_dummy_target): Update.
9584 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9585 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9586 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9587 (target_can_async_p, target_is_async_p, target_async)
9588 (target_stopped_by_watchpoint): Update.
9590 2014-02-19 Yao Qi <yao@codesourcery.com>
9593 * gdbarch.sh: Remove startup_gdbarch.
9594 * gdbarch.c: Regenerated.
9595 * gdbarch.h: Likewise.
9597 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9599 * rl78-tdep.c (rl78_g10_register_name): New function.
9600 (rl78_return_value): Add g10 support.
9601 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9604 2014-02-17 Doug Evans <xdje42@gmail.com>
9606 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9607 (SUBDIR_GUILE_SRCS): Ditto.
9608 (scm-gsmob.o): Ditto.
9610 2014-02-17 Yao Qi <yao@codesourcery.com>
9612 * gnu-nat.c (ILL_RPC): Declare defined function.
9614 2014-02-17 Yao Qi <yao@codesourcery.com>
9616 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9617 mach_msg_type_number_t.
9618 (gnu_write_inferior): Likewise.
9620 2014-02-17 Yao Qi <yao@codesourcery.com>
9622 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9624 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9625 (inf_validate_procs, inf_signal): Likewise.
9626 (S_exception_raise_request): Likewise.
9627 (do_mach_notify_dead_name): Likewise.
9628 (steal_exc_port): Likewise.
9629 (gnu_read_inferior): Change 'copy_count''s type to
9630 mach_msg_type_number_t.
9631 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9634 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9636 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9637 flag. Adjust all users; in particular...
9638 (gnu_wait): ..., don't decrement its value in here...
9639 (gnu_create_inferior): ..., and instead set the flag in here,
9640 around the startup_inferior call, and call that one with
9641 START_INFERIOR_TRAPS_EXPECTED.
9643 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9644 (ILL_RPC): ... new macro.
9645 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9646 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9647 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9648 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9649 functions with ILL_RPC macro.
9650 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9651 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9652 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9653 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9654 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9655 (S_proc_getlogin_reply, S_proc_getsid_reply)
9656 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9657 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9658 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9659 (S_proc_getnports_reply, S_proc_is_important_reply)
9660 (S_proc_get_code_reply): New stub functions, generated with
9663 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9664 collected the type check structures.
9666 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9668 2014-02-14 Doug Evans <dje@google.com>
9670 * target.c (target_write_partial): Fix result type.
9672 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9674 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9675 the proper offsets to access fpregset_t.
9677 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9679 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9680 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9681 * h8300-tdep.c (setmachinelist): Remove global.
9682 * hppa-tdep.c (hppa_sigtramp): Remove global.
9683 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9684 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9685 * ravenscar-thread.c (update_target_observer): Remove global.
9686 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9688 2014-02-12 Tom Tromey <tromey@redhat.com>
9690 * common/rsp-low.c: Update comments.
9691 * common/rsp-low.h: Update comments.
9693 2014-02-12 Tom Tromey <tromey@redhat.com>
9695 * common/rsp-low.c (convert_ascii_to_int): Remove.
9696 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9698 2014-02-12 Tom Tromey <tromey@redhat.com>
9700 * common/rsp-low.h (unhexify): Don't declare.
9701 * common/rsp-low.c (unhexify): Remove.
9703 2014-02-12 Tom Tromey <tromey@redhat.com>
9705 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9706 * common/rsp-low.c (convert_int_to_ascii): Remove.
9708 2014-02-12 Tom Tromey <tromey@redhat.com>
9710 * common/rsp-low.h (hexify): Don't declare.
9711 * common/rsp-low.c (hexify): Remove.
9713 2014-02-12 Tom Tromey <tromey@redhat.com>
9715 * common/rsp-low.c (hexify): Never take strlen of argument.
9717 2014-02-12 Tom Tromey <tromey@redhat.com>
9719 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9720 * remote.c (extended_remote_run, remote_rcmd)
9721 (remote_download_trace_state_variable, remote_save_trace_data)
9722 (remote_set_trace_notes): Update.
9723 * tracepoint.c (encode_source_string, tfile_write_status)
9724 (tfile_write_uploaded_tsv): Update.
9726 2014-02-12 Tom Tromey <tromey@redhat.com>
9728 * tracepoint.c: Include rsp-low.h.
9729 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9730 * remote.c: Include rsp-low.h.
9731 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9732 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9733 (remote_unescape_input): Move to common/rsp-low.c.
9734 * common/rsp-low.h: New file.
9735 * common/rsp-low.c: New file.
9736 * Makefile.in (SFILES): Add common/rsp-low.c.
9737 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9738 (COMMON_OBS): Add rsp-low.o.
9739 (rsp-low.o): New target.
9741 2014-02-12 Tom Tromey <tromey@redhat.com>
9743 * utils.h: Include print-utils.h.
9744 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9745 (int_string, core_addr_to_string, core_addr_to_string_nz)
9746 (hex_string, hex_string_custom): Don't declare.
9747 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9748 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9749 (hex_string_custom, int_string, core_addr_to_string)
9750 (core_addr_to_string_nz, host_address_to_string): Move to
9751 common/print-utils.c.
9752 * common/print-utils.h: New file.
9753 * common/print-utils.c: New file
9754 * Makefile.in (SFILES): Add common/print-utils.c.
9755 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9756 (COMMON_OBS): Add print-utils.o.
9757 (print-utils.o): New target.
9759 2014-02-12 Tom Tromey <tromey@redhat.com>
9761 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9763 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9765 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9767 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9769 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9770 if a PT_IO ptrace request returns sucessfully but indicates that 0
9771 bytes were transferred.
9773 2014-02-12 Pedro Alves <palves@redhat.com>
9774 Kevin Buettner <kevinb@redhat.com>
9776 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9777 TYPE_INSTANCE_FLAG_CODE_SPACE.
9779 2014-02-12 Pedro Alves <palves@redhat.com>
9781 * h8300-tdep.c (pseudo_from_raw_register)
9782 (raw_from_pseudo_register): New functions.
9783 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9786 2014-02-12 Pedro Alves <palves@redhat.com>
9788 * h8300-tdep.c (h8300_register_sim_regno): New function.
9789 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9790 gdbarch_register_sim_regno hook.
9792 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9794 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9796 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9798 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9800 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9802 * obsd-tdep.h (obsd_init_abi): New prototype.
9803 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9804 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9805 (obsd_init_abi): New functions.
9806 * i386obsd-tdep.c: Include "obsd-tdep.h".
9807 (i386obsd_init_abi): Call obsd_init_abi.
9808 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9809 (amd64obsd_init_abi): Call obsd_init_abi.
9810 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9811 obsd-tdep.c to gdb_target_obs.
9813 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9815 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9816 double float arguments to 16-byte in the argument slots.
9818 2014-02-11 Doug Evans <xdje42@gmail.com>
9820 * configure.ac: Don't crash if pkg-config is not found and guile
9821 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9823 * configure: Regenerate.
9825 2014-02-11 Yao Qi <yao@codesourcery.com>
9827 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9828 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9829 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9830 * gnu-nat.c (gnu_xfer_memory): Likewise.
9831 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9832 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9833 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9834 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9836 2014-02-11 Yao Qi <yao@codesourcery.com>
9838 * target.h (enum target_xfer_error): Rename to ...
9839 (enum target_xfer_status): ... it. New. All users updated.
9840 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9842 (TARGET_XFER_STATUS_ERROR_P): New macro.
9843 (target_xfer_error_to_string): Remove declaration.
9844 (target_xfer_status_to_string): Declare.
9845 (target_xfer_partial_ftype): Adjust it.
9846 (struct target_ops) <to_xfer_partial>: Return
9847 target_xfer_status. Add argument xfered_len. Update
9849 * target.c (target_xfer_error_to_string): Rename to ...
9850 (target_xfer_status_to_string): ... it. New. All callers
9852 (target_read_live_memory): Likewise. Call target_xfer_partial
9853 instead of target_read.
9854 (memory_xfer_live_readonly_partial): Return
9855 target_xfer_status. Add argument xfered_len.
9856 (raw_memory_xfer_partial): Likewise.
9857 (memory_xfer_partial_1): Likewise.
9858 (memory_xfer_partial): Likewise.
9859 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9860 properly. Update debug message.
9861 (default_xfer_partial, current_xfer_partial): Likewise.
9862 (target_write_partial): Likewise.
9863 (target_read_partial): Likewise. All callers updated.
9864 (read_whatever_is_readable): Likewise.
9865 (target_write_with_progress): Likewise.
9866 (target_read_alloc_1): Likewise.
9868 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9869 * auxv.c (procfs_xfer_auxv): Likewise.
9870 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9871 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9872 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9873 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9874 * corefile.c (read_memory): Adjust.
9875 * corelow.c (core_xfer_partial): Likewise.
9876 * ctf.c (ctf_xfer_partial): Likewise.
9877 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9879 (darwin_xfer_partial): Likewise.
9880 * exec.c (section_table_xfer_memory_partial): Likewise. All
9882 (exec_xfer_partial): Likewise.
9883 * exec.h (section_table_xfer_memory_partial): Update
9885 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9887 (gnu_xfer_partial): Likewise.
9888 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9889 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9890 (ia64_hpux_xfer_solib_got): Likewise.
9891 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9892 type of 'partial_len' to ULONGEST.
9893 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9894 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9895 (linux_nat_xfer_partial): Likewise.
9896 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9897 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9898 * monitor.c (monitor_xfer_memory): Likewise.
9899 (monitor_xfer_partial): Likewise.
9900 * procfs.c (procfs_xfer_partial): Likewise.
9901 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9902 * record-full.c (record_full_xfer_partial): Likewise.
9903 (record_full_core_xfer_partial): Likewise.
9904 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9905 (gdbsim_xfer_partial): Likewise.
9906 * remote.c (remote_write_bytes_aux): Likewise. All callers
9908 (remote_write_bytes, remote_read_bytes): Likewise. All
9910 (remote_flash_erase): Likewise. All callers updated.
9911 (remote_write_qxfer): Likewise. All callers updated.
9912 (remote_read_qxfer): Likewise. All callers updated.
9913 (remote_xfer_partial): Likewise.
9914 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9915 (rs6000_xfer_shared_libraries): Likewise.
9916 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9917 (sol_thread_xfer_partial): Likewise.
9918 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9919 (sparc_xfer_partial): Likewise.
9920 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9922 (spu_xfer_partial): Likewise.
9923 * spu-multiarch.c (spu_xfer_partial): Likewise.
9924 * tracepoint.c (tfile_xfer_partial): Likewise.
9925 * windows-nat.c (windows_xfer_memory): Likewise.
9926 (windows_xfer_shared_libraries): Likewise.
9927 (windows_xfer_partial): Likewise.
9928 * valprint.c: Replace 'target_xfer_error' with
9929 'target_xfer_status' in comments.
9931 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9933 Checked in by Joel Brobecker <brobecker@adacore.com>.
9934 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9936 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9938 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9939 function parameters.
9941 2014-02-10 Will Newton <will.newton@linaro.org>
9943 * elfread.c (elf_rel_plt_read): Look for a .got section if
9944 looking up .got.plt fails.
9945 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9946 on address passed to elf_gnu_ifunc_record_cache.
9947 (elf_gnu_ifunc_resolve_addr): Likewise.
9948 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9950 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9952 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9953 (X_RETTURN): New macro.
9954 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9956 * sparc64-tdep.c (sparc64_init_abi): Hook
9957 sparc_in_function_epilogue_p.
9959 2014-02-10 Gary Benson <gbenson@redhat.com>
9961 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9962 Rename name_matcher to symbol_matcher.
9964 2014-02-10 Gary Benson <gbenson@redhat.com>
9966 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9967 Use expand_symtabs_file_matcher_ftype and
9968 expand_symtabs_symbol_matcher_ftype.
9970 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9972 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9973 (struct ada_symbol_cache): New.
9974 (ada_free_symbol_cache): Forward declare.
9975 (struct ada_pspace_data): New.
9976 (ada_pspace_data_handle): New static global.
9977 (get_ada_pspace_data, ada_pspace_data_cleanup)
9978 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9979 (cache_space, cache): Delete, now folded inside struct
9981 (ada_get_symbol_cache): New function.
9982 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9984 (_initialize_ada_language): Remove initialization of cache_space.
9985 Move call to observer_attach_inferior_exit up, grouping it
9986 with the other observer registrations inside this function.
9987 Rename command to be more general. Add call to
9988 register_program_space_data_with_cleanup.
9990 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9992 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9993 ada_new_objfile_observer.
9994 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9995 (_initialize_tasks): Update uses of ada_new_objfile_observer
9996 and ada_tasks_normal_stop_observer.
9998 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10000 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10001 returned by the 'Length attribute to integer.
10003 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10005 * ada-lang.c (_initialize_ada_language): Initialize
10006 cache_space obstack.
10008 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10010 * ada-lang.c (HASH_SIZE): New macro.
10011 (struct cache_entry): New type.
10012 (cache_space, cache): New static globals.
10013 (ada_clear_symbol_cache, find_entry): New functions.
10014 (lookup_cached_symbol, cache_symbol): Implement.
10015 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10016 (_initialize_ada_language): Attach ada_new_objfile_observer
10017 and ada_free_objfile_observer.
10019 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10021 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10022 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10023 struct block * parameter.
10024 (ada_lookup_symbol_list_worker): Constify local variable "block".
10025 Remove cast which is no longer necessary.
10027 2014-02-10 Doug Evans <xdje42@gmail.com>
10029 Add Guile as an extension language.
10030 * NEWS: Mention Guile scripting.
10031 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10032 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10033 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10034 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10035 (CLIBS): Add GUILE_LIBS.
10036 (install-guile): New rule.
10037 (guile.o): New rule.
10038 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10039 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10040 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10041 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10042 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10043 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10044 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10045 * configure.ac: New option --with-guile.
10046 * configure: Regenerate.
10047 * config.in: Regenerate.
10048 * auto-load.c: Remove #include "python/python.h". Add #include
10049 "gdb/section-scripts.h".
10050 (source_section_scripts): Handle Guile scripts.
10051 (_initialize_auto_load): Add name of Guile objfile script to
10052 scripts-directory help text.
10053 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10054 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10055 (struct breakpoint): New member scm_bp_object.
10056 * defs.h (enum command_control_type): New value guile_control.
10057 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10059 (show_user): Update comment.
10060 (_initialize_cli_cmds): Update help text for "show user". Update help
10061 text for max-user-call-depth.
10062 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10064 (multi_line_command_p): Add guile_control.
10065 (print_command_lines): Handle guile_control.
10066 (execute_control_command, recurse_read_control_structure): Ditto.
10067 (process_next_line): Recognize "guile" commands.
10068 * disasm.c (gdb_disassemble_info): Make non-static.
10069 * disasm.h: #include "dis-asm.h".
10070 (struct gdbarch): Add forward decl.
10071 (gdb_disassemble_info): Declare.
10072 * extension.c: #include "guile/guile.h".
10073 (extension_languages): Add guile.
10074 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10075 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10076 * gdbtypes.c (get_unsigned_type_max): New function.
10077 (get_signed_type_minmax): New function.
10078 * gdbtypes.h (get_unsigned_type_max): Declare.
10079 (get_signed_type_minmax): Declare.
10080 * guile/README: New file.
10081 * guile/guile-internal.h: New file.
10082 * guile/guile.c: New file.
10083 * guile/guile.h: New file.
10084 * guile/scm-arch.c: New file.
10085 * guile/scm-auto-load.c: New file.
10086 * guile/scm-block.c: New file.
10087 * guile/scm-breakpoint.c: New file.
10088 * guile/scm-disasm.c: New file.
10089 * guile/scm-exception.c: New file.
10090 * guile/scm-frame.c: New file.
10091 * guile/scm-gsmob.c: New file.
10092 * guile/scm-iterator.c: New file.
10093 * guile/scm-lazy-string.c: New file.
10094 * guile/scm-math.c: New file.
10095 * guile/scm-objfile.c: New file.
10096 * guile/scm-ports.c: New file.
10097 * guile/scm-pretty-print.c: New file.
10098 * guile/scm-safe-call.c: New file.
10099 * guile/scm-string.c: New file.
10100 * guile/scm-symbol.c: New file.
10101 * guile/scm-symtab.c: New file.
10102 * guile/scm-type.c: New file.
10103 * guile/scm-utils.c: New file.
10104 * guile/scm-value.c: New file.
10105 * guile/lib/gdb.scm: New file.
10106 * guile/lib/gdb/boot.scm: New file.
10107 * guile/lib/gdb/experimental.scm: New file.
10108 * guile/lib/gdb/init.scm: New file.
10109 * guile/lib/gdb/iterator.scm: New file.
10110 * guile/lib/gdb/printing.scm: New file.
10111 * guile/lib/gdb/types.scm: New file.
10112 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10113 (VPATH): Add $(GUILE_SRCDIR).
10114 (GUILE_DIR): New variable.
10115 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10116 (all): Add stamp-guile dependency.
10117 (stamp-guile): New rule.
10118 (clean-guile, install-guile, uninstall-guile): New rules.
10119 (install-only): Add install-guile dependency.
10120 (uninstall): Add uninstall-guile dependency.
10121 (clean): Add clean-guile dependency.
10123 2014-02-09 Doug Evans <xdje42@gmail.com>
10125 Revert this patch (which I approved, mea culpa).
10127 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10129 * Makefile.in (all-lib): Remove.
10130 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10132 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10134 Fix Python stack corruption.
10135 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10138 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10140 * Makefile.in (all-lib): Remove.
10141 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10143 2014-02-07 Doug Evans <dje@google.com>
10145 * extension-priv.h (extension_language_script_ops): Add comment.
10146 (extension_language_ops): Add comment.
10147 (active_ext_lang_state): Fix typo in comment.
10149 2014-02-07 Pedro Alves <palves@redhat.com>
10151 PR breakpoints/16292
10152 * infrun.c (handle_signal_stop) <signal arrives while stepping
10153 over a breakpoint>: Switch back to the stepping thread.
10155 2014-02-07 Yao Qi <yao@codesourcery.com>
10157 * target.c (target_xfer_partial): Return zero if LEN is zero.
10159 2014-02-07 Yao Qi <yao@codesourcery.com>
10161 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10162 (ld_so_xfer_auxv): Likewise.
10163 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10164 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10165 * corelow.c (core_xfer_partial): Likewise.
10166 * ctf.c (ctf_xfer_partial): Likewise.
10167 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10168 (darwin_xfer_partial): Likewise.
10169 * exec.c (exec_xfer_partial): Likewise.
10170 * gnu-nat.c (gnu_xfer_partial): Likewise.
10171 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10172 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10173 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10174 * linux-nat.c (linux_xfer_siginfo): Likewise.
10175 (linux_proc_xfer_spu): Likewise.
10176 * procfs.c (procfs_xfer_partial): Likewise.
10177 * record-full.c (record_full_xfer_partial): Likewise.
10178 (record_full_core_xfer_partial): Likewise.
10179 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10180 * remote.c (remote_write_qxfer): Likewise.
10181 (remote_write_qxfer, remote_read_qxfer): Likewise.
10182 (remote_xfer_partial): Likewise.
10183 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10184 (rs6000_xfer_shared_libraries): Likewise.
10185 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10186 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10187 (spu_xfer_partial): Likewise.
10188 * target.c (memory_xfer_partial_1): Likewise.
10189 * tracepoint.c (tfile_xfer_partial): Likewise.
10190 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10191 (windows_xfer_partial): Likewise.
10193 2014-02-07 Yao Qi <yao@codesourcery.com>
10195 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10197 (core_xfer_shared_libraries_aix): Likewise.
10198 * gdbarch.c, gdbarch.h: Regenerated.
10199 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10200 ULONGEST. Change 'len_avail' type to ULONGEST.
10201 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10202 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10204 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10206 2014-02-07 Yao Qi <yao@codesourcery.com>
10208 * corefile.c (memory_error): Get 'exception' from ERR and pass
10209 'exception' to throw_error.
10211 2014-02-06 Doug Evans <xdje42@gmail.com>
10213 * configure.ac (libpython checking): Remove all but python.o from
10214 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10215 * configure: Regenerate.
10217 * Makefile.in (SFILES): Add extension.c.
10218 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10219 (COMMON_OBS): Add extension.o.
10220 * extension.h: New file.
10221 * extension-priv.h: New file.
10222 * extension.c: New file.
10224 * python/python-internal.h: #include "extension.h".
10225 (gdbpy_auto_load_enabled): Declare.
10226 (gdbpy_apply_val_pretty_printer): Declare.
10227 (gdbpy_apply_frame_filter): Declare.
10228 (gdbpy_preserve_values): Declare.
10229 (gdbpy_breakpoint_cond_says_stop): Declare.
10230 (gdbpy_breakpoint_has_cond): Declare.
10231 (void source_python_script_for_objfile): Delete.
10232 * python/python.c: #include "extension-priv.h".
10233 Delete inclusion of "observer.h".
10234 (extension_language_python): Moved here and renamed from
10235 script_language_python in py-auto-load.c.
10236 Redefined to be of type extension_language_defn.
10237 (python_extension_script_ops): New global.
10238 (python_extension_ops): New global.
10239 (struct python_env): New member previous_active.
10240 (restore_python_env): Call restore_active_ext_lang.
10241 (ensure_python_env): Call set_active_ext_lang.
10242 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10244 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10246 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10248 (gdbpy_eval_from_control_command): Renamed from
10249 eval_python_from_control_command, made static. New arg extlang.
10250 (gdbpy_source_script) Renamed from source_python_script, made static.
10252 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10253 result to int. New arg extlang.
10254 (gdbpy_source_objfile_script): Renamed from
10255 source_python_script_for_objfile, made static. New arg extlang.
10256 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10257 static. New args extlang, extlang_printers. Change result type to
10259 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10260 static. New arg extlang. Rename arg printers to extlang_printers
10261 and change type to ext_lang_type_printers *.
10262 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10263 static. Replace argument arg with extlang, extlang_printers.
10264 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10265 (!HAVE_PYTHON, source_python_script): Delete.
10266 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10267 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10268 (!HAVE_PYTHON, start_type_printers): Delete.
10269 (!HAVE_PYTHON, apply_type_printers): Delete.
10270 (!HAVE_PYTHON, free_type_printers): Delete.
10271 (_initialize_python): Delete call to observer_attach_before_prompt.
10272 (finalize_python): Set/restore active extension language.
10273 (gdbpy_finish_initialization) Renamed from
10274 finish_python_initialization, made static. New arg extlang.
10275 (gdbpy_initialized): New function.
10276 * python/python.h: #include "extension.h". Delete #include
10277 "value.h", "mi/mi-cmds.h".
10278 (extension_language_python): Declare.
10279 (GDBPY_AUTO_FILE_NAME): Delete.
10280 (enum py_bt_status): Moved to extension.h and renamed to
10281 ext_lang_bt_status.
10282 (enum frame_filter_flags): Moved to extension.h.
10283 (enum py_frame_args): Moved to extension.h and renamed to
10284 ext_lang_frame_args.
10285 (finish_python_initialization): Delete.
10286 (eval_python_from_control_command): Delete.
10287 (source_python_script): Delete.
10288 (apply_val_pretty_printer): Delete.
10289 (apply_frame_filter): Delete.
10290 (preserve_python_values): Delete.
10291 (gdbpy_script_language_defn): Delete.
10292 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10293 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10295 * auto-load.c: #include "extension.h".
10296 (GDB_AUTO_FILE_NAME): Delete.
10297 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10298 (script_language_gdb): Delete, moved to extension.c and renamed to
10299 extension_language_gdb.
10300 (source_gdb_script_for_objfile): Delete.
10301 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10302 (loaded_script): Change type of language member to
10303 struct extension_language_defn *.
10304 (init_loaded_scripts_info): Initialize
10305 unsupported_script_warning_printed.
10306 (maybe_add_script): Make static. Change type of language arg to
10307 struct extension_language_defn *.
10308 (clear_section_scripts): Reset unsupported_script_warning_printed.
10309 (auto_load_objfile_script_1): Rewrite to use extension language API.
10310 (auto_load_objfile_script): Make public. Remove support-compiled-in
10311 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10312 (source_section_scripts): Rewrite to use extension language API.
10313 (load_auto_scripts_for_objfile): Rewrite to use
10314 auto_load_scripts_for_objfile.
10315 (collect_matching_scripts_data): Change type of language member to
10316 struct extension_language_defn *.
10317 (auto_load_info_scripts): Change type of language arg to
10318 struct extension_language_defn *.
10319 (unsupported_script_warning_print): New function.
10320 (script_not_found_warning_print): Make static.
10321 (_initialize_auto_load): Rewrite construction of scripts-directory
10323 * auto-load.h (struct objfile): Add forward decl.
10324 (struct script_language): Delete.
10325 (struct auto_load_pspace_info): Add forward decl.
10326 (struct extension_language_defn): Add forward decl.
10327 (maybe_add_script): Delete.
10328 (auto_load_objfile_script): Declare.
10329 (script_not_found_warning_print): Delete.
10330 (auto_load_info_scripts): Update prototype.
10331 (auto_load_gdb_scripts_enabled): Declare.
10332 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10333 auto_load_python_scripts_enabled and made public.
10334 (script_language_python): Delete, moved to python.c.
10335 (gdbpy_script_language_defn): Delete.
10336 (info_auto_load_python_scripts): Update to use
10337 extension_language_python.
10339 * breakpoint.c (condition_command): Replace call to
10340 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10341 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10342 with call to breakpoint_ext_lang_cond_says_stop.
10343 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10344 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10345 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10346 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10348 (local_setattro): Print name of extension language with existing
10351 * valprint.c (val_print, value_print): Update to call
10352 apply_ext_lang_val_pretty_printer.
10353 * cp-valprint.c (cp_print_value): Update call to
10354 apply_ext_lang_val_pretty_printer.
10355 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10356 (gdbpy_apply_val_pretty_printer): Renamed from
10357 apply_val_pretty_printer. New arg extlang.
10358 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10360 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10361 extension language API.
10362 * cli/cli-script.c (execute_control_command): Update to call
10363 eval_ext_lang_from_control_command.
10365 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10366 enum ext_lang_bt_status values. Update call to
10367 apply_ext_lang_frame_filter.
10368 (mi_cmd_stack_list_locals): Ditto.
10369 (mi_cmd_stack_list_args): Ditto.
10370 (mi_cmd_stack_list_variables): Ditto.
10371 * mi/mi-main.c: Delete #include "python/python-internal.h".
10372 Add #include "extension.h".
10373 (mi_cmd_list_features): Replace reference to python internal variable
10374 gdb_python_initialized with call to ext_lang_initialized_p.
10376 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10377 Update to use enum ext_lang_frame_args. Update to call
10378 apply_ext_lang_frame_filter.
10379 * python/py-framefilter.c (extract_sym): Update to use enum
10380 ext_lang_bt_status.
10381 (extract_value, py_print_type, py_print_value): Ditto.
10382 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10383 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10384 (py_print_frame): Ditto.
10385 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10386 New arg extlang. Update to use enum ext_lang_bt_status.
10388 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10389 finish_python_initialization. Replace with call to
10390 finish_ext_lang_initialization.
10392 * typeprint.c (do_free_global_table): Update to call
10393 free_ext_lang_type_printers.
10394 (create_global_typedef_table): Update to call
10395 start_ext_lang_type_printers.
10396 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10397 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10398 (type_print_options): Change type of global_printers from "void *"
10399 to "struct ext_lang_type_printers *".
10401 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10402 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10403 (gdbpy_preserve_values): Renamed from preserve_python_values.
10405 (!HAVE_PYTHON, preserve_python_values): Delete.
10407 * utils.c (quit_flag): Delete, moved to extension.c.
10408 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10411 * eval.c: Delete #include "python/python.h".
10412 * main.c: Delete #include "python/python.h".
10414 * defs.h: Update comment.
10416 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10420 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10422 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10425 2014-02-05 Yao Qi <yao@codesourcery.com>
10427 * remote.c (remote_pass_signals): Remove local 'buf' and use
10429 (remote_program_signals): Likewise.
10431 2014-02-05 Yao Qi <yao@codesourcery.com>
10433 * ctf.c: Include "inferior.h" and "gdbthread.h".
10434 (CTF_PID): A new macro.
10435 (ctf_open): Call inferior_appeared and add_thread_silent.
10436 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10437 (ctf_thread_alive): New function.
10438 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10440 2014-02-05 Yao Qi <yao@codesourcery.com>
10444 2013-05-24 Yao Qi <yao@codesourcery.com>
10446 * tracepoint.c (TFILE_PID): Remove.
10447 (tfile_open): Don't add thread and inferior.
10448 (tfile_close): Don't set 'inferior_ptid'. Don't call
10449 exit_inferior_silent.
10450 (tfile_thread_alive): Remove.
10451 (init_tfile_ops): Don't set field 'to_thread_alive' of
10454 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10456 * remote.c (remote_start_remote): Call remote_check_symbols even
10457 if only symbol-file (not file) has been given.
10459 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10461 * gdbarch.sh (skip_entrypoint): New callback.
10462 * gdbarch.c, gdbarch.h: Regenerate.
10463 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10464 * infrun.c (fill_in_stop_func): Likewise.
10465 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10466 (ppc_elfv2_elf_make_msymbol_special): New function.
10467 (ppc_elfv2_skip_entrypoint): Likewise.
10468 (ppc_linux_init_abi): Install them for ELFv2.
10470 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10472 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10473 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10474 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10475 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10476 structures returned in GPRs.
10478 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10480 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10481 offset to the stack parameter list for the ELFv2 ABI.
10483 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10485 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10486 set_gdbarch_convert_from_func_ptr_addr and
10487 set_gdbarch_elf_make_msymbol_special for ELFv1.
10488 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10489 function descriptors on ELFv1.
10490 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10491 set up r12 at function entry.
10493 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10495 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10496 (struct gdbarch_tdep): New member elf_abi.
10498 * rs6000-tdep.c: Include "elf/ppc64.h".
10499 (rs6000_gdbarch_init): Detect ELF ABI version.
10501 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10503 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10504 within a register pair holding a DFP 128-bit value on little-endian.
10505 (ppc64_sysv_abi_return_value_base): Likewise.
10506 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10507 (dfp_pseudo_register_write): Likewise.
10509 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10511 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10512 offset on little-endian when passing _Decimal32.
10513 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10515 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10517 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10518 of the overlapped FP register within the VSX register on little-
10520 (efpr_pseudo_register_write): Likewise.
10522 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10524 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10525 offset on little-endian when passing small structures.
10527 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10529 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10530 (struct ppc64_sysv_argpos): New data structure.
10531 (ppc64_sysv_abi_push_float): Remove.
10532 (ppc64_sysv_abi_push_val): New function.
10533 (ppc64_sysv_abi_push_integer): Likewise.
10534 (ppc64_sysv_abi_push_freg): Likewise.
10535 (ppc64_sysv_abi_push_vreg): Likewise.
10536 (ppc64_sysv_abi_push_param): Likewise.
10537 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10538 (ppc64_sysv_abi_return_value_base): New function.
10539 (ppc64_sysv_abi_return_value): Refactor to use it.
10541 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10543 * NEWS: Document new target powerpc64le-*-linux*.
10545 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10547 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10548 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10550 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10551 register set used in ELF core dumps. Add floating-point register set.
10553 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10555 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10556 dwarf2_to_gdb[] table using symbolic constants. Adjust
10557 penultimate entry from number representing the PC register
10558 to symbolic constant representing the MDR register. Add
10559 constant for the PC register to the end of the table.
10561 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10563 * bsd-kvm.c: Include <sys/param.h>
10565 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10567 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10569 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10571 * ada-lang.h (clear_ada_sym_cache): Delete.
10573 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10575 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10577 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10579 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10580 the sigreturn register save area only if the syscall is
10583 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10585 * valops.c (value_slice): Minor reformatting.
10587 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10589 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10591 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10593 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10594 New static globals.
10595 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10596 (ada_ignore_descriptive_types_p): New static global.
10597 (find_parallel_type_by_descriptive_type): Return immediately
10598 if ada_ignore_descriptive_types_p is set.
10599 (_initialize_ada_language): Register new commands "maintenance
10600 set ada", "maintenance show ada", "maintenance set ada
10601 ignore-descriptive-types" and "maintenance show ada
10602 ignore-descriptive-types".
10603 * NEWS: Add entry for new "maint ada set/show
10604 ignore-descriptive-types" commands.
10606 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10608 * record-btrace.c (record_btrace_close): Call btrace_teardown
10611 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10613 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10616 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10618 * ada-typeprint (type_is_full_subrange_of_target_type):
10620 (print_range): Add parameter bounds_prefered_p. If not set,
10621 try printing range types using the name of their base type.
10622 (print_range_type): Add parameter bounds_prefered_p.
10623 Use it in call to print_range.
10624 (print_array_type, ada_print_type): Update calls to print_range
10625 and print_range_type.
10627 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10629 * ada-typeprint.c (print_array_type, print_choices, print_range)
10630 (print_range_bound, print_dynamic_range_bound, print_range_type):
10631 Remove declaration.
10633 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10635 * ada-typeprint.c (print_range): Add missing empty line
10636 after local declaration.
10638 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10640 * ada-valprint.c (print_optional_low_bound): Get index_type's
10641 target type for as long as it is a TYPE_CODE_RANGE.
10643 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10645 * procfs.c (procfs_make_note_section): Remove assertion and
10646 associated comment.
10648 2014-01-24 Yao Qi <yao@codesourcery.com>
10650 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10651 * corelow.c (get_core_siginfo): Likewise.
10653 2014-01-24 Yao Qi <yao@codesourcery.com>
10655 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10656 ULONGEST. Don't check 'len' is negative.
10657 (remote_write_bytes): Change type of 'len' to ULONGEST.
10659 2014-01-23 Tom Tromey <tromey@redhat.com>
10662 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10663 Handle exception from frame.block.
10664 (FrameVars.fetch_frame_locals): Likewise.
10666 2014-01-23 Tom Tromey <tromey@redhat.com>
10669 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10670 on a NULL pointer. Move "goto error" to correct place.
10672 2014-01-23 Tom Tromey <tromey@redhat.com>
10675 * python/py-framefilter.c (apply_frame_filter): Call
10676 ensure_python_env after computing gdbarch.
10678 2014-01-23 Yao Qi <yao@codesourcery.com>
10680 * target.c (raw_memory_xfer_partial): Change argument type
10681 from void * to gdb_byte *.
10682 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10684 2014-01-22 Doug Evans <dje@google.com>
10686 New gdbserver option --debug-format=timestamp.
10687 * NEWS: Mention it.
10689 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10691 * syscalls/s390x-linux.xml: New file.
10692 * syscalls/s390-linux.xml: New file.
10693 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10694 (XML_SYSCALL_FILENAME_S390X): Likewise.
10695 (op_svc): New enum value for SVC opcode.
10696 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10697 (s390_linux_get_syscall_number): New function.
10698 (s390_gdbarch_init): Register '*get_syscall_number' and the
10699 syscall xml file name.
10700 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10701 "s390-linux.xml" and "s390x-linux.xml".
10702 * NEWS: Announce new feature.
10704 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10706 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10708 2014-01-22 Pedro Alves <palves@redhat.com>
10710 * xtensa-config.c: Include defs.h.
10712 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10714 * common/common-utils.h: Add "ARI:" comment beside __func__
10717 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10719 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10720 documentation a bit.
10722 2014-01-21 Roland McGrath <mcgrathr@google.com>
10724 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10725 * configure: Regenerate.
10726 * aclocal.m4: Regenerate.
10727 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10728 New substituted variables.
10729 (install-strip): New target.
10730 (INSTALL_SCRIPT): New substituted variable.
10731 (FLAGS_TO_PASS): Add it.
10732 (install-only): Use $(INSTALL_SCRIPT) rather than
10733 $(INSTALL_PROGRAM) for gcore.
10735 2014-01-20 Tom Tromey <tromey@redhat.com>
10737 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10740 2014-01-20 Tom Tromey <tromey@redhat.com>
10742 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10743 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10744 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10745 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10746 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10747 (struct cmd_list_element) <flags>: Remove.
10748 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10749 doc_allocated>: New fields.
10750 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10752 * maint.c (maintenance_do_deprecate): Update.
10753 * top.c (execute_command): Update.
10755 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10757 * xtensa-linux-nat.c: Include asm/ptrace.h.
10759 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10761 * Makefile.in (SFILES): Add d-support.c.
10762 (COMMON_OBS): Add d-support.o.
10763 * d-lang.h (d_parse_symbol): Add comment, now defined in
10765 * d-lang.c (parse_call_convention)
10766 (parse_attributes, parse_function_types)
10767 (parse_function_args, parse_type, parse_identifier)
10768 (call_convention_p, d_parse_symbol): Move functions to ...
10769 * d-support.c: ... New file.
10771 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10773 * d-lang.h (d_parse_symbol): Add declaration.
10774 * d-lang.c (extract_identifiers)
10775 (extract_type_info): Remove functions.
10776 (parse_call_convention, parse_attributes)
10777 (parse_function_types, parse_function_args)
10778 (parse_type, parse_identifier, call_convention_p)
10779 (d_parse_symbol): New functions.
10780 (d_demangle): Use d_parse_symbol to demangle D symbols.
10782 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10784 * d-lang.h (struct builtin_d_type): New data type.
10785 (builtin_d_type): Add declaration.
10786 * d-lang.c (d_language_arch_info, build_d_types)
10787 (builtin_d_type): New functions.
10788 (enum d_primitive_types): New data type.
10789 (d_language_defn): Change c_language_arch_info to
10790 d_language_arch_info.
10791 (d_type_data): New static variable.
10792 (_initialize_d_language): Initialize d_type_data.
10794 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10796 * d-lang.h (d_main_name): Add declaration.
10797 * d-lang.c (d_main_name): New function.
10798 * symtab.c (find_main_name): Add call to d_main_name.
10800 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10802 * d-lang.c (d_language_defn): Change macro_expansion_c to
10803 macro_expansion_no.
10805 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10807 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10809 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10811 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10812 gdb_exception" declaration.
10813 * remote.c (getpkt_or_notif_sane): Likewise.
10815 2014-01-17 Doug Evans <dje@google.com>
10817 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10818 function, contents of dirnames_to_char_ptr_vec_append moved here.
10819 (delim_string_to_char_ptr_vec): New function.
10820 (dirnames_to_char_ptr_vec_append): Rewrite.
10821 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10823 2014-01-17 Doug Evans <dje@google.com>
10825 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10827 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10828 #include "common-utils.h".
10829 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10830 * common/vec.h (VEC_ASSERT_PASS): Update.
10831 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10832 (MACH_CHECK_ERROR): Update.
10834 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10836 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10838 * gdbarch.h: Regenerate.
10840 2014-01-16 Tom Tromey <tromey@redhat.com>
10842 * value.c (struct value) <regnum>: Move earlier.
10844 2014-01-16 Tom Tromey <tromey@redhat.com>
10846 * remote.c (extended_remote_create_inferior): Rename from
10847 extended_remote_create_inferior_1. Add "ops" argument. Remove
10848 old implementation.
10850 2014-01-16 Pedro Alves <palves@redhat.com>
10852 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10853 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10856 2014-01-16 Doug Evans <dje@google.com>
10858 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10862 * btrace.h (btrace_thread_flag): New.
10863 (struct btrace_thread_info) <flags>: New.
10864 * record-btrace.c (record_btrace_resume_thread)
10865 (record_btrace_find_thread_to_move, btrace_step_no_history)
10866 (btrace_step_stopped, record_btrace_start_replaying)
10867 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10868 (record_btrace_find_resume_thread): New.
10869 (record_btrace_resume, record_btrace_wait): Extend.
10870 (record_btrace_can_execute_reverse): New.
10871 (record_btrace_open): Fail in non-stop mode.
10872 (record_btrace_set_replay): Split into this, ...
10873 (record_btrace_stop_replaying): ... this, ...
10874 (record_btrace_clear_histories): ... and this.
10875 (init_record_btrace_ops): Init to_can_execute_reverse.
10876 * NEWS: Announce it.
10878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10880 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10881 (forward_target_decr_pc_after_break)
10882 (target_decr_pc_after_break): New.
10883 * target.c (forward_target_decr_pc_after_break)
10884 (target_decr_pc_after_break): New.
10885 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10886 instead of gdbarch_decr_pc_after_break.
10887 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10888 instead of gdbarch_decr_pc_after_break.
10889 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10890 instead of gdbarch_decr_pc_after_break.
10891 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10892 instead of gdbarch_decr_pc_after_break.
10893 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10894 instead of gdbarch_decr_pc_after_break.
10895 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10896 instead of gdbarch_decr_pc_after_break.
10898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10900 * btrace.c: Include regcache.h.
10901 (btrace_add_pc): New.
10902 (btrace_enable): Call btrace_add_pc.
10903 (btrace_is_empty): New.
10904 * btrace.h (btrace_is_empty): New.
10905 * record-btrace.c (require_btrace, record_btrace_info): Call
10908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10910 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10911 Support delta reads.
10912 (linux_disable_btrace): Change return type.
10913 * common/linux-btrace.h (linux_read_btrace): Change parameters
10914 and return type to allow error reporting. Update users.
10915 (linux_disable_btrace): Change return type. Update users.
10916 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10918 (btrace_error): New.
10919 (btrace_block) <begin>: Comment on BEGIN == 0.
10920 * btrace.c (btrace_compute_ftrace): Start from the end of
10922 (btrace_stitch_trace, btrace_clear_history): New.
10923 (btrace_fetch): Read delta trace, return if replaying.
10924 (btrace_clear): Move clear history code to btrace_clear_history.
10925 (parse_xml_btrace): Throw an error if parsing failed.
10926 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10927 and return type to allow error reporting.
10928 (target_read_btrace): Change parameters and return type to allow
10930 * target.c (target_read_btrace): Update.
10931 * remote.c (remote_read_btrace): Support delta reads. Pass
10933 * NEWS: Announce it.
10935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10937 * record.h (record_btrace_frame_unwind)
10938 (record_btrace_tailcall_frame_unwind): New declarations.
10939 * dwarf2-frame: Include record.h
10940 (dwarf2_frame_cfa): Throw an error for btrace frames.
10941 * record-btrace.c: Include hashtab.h.
10942 (btrace_get_bfun_name): New.
10943 (btrace_call_history): Call btrace_get_bfun_name.
10944 (struct btrace_frame_cache): New.
10946 (bfcache_hash, bfcache_eq, bfcache_new): New.
10947 (btrace_get_frame_function): New.
10948 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10949 (record_btrace_frame_this_id): Compute own id.
10950 (record_btrace_frame_prev_register): Provide PC, throw_error
10951 for all other registers.
10952 (record_btrace_frame_sniffer): Detect btrace frames.
10953 (record_btrace_tailcall_frame_sniffer): New.
10954 (record_btrace_frame_dealloc_cache): New.
10955 (record_btrace_frame_unwind): Add new functions.
10956 (record_btrace_tailcall_frame_unwind): New.
10957 (_initialize_record_btrace): Allocate cache.
10958 * btrace.c (btrace_clear): Call reinit_frame_cache.
10959 * NEWS: Announce it.
10961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10963 * record-btrace.c (record_btrace_set_replay)
10964 (record_btrace_goto_begin, record_btrace_goto_end)
10965 (record_btrace_goto): New.
10966 (init_record_btrace_ops): Initialize them.
10967 * NEWS: Announce it.
10969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10971 * record-btrace.c (record_btrace_find_new_threads)
10972 (record_btrace_thread_alive): New.
10973 (init_record_btrace_ops): Initialize to_find_new_threads and
10976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10978 * record-btrace.c (record_btrace_resume): New.
10979 (record_btrace_wait): New.
10980 (init_record_btrace_ops): Initialize to_wait and to_resume.
10982 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10984 * record-btrace.c (record_btrace_xfer_partial)
10985 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10986 (record_btrace_allow_memory_access): New.
10987 (init_record_btrace_ops): Initialize new methods.
10988 * target.c (raw_memory_xfer_partial): Bail out if target reports
10989 that this memory is not available.
10991 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10993 * target.h (target_ops) <to_insert_breakpoint>
10994 <to_remove_breakpoint>: Add target_ops parameter.
10995 (forward_target_insert_breakpoint): New.
10996 (forward_target_remove_breakpoint): New.
10997 (memory_remove_breakpoint, memory_insert_breakpoint):
10998 Add target_ops parameter.
10999 * target.c (target_insert_breakpoint): Split into this and ...
11000 (forward_target_insert_breakpoint): ... this.
11001 (target_remove_breakpoint): Split into this and ...
11002 (forward_target_remove_breakpoint): ... this.
11003 (debug_to_insert_breakpoint): Add target_ops parameter.
11004 Call forward_target_insert_breakpoint.
11005 (debug_to_remove_breakpoint): Add target_ops parameter.
11006 Call forward_target_remove_breakpoint.
11007 (update_current_target): Do not inherit or default to_insert_breakpoint
11008 and to_remove_breakpoint.
11009 * corelow.c (ignore): Add target_ops parameter.
11010 * exec.c (ignore): Add target_ops parameter.
11011 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11012 Add target_ops parameter.
11013 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11014 Add target_ops parameter.
11015 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11016 Add target_ops parameter.
11017 * record-full.c (record_full_beneath_to_insert_breakpoint)
11018 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11019 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11020 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11021 (record_full_core_remove_breakpoint): Add target_ops parameter.
11023 (record_full_beneath_to_insert_breakpoint_ops)
11024 (record_full_beneath_to_remove_breakpoint_ops)
11025 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11026 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11027 tmp_to_remove_breakpoint_ops,
11028 record_full_beneath_to_insert_breakpoint_ops, and
11029 record_full_beneath_to_remove_breakpoint_ops.
11030 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11031 (m32r_remove_breakpoint): Add target_ops parameter.
11032 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11033 Add target_ops parameter.
11034 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11035 Add target_ops parameter.
11037 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11038 Markus Metzger <markus.t.metzger@intel.com>
11040 * record-btrace.c: Include frame-unwind.h.
11041 (record_btrace_frame_unwind_stop_reason)
11042 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11043 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11045 (init_record_btrace_ops): Install it.
11047 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11049 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11052 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11054 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11057 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11059 * frame-unwind.c: Include target.h.
11060 (frame_unwind_try_unwinder): New function with code from ...
11061 (frame_unwind_find_by_frame): ... here. New variable
11062 unwinder_from_target, call also target_get_unwinder)
11063 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11064 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11065 * target.h (struct target_ops): New fields to_get_unwinder and
11066 to_get_tailcall_unwinder.
11067 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11071 * record-btrace.c (record_btrace_fetch_registers)
11072 (record_btrace_store_registers)
11073 (record_btrace_to_prepare_to_store): New.
11074 (init_record_btrace_ops): Add the above.
11076 2014-01-16 Tom Tromey <tromey@redhat.com>
11078 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11079 * target.h (struct target_ops) <to_prepare_to_store>: Add
11081 (target_prepare_to_store): Add argument.
11082 * target.c (debug_to_prepare_to_store): Add argument.
11083 (update_current_target): Update.
11084 * remote.c (remote_prepare_to_store): Add 'self' argument.
11085 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11086 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11087 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11088 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11090 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11091 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11092 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11093 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11094 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11096 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11098 * btrace.h (replay) <replay>: New.
11099 (btrace_is_replaying): New.
11100 * btrace.c (btrace_clear): Free replay iterator.
11101 (btrace_is_replaying): New.
11102 * record-btrace.c (record_btrace_is_replaying): New.
11103 (record_btrace_info): Print insn number if replaying.
11104 (record_btrace_insn_history): Start at replay position.
11105 (record_btrace_call_history): Start at replay position.
11106 (init_record_btrace_ops): Init to_record_is_replaying.
11108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11110 * record-btrace.c (record_btrace_insn_history_range): Include
11112 (record_btrace_insn_history_from): Adjust range.
11113 (record_btrace_call_history_range): Include
11115 (record_btrace_call_history_from): Adjust range.
11116 * NEWS: Announce changes.
11118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11120 * record.h (enum record_print_flag)
11121 <record_print_indent_calls>: New.
11122 * record.c (get_call_history_modifiers): Recognize /c modifier.
11123 (_initialize_record): Document /c modifier.
11124 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11125 Reorder fields. Optionally indent the function name. Update
11127 * NEWS: Announce changes.
11129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11131 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11133 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11135 * btrace.c (ftrace_new_function): Start counting at one.
11136 * record-btrace.c (record_btrace_info): Adjust number of calls
11138 * NEWS: Announce it.
11140 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11142 * record-btrace.c (btrace_call_history_insn_range): Print
11143 insn range as [begin, end].
11145 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11147 * btrace.h (struct btrace_func_link): New.
11148 (enum btrace_function_flag): New.
11149 (struct btrace_inst): Rename to ...
11150 (struct btrace_insn): ...this. Update all users.
11151 (struct btrace_func) <ibegin, iend>: Remove.
11152 (struct btrace_func_link): New.
11153 (struct btrace_func): Rename to ...
11154 (struct btrace_function): ...this. Update all users.
11155 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11156 (number, level, flags>: New.
11157 (struct btrace_insn_iterator): Rename to ...
11158 (struct btrace_insn_history): ...this.
11160 (struct btrace_insn_iterator, btrace_call_iterator): New.
11161 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11162 (struct btrace_target_info) <begin, end, level>
11163 <insn_history, call_history>: New.
11164 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11165 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11166 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11167 (btrace_call_number, btrace_call_begin, btrace_call_end)
11168 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11169 (btrace_find_function_by_number, btrace_set_insn_history)
11170 (btrace_set_call_history): New.
11171 * btrace.c (btrace_init_insn_iterator)
11172 (btrace_init_func_iterator, compute_itrace): Remove.
11173 (ftrace_print_function_name, ftrace_print_filename)
11174 (ftrace_skip_file): Change
11175 parameter to const.
11176 (ftrace_init_func): Remove.
11177 (ftrace_debug): Use new btrace_function fields.
11178 (ftrace_function_switched): Also consider gaining and
11179 losing symbol information).
11180 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11181 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11182 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11184 (ftrace_new_function): Move. Remove debug print.
11185 (ftrace_update_lines, ftrace_update_insns): New.
11186 (ftrace_update_function): Check for call, ret, and jump.
11187 (compute_ftrace): Renamed to ...
11188 (btrace_compute_ftrace): ...this. Rewritten to compute call
11190 (btrace_fetch, btrace_clear): Updated.
11191 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11192 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11193 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11194 (btrace_call_number, btrace_call_begin, btrace_call_end)
11195 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11196 (btrace_find_function_by_number, btrace_set_insn_history)
11197 (btrace_set_call_history): New.
11198 * record-btrace.c (require_btrace): Use new btrace thread
11200 (record_btrace_info, btrace_insn_history)
11201 (record_btrace_insn_history, record_btrace_insn_history_range):
11202 Use new btrace thread info fields and new iterator.
11203 (btrace_func_history_src_line): Rename to ...
11204 (btrace_call_history_src_line): ...this. Use new btrace
11205 thread info fields.
11206 (btrace_func_history): Rename to ...
11207 (btrace_call_history): ...this. Use new btrace thread info
11208 fields and new iterator.
11209 (record_btrace_call_history, record_btrace_call_history_range):
11210 Use new btrace thread info fields and new iterator.
11212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11214 * frame.h (frame_id_build_unavailable_stack_special): New.
11215 * frame.c (frame_id_build_unavailable_stack_special): New.
11217 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11219 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11220 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11221 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11223 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11224 (i386_insn_is_jump, i386_jmp_p): New.
11225 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11226 insn_is_jump to gdbarch.
11227 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11228 * gdbarch.h: Regenerated.
11229 * gdbarch.c: Regenerated.
11230 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11231 (default_insn_is_jump): New.
11232 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11233 (default_insn_is_jump): New.
11235 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11237 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11239 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11240 (btrace_read_type) <btrace_read_new>: Change to ...
11241 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11245 * common/linux-btrace.c (linux_read_btrace): Free trace from
11246 previous iteration.
11248 2014-01-15 Doug Evans <dje@google.com>
11250 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11253 2014-01-15 Tom Tromey <tromey@redhat.com>
11255 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11256 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11257 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11258 (set_objfile_main_name): New function.
11259 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11260 language_of_main>: New fields.
11261 (set_objfile_main_name): Declare.
11262 * symtab.c (find_main_name): Loop over objfiles to find the main
11264 (set_main_name): Now static.
11265 (get_main_info): Add comment.
11266 * symtab.h (set_main_name): Don't declare.
11268 2014-01-15 Tom Tromey <tromey@redhat.com>
11270 * symtab.c (main_progspace_key): New global.
11271 (struct main_info): New.
11272 (name_of_main, language_of_main): Remove.
11273 (get_main_info, main_info_cleanup): New function.
11274 (set_main_name, main_name, main_language): Use get_main_info.
11275 (_initialize_symtab): Initialize main_progspace_key.
11277 2014-01-15 Tom Tromey <tromey@redhat.com>
11279 * dbxread.c (process_one_symbol): Update.
11280 * dwarf2read.c (read_partial_die): Update.
11281 * symfile.c (set_initial_language): Call main_language.
11282 * symtab.c (language_of_main): Now static.
11283 (set_main_name): Add 'lang' parameter.
11284 (find_main_name): Update.
11285 (main_language): New function.
11286 (symtab_observer_executable_changed): Update.
11287 * symtab.h (set_main_name): Update.
11288 (language_of_main): Remove.
11289 (main_language): Declare.
11291 2014-01-15 Tom Tromey <tromey@redhat.com>
11293 * symfile.c (init_entry_point_info): Use new "initialized" field.
11295 * objfiles.h (struct entry_point) <initialized>: New field.
11296 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11297 (struct objfile) <ei>: ...here. Remove.
11298 * objfiles.c (entry_point_address_query): Update.
11300 2014-01-15 Tom Tromey <tromey@redhat.com>
11302 * objfiles.c (entry_point_address_query): Relocate entry point
11304 (objfile_relocate1): Do not relocate entry point address.
11305 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11306 <the_bfd_section_index>: New field.
11307 * symfile.c (init_entry_point_info): Find the entry point's
11310 2014-01-15 Tom Tromey <tromey@redhat.com>
11312 * solib-frv.c (enable_break): Use entry_point_address_query.
11314 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11316 * NEWS: Add note on improved process record-replay on
11317 arm*-linux* targets.
11319 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11321 * arm-tdep.c (enum arm_record_result): New enum.
11322 (arm_record_unsupported_insn): New function.
11323 (arm_record_coproc_data_proc): Removed.
11324 (thumb2_record_ld_st_multiple): New function.
11325 (thumb2_record_ld_st_dual_ex_tbb): New function.
11326 (thumb2_record_data_proc_sreg_mimm): New function.
11327 (thumb2_record_ps_dest_generic): New function.
11328 (thumb2_record_branch_misc_cntrl): New function.
11329 (thumb2_record_str_single_data): New function.
11330 (thumb2_record_ld_mem_hints): New function.
11331 (thumb2_record_ld_word): New function.
11332 (thumb2_record_lmul_lmla_div): New function.
11333 (thumb2_record_decode_insn_handler): New function.
11334 (decode_insn): Add thumb32 instruction handlers.
11336 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11338 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11339 (struct arm_linux_record_tdep): Declare.
11340 (arm_canonicalize_syscall): New function.
11341 (arm_all_but_pc_registers_record): New function.
11342 (arm_linux_syscall_record): New function.
11343 (arm_linux_init_abi): Add syscall recording constructs.
11344 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11345 decoding. (arm_record_coproc_data_proc): Update arm syscall
11347 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11348 <arm_syscall_record>: New field.
11349 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11352 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11354 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11355 register for push instruction recording.
11357 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11359 * arm-tdep.c (thumb_record_misc): Update to correct logical
11360 error while recording ldm, ldmia and pop instructions.
11362 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11364 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11366 2014-01-15 Pedro Alves <palves@redhat.com>
11368 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11369 (go32_resume, go32_fetch_registers, store_register)
11370 (go32_store_registers, go32_prepare_to_store)
11371 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11372 (go32_create_inferior, go32_can_run, go32_terminal_init)
11373 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11376 2014-01-15 Tom Tromey <tromey@redhat.com>
11378 * target.h (async_callback_ftype): New typedef.
11379 (struct target_ops) <to_async>: Use it.
11381 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11383 * python/py-value.c (get_field_type): Remove unnecessary curly
11384 braces for single-statement if block.
11386 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11388 * python/py-type.c (convert_field): Add missing empty line
11389 after declarations.
11391 2014-01-14 Doug Evans <dje@google.com>
11393 * symfile.h (expand_symtabs_matching): Renamed from
11394 expand_partial_symbol_names. Update prototype.
11395 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11396 * symfile.c (expand_symtabs_matching): Renamed from
11397 expand_partial_symbol_names. New args file_matcher, kind.
11398 Rename arg fun to symbol_matcher.
11399 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11400 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11401 ada_expand_partial_symbol_name.
11402 (ada_make_symbol_completion_list): Update to call
11403 expand_symtabs_matching.
11404 (ada_add_global_exceptions): Call expand_symtabs_matching.
11405 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11406 call map_symbol_filenames.
11407 * symtab.c (sources_info): Update to call map_symbol_filenames.
11408 (search_symbols): Call expand_symtabs_matching.
11409 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11410 (default_make_symbol_completion_list_break_on): Update to call
11411 expand_symtabs_matching.
11412 (make_source_files_completion_list): Update to call
11413 map_symbol_filenames.
11415 2014-01-14 Doug Evans <dje@google.com>
11417 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11418 (expand_symtabs_symbol_matcher_ftype): New typedef.
11419 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11420 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11421 * symfile.c (expand_partial_symbol_names): Update to use
11422 expand_symtabs_symbol_matcher_ftype.
11423 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11424 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11425 Arg name_matcher renamed to symbol_matcher.
11426 * psymtab.c (recursively_search_psymtabs): Update to use
11427 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11429 (expand_symtabs_matching_via_partial): Update to use
11430 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11431 Arg name_matcher renamed to symbol_matcher.
11433 2014-01-14 Doug Evans <dje@google.com>
11435 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11436 (map_partial_symbol_filenames): Ditto.
11437 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11438 (map_partial_symbol_filenames): Ditto.
11439 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11440 (map_partial_symbol_filenames): Ditto.
11441 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11442 (map_partial_symbol_filenames): Ditto.
11443 * symtab.c: Delete #include "psymtab.h".
11445 2014-01-14 Pedro Alves <palves@redhat.com>
11446 Tom Tromey <tromey@redhat.com>
11448 * infrun.c (use_displaced_stepping): Use find_record_target
11449 instead of RECORD_IS_USED.
11450 (adjust_pc_after_break): Use record_full_is_used instead of
11452 * record-btrace.c (record_btrace_open): Call record_preopen
11453 instead of checking RECORD_IS_USED.
11454 * record-full.c (record_full_shortname)
11455 (record_full_core_shortname): New globals.
11456 (record_full_is_used): New function.
11457 (find_full_open): Call record_preopen instead of checking
11459 (init_record_full_ops): Set the target's shortname to
11460 record_full_shortname.
11461 (init_record_full_core_ops): Set the target's shortname to
11462 record_full_core_shortname.
11463 * record-full.h (record_full_is_used): Declare.
11464 * record.c (find_record_target): Make extern.
11465 (record_preopen): New function.
11466 * record.h (RECORD_IS_USED): Delete macro.
11467 (find_record_target, record_preopen): Declare functions.
11469 2014-01-14 Yao Qi <yao@codesourcery.com>
11471 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11472 'len''s type to ULONGEST.
11473 (core_xfer_shared_libraries_aix): Likewise.
11474 * gdbarch.c, gdbarch.h: Regenerated.
11475 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11476 Change type of 'len' to ULONGEST.
11477 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11478 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11480 2014-01-14 Yao Qi <yao@codesourcery.com>
11482 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11483 type of 'len' to ULONGEST.
11484 (linux_xfer_osdata_processgroups): Likewise.
11485 (linux_xfer_osdata_threads): Likewise.
11486 (linux_xfer_osdata_fds): Likewise.
11487 (linux_xfer_osdata_isockets): Likewise.
11488 (linux_xfer_osdata_shm): Likewise.
11489 (linux_xfer_osdata_sem): Likewise.
11490 (linux_xfer_osdata_msg): Likewise.
11491 (linux_common_xfer_osdata): Likewise.
11492 (struct osdata_type) <getter>: Likewise.
11493 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11496 2014-01-14 Yao Qi <yao@codesourcery.com>
11498 * target.h (target_xfer_partial_ftype): Update.
11499 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11501 * aix-thread.c (aix_thread_xfer_partial): Change type of
11502 argument 'len' to ULONGEST.
11503 * auxv.c (procfs_xfer_auxv): Likewise.
11504 (ld_so_xfer_auxv): Likewise.
11505 (memory_xfer_auxv): Likewise.
11506 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11507 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11508 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11509 * corelow.c (core_xfer_partial): Likewise.
11510 * ctf.c (ctf_xfer_partial): Likewise.
11511 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11513 (darwin_read_dyld_info): Likewise.
11514 (darwin_xfer_partial): Likewise.
11515 * exec.c (section_table_xfer_memory_partial): Likewise.
11516 (exec_xfer_partial): Likewise.
11517 * exec.h (section_table_xfer_memory_partial): Update
11519 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11520 instead of plongest.
11521 (gnu_xfer_partial): Likewise.
11522 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11523 (ia64_hpux_xfer_solib_got): Likewise.
11524 (ia64_hpux_xfer_partial): Likewise.
11525 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11526 * inf-ptrace.c (inf_ptrace_xfer_partial):
11527 * inf-ttrace.c (inf_ttrace_xfer_partial):
11528 * linux-nat.c (linux_xfer_siginfo): Likewise.
11529 (linux_nat_xfer_partial): Likewise.
11530 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11531 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11532 * monitor.c (monitor_xfer_memory): Likewise.
11533 (monitor_xfer_partial): Likewise.
11534 * procfs.c (procfs_xfer_partial): Likewise.
11535 * record-full.c (record_full_xfer_partial): Likewise.
11536 (record_full_core_xfer_partial): Likewise.
11537 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11538 instead of plongest.
11539 (gdbsim_xfer_partial): Likewise.
11540 * remote.c (remote_xfer_partial): Likewise.
11541 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11542 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11544 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11545 (rs6000_xfer_shared_libraries): Likewise.
11546 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11547 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11548 (sparc_xfer_partial): Likewise.
11549 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11550 (spu_xfer_partial): Likewise.
11551 * spu-multiarch.c (spu_xfer_partial): Likewise.
11552 * target.c (target_read_live_memory): Likewise.
11553 (memory_xfer_live_readonly_partial): Likewise.
11554 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11555 (target_xfer_partial, default_xfer_partial): Likewise.
11556 (current_xfer_partial): Likewise.
11557 * tracepoint.c (tfile_xfer_partial): Likewise.
11558 * windows-nat.c (windows_xfer_memory): Likewise. Call
11559 pulongest instead of plongest.
11560 (windows_xfer_partial): Likewise.
11561 (windows_xfer_shared_libraries): Likewise.
11563 2014-01-14 Yao Qi <yao@codesourcery.com>
11565 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11566 target_xfer_partial_ftype.
11568 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11572 * valops.c (value_struct_elt_bitpos): New function
11573 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11574 object to 'None' if the field name is an empty string ("").
11575 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11576 attribute to look for a field when 'name' is 'None'.
11577 (get_field_type): New function
11579 2014-01-13 Doug Evans <dje@google.com>
11582 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11583 (try_open_dwop_file): Ditto.
11584 * gdb_bfd.c: #include "vec.h".
11585 (bfdp): New typedef.
11586 (struct gdb_bfd_data): New member included_bfds.
11587 (gdb_bfd_unref): Unref all included bfds.
11588 (gdb_bfd_record_inclusion): New function.
11589 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11591 2014-01-13 Tom Tromey <tromey@redhat.com>
11593 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11595 2014-01-13 Tom Tromey <tromey@redhat.com>
11597 * defs.h (use_windows): Remove.
11598 * gdb.c (main): Update.
11599 * main.c (captured_main, gdb_main): Update.
11600 * main.h (struct captured_main_args) <use_windows>: Remove.
11601 * top.c (use_windows): Remove.
11603 2014-01-13 Tom Tromey <tromey@redhat.com>
11605 * defs.h (deprecated_flush_hook): Remove.
11607 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11610 * linux-thread-db.c (try_thread_db_load): Add parameter
11611 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11612 (try_thread_db_load_from_pdir_1): Move it there from here.
11613 (try_thread_db_load_from_sdir): Update caller.
11614 (try_thread_db_load_from_dir): Move it there from here.
11616 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11618 * regformats/regdat.sh: Always rewrite the register file.
11620 2014-01-13 Pedro Alves <palves@redhat.com>
11622 * Makefile.in (CHECK_HEADERS): New variable.
11623 (check-headers:): New rule.
11625 2014-01-13 Tom Tromey <tromey@redhat.com>
11627 * cli/cli-setshow.c (do_set_command): Update.
11628 * defs.h (deprecated_set_hook): Remove.
11629 * top.c (deprecated_set_hook): Remove.
11631 2014-01-13 Pedro Alves <palves@redhat.com>
11633 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11634 the tracepoint if the PC is a pseudo-register.
11636 2014-01-13 Tom Tromey <tromey@redhat.com>
11638 * defs.h (XCALLOC): Remove.
11639 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11640 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11641 * dwarf2loc.c (allocate_piece_closure): Likewise.
11642 * elfread.c (elf_symfile_segments): Likewise.
11643 (elf_symfile_segments): Likewise.
11644 * gdbtypes.c (copy_type_recursive): Likewise.
11645 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11646 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11647 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11649 * mt-tdep.c (mt_gdbarch_init): Likewise.
11650 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11652 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11653 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11654 * registry.c (registry_alloc_data): Likewise.
11655 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11656 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11657 * serial.c (serial_fdopen_ops): Likewise.
11658 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11660 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11661 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11664 2014-01-13 Tom Tromey <tromey@redhat.com>
11666 * defs.h (XMALLOC): Remove.
11667 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11668 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11669 * cli-out.c (struct ui_out *): Likewise.
11670 * cli/cli-dump.c (add_dump_command): Likewise.
11671 (add_dump_command): Likewise.
11672 * complaints.c (get_complaints): Likewise.
11673 (find_complaint): Likewise.
11674 * dwarf2-frame.c (execute_cfa_program): Likewise.
11675 * dwarf2read.c (abbrev_table_read_table): Likewise.
11676 * gdbarch.sh: Likewise.
11677 * gdbarch.c: Rebuild.
11678 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11679 * interps.c (interp_new): Likewise.
11680 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11681 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11682 * mi/mi-console.c (mi_console_file_new): Likewise.
11683 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11684 * mi/mi-out.c (mi_out_new): Likewise.
11685 * mi/mi-parse.c (mi_parse): Likewise.
11686 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11687 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11688 * observer.c (xalloc_observer_list_node): Likewise.
11689 * regcache.c (regcache_xmalloc_1): Likewise.
11690 * reggroups.c (reggroup_new): Likewise.
11691 (_initialize_reggroup): Likewise.
11692 * registry.c (register_data_with_cleanup): Likewise.
11693 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11694 * ser-base.c (serial_ttystate): Likewise.
11695 * ser-mingw.c (make_pipe_state): Likewise.
11696 * ser-pipe.c (pipe_open): Likewise.
11697 * serial.c (serial_open): Likewise.
11698 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11699 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11700 (tui_alloc_win_info): Likewise.
11701 (tui_add_content_elements): Likewise.
11702 * tui/tui-file.c (tui_file_new): Likewise.
11703 * tui/tui-out.c (tui_out_new): Likewise.
11704 * ui-file.c (mem_file_new): Likewise.
11705 * ui-out.c (push_level): Likewise.
11706 (make_cleanup_ui_out_end): Likewise.
11707 (append_header_to_list): Likewise.
11708 (ui_out_new): Likewise.
11709 * user-regs.c (user_reg_add_builtin): Likewise.
11711 2014-01-13 Tom Tromey <tromey@redhat.com>
11713 * defs.h (XZALLOC): Remove.
11714 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11715 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11716 (get_ada_tasks_inferior_data): Likewise.
11717 * auto-load.c (get_auto_load_pspace_data): Likewise.
11718 * auxv.c (get_auxv_inferior_data): Likewise.
11719 * bfd-target.c (target_bfd_reopen): Likewise.
11720 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11721 (deprecated_insert_raw_breakpoint): Likewise.
11722 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11723 * corelow.c (core_open): Likewise.
11724 * darwin-nat.c (darwin_check_new_threads): Likewise.
11725 (darwin_attach_pid): Likewise.
11726 * dummy-frame.c (dummy_frame_push): Likewise.
11727 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11728 * dwarf2loc.c (allocate_piece_closure): Likewise.
11729 * elfread.c (elf_symfile_segments): Likewise.
11730 * eval.c (ptrmath_type_p): Likewise.
11731 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11732 * gdbtypes.c (alloc_type_arch): Likewise.
11733 (alloc_type_instance): Likewise.
11734 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11735 * inf-child.c (inf_child_can_use_agent): Likewise.
11736 * inflow.c (get_inflow_inferior_data): Likewise.
11737 * infrun.c (save_infcall_suspend_state): Likewise.
11738 * jit.c (jit_reader_load): Likewise.
11739 (get_jit_objfile_data): Likewise.
11740 (get_jit_program_space_data): Likewise.
11741 (jit_object_open_impl): Likewise.
11742 (jit_symtab_open_impl): Likewise.
11743 (jit_block_open_impl): Likewise.
11744 (jit_frame_sniffer): Likewise.
11745 * linux-fork.c (add_fork): Likewise.
11746 * maint.c (make_command_stats_cleanup): Likewise.
11747 * objfiles.c (get_objfile_pspace_data): Likewise.
11748 * opencl-lang.c (struct lval_closure): Likewise.
11749 * osdata.c (osdata_start_osdata): Likewise.
11750 * progspace.c (new_address_space): Likewise.
11751 (add_program_space): Likewise.
11752 * remote-sim.c (get_sim_inferior_data): Likewise.
11753 * sh-tdep.c (sh_gdbarch_init): Likewise.
11754 * skip.c (Ignore): Likewise.
11755 (skip_delete_command): Likewise.
11756 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11757 (library_list_start_library): Likewise.
11758 (solib_aix_current_sos): Likewise.
11759 * solib-darwin.c (get_darwin_info): Likewise.
11760 (darwin_current_sos): Likewise.
11761 * solib-dsbt.c (get_dsbt_info): Likewise.
11762 * solib-ia64-hpux.c (new_so_list): Likewise.
11763 (ia64_hpux_get_solib_linkage_addr): Likewise.
11764 * solib-spu.c (append_ocl_sos): Likewise.
11765 (spu_current_sos): Likewise.
11766 * solib-svr4.c (get_svr4_info): Likewise.
11767 (svr4_keep_data_in_core): Likewise.
11768 (library_list_start_library): Likewise.
11769 (svr4_default_sos): Likewise.
11770 (svr4_read_so_list): Likewise.
11771 * solib-target.c (library_list_start_library): Likewise.
11772 (solib_target_current_sos): Likewise.
11773 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11774 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11775 * symfile.c (default_symfile_segments): Likewise.
11776 * target-descriptions.c (tdesc_data_init): Likewise.
11777 (tdesc_create_reg): Likewise.
11778 (struct tdesc_type *): Likewise.
11779 (tdesc_create_vector): Likewise.
11780 (tdesc_set_struct_size): Likewise.
11781 (struct tdesc_type *): Likewise.
11782 (tdesc_free_feature): Likewise.
11783 (tdesc_create_feature): Likewise.
11784 * windows-nat.c (windows_add_thread): Likewise.
11785 (windows_make_so): Likewise.
11786 * xml-support.c (gdb_xml_body_text): Likewise.
11787 (gdb_xml_create_parser_and_cleanup): Likewise.
11788 (xml_process_xincludes): Likewise.
11789 * xml-syscall.c (allocate_syscalls_info): Likewise.
11790 (syscall_create_syscall_desc): Likewise.
11792 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11794 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11795 function, with code from i386_stap_parse_special_token.
11796 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11797 (i386_stap_parse_special_token): Move code to the two functions
11798 above; simplify it.
11800 2014-01-09 Pedro Alves <palves@redhat.com>
11801 Hui Zhu <hui@codesourcery.com>
11804 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11805 bp_err_string. Don't mark the location shlib_disabled if the
11806 error thrown wasn't a generic or memory error. Catch errors
11807 thrown while inserting breakpoints in overlayed code. Output
11808 error message of software breakpoints.
11809 * remote.c (remote_insert_breakpoint): If this breakpoint has
11810 target-side commands but this stub doesn't support Z0 packets,
11811 throw NOT_SUPPORTED_ERROR error.
11812 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11813 * target.h (target_insert_breakpoint): Extend comment.
11814 (target_insert_hw_breakpoint): Add comment.
11816 2014-01-08 Pedro Alves <palves@redhat.com>
11818 * remote.c (remote_add_thread): Add threads silently if starting
11820 (remote_notice_new_inferior): If in all-stop, and starting up,
11821 don't call notice_new_inferior.
11822 (get_current_thread): New function, factored out from ...
11823 (add_current_inferior_and_thread): ... this. Adjust.
11824 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11825 found any thread, then select the remote's current thread as GDB's
11826 current thread too.
11828 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11830 * NEWS: Create a new section for the next release branch.
11831 Rename the section of the current branch, now that it has
11834 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11836 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11837 * version.in: Bump version to 7.7.50.DATE-cvs.
11839 2014-01-08 Yao Qi <yao@codesourcery.com>
11841 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11842 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11843 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11845 2014-01-08 Yao Qi <yao@codesourcery.com>
11847 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11848 return value of bfd_get_filename to symbol_file_add_from_bfd.
11850 2014-01-08 Pierre Muller <muller@sourceware.org>
11853 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11854 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11855 to prim_record_mininal_symbol_and_info.
11856 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11857 in call to prim_record_minimal_symbol_and_info.
11858 (read_pe_exported_syms): Set index field of section_data.
11860 2014-01-07 Andrew Pinski <apinski@cavium.com>
11862 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11863 * features/aarch64.c: Regenerate.
11865 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11867 * target.c (return_null): Define.
11868 (update_current_target): Use it instead of return_zero for
11869 functions that return a pointer.
11871 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11873 * source.c (add_path): Fix check for duplicated paths in the previously
11876 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11878 * ada-lang.c: Remove duplicated include statements.
11879 * alphabsd-nat.c: Ditto.
11880 * amd64-darwin-tdep.c: Ditto.
11881 * amd64fbsd-nat.c: Ditto.
11882 * auto-load.c: Ditto.
11884 * breakpoint.c: Ditto.
11885 * dbxread.c: Ditto.
11886 * fork-child.c: Ditto.
11887 * gdb_usleep.c: Ditto.
11888 * i386-darwin-tdep.c: Ditto.
11889 * i386fbsd-nat.c: Ditto.
11891 * inferior.c: Ditto.
11892 * jv-lang.c: Ditto.
11893 * linux-nat.c: Ditto.
11894 * linux-tdep.c: Ditto.
11895 * m68kbsd-nat.c: Ditto.
11896 * m68klinux-nat.c: Ditto.
11897 * microblaze-tdep.c: Ditto.
11898 * mips-linux-tdep.c: Ditto.
11899 * mn10300-tdep.c: Ditto.
11900 * nto-tdep.c: Ditto.
11901 * opencl-lang.c: Ditto.
11903 * printcmd.c: Ditto.
11904 * regcache.c: Ditto.
11905 * remote-m32r-sdi.c: Ditto.
11907 * symfile.c: Ditto.
11909 * tilegx-linux-nat.c: Ditto.
11910 * tilegx-tdep.c: Ditto.
11911 * tracepoint.c: Ditto.
11913 * vaxbsd-nat.c: Ditto.
11914 * windows-nat.c: Ditto.
11915 * xtensa-tdep.c: Ditto.
11917 2014-01-07 Yao Qi <yao@codesourcery.com>
11919 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11921 2014-01-07 Yao Qi <yao@codesourcery.com>
11922 Joel Brobecker <brobecker@adacore.com>
11924 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11925 (pdc_write_regs): Likewise.
11926 (fetch_regs_kernel_thread): Likewise.
11927 (store_regs_kernel_thread): Likewise.
11929 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11931 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11932 tagged type objects to their actual type.
11934 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11936 * ada-valprint.c (print_field_values): Add "language" parameter.
11937 Update calls to print_field_values and print_variant_part.
11938 Pass new parameter "language" in call to val_print instead
11939 of "current_language". Replace call to ada_val_print by call
11941 (print_variant_part): Add "language" parameter.
11942 (ada_val_print_struct_union): Update call to print_field_values.
11944 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11946 * ada-valprint.c (ui_memcpy): Delete.
11947 (ada_print_floating): Update documentation. Add empty line
11948 between between function documentation and implementation.
11949 Delete variable "buffer". Use ui_file_xstrdup in place of
11950 ui_file_put. Minor adjustments following this change.
11952 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11954 * ada-valprint.c (ada_val_print_string): New function,
11955 extracted from ada_val_print_array.
11956 (ada_val_print_array): Replace extracted code by call
11957 to ada_val_print_string followed by a return. Move
11958 "else" branch to the function's top block.
11960 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11962 * ada-valprint.c (ada_val_print_array): Move implementation
11963 down. Rename parameter "offset" and "val" into "offset_aligned"
11964 and "original_value" respectively. Add parameter "offset".
11966 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11968 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11969 re-organizing the code. Change the "???" message printed
11970 when target type is a TYPE_CODE_UNDEF into
11971 "<ref to undefined type>".
11973 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11975 * ada-valprint.c (print_record): Delete, implementation inlined...
11976 (ada_val_print_struct_union): ... here. Remove call to
11977 ada_check_typedef in inlined implementation.
11979 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11981 * ada-valprint.c (ada_val_print_gnat_array): New function,
11982 extracted from ada_val_print_1;
11983 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11984 (ada_val_print_flt, ada_val_print_struct_union)
11985 (ada_val_print_ref): Likewise.
11986 (ada_val_print_1): Delete variables i and elttype.
11987 Replace extracted-out code by call to corresponding
11990 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11992 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11994 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11996 * ada-valprint.c (ada_val_print_1): Replace calls to
11997 ada_val_print_1 by calls to val_print.
11999 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12001 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12002 Update calls to self accordingly. Replace calls to c_val_print
12003 by calls to val_print.
12005 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12007 * ada-valprint.c (print_record): Delete declaration.
12008 (adjust_type_signedness, ada_val_print_1): Likewise.
12009 (ada_val_print): Move function implementation down.
12010 (print_variant_part, print_field_values, print_record):
12011 Move function implementation up.
12013 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12015 * python/py-type.c (typy_get_name): New function.
12016 (type_object_getset): Add entry for attribute "name".
12017 * NEWS: Add entry mentioning this new attribute.
12019 2014-01-07 Yao Qi <yao@codesourcery.com>
12021 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12024 2014-01-07 Yao Qi <yao@codesourcery.com>
12026 * gnu-nat.c (info_port_rights): Add qualifier const to
12029 2014-01-07 Yao Qi <yao@codesourcery.com>
12031 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12033 2014-01-07 Yao Qi <yao@codesourcery.com>
12035 * gnu-nat.c (make_inf) Update declaration.
12036 (make_inf): Make it static.
12037 (inf_set_traced): Likewise.
12038 (inf_port_to_thread, inf_task_died_status): Likewise.
12040 2014-01-07 Yao Qi <yao@codesourcery.com>
12042 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12044 2014-01-07 Yao Qi <yao@codesourcery.com>
12046 * gnu-nat.c (_initialize_gnu_nat): Declare.
12048 2014-01-07 Yao Qi <yao@codesourcery.com>
12050 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12052 (struct gdbarch_info) <byte_order>: Change type to
12054 <byte_order_for_code>: Likewise.
12055 * gdbarch.c, gdbarch.h: Regenerated.
12057 2014-01-06 Sasha Smundak <asmundak@google.com>
12059 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12061 2014-01-06 Tom Tromey <tromey@redhat.com>
12063 * doublest.c (convert_doublest_to_floatformat): Use const, not
12065 * somread.c (som_symtab_read): Likewise.
12067 2014-01-07 Hui Zhu <hui@codesourcery.com>
12069 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12070 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12071 (gdb_bfd_fopen): Ditto.
12072 (gdb_bfd_openr): Ditto.
12073 (gdb_bfd_openw): Ditto.
12074 (gdb_bfd_openr_iovec): Ditto.
12075 (gdb_bfd_fdopenr): Ditto.
12076 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12077 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12079 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12081 * symfile-mem.c (symbol_file_add_from_memory): Removed
12082 gdb_bfd_stash_filename.
12084 2014-01-03 Doug Evans <dje@google.com>
12086 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12089 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12091 Update year range in copyright notice of all files.
12093 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12095 * top.c (print_gdb_version): Set copyright year to 2014.
12097 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12099 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12101 For older changes see ChangeLog-2013.
12107 version-control: never