1 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
5 * configure.ac: Tighten cygwin detection check.
7 2013-11-27 Pedro Alves <palves@redhat.com>
9 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
10 register in the previous frame's arch.
12 2013-11-27 Pedro Alves <palves@redhat.com>
14 * frame-unwind.c (frame_unwind_got_optimized): Return
15 an lval_register value instead of a not_lval value.
17 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
19 * frame.c: Include "valprint.h".
20 (frame_unwind_register_value): Use value_optimized_out.
21 * value.c (value_fetch_lazy): Likewise.
23 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
25 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
27 2013-11-26 Tom Tromey <tromey@redhat.com>
29 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
32 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
34 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
35 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
38 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
40 2013-11-25 Keith Seitz <keiths@redhat.com>
43 * c-exp.y (classify_inner_name): If no matching symbol was
44 found, try looking up the token as a base class.
45 Likewise if a constructor was found.
46 * cp-namespace.c (find_type_baseclass_by_name): New function.
47 * cp-support.h (find_type_baseclass_by_name): Declare.
48 * valops.c (value_struct_elt_for_reference): If we get
49 a non-static field, try to get a value based on the
50 current instance, if any.
52 2013-11-24 Yao Qi <yao@codesourcery.com>
54 * disasm.c (dis_asm_read_memory): Call target_read_code
55 instead of target_read_memory.
57 2013-11-24 Yao Qi <yao@codesourcery.com>
59 * NEWS: Add note on new "set code-cache" option.
60 * target-dcache.c (code_cache_enabled_1): New variable.
61 (code_cache_enabled): New variable.
62 (show_code_cache, set_code_cache): New function.
63 (code_cache_enabled_p): New function.
64 (_initialize_target_dcache): Register command.
65 * target-dcache.h (code_cache_enabled_p): Declare.
66 * target.c (memory_xfer_partial_1):Handle
67 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
68 (target_read_code): New function.
69 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
71 (target_read_code): Declare.
73 2013-11-24 Yao Qi <yao@codesourcery.com>
75 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
76 (stack_cache_enabled_1): ... this. New variable.
77 (stack_cache_enabled_p): Rename to ...
78 (stack_cache_enabled): ... this. New variable.
79 (set_stack_cache_enabled_p): Rename to ...
80 (set_stack_cache): ... this. Update caller.
81 (show_stack_cache_enabled_p): Rename to ...
82 (show_stack_cache): ... this. Update caller.
83 (stack_cache_enabled): Rename to ...
84 (stack_cache_enabled_p): ... this. Update caller.
85 (_initialize_target_dcache): Replace "data cache" with
86 "target memory cache".
87 * target-dcache.h (stack_cache_enabled): Remove declaration.
88 (stack_cache_enabled_p): Add declaration.
90 2013-11-23 Doug Evans <xdje42@gmail.com>
92 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
95 2013-11-23 Doug Evans <xdje42@gmail.com>
97 * python/py-frame.c (frapy_block): Fix error message text.
99 2013-11-23 Doug Evans <xdje42@gmail.com>
101 * cli/cli-script.c (multi_line_command_p): New function.
102 (recurse_read_control_structure, read_command_lines_1): Call it.
103 (execute_control_command): Consistently have a blank line between
106 2013-11-22 Sterling Augustine <saugustine@google.com>
109 * valprint.c (read_string): Set new variable fetchlen based on
110 fetchlimit and size. Use it in call to partial_memory_read.
113 2013-11-22 Tom Tromey <tromey@redhat.com>
116 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
117 the return address column is unspecified.
119 2013-11-22 Tom Tromey <tromey@redhat.com>
120 Pedro Alves <palves@redhat.com>
123 * value.c (value_fetch_lazy): Internal error if
124 get_frame_register_value returns the same register.
126 2013-11-22 Pedro Alves <palves@redhat.com>
127 Tom Tromey <tromey@redhat.com>
129 * frame.c (frame_stash_add): Now returns whether a frame with the
130 same ID was already known.
131 (compute_frame_id): New function, factored out from get_frame_id.
132 (get_frame_id): No longer lazilly compute the frame id here.
133 (get_prev_frame_if_no_cycle): New function. Detects wider stack
135 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
136 and checking for stack cycles here.
138 2013-11-22 Pedro Alves <palves@redhat.com>
141 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
142 this frame and the new previous frame, not between this frame and
145 2013-11-22 Pedro Alves <palves@redhat.com>
148 * dwarf2-frame.c (struct dwarf2_frame_cache)
149 <checked_tailcall_bottom, entry_cfa_sp_offset,
150 entry_cfa_sp_offset_p>: New fields.
151 (dwarf2_frame_cache): Adjust to use the new cache fields instead
152 of locals. Don't call dwarf2_tailcall_sniffer_first here.
153 (dwarf2_frame_prev_register): Call it here, but only once.
155 2013-11-21 Doug Evans <xdje42@gmail.com>
157 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
158 (type_equality_entry): Move here from python/py-type.c.
159 (type_equality_entry_d): Ditto.
160 (compare_maybe_null_strings, check_types_equal): Ditto.
161 (check_types_worklist, types_deeply_equal): Ditto.
162 * gdbtypes.h (types_deeply_equal): Declare.
163 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
164 (typy_richcompare): Update.
166 2013-11-20 Joel Brobecker <brobecker@adacore.com>
168 * python/py-value.c (is_intlike): Delete.
169 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
170 by use of is_integral_type.
171 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
172 by use of is_integral_type and check for TYPE_CODE_PTR.
174 2013-11-20 Tom Tromey <tromey@redhat.com>
176 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
178 * gnulib/aclocal.m4: Update.
179 * gnulib/config.in: Update.
180 * gnulib/configure: Update.
181 * gnulib/import/Makefile.am: Update.
182 * gnulib/import/Makefile.in: Update.
183 * gnulib/import/errno.in.h: Remove.
184 * gnulib/import/intprops.h: Remove.
185 * gnulib/import/m4/errno_h.m4: Remove.
186 * gnulib/import/m4/gnulib-cache.m4: Update.
187 * gnulib/import/m4/gnulib-comp.m4: Update.
188 * gnulib/import/m4/strerror.m4: Remove.
189 * gnulib/import/m4/sys_socket_h.m4: Remove.
190 * gnulib/import/strerror-override.c: Remove.
191 * gnulib/import/strerror-override.h: Remove.
192 * gnulib/import/strerror.c: Remove.
193 * gnulib/update-gnulib.sh: Update.
195 2013-11-20 Yao Qi <yao@codesourcery.com>
197 * target-dcache.c (target_dcache_get_or_init): Call
198 set_address_space_data if 'dcache' is NULL.
200 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
202 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
204 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
206 * python/lib/gdb/command/bound_register.py: New file.
207 * data-directory/Makefile.in: Copy bond_register.py to the right path
208 to be initialized at gdb startup.
210 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
212 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
214 (amd64_linux_read_description): Add initialization for MPX and
216 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
217 (amd64_linux_gregset_reg_offset): Add MPX registers.
218 (amd64_linux_core_read_description): Add initialization for MPX
220 (_initialize_amd64_linux_tdep): Initialize MPX targets.
221 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
222 register on the list.
223 (tdesc_amd64_mpx_linux) Add new target for MPX.
224 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
225 (amd64_mpx_names): MPX register names.
226 (amd64_init_abi): Add MPX register while initializing the ABI.
227 (_initialize_amd64_tdep): Initialize MPX targets.
228 * amd64-tdep.h (amd64_regnum): Add MPX registers.
229 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
231 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
233 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
234 registers on the range of registers to be read from
236 (i386_linux_read_description): Add case for MPX.
237 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
238 (i386_linux_gregset_reg_offset): Add MPX registers.
239 (i386_linux_core_read_description): Initialize also MPX.
240 (_initialize_i386_linux_tdep): Add mpx initialization.
241 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
243 (i386_regnum): Add MPX registers.
244 (I386_MPX_NUM_REGS): New macro.
245 (i386_bnd_regnum_p): New function.
246 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
247 number of registers to be the number of BNDSTATUS.
248 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
249 * i386-tdep.c: Include features/i386/i386-mpx.c.
250 (i386_mpx_names): Add MPX register names array.
251 (i386_bnd_names): Add bnd pseudo register names array.
252 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
254 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
255 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
257 (i386_bnd_type): New function.
258 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
260 (i386_pseudo_register_read_into_value): Add bnd case.
261 (i386_pseudo_register_write): Add bnd pseudo registers.
262 (i386_register_reggroup_p): Add MPX register to the group all.
263 (i386_validate_tdesc_p): Add MPX to the target description
265 (i386_pseudo_register_name): Add bnd pseudo registers.
266 (i386_gdbarch_init): Add MPX for architecture initialization.
267 (_initia_initialize_i386_tdep): Add mpx initialization.
268 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
270 (XSAVE_MPX_ADDR): New macro.
271 (i387_supply_xsave): Add MPX case.
272 (i387_collect_xsave): Add MPX case.
273 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
274 (I387_BNDCFGU_REGNUM): New macro.
275 (I387_NUM_MPX_REGS): New macro.
276 (I387_NUM_BND_REGS): New macro.
277 (I387_NUM_MPX_CTRL_REGS): New macro.
278 (I387_MPXEND_REGNUM): New macro.
279 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
280 (I386_XSTATE_BNDCFG): Likewise.
281 (I386_XSTATE_MPX_MASK): Likewise.
282 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
283 (I386_XSTATE_BNDREGS_SIZE): New macro.
284 (I386_XSTATE_BNDCFG_SIZE): Likewise.
285 (I386_XSTATE_SIZE): Adapt for MPX.
286 (I386_XSTATE_MAX_SIZE): Likewise.
288 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
290 * features/i386/Makefile: Adapts for using MPX registers.
291 * features/i386/32bit-mpx.xml: New file.
292 * features/i386/64bit-mpx.xml: Likewise.
293 * features/i386/amd64-mpx-linux.c: Likewise.
294 * features/i386/amd64-mpx-linux.xml: Likewise.
295 * features/i386/amd64-mpx.c: Likewise.
296 * features/i386/amd64-mpx.xml: Likewise.
297 * features/i386/i386-mpx-linux.c: Likewise.
298 * features/i386/i386-mpx-linux.xml: Likewise.
299 * features/i386/i386-mpx.c: Likewise.
300 * features/i386/i386-mpx.xml: Likewise.
301 * regformats/i386/amd64-mpx-linux.dat: New file.
302 * regformats/i386/amd64-mpx.dat: Likewise.
303 * regformats/i386/i386-mpx-linux.dat: Likewise.
304 * regformats/i386/i386-mpx.dat: Likewise.
306 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
308 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
309 Modified logic of creating a bitfield to be in sync with
312 2013-11-20 Will Newton <will.newton@linaro.org>
314 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
317 2013-11-20 Yao Qi <yao@codesourcery.com>
319 * progspace.h (struct address_space_data): Declare.
320 * target-dcache.c: Include "progspace.h".
321 (target_dache): Remove.
322 (target_dcache_aspace_key): New.
323 (target_dcache_cleanup): New function.
324 (target_dcache_init_p): Get data through
325 target_dcache_aspace_key.
326 (target_dcache_invalidate): Likewise.
327 (target_dcache_get): Likewise.
328 (target_dcache_get_or_init): Likewise.
329 (_initialize_target_dcache): Initialize
330 target_dcache_aspace_key.
332 2013-11-20 Yao Qi <yao@codesourcery.com>
334 * progspace.c (struct address_space): Update comments.
335 <REGISTRY_FIELDS>: New fields.
336 DEFINE_REGISTRY for address_space.
337 (new_address_space): Call address_space_alloc_data.
338 (free_address_space): Call address_space_free_data.
339 * progspace.h: Use DECLARE_REGISTRY.
341 2013-11-20 Yao Qi <yao@codesourcery.com>
343 * Makefile.in (SFILES):Add target-dcache.c.
344 (HFILES_NO_SRCDIR): Add target-dcache.h.
345 (COMMON_OBS): Add target-dcache.o.
346 * dcache.c: Remove inclusion to "target.h". Include
348 * memattr.c: Include "target-dcache.h".
350 * tracepoint.c: Likewise.
351 * target.c: (stack_cache_enabled_p_1): Move to
353 (stack_cache_enabled_p): Likewise.
354 (set_stack_cache_enabled_p): Likewise.
355 (show_stack_cache_enabled_p): Likewise.
356 (target_dcache, target_dcache_init_p): Likewise.
357 (target_dcache_invalidate): Likewise.
358 (target_dcache_get, target_dcache_get_or_init): Likewise.
359 (memory_xfer_partial_1): Call function stack_cache_enabled.
360 (initialize_target): Move code to target-dcache.c.
361 * target.h (target_dcache_invalidate): Move to
363 (target_dcache_get): Likewise.
364 * target-dcache.c: New.
365 * target-dcache.h: New.
367 2013-11-20 Yao Qi <yao@codesourcery.com>
369 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
372 2013-11-20 Yao Qi <yao@codesourcery.com>
374 * dcache.c (last_cache): Remove.
375 (dcache_free, dcache_init): Update.
377 (dcache_print_line): Add parameter 'dcache'. Replace
378 'target_dcache' with 'dcache'.
379 (dcache_info): Move code to dcache_info_1. Call
381 (dcache_info_1): New function.
382 (set_dcache_size): Call target_dcache_invalidate.
383 (set_dcache_line_size): Call target_dcache_invalidate.
384 * target.c (target_dcache_init_p): New function.
385 (target_dcache_invalidate): Check target_dcache_init_p first.
386 (target_dcache_get, target_dcache_get_or_init): New function.
387 (memory_xfer_partial_1): Adjust.
388 (initialize_target): Don't initialize 'target_dcache'.
389 * target.h (struct dcache_struct): Declare.
390 (target_dcache_get): Declare.
392 2013-11-19 Yao Qi <yao@codesourcery.com>
394 * varobj.c (varobj_get_type): Fix typo.
396 2013-11-19 Joel Brobecker <brobecker@adacore.com>
398 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
400 2013-11-19 Joel Brobecker <brobecker@adacore.com>
402 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
405 2013-11-18 Tom Tromey <tromey@redhat.com>
407 * common/gdb_stat.h: Remove.
408 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
409 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
410 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
411 * corefile.c: Use sys/stat.h, not gdb_stat.h.
412 * ctf.c: Use sys/stat.h, not gdb_stat.h.
413 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
414 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
415 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
416 * exec.c: Use sys/stat.h, not gdb_stat.h.
417 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
418 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
419 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
420 * jit.c: Use sys/stat.h, not gdb_stat.h.
421 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
422 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
423 * main.c: Use sys/stat.h, not gdb_stat.h.
424 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
425 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
426 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
427 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
428 * procfs.c: Use sys/stat.h, not gdb_stat.h.
429 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
430 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
431 * remote.c: Use sys/stat.h, not gdb_stat.h.
432 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
433 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
434 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
435 * source.c: Use sys/stat.h, not gdb_stat.h.
436 * symfile.c: Use sys/stat.h, not gdb_stat.h.
437 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
438 * symtab.c: Use sys/stat.h, not gdb_stat.h.
439 * top.c: Use sys/stat.h, not gdb_stat.h.
440 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
442 2013-11-18 Tom Tromey <tromey@redhat.com>
444 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
446 * gnulib/aclocal.m4: Update.
447 * gnulib/config.in: Update.
448 * gnulib/configure: Update.
449 * gnulib/import/Makefile.am: Update.
450 * gnulib/import/Makefile.in: Update.
451 * gnulib/import/m4/gnulib-cache.m4: Update.
452 * gnulib/import/m4/gnulib-comp.m4: Update.
453 * gnulib/import/m4/sys_stat_h.m4: New.
454 * gnulib/import/m4/time_h.m4: New.
455 * gnulib/import/sys_stat.in.h: New.
456 * gnulib/import/time.in.h: New.
458 2013-11-18 Tom Tromey <tromey@redhat.com>
460 * configure: Rebuild.
461 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
463 2013-11-18 Tom Tromey <tromey@redhat.com>
465 * configure: Rebuild.
466 * configure.ac: Don't check for unistd.h.
468 2013-11-18 Tom Tromey <tromey@redhat.com>
470 * configure: Rebuild.
471 * configure.ac: Don't check for stdlib.h
472 * defs.h: Include stdlib.h unconditionally.
474 2013-11-18 Tom Tromey <tromey@redhat.com>
476 * config.in: Rebuild.
477 * configure: Rebuild.
478 * configure.ac: Don't check for stddef.h.
479 * defs.h: Unconditionally include stddef.h. Remove duplicate
482 2013-11-18 Tom Tromey <tromey@redhat.com>
484 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
485 * common/gdb_dirent.h: Remove.
486 * common/filestuff.c: Use dirent.h.
487 * common/linux-osdata.c: Use dirent.h.
489 * config.in: Rebuild.
490 * configure: Rebuild.
491 * configure.ac: Don't use AC_HEADER_DIRENT.
492 * linux-fork.c: Use dirent.h
493 * linux-nat.c: Use dirent.h.
494 * nto-procfs.c: Use dirent.h.
495 * procfs.c: Use dirent.h.
497 2013-11-18 Tom Tromey <tromey@redhat.com>
499 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
500 * gnulib/aclocal.m4: Update.
501 * gnulib/config.in: Update.
502 * gnulib/configure: Update.
503 * gnulib/import/Makefile.am: Update.
504 * gnulib/import/Makefile.in: Update.
505 * gnulib/import/dirent.in.h: New.
506 * gnulib/import/m4/dirent_h.m4: New.
507 * gnulib/import/m4/gnulib-cache.m4: Update.
508 * gnulib/import/m4/gnulib-comp.m4: Update.
510 2013-11-18 Tom Tromey <tromey@redhat.com>
512 * configure: Rebuild.
513 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
516 2013-11-18 Tom Tromey <tromey@redhat.com>
518 * common/gdb_string.h: Remove.
519 * aarch64-tdep.c: Use string.h, not gdb_string.h.
520 * ada-exp.y: Use string.h, not gdb_string.h.
521 * ada-lang.c: Use string.h, not gdb_string.h.
522 * ada-lex.l: Use string.h, not gdb_string.h.
523 * ada-typeprint.c: Use string.h, not gdb_string.h.
524 * ada-valprint.c: Use string.h, not gdb_string.h.
525 * aix-thread.c: Use string.h, not gdb_string.h.
526 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
527 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
528 * alpha-nat.c: Use string.h, not gdb_string.h.
529 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
530 * alpha-tdep.c: Use string.h, not gdb_string.h.
531 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
532 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
533 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
534 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
535 * amd64-nat.c: Use string.h, not gdb_string.h.
536 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
537 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
538 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
539 * arch-utils.c: Use string.h, not gdb_string.h.
540 * arm-linux-nat.c: Use string.h, not gdb_string.h.
541 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
542 * arm-tdep.c: Use string.h, not gdb_string.h.
543 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
544 * armbsd-tdep.c: Use string.h, not gdb_string.h.
545 * armnbsd-nat.c: Use string.h, not gdb_string.h.
546 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
547 * armobsd-tdep.c: Use string.h, not gdb_string.h.
548 * avr-tdep.c: Use string.h, not gdb_string.h.
549 * ax-gdb.c: Use string.h, not gdb_string.h.
550 * ax-general.c: Use string.h, not gdb_string.h.
551 * bcache.c: Use string.h, not gdb_string.h.
552 * bfin-tdep.c: Use string.h, not gdb_string.h.
553 * breakpoint.c: Use string.h, not gdb_string.h.
554 * build-id.c: Use string.h, not gdb_string.h.
555 * buildsym.c: Use string.h, not gdb_string.h.
556 * c-exp.y: Use string.h, not gdb_string.h.
557 * c-lang.c: Use string.h, not gdb_string.h.
558 * c-typeprint.c: Use string.h, not gdb_string.h.
559 * c-valprint.c: Use string.h, not gdb_string.h.
560 * charset.c: Use string.h, not gdb_string.h.
561 * cli-out.c: Use string.h, not gdb_string.h.
562 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
563 * cli/cli-decode.c: Use string.h, not gdb_string.h.
564 * cli/cli-dump.c: Use string.h, not gdb_string.h.
565 * cli/cli-interp.c: Use string.h, not gdb_string.h.
566 * cli/cli-logging.c: Use string.h, not gdb_string.h.
567 * cli/cli-script.c: Use string.h, not gdb_string.h.
568 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
569 * cli/cli-utils.c: Use string.h, not gdb_string.h.
570 * coffread.c: Use string.h, not gdb_string.h.
571 * common/common-utils.c: Use string.h, not gdb_string.h.
572 * common/filestuff.c: Use string.h, not gdb_string.h.
573 * common/linux-procfs.c: Use string.h, not gdb_string.h.
574 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
575 * common/signals.c: Use string.h, not gdb_string.h.
576 * common/vec.h: Use string.h, not gdb_string.h.
577 * core-regset.c: Use string.h, not gdb_string.h.
578 * corefile.c: Use string.h, not gdb_string.h.
579 * corelow.c: Use string.h, not gdb_string.h.
580 * cp-abi.c: Use string.h, not gdb_string.h.
581 * cp-support.c: Use string.h, not gdb_string.h.
582 * cp-valprint.c: Use string.h, not gdb_string.h.
583 * cris-tdep.c: Use string.h, not gdb_string.h.
584 * d-lang.c: Use string.h, not gdb_string.h.
585 * dbxread.c: Use string.h, not gdb_string.h.
586 * dcache.c: Use string.h, not gdb_string.h.
587 * demangle.c: Use string.h, not gdb_string.h.
588 * dicos-tdep.c: Use string.h, not gdb_string.h.
589 * disasm.c: Use string.h, not gdb_string.h.
590 * doublest.c: Use string.h, not gdb_string.h.
591 * dsrec.c: Use string.h, not gdb_string.h.
592 * dummy-frame.c: Use string.h, not gdb_string.h.
593 * dwarf2-frame.c: Use string.h, not gdb_string.h.
594 * dwarf2loc.c: Use string.h, not gdb_string.h.
595 * dwarf2read.c: Use string.h, not gdb_string.h.
596 * elfread.c: Use string.h, not gdb_string.h.
597 * environ.c: Use string.h, not gdb_string.h.
598 * eval.c: Use string.h, not gdb_string.h.
599 * event-loop.c: Use string.h, not gdb_string.h.
600 * exceptions.c: Use string.h, not gdb_string.h.
601 * exec.c: Use string.h, not gdb_string.h.
602 * expprint.c: Use string.h, not gdb_string.h.
603 * f-exp.y: Use string.h, not gdb_string.h.
604 * f-lang.c: Use string.h, not gdb_string.h.
605 * f-typeprint.c: Use string.h, not gdb_string.h.
606 * f-valprint.c: Use string.h, not gdb_string.h.
607 * fbsd-nat.c: Use string.h, not gdb_string.h.
608 * findcmd.c: Use string.h, not gdb_string.h.
609 * findvar.c: Use string.h, not gdb_string.h.
610 * fork-child.c: Use string.h, not gdb_string.h.
611 * frame.c: Use string.h, not gdb_string.h.
612 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
613 * frv-tdep.c: Use string.h, not gdb_string.h.
614 * gdb.c: Use string.h, not gdb_string.h.
615 * gdb_bfd.c: Use string.h, not gdb_string.h.
616 * gdbarch.c: Use string.h, not gdb_string.h.
617 * gdbtypes.c: Use string.h, not gdb_string.h.
618 * gnu-nat.c: Use string.h, not gdb_string.h.
619 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
620 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
621 * go-exp.y: Use string.h, not gdb_string.h.
622 * go-lang.c: Use string.h, not gdb_string.h.
623 * go32-nat.c: Use string.h, not gdb_string.h.
624 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
625 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
626 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
627 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
628 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
629 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
630 * i386-linux-nat.c: Use string.h, not gdb_string.h.
631 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
632 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
633 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
634 * i386-tdep.c: Use string.h, not gdb_string.h.
635 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
636 * i386gnu-nat.c: Use string.h, not gdb_string.h.
637 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
638 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
639 * i387-tdep.c: Use string.h, not gdb_string.h.
640 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
641 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
642 * inf-child.c: Use string.h, not gdb_string.h.
643 * inf-ptrace.c: Use string.h, not gdb_string.h.
644 * inf-ttrace.c: Use string.h, not gdb_string.h.
645 * infcall.c: Use string.h, not gdb_string.h.
646 * infcmd.c: Use string.h, not gdb_string.h.
647 * inflow.c: Use string.h, not gdb_string.h.
648 * infrun.c: Use string.h, not gdb_string.h.
649 * interps.c: Use string.h, not gdb_string.h.
650 * iq2000-tdep.c: Use string.h, not gdb_string.h.
651 * irix5-nat.c: Use string.h, not gdb_string.h.
652 * jv-exp.y: Use string.h, not gdb_string.h.
653 * jv-lang.c: Use string.h, not gdb_string.h.
654 * jv-typeprint.c: Use string.h, not gdb_string.h.
655 * jv-valprint.c: Use string.h, not gdb_string.h.
656 * language.c: Use string.h, not gdb_string.h.
657 * linux-fork.c: Use string.h, not gdb_string.h.
658 * linux-nat.c: Use string.h, not gdb_string.h.
659 * lm32-tdep.c: Use string.h, not gdb_string.h.
660 * m2-exp.y: Use string.h, not gdb_string.h.
661 * m2-typeprint.c: Use string.h, not gdb_string.h.
662 * m32c-tdep.c: Use string.h, not gdb_string.h.
663 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
664 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
665 * m32r-rom.c: Use string.h, not gdb_string.h.
666 * m32r-tdep.c: Use string.h, not gdb_string.h.
667 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
668 * m68k-tdep.c: Use string.h, not gdb_string.h.
669 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
670 * m68klinux-nat.c: Use string.h, not gdb_string.h.
671 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
672 * m88k-tdep.c: Use string.h, not gdb_string.h.
673 * macrocmd.c: Use string.h, not gdb_string.h.
674 * main.c: Use string.h, not gdb_string.h.
675 * mdebugread.c: Use string.h, not gdb_string.h.
676 * mem-break.c: Use string.h, not gdb_string.h.
677 * memattr.c: Use string.h, not gdb_string.h.
678 * memory-map.c: Use string.h, not gdb_string.h.
679 * mep-tdep.c: Use string.h, not gdb_string.h.
680 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
681 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
682 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
683 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
684 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
685 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
686 * mi/mi-console.c: Use string.h, not gdb_string.h.
687 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
688 * mi/mi-interp.c: Use string.h, not gdb_string.h.
689 * mi/mi-main.c: Use string.h, not gdb_string.h.
690 * mi/mi-parse.c: Use string.h, not gdb_string.h.
691 * microblaze-rom.c: Use string.h, not gdb_string.h.
692 * microblaze-tdep.c: Use string.h, not gdb_string.h.
693 * mingw-hdep.c: Use string.h, not gdb_string.h.
694 * minidebug.c: Use string.h, not gdb_string.h.
695 * minsyms.c: Use string.h, not gdb_string.h.
696 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
697 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
698 * mips-tdep.c: Use string.h, not gdb_string.h.
699 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
700 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
701 * mipsread.c: Use string.h, not gdb_string.h.
702 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
703 * mn10300-tdep.c: Use string.h, not gdb_string.h.
704 * monitor.c: Use string.h, not gdb_string.h.
705 * moxie-tdep.c: Use string.h, not gdb_string.h.
706 * mt-tdep.c: Use string.h, not gdb_string.h.
707 * nbsd-tdep.c: Use string.h, not gdb_string.h.
708 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
709 * nto-procfs.c: Use string.h, not gdb_string.h.
710 * nto-tdep.c: Use string.h, not gdb_string.h.
711 * objc-lang.c: Use string.h, not gdb_string.h.
712 * objfiles.c: Use string.h, not gdb_string.h.
713 * opencl-lang.c: Use string.h, not gdb_string.h.
714 * osabi.c: Use string.h, not gdb_string.h.
715 * osdata.c: Use string.h, not gdb_string.h.
716 * p-exp.y: Use string.h, not gdb_string.h.
717 * p-lang.c: Use string.h, not gdb_string.h.
718 * p-typeprint.c: Use string.h, not gdb_string.h.
719 * parse.c: Use string.h, not gdb_string.h.
720 * posix-hdep.c: Use string.h, not gdb_string.h.
721 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
722 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
723 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
724 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
725 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
726 * printcmd.c: Use string.h, not gdb_string.h.
727 * procfs.c: Use string.h, not gdb_string.h.
728 * prologue-value.c: Use string.h, not gdb_string.h.
729 * python/py-auto-load.c: Use string.h, not gdb_string.h.
730 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
731 * ravenscar-thread.c: Use string.h, not gdb_string.h.
732 * regcache.c: Use string.h, not gdb_string.h.
733 * registry.c: Use string.h, not gdb_string.h.
734 * remote-fileio.c: Use string.h, not gdb_string.h.
735 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
736 * remote-mips.c: Use string.h, not gdb_string.h.
737 * remote-sim.c: Use string.h, not gdb_string.h.
738 * remote.c: Use string.h, not gdb_string.h.
739 * reverse.c: Use string.h, not gdb_string.h.
740 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
741 * ser-base.c: Use string.h, not gdb_string.h.
742 * ser-go32.c: Use string.h, not gdb_string.h.
743 * ser-mingw.c: Use string.h, not gdb_string.h.
744 * ser-pipe.c: Use string.h, not gdb_string.h.
745 * ser-tcp.c: Use string.h, not gdb_string.h.
746 * ser-unix.c: Use string.h, not gdb_string.h.
747 * serial.c: Use string.h, not gdb_string.h.
748 * sh-tdep.c: Use string.h, not gdb_string.h.
749 * sh64-tdep.c: Use string.h, not gdb_string.h.
750 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
751 * skip.c: Use string.h, not gdb_string.h.
752 * sol-thread.c: Use string.h, not gdb_string.h.
753 * solib-dsbt.c: Use string.h, not gdb_string.h.
754 * solib-frv.c: Use string.h, not gdb_string.h.
755 * solib-osf.c: Use string.h, not gdb_string.h.
756 * solib-spu.c: Use string.h, not gdb_string.h.
757 * solib-target.c: Use string.h, not gdb_string.h.
758 * solib.c: Use string.h, not gdb_string.h.
759 * somread.c: Use string.h, not gdb_string.h.
760 * source.c: Use string.h, not gdb_string.h.
761 * sparc-nat.c: Use string.h, not gdb_string.h.
762 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
763 * sparc-tdep.c: Use string.h, not gdb_string.h.
764 * sparc64-tdep.c: Use string.h, not gdb_string.h.
765 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
766 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
767 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
768 * spu-linux-nat.c: Use string.h, not gdb_string.h.
769 * spu-multiarch.c: Use string.h, not gdb_string.h.
770 * spu-tdep.c: Use string.h, not gdb_string.h.
771 * stabsread.c: Use string.h, not gdb_string.h.
772 * stack.c: Use string.h, not gdb_string.h.
773 * std-regs.c: Use string.h, not gdb_string.h.
774 * symfile.c: Use string.h, not gdb_string.h.
775 * symmisc.c: Use string.h, not gdb_string.h.
776 * symtab.c: Use string.h, not gdb_string.h.
777 * target.c: Use string.h, not gdb_string.h.
778 * thread.c: Use string.h, not gdb_string.h.
779 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
780 * tilegx-tdep.c: Use string.h, not gdb_string.h.
781 * top.c: Use string.h, not gdb_string.h.
782 * tracepoint.c: Use string.h, not gdb_string.h.
783 * tui/tui-command.c: Use string.h, not gdb_string.h.
784 * tui/tui-data.c: Use string.h, not gdb_string.h.
785 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
786 * tui/tui-file.c: Use string.h, not gdb_string.h.
787 * tui/tui-layout.c: Use string.h, not gdb_string.h.
788 * tui/tui-out.c: Use string.h, not gdb_string.h.
789 * tui/tui-regs.c: Use string.h, not gdb_string.h.
790 * tui/tui-source.c: Use string.h, not gdb_string.h.
791 * tui/tui-stack.c: Use string.h, not gdb_string.h.
792 * tui/tui-win.c: Use string.h, not gdb_string.h.
793 * tui/tui-windata.c: Use string.h, not gdb_string.h.
794 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
795 * typeprint.c: Use string.h, not gdb_string.h.
796 * ui-file.c: Use string.h, not gdb_string.h.
797 * ui-out.c: Use string.h, not gdb_string.h.
798 * user-regs.c: Use string.h, not gdb_string.h.
799 * utils.c: Use string.h, not gdb_string.h.
800 * v850-tdep.c: Use string.h, not gdb_string.h.
801 * valarith.c: Use string.h, not gdb_string.h.
802 * valops.c: Use string.h, not gdb_string.h.
803 * valprint.c: Use string.h, not gdb_string.h.
804 * value.c: Use string.h, not gdb_string.h.
805 * varobj.c: Use string.h, not gdb_string.h.
806 * vax-tdep.c: Use string.h, not gdb_string.h.
807 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
808 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
809 * windows-nat.c: Use string.h, not gdb_string.h.
810 * xcoffread.c: Use string.h, not gdb_string.h.
811 * xml-support.c: Use string.h, not gdb_string.h.
812 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
813 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
815 2013-11-18 Tom Tromey <tromey@redhat.com>
817 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
819 * gnulib/aclocal.m4: Update.
820 * gnulib/config.in: Update.
821 * gnulib/configure: Update.
822 * gnulib/import/Makefile.am: Update.
823 * gnulib/import/Makefile.in: Update.
824 * gnulib/import/errno.in.h: New.
825 * gnulib/import/intprops.h: New.
826 * gnulib/import/m4/errno_h.m4: New.
827 * gnulib/import/m4/gnulib-cache.m4: Update.
828 * gnulib/import/m4/gnulib-comp.m4: Update.
829 * gnulib/import/m4/strerror.m4: New.
830 * gnulib/import/m4/strstr.m4: New.
831 * gnulib/import/m4/sys_socket_h.m4: New.
832 * gnulib/import/strerror-override.c: New.
833 * gnulib/import/strerror-override.h: New.
834 * gnulib/import/strerror.c: New.
835 * gnulib/import/strstr.c: New.
837 2013-11-18 Tom Tromey <tromey@redhat.com>
839 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
842 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
844 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
845 * sparc-tdep.h: And its prototype.
847 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
849 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
851 2013-11-18 Pedro Alves <palves@redhat.com>
853 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
856 2013-11-18 Joel Brobecker <brobecker@adacore.com>
858 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
859 to -list-features output.
861 2013-11-17 Joel Brobecker <brobecker@adacore.com>
863 * dwarf2expr.h (struct dwarf_expr_context_funcs)
864 <read_addr_from_reg>: Renames "read_reg".
865 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
867 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
868 Use read_addr_from_reg in place of read_reg.
869 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
870 in place of read_reg.
871 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
873 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
874 with dwarf_expr_read_addr_from_reg.
875 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
876 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
877 needs_frame_read_addr_from_reg.
879 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
881 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
883 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
885 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
888 2013-11-15 Tom Tromey <tromey@redhat.com>
891 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
892 (classify_name): Likewise. Prefer a field of "this" over a
894 (classify_inner_name, yylex): Update.
896 2013-11-15 Joel Brobecker <brobecker@adacore.com>
898 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
899 Extend the documentation a bit.
900 <get_reg_value>: New field.
901 * dwarf2loc.c (dwarf_expr_get_reg_value)
902 (needs_frame_get_reg_value): New functions.
903 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
905 * dwarf2-frame.c (get_reg_value): New function.
906 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
907 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
908 Use new callback to compute result_val.
910 2013-11-15 Alan Modra <amodra@gmail.com>
912 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
913 (ppc64_desc_entry_point): ..this. Update comments here and at
915 (ppc64_standard_linkage1, ppc64_standard_linkage2,
916 ppc64_standard_linkage3): Update comments.
917 (ppc64_standard_linkage4, ppc64_standard_linkage5,
918 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
920 (ppc64_standard_linkage4_target): New function.
921 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
922 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
923 nop match. Fix comment wrap.
925 2013-11-14 Pedro Alves <palves@redhat.com>
927 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
928 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
930 2013-11-14 Pedro Alves <palves@redhat.com>
932 * infrun.c (struct execution_control_state)
933 <stepped_after_stopped_by_watchpoint>: New field.
934 (get_inferior_stop_soon): New function.
935 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
936 moved to struct execution_control_state -- adjust. Use
937 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
939 (handle_signal_stop): New function, factored out from
940 handle_inferior_event.
942 2013-11-14 Pedro Alves <palves@redhat.com>
944 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
946 * breakpoint.c (bpstat_explains_signal): Adjust to return a
948 (explains_signal_watchpoint, base_breakpoint_explains_signal):
949 Adjust to return a boolean.
950 * breakpoint.h (enum bpstat_signal_value): Delete.
951 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
952 (bpstat_explains_signal): Likewise.
953 * infrun.c (handle_inferior_event) <random signal checks>:
954 bpstat_explains_signal now returns a boolean - adjust. No longer
955 consider hiding signals.
957 2013-11-14 Pedro Alves <palves@redhat.com>
959 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
960 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
961 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
963 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
964 instead of BPSTAT_SIGNAL_HIDE.
965 * infrun.c (handle_inferior_event): Rework random signal checks.
967 2013-11-14 Pedro Alves <palves@redhat.com>
969 * infrun.c (struct execution_control_state): Remove
970 'random_signal' field.
971 (handle_syscall_event): Use bpstat_causes_stop instead of
972 bpstat_explains_signal. Don't set ecs->random_signal.
973 (handle_inferior_event): New 'random_signal' local.
974 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
975 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
976 bpstat_explains_signal. Don't set ecs->random_signal.
977 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
980 2013-11-14 Pedro Alves <palves@redhat.com>
982 * infrun.c (handle_inferior_event): Move comment from the
983 function's body to the function's description, adjusted.
985 2013-11-14 Pedro Alves <palves@redhat.com>
987 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
988 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
989 Assert we never fall through out of the TARGET_WAITKIND_LOADED
992 2013-11-14 Tom Tromey <tromey@redhat.com>
994 * python/py-linetable.c (ltpy_has_line)
995 (ltpy_get_all_source_lines): Fix loop termination condition.
997 2013-11-14 Joel Brobecker <brobecker@adacore.com>
999 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1000 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1001 PARSE->LANGUAGE during command execution, if set.
1002 * mi/mi-parse.c: Add "language.h" #include.
1003 (mi_parse): Add parsing of "--language" command option.
1005 * NEWS: Add entry mentioning the new "--language" command option.
1007 2013-11-14 Pedro Alves <palves@redhat.com>
1008 Joel Brobecker <brobecker@adacore.com>
1010 * cli/cli-utils.h (extract_arg_const): Add declaration.
1011 * cli/cli-utils.c (extract_arg_const): New function.
1012 (extract_arg): Reimplement using extract_arg_const.
1014 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1016 * language.h: Add "symtab.h" #include.
1018 2013-11-13 Doug Evans <xdje42@gmail.com>
1020 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1021 specific breakpoints, don't evaluate breakpoint condition if
1024 2013-11-13 Keith Seitz <keiths@redhat.com>
1028 * cp-support.c (insepct_type): Add support for substituting
1029 namespace aliases, too.
1030 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1031 for DW_TAG_imported_declaration.
1032 (add_partial_symbol): Likewise.
1033 (process_die): Handle namespace aliases with
1034 read_namespace_alias.
1035 (die_needs_namespace): Add DW_TAG_imported_declaration.
1036 (read_namespace_alias): New function.
1037 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1038 (new_symbol_full): Handle DW_TAG_imported_declaration.
1040 2013-11-13 Keith Seitz <keiths@redhat.com>
1042 * p-exp.y (uptok): Make first parameter const.
1043 (yylex): Make `tokstart' and `tokptr' const.
1044 Don't copy the lexer input to a temporary buffer.
1046 Remove const workaround for parse_escape.
1047 Create a temporary buffer for a convenience variable instead
1048 of doing in-place modification of the input.
1049 If a match is found with a different case from the input,
1050 do not change the input at all.
1051 Use `tmp' to construct the resultant stoken instead of
1054 2013-11-13 Doug Evans <xdje42@gmail.com>
1056 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1058 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1060 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1061 entry with "ada-exceptions".
1063 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1065 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1066 after re-initialization of OBJFILE's obstack.
1068 2013-11-12 Doug Evans <xdje42@gmail.com>
1070 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1071 bs->stop != 0 on entry. Update function comment. Simplify early
1072 exit for frame mismatch. Reindent rest of function.
1074 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1076 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1079 2013-11-12 Doug Evans <dje@google.com>
1081 Work around gold/15646.
1082 * dwarf2read.c (read_index_from_section): Update comment.
1083 (struct dw2_symtab_iterator): New member global_seen.
1084 (dw2_symtab_iter_init): Initialize it.
1085 (dw2_symtab_iter_next): Skip duplicate global symbols.
1086 (dw2_expand_symtabs_matching): Ditto.
1088 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1090 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1091 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1093 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1094 (mi_cmd_info_ada_exceptions): New function.
1095 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1097 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1099 * ada-lang.h: #include "vec.h".
1100 (struct ada_exc_info): New.
1101 (ada_exc_info): New typedef.
1102 (DEF_VEC_O(ada_exc_info)): New vector.
1103 (ada_exceptions_list): Add declaration.
1104 * ada-lang.c (ada_is_exception_sym)
1105 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1106 (sort_remove_dups_ada_exceptions_list)
1107 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1108 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1109 (ada_exceptions_list_1, ada_exceptions_list)
1110 (info_exceptions_command): New function.
1111 (_initialize_ada_language): Add "info exception" command.
1113 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1116 * NEWS: Add linetable feature.
1117 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1118 * python/py-linetable.c: New file.
1119 * python/py-symtab.c (stpy_get_linetable): New function.
1120 * python/python-internal.h (symtab_to_linetable_object): Declare.
1121 (gdbpy_initialize_linetable): Ditto.
1122 * python/python.c (_initialize_python): Call
1123 gdbpy_initialize_linetable.
1125 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1127 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1128 the documentation of fields "except_string" and "condition".
1129 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1130 CONDITION on the heap before passing it to
1131 create_ada_exception_catchpoint.
1132 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1135 2013-11-11 Tom Tromey <tromey@redhat.com>
1137 * config.in, configure: Rebuild.
1138 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1140 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1142 * remote-sim.c (gdbsim_detach): Break declaration into
1143 shorter lines. No code change.
1145 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1147 * remote-sim.c (gdbsim_detach): Fix prototype.
1149 2013-11-08 Doug Evans <dje@google.com>
1151 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1152 (create_debug_types_hash_table): Only print debugging messages for
1153 each TU if dwarf2-read >= 2.
1154 (process_queue): Ditto.
1155 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1158 2013-11-08 Tom Tromey <tromey@redhat.com>
1160 * configure: Rebuild.
1161 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1163 2013-11-08 Tom Tromey <tromey@redhat.com>
1165 * configure, config.in: Rebuild.
1166 * configure.ac: Remove unused configury.
1168 2013-11-08 Tom Tromey <tromey@redhat.com>
1170 * m32c-tdep.c: Use gdb_string.h.
1172 2013-11-08 Tom Tromey <tromey@redhat.com>
1174 * configure, config.in: Rebuild.
1175 * configure.ac: Remove all link.h-related checks.
1177 2013-11-08 Tom Tromey <tromey@redhat.com>
1179 * acinclude.m4: Include common.m4.
1180 * common/common.m4: New file.
1181 * configure, config.in: Rebuild.
1182 * configure.ac: Use GDB_AC_COMMON.
1184 2013-11-08 Doug Evans <dje@google.com>
1186 * NEWS: Mention that "set debug symtab-create" now accepts a
1188 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1189 to set the symtab's primary flag.
1190 * jit.c (finalize_symtab): Ditto.
1191 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1192 * symfile.c (allocate_symtab): Only print debugging messages for
1193 symtab_create_debug levels 2 and higher.
1194 * symtab.c (symtab_create_debug): Change type to unsigned int.
1195 (set_symtab_primary): New function.
1196 (_initialize_symtab): Change "set debug symtab-create" to a
1198 * symtab.h (set_symtab_primary): Declare.
1199 (symtab_create_debug): Update decl.
1201 2013-11-08 Tom Tromey <tromey@redhat.com>
1203 * aix-thread.c (aix_thread_detach): Update.
1204 * corelow.c (core_detach): Update.
1205 * darwin-nat.c (darwin_detach): Update.
1206 * dec-thread.c (dec_thread_detach): Update.
1207 * gnu-nat.c (gnu_detach): Update.
1208 * go32-nat.c (go32_detach): Update.
1209 * inf-ptrace.c (inf_ptrace_detach): Update.
1210 * inf-ttrace.c (inf_ttrace_detach): Update.
1211 * linux-fork.c (linux_fork_detach): Update.
1212 * linux-fork.h (linux_fork_detach): Update.
1213 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1214 local for const-correctness.
1215 * linux-thread-db.c (thread_db_detach): Update.
1216 * monitor.c (monitor_detach): Update.
1217 * nto-procfs.c (procfs_detach): Update.
1218 * procfs.c (procfs_detach): Update.
1219 * record.c (record_detach): Update.
1220 * record.h (record_detach): Update.
1221 * remote-m32r-sdi.c (m32r_detach): Update.
1222 * remote-mips.c (mips_detach): Update.
1223 * remote-sim.c (gdbsim_detach): Update.
1224 * remote.c (remote_detach_1, remote_detach)
1225 (extended_remote_detach): Update.
1226 * sol-thread.c (sol_thread_detach): Update.
1227 * target.c (target_detach): Make "args" const.
1228 (init_dummy_target): Update.
1229 * target.h (struct target_ops) <to_detach>: Make argument const.
1230 (target_detach): Likewise.
1231 * windows-nat.c (windows_detach): Update.
1233 2013-11-07 Doug Evans <dje@google.com>
1236 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1237 and align fields for PT_GNU_RELRO segments.
1239 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1242 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1244 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1246 * NEWS: Document Python temporary breakpoint support.
1247 * python/py-breakpoint.c (bppy_get_temporary): New function.
1248 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1249 to temporary if True.
1251 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1253 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1254 removed to allow analyzing unconditional branch instructions
1255 with PC-relative offsets of zero.
1257 2013-11-07 Yao Qi <yao@codesourcery.com>
1259 * mi/mi-cmd-var.c: Include "language.h".
1260 (mi_cmd_var_info_expression): Get language name from
1262 * varobj.c (varobj_language_string): Remove.
1263 (variable_language): Remove declaration.
1264 (languages): Remove.
1265 (varobj_get_language): Change the type of return value.
1266 (variable_language): Remove.
1267 * varobj.h (enum varobj_languages): Remove.
1268 (varobj_language_string): Remove declaration.
1269 (varobj_get_language): Update declaration.
1271 2013-11-07 Yao Qi <yao@codesourcery.com>
1273 * language.h (struct language_defn) <la_natural_name>: New
1275 * ada-lang.c (ada_language_defn): Initialize field
1277 * c-lang.c (c_language_defn): Likewise.
1278 (cplus_language_defn, asm_language_defn): Likewise.
1279 * d-lang.c (d_language_defn): Likewise.
1280 * f-lang.c (f_language_defn): Likewise.
1281 * go-lang.c (go_language_defn): Likewise.
1282 * jv-lang.c (java_language_defn): Likewise.
1283 * language.c (unknown_language_defn ): Likewise.
1284 (auto_language_defn): Likewise.
1285 * m2-lang.c (m2_language_defn): Likewise.
1286 * objc-lang.c (objc_language_defn): Likewise.
1287 * opencl-lang.c (opencl_language_defn): Likewise.
1288 * p-lang.c (pascal_language_defn): Likewise.
1290 2013-11-07 Yao Qi <yao@codesourcery.com>
1292 * language.c (language_str): Return const char *.
1293 (add_language): Add const to 'language_names'
1294 * language.h (struct language_defn) <la_name>: Add const.
1295 (language_str: Update declaration.
1297 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1299 * s390-linux-nat.c (s390_read_description): Consider the TE field
1300 in the HWCAP for determining 'have_regset_tdb'.
1302 2013-11-06 Will Newton <will.newton@linaro.org>
1305 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1306 values. (read_partial_die): Likewise.
1308 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1311 * top.c (command_line_input): Unify interactivity tests to use
1312 input_from_terminal_p.
1313 * event-top.c (command_line_handler): Likewise.
1315 2013-11-06 Yao Qi <yao@codesourcery.com>
1317 * Makefile.in (check-perf): New target.
1319 2013-11-05 Will Newton <will.newton@linaro.org>
1322 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1323 (arm_print_float_info): Likewise.
1325 2013-11-04 Anton Blanchard <anton@samba.org>
1327 * target.c (memory_xfer_partial): Cap write to 4KB.
1329 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1331 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1332 probe scan even when the arch provides no get_longjmp_target.
1334 2013-10-31 Pedro Alves <palves@redhat.com>
1336 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1337 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1338 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1339 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1340 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1341 <bpstat handling>: If the bpstat chain wants the signal to be
1342 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1345 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1347 * breakpoint.c (update_watchpoint): Update error message and add
1348 an additional error message.
1350 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1352 * s390-tdep.h: Rename to...
1353 * s390-linux-tdep.h: ...here.
1354 * s390-tdep.c: Rename to...
1355 * s390-linux-tdep.c: ...here. Adjust #include.
1356 * s390-nat.c: Rename to...
1357 * s390-linux-nat.c: ...here. Adjust #include.
1358 * config/s390/s390.mh: Rename to...
1359 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1361 * configure.host: Reflect host rename "s390" -> "linux".
1362 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1363 * Makefile.in (ALL_TARGET_OBS): Likewise.
1364 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1366 (ALLDEPFILES): Reflect rename of .c files.
1368 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1370 * s390-nat.c: Whitespace cleanup.
1371 * s390-tdep.c: Likewise.
1372 * s390-tdep.h: Remove empty line at end of file.
1374 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1376 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1379 2013-10-29 Tom Tromey <tromey@redhat.com>
1381 * utils.c (reg): Move undefinition...
1382 * gdb_curses.h: ... here. Update comment to mention AIX.
1384 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1386 * exec.h (add_target_sections_of_objfile): New declaration.
1387 * exec.c (add_target_sections_of_objfile): New function.
1388 * symfile.c (add_symbol_file_command): Update current target sections.
1389 (remove_symbol_file_command): New command.
1390 (symfile_free_objfile): New function.
1391 (_initialize_symfile): Register observer for free_objfile events.
1392 * NEWS: Add description of the remove-symbol-file command.
1393 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1394 * objfiles.c (free_objfile): Notify free_objfile.
1395 (is_addr_in_objfile): New function.
1396 * objfiles.h (is_addr_in_objfile): New declaration.
1397 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1398 events instead of solib_unloaded events.
1399 (_initialize_printcmd): Register observer for free_objfile instead
1400 of solib_unloaded notifications.
1401 * solib.c (remove_user_added_objfile): New function.
1402 (_initialize_symfile): Add remove-symbol-file.
1404 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1406 * infcmd.c (default_print_one_register_info): Use val_print to
1407 print all values even optimized out or unavailable ones. Don't
1408 try to print a raw form of optimized out or unavailable values.
1410 2013-10-29 Yao Qi <yao@codesourcery.com>
1412 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1413 parameter 'arg' instead of from program_space_data.
1414 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1415 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1416 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1417 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1418 * inflow.c (inflow_inferior_data_cleanup): Get data from
1419 parameter 'arg' instead of inferior_data.
1420 * registry.h: Add comments.
1422 2013-10-28 Pedro Alves <palves@redhat.com>
1424 * breakpoint.c (watchpoints_triggered)
1425 <!target_stopped_data_address>: Hardcode return 1.
1427 2013-10-28 Pedro Alves <palves@redhat.com>
1429 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1432 2013-10-28 Pedro Alves <palves@redhat.com>
1434 * infrun.c (process_event_stop_test): New function, factored out
1435 from handle_inferior_event.
1436 (handle_inferior_event): 'process_event_stop_test' is now a
1437 function instead of a goto label -- adjust.
1439 2013-10-28 Pedro Alves <palves@redhat.com>
1441 * infrun.c (handle_inferior_event): Move process_event_stop_test
1442 goto label to the else branch of the ecs->random_signal check,
1443 along with FRAME and GDBARCH re-fetching.
1445 2013-10-28 Pedro Alves <palves@redhat.com>
1447 * infrun.c (switch_back_to_stepped_thread): New function, factored
1448 out from handle_inferior_event.
1449 (handle_inferior_event): Adjust to call
1450 switch_back_to_stepped_thread. Call it also at the tail of the
1451 random signal handling, and return, instead of also handling
1452 random signals just before the stepping tests.
1454 2013-10-28 Pedro Alves <palves@redhat.com>
1456 * infrun.c (clear_stop_func): Delete.
1457 (handle_inferior_event): Don't call clear_stop_func and don't
1458 clear 'ecs->random_signal'.
1460 2013-10-27 Yao Qi <yao@codesourcery.com>
1462 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1463 (varobj_create, varobj_get_path_expr): Update.
1464 (varobj_value_has_mutated, varobj_update): Likewise.
1465 (create_child_with_value, new_root_variable): Likewise.
1466 (number_of_children, name_of_variable): Likewise.
1467 (value_of_child, my_value_of_variable): Likewise.
1468 (varobj_value_is_changeable_p): Likewise.
1470 2013-10-25 Yao Qi <yao@codesourcery.com>
1472 * language.h (struct lang_varobj_ops): Declare.
1473 (struct language_defn) <la_varobj_ops>: New field.
1474 * ada-lang.c: Include "varobj.h"
1475 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1477 * c-lang.c: Include "varobj.h"
1478 (c_language_defn): Initialize field 'la_varobj_ops' with
1480 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1482 (asm_language_defn): Initialize field 'la_varobj_ops' with
1484 (minimal_language_defn): Likewise.
1485 * d-lang.c (d_language_defn): Likewise.
1486 * f-lang.c (f_language_defn): Likewise.
1487 * go-lang.c (go_language_defn): Likewise.
1488 * m2-lang.c (m2_language_defn): Likewise.
1489 * objc-lang.c (objc_language_defn): Likewise.
1490 * opencl-lang.c (opencl_language_defn): Likewise.
1491 * p-lang.c (pascal_language_defn): Likewise.
1492 * language.c (unknown_language_defn): Likewise.
1493 (auto_language_defn): Likewise.
1494 (local_language_defn): Likewise.
1495 * jv-lang.c (java_language_defn): Initialize field
1496 'la_varobj_ops' with java_varobj_ops.
1497 * varobj.c (varobj_create): Update.
1498 * varobj.h (default_varobj_ops): Define macro.
1500 2013-10-25 Pedro Alves <palves@redhat.com>
1502 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1504 (cp_print_static_field): If the value is entirely optimized out,
1505 print <optimized out> here.
1506 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1508 * p-valprint.c (pascal_object_print_static_field): If the value is
1509 entirely optimized out, print <optimized out> here.
1510 * valops.c (do_search_struct_field)
1511 (value_struct_elt_for_reference): No longer handle a NULL static
1513 * value.c (value_static_field): Return an optimized out value
1516 2013-10-25 Yao Qi <yao@codesourcery.com>
1518 * remote.c (remote_traceframe_info): Return early if
1519 traceframe is not selected.
1521 2013-10-25 Yao Qi <yao@codesourcery.com>
1523 * tracepoint.c (traceframe_fun): Remove.
1524 (traceframe_sal): Remove.
1525 (set_traceframe_context): Add local variables.
1527 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1529 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1532 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1534 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1535 failure from register information collection.
1537 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1539 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1541 (linux_corefile_thread_callback): Update accordingly.
1542 (linux_make_corefile_notes): Likewise.
1544 2013-10-24 Pedro Alves <palves@redhat.com>
1546 * NEWS (New options): Mention set/show startup-with-shell.
1547 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1549 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1550 startup-with-shell'.
1551 (show_startup_with_shell): New function.
1552 (_initialize_fork_child): Register the set/show startup-with-shell
1554 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1555 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1556 * procfs.c (procfs_init_inferior): Remove comment.
1557 * infcmd.c (startup_with_shell): New global.
1558 * inferior.h (startup_with_shell): Declare global.
1559 (STARTUP_WITH_SHELL): Delete.
1560 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1562 2013-10-23 Pedro Alves <palves@redhat.com>
1564 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1565 * common/signals.c: Include "gdb_assert.h".
1566 (signals): New field 'symbol'.
1567 (SET): Use the 'symbol' parameter.
1568 (gdb_signal_to_symbol_string): New function.
1569 * infrun.c (handle_inferior_event) <random signal>: In debug
1570 output, print the random signal enum as string in addition to its
1572 * target/waitstatus.c (target_waitstatus_to_string): Print the
1573 signal's enum value as string instead of the (POSIX) signal name.
1575 2013-10-23 Gary Benson <gbenson@redhat.com>
1578 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1579 from 32 to 18. Adjusted fscanf format string accordingly.
1580 (Avoids leaving cmd unterminated.)
1581 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1582 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1583 that local_address and remote_address will not overflow.
1584 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1585 leaving dependencies unterminated. Parse size as "%u" to match
1588 2013-10-22 Pedro Alves <palves@redhat.com>
1590 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1591 set ecs->random signal.
1593 2013-10-22 Pedro Alves <palves@redhat.com>
1595 * infrun.c (keep_going): Update comments.
1597 2013-10-22 Pedro Alves <palves@redhat.com>
1599 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1600 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1602 2013-10-22 Pedro Alves <palves@redhat.com>
1604 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1606 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1607 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1608 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1609 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1610 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1611 (GDB_SIGNAL_LAST): Change description string.
1612 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1613 Adjust to signal renaming.
1614 * darwin-nat.c (darwin_decode_message): Likewise.
1616 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1618 * MAINTAINERS (Write After Approval): Add myself to the list.
1620 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1622 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1623 forced off, downgrade them to software watchpoints if possible,
1624 and error out if not possible.
1625 (watch_command_1): Move watchpoint type selection closer to
1626 watchpoint creation, and extend the comments.
1628 2013-10-18 Pedro Alves <palves@redhat.com>
1631 * infrun.c (handle_inferior_event): Keep going if we got a random
1632 signal we should not stop for, instead of falling through to the
1635 2013-10-18 Yao Qi <yao@codesourcery.com>
1637 * c-varobj.c (cplus_number_of_children): Fix indentation.
1639 2013-10-17 Tom Tromey <tromey@redhat.com>
1642 * printcmd.c (printcmd): Call gdb_flush.
1644 2013-10-17 Tom Tromey <tromey@redhat.com>
1646 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1647 (elf_locate_sections): Update.
1649 2013-10-17 Yao Qi <yao@codesourcery.com>
1651 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1652 * ada-varobj.c: Remove the include of ada-varobj.h.
1653 (ada_varobj_get_number_of_children): Declare.
1654 (ada_varobj_get_name_of_child): Make it static.
1655 (ada_varobj_get_path_expr_of_child): Likewise.
1656 (ada_varobj_get_value_of_child): Likewise.
1657 (ada_varobj_get_type_of_child): Likewise.
1658 (ada_varobj_get_value_of_array_variable): Likewise.
1659 * ada-varobj.h: Remove.
1661 2013-10-17 Yao Qi <yao@codesourcery.com>
1663 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1664 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1665 * ada-varobj.c: Include "varobj.h".
1666 (ada_number_of_children): New. Moved from varobj.c.
1667 (ada_name_of_variable, ada_name_of_child): Likewise.
1668 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1669 (ada_type_of_child, ada_value_of_variable): Likewise.
1670 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1671 (ada_varobj_ops): New.
1672 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1673 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1674 * gdbtypes.h (get_target_type): Declare.
1675 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1677 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1678 (ANONYMOUS_UNION_NAME): Likewise.
1679 (get_type, get_value_type, get_target_type): Remove declarations.
1680 (value_get_print_value, varobj_value_get_print_value): Likewise.
1681 (c_number_of_children, c_name_of_variable): Likewise.
1682 (c_name_of_child, c_path_expr_of_child): Likewise.
1683 (c_value_of_child, c_type_of_child): Likewise.
1684 (c_value_of_variable, cplus_number_of_children): Likewise.
1685 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1686 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1687 (cplus_value_of_child, cplus_type_of_child): Likewise.
1688 (cplus_value_of_variable, java_number_of_children): Likewise.
1689 (java_name_of_variable, java_name_of_child): Likewise.
1690 (java_path_expr_of_child, java_value_of_child): Likewise.
1691 (java_type_of_child, java_value_of_variable): Likewise.
1692 (ada_number_of_children, ada_name_of_variable): Likewise.
1693 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1694 (ada_value_of_child, ada_type_of_child): Likewise.
1695 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1696 (ada_value_has_mutated): Likewise.
1697 (struct language_specific): Move it to varobj.h.
1698 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1699 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1701 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1703 (is_anonymous_child): Move it to c-varobj.c and rename to
1704 varobj_is_anonymous_child. Caller update.
1705 (get_type): Move it to c-varobj.c.
1706 (get_value_type): Rename it varobj_get_value_type. Make it
1708 (get_target_type): Move it gdbtypes.c.
1709 (varobj_formatted_print_options): New function.
1710 (value_get_print_value): Rename it to
1711 varobj_value_get_print_value and make it extern.
1712 (varobj_value_is_changeable_p): Make it extern.
1713 (adjust_value_for_child_access): Move it to c-varobj.c.
1714 (default_value_is_changeable_p): Rename it to
1715 varobj_default_value_is_changeable_p. Make it extern.
1716 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1717 (c_name_of_child, c_path_expr_of_child): Likewise.
1718 (c_value_of_child, c_type_of_child): Likewise.
1719 (c_value_of_variable, cplus_number_of_children): Likewise.
1720 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1721 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1722 (cplus_value_of_child, cplus_type_of_child): Likewise.
1723 (cplus_value_of_variable): Likewise.
1724 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1725 (java_name_of_child, java_path_expr_of_child): Likewise.
1726 (java_value_of_child, java_type_of_child): Likewise.
1727 (java_value_of_variable): Likewise.
1728 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1729 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1730 (ada_value_of_child, ada_type_of_child): Likewise.
1731 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1732 (ada_value_has_mutated): Likewise.
1733 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1734 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1735 (c_varobj_ops, cplus_varobj_ops): Declare.
1736 (java_varobj_ops, ada_varobj_ops): Declare.
1737 (varobj_default_value_is_changeable_p): Declare.
1738 (varobj_value_is_changeable_p): Declare.
1739 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1740 (varobj_get_path_expr_parent): Declare.
1741 (varobj_value_get_print_value): Declare.
1742 (varobj_formatted_print_options): Declare.
1743 (varobj_restrict_range): Declare.
1745 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1747 * target/waitstatus.h (target_waitkind): Remove spurious
1748 character from the comments.
1750 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1752 * gdbarch.sh (get_longjmp_target): Add method documentation.
1753 * gdbarch.h: Regenerate.
1755 2013-10-16 Tom Tromey <tromey@redhat.com>
1757 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1760 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1762 * gcore.in: Call GDB using the full path to the gcore script.
1763 Error out if the GDB binary is not found.
1765 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1768 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1771 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1774 * target.c (target_disable_btrace): Fix invalid return value for
1776 (target_teardown_btrace): Likewise.
1778 2013-10-14 Yao Qi <yao@codesourcery.com>
1780 * varobj.c (struct varobj): Move most of the fields to
1782 (struct varobj_dynamic): New struct.
1783 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1784 (varobj_has_more): Likewise.
1785 (dynamic_varobj_has_child_method): Likewise.
1786 (update_dynamic_varobj_children): Likewise.
1787 (varobj_get_num_children): Likewise.
1788 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1789 (install_new_value_visualizer): Likewise.
1790 (install_new_value_visualizer, install_new_value): Likewise.
1791 (varobj_update, new_variable, free_variable): Likewise.
1792 (my_value_of_variable, value_get_print_value): Likewise.
1793 (install_visualizer): Change the type of parameter 'var' to
1794 'struct varobjd_dynamic *'. Callers update.
1795 * varobj.h (struct varobj): Moved from varobj.c.
1796 (struct varobj) <dynamic>: New field.
1798 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1800 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1801 as the preferred name of r30.
1802 * nios2-linux-tdep.c (reg_offsets): Likewise.
1803 * features/nios2-cpu.xml: Likewise.
1804 * features/nios2-linux.c: Regenerated.
1805 * features/nios2.c: Regenerated.
1806 * regformats/nios2-linux.dat: Regenerated.
1808 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1810 Canonicalize directories for EXEC_FILENAME.
1811 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1813 * utils.c (gdb_realpath_keepfile): New function.
1814 * utils.h (gdb_realpath_keepfile): New declaration.
1816 2013-10-11 Doug Evans <dje@google.com>
1818 * Makefile.in (GDBFLAGS): New variable.
1821 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1823 * NEWS: Add entry documenting the new "-catch-assert" and
1824 "-catch-exception" GDB/MI commands.
1826 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1828 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1830 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1831 "enabled". Set B->ENABLE_STATE accordingly.
1832 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1834 (create_ada_exception_catchpoint): Add declaration.
1835 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1836 (create_ada_exception_catchpoint): Make non-static. Add new
1837 parameter "disabled". Use it in call to
1838 init_ada_exception_breakpoint.
1839 (catch_ada_exception_command): Add parameter "enabled" in call
1840 to create_ada_exception_catchpoint.
1841 (catch_assert_command): Likewise.
1843 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1845 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1846 "catch-exception" commands.
1847 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1848 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1850 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1852 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1853 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1854 of all its enumerates with "ada_". Update the rest of this
1857 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1859 * ada-lang.c (ada_decode_exception_location): Delete.
1860 (create_ada_exception_catchpoint): Remove arguments "sal",
1861 "addr_string" and "ops". Add argument "ex_kind" instead.
1862 Adjust implementation accordingly, calling ada_exception_sal
1863 to get the entities it no longer gets passed as arguments.
1864 Document the function's arguments.
1865 (catch_ada_exception_command): Use catch_ada_exception_command_split
1866 instead of ada_decode_exception_location, and update call to
1867 create_ada_exception_catchpoint.
1868 (catch_ada_assert_command_split): Renames
1869 ada_decode_assert_location. Remove parameters "addr_string" and
1870 "ops", and now returns void. Adjust implementation accordingly.
1871 Update the function documentation.
1872 (catch_assert_command): Use catch_ada_assert_command_split
1873 instead of ada_decode_assert_location. Update call to
1874 create_ada_exception_catchpoint.
1876 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1878 * utils.h (perror_warning_with_name): Add declaration.
1879 * utils.c (perror_warning_with_name): New function.
1880 * cli/cli-cmds.c (source_script_with_search): Add call to
1881 perror_warning_with_name if from_tty is nul.
1883 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1885 * utils.c (perror_string): New function, extracted out of
1886 throw_perror_with_name.
1887 (throw_perror_with_name): Rework to use perror_string.
1889 2013-10-11 Yao Qi <yao@codesourcery.com>
1891 * remote.c (discard_pending_stop_replies_in_queue): Update
1893 (struct stop_reply) <rs>: New field.
1894 (remove_stop_reply_of_remote_state): New function.
1895 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1896 Callers update. Pass remove_stop_reply_of_remote_state to
1898 (remote_parse_stop_reply): Initialize field 'rs'.
1900 2013-10-10 Will Newton <will.newton@linaro.org>
1902 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1905 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1907 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1908 serial_baud_show_cmd.
1909 (_initialize_cli_cmds): Delete the code creating the
1910 "set/show remotebaud" commands.
1911 * serial.c (baud_rate): Move here from top.c.
1912 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1913 (_initialize_serial): Create "set/show serial baud" commands.
1914 Add "set/show remotebaud" command aliases.
1915 * top.c (baud_rate): Moved to serial.c.
1916 * NEWS: Document the new "set/show serial baud" commands,
1917 replacing "set/show remotebaud".
1919 2013-10-09 Pedro Alves <palves@redhat.com>
1921 * breakpoint.c (insert_bp_location): Use memory_error_message to
1922 build the memory error string.
1923 * c-lang.c: Include "gdbcore.h".
1924 (c_get_string): Use memory_error to throw error.
1925 (target_xfer_memory_error): Delete.
1926 (memory_error_message): New, factored out from
1927 target_xfer_memory_error.
1928 (memory_error): Change parameter type to target_xfer_error.
1930 (read_memory): Use memory_error instead of
1931 target_xfer_memory_error.
1932 * gdbcore.h: Include "target.h".
1933 (memory_error): Change parameter type to target_xfer_error.
1934 (memory_error_message): Declare function.
1935 * target.c (target_read_memory, target_read_stack)
1936 (target_write_memory, target_write_raw_memory): Return
1937 TARGET_XFER_E_IO on error. Adjust comments.
1938 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1940 * target.h (target_read, target_insert_breakpoint)
1941 (target_remove_breakpoint): Adjust comments.
1942 * valprint.c (partial_memory_read): Rename parameter, and adjust
1944 (val_print_string): Use memory_error_message to build the memory
1947 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1949 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1950 result variable. Rename variable fopen_e_ever_failed to
1951 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1953 2013-10-09 Pedro Alves <palves@redhat.com>
1955 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1956 (monitor_write_memory_longlongs, monitor_write_memory_block):
1957 Constify 'myaddr' parameter.
1958 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1960 (monitor_xfer_partial): New function.
1961 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1962 hook. Install a to_xfer_partial hook.
1964 2013-10-09 Tom Tromey <tromey@redhat.com>
1966 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1967 bfd_get_alt_debug_link_info.
1969 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1971 New flag OBJF_NOT_FILENAME.
1972 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1973 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1975 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1976 symbol_file_add_from_bfd.
1977 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1979 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1981 * objfiles.h (OBJF_NOT_FILENAME): New.
1983 2013-10-08 Tom Tromey <tromey@redhat.com>
1985 * Makefile.in (SFILES): Add build-id.c.
1986 (HFILES_NO_SRCDIR): Add build-id.h.
1987 * build-id.c: New file, largely from elfread.c. Modified
1989 * build-id.h: New file.
1990 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1991 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1992 Search for dwz file using build-id.
1993 * elfread.c (build_id_bfd_get, build_id_verify)
1994 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1996 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1998 * ada-lang.c (compare_names_with_case): Renamed from
1999 compare_names, adding a new parameter "casing" and its handling.
2000 New function documentation.
2001 (compare_names): New function, implemented using
2002 compare_names_with_case.
2004 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2006 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2008 2013-10-07 Tom Tromey <tromey@redhat.com>
2010 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2011 demangled_names_hash.
2012 (free_objfile): Don't delete the demangled_names_hash.
2013 * objfiles.h (struct objfile_per_bfd_storage)
2014 <demangled_names_hash>: New field.
2015 (struct objfile) <demangled_names_hash>: Move to
2016 objfile_per_bfd_storage.
2017 * symfile.c (reread_symbols): Don't delete the
2018 demangled_names_hash.
2019 * symtab.c (create_demangled_names_hash): Update.
2020 (symbol_set_names): Update.
2022 2013-10-07 Tom Tromey <tromey@redhat.com>
2024 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2025 needs_relocations>: New fields.
2026 (gdb_bfd_requires_relocations): New function.
2027 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2028 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2029 the BFD needs relocations applied.
2031 2013-10-07 Pedro Alves <palves@redhat.com>
2033 PR breakpoints/11568
2034 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2035 the thread list" instead of "gone".
2037 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2039 * NEWS: Mention new convenience variable $_exitsignal.
2040 * corelow.c (core_open): Reset exit convenience variables. Set
2041 $_exitsignal to the uncaught signal which generated the corefile.
2042 * infrun.c (handle_inferior_event): Reset exit convenience
2043 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2044 (clear_exit_convenience_vars): New function.
2045 * inferior.h (clear_exit_convenience_vars): New prototype.
2047 2013-10-06 Yao Qi <yao@codesourcery.com>
2049 * varobj.h: Add comments to enum varobj_languages.
2051 2013-10-04 Doug Evans <dje@google.com>
2053 Add support for DWP file format version 2.
2054 * NEWS: Mention support for DWP file format version 2.
2055 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2056 union of asection, containing_section. New fields virtual_offset
2057 and is_virtual. Change type of readin filed from int to char.
2058 (dwo_sections, dwo_file): Tweak comments.
2059 (dwp_v2_section_ids): New enum.
2060 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2062 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2064 (virtual_v2_dwo_sections): New struct.
2065 (dwp_hash_table): New fields version, nr_columns. Change type of
2066 section_pool field to a union.
2067 (dwp_file): New field version.
2068 (dwarf2_has_info): Check for virtual sections.
2069 (get_containing_section): New function.
2070 (get_section_bfd_owner, get_section_bfd_section): Call it.
2071 (dwarf2_locate_sections): Update.
2072 (dwarf2_section_empty_p): Update.
2073 (dwarf2_read_section): Handle virtual sections.
2074 (locate_dwz_sections): Update.
2075 (create_dwp_hash_table): Document and handle V2 format.
2076 (locate_v1_virtual_dwo_sections): Renamed from
2077 locate_virtual_dwo_sections and update. All callers updated.
2078 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2079 Delete arg htab. Rename arg section_index to unit_index.
2080 All callers updated.
2081 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2083 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2084 (lookup_dwo_unit_in_dwp): Add V2 support.
2085 (dwarf2_locate_dwo_sections): Update.
2086 (dwarf2_locate_common_dwp_sections): Renamed from
2087 dwarf2_locate_dwp_sections and update. All callers updated.
2088 (dwarf2_locate_v2_dwp_sections): New function.
2089 (open_and_init_dwp_file): Add V2 support.
2090 (read_str_index): New locals str_section, str_offsets_section.
2092 2013-10-04 Pedro Alves <palves@redhat.com>
2094 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2095 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2096 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2097 describing comments with references to ptid.h.
2098 * common/ptid.h: Remove intro description of constructors,
2099 accessors and predicates.
2100 (struct ptid): Reformat.
2101 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2102 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2103 describing comments.
2105 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2107 * aix-thread.c (sync_threadlists): Add missing ')' in call
2110 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2112 * procfs.c (procfs_init_inferior): Fix typo causing the build
2115 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2117 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2119 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2121 * mi/mi-main.c (run_one_inferior): Add function description.
2122 Make ARG a pointer to an integer whose value determines whether
2123 we should "run" or "start" the program.
2124 (mi_cmd_exec_run): Add handling of the "--start" option.
2125 Reject all other command-line options.
2126 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2128 2013-10-04 Yao Qi <yao@codesourcery.com>
2130 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2131 (struct notif_client) <pending_event>: Moved
2132 to struct remote_notif_state.
2134 (struct remote_notif_state) <pending_event>: New field.
2135 (notif_event_xfree): Declare.
2136 * remote-notif.c (handle_notification): Adjust.
2137 (notif_event_xfree): New function.
2138 (do_notif_event_xfree): Call notif_event_xfree.
2139 (remote_notif_state_xfree): Call notif_event_xfree to free
2140 each element in field pending_event.
2141 * remote.c (discard_pending_stop_replies): Remove declaration.
2142 (discard_pending_stop_replies_in_queue): Declare.
2143 (remote_close): Call discard_pending_stop_replies_in_queue
2144 instead of discard_pending_stop_replies.
2145 (remote_start_remote): Adjust.
2146 (stop_reply_xfree): Call notif_event_xfree.
2147 (notif_client_stop): Adjust initialization.
2148 (remote_notif_remove_all): Rename it to ...
2149 (remove_stop_reply_for_inferior): ... this. Update comments.
2150 Don't check INF is NULL.
2151 (discard_pending_stop_replies): Return early if notif_state is
2152 NULL. Adjust. Don't check INF is NULL.
2153 (remote_notif_get_pending_events): Adjust.
2154 (discard_pending_stop_replies_in_queue): New function.
2155 (remote_wait_ns): Likewise.
2157 2013-10-04 Yao Qi <yao@codesourcery.com>
2159 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2160 (notif_queue): Remove.
2161 (remote_notif_process): Add one parameter 'notif_queue'.
2162 Update comments. Callers update.
2163 (remote_async_get_pending_events_token): Remove.
2164 (remote_notif_register_async_event_handler): Remove.
2165 (remote_notif_unregister_async_event_handler): Remove.
2166 (handle_notification): Add parameter 'notif_queue'. Update
2167 comments. Callers update.
2168 (notif_xfree): Remove.
2169 (remote_notif_state_allocate): New function.
2170 (remote_notif_state_xfree): New function.
2171 (_initialize_notif): Remove code to allocate queue.
2172 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2173 (struct remote_notif_state): New.
2174 (handle_notification): Update declaration.
2175 (remote_notif_process): Likewise.
2176 (remote_notif_register_async_event_handler): Remove.
2177 (remote_notif_unregister_async_event_handler): Remove.
2178 (remote_notif_state_allocate): Declare.
2179 (remote_notif_state_xfree): Declare.
2180 * remote.c (struct remote_state) <notif_state>: New field.
2181 (remote_close): Don't call
2182 remote_notif_unregister_async_event_handler. Call
2183 remote_notif_state_xfree.
2184 (remote_open_1): Don't call
2185 remote_notif_register_async_event_handler. Call
2186 remote_notif_state_allocate.
2188 2013-10-04 Yao Qi <yao@codesourcery.com>
2190 * varobj.c (create_child_with_value): Remove 'const' from the
2191 type of parameter 'name'.
2192 (varobj_add_child): Likewise.
2193 (install_dynamic_child): Remove 'const' from the type of
2195 (varobj_add_child): Likewise.
2196 (create_child_with_value): Likewise. Update comments. Don't
2198 (update_dynamic_varobj_children): Duplicate 'name'
2199 and pass it to install_dynamic_child.
2201 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2203 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2204 conversion logic to occur after PyLong_Check. Comment on order
2205 change significance.
2206 * python/py-arch.c (archpy_disassemble): Comment on order of
2207 conversion for integers and longs.
2209 2013-10-03 Pedro Alves <palves@redhat.com>
2211 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2212 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2213 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2214 PTRACE_O_TRACEFORK is not supported.
2215 (linux_test_for_tracesysgood): New function.
2216 (linux_test_for_tracefork): New function, factored out from
2217 linux_check_ptrace_features, and also don't kill child_pid here.
2219 2013-10-03 Tristan Gingold <gingold@adacore.com>
2221 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2222 Remove verbose error reporting. Use detected state to
2223 thread_set_state call.
2224 (i386_darwin_dr_get): Fix return type. Remove verbose error
2226 Remove trailing spaces.
2228 2013-10-02 Pedro Alves <palves@redhat.com>
2230 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2231 val_print_optimized_out.
2232 * jv-valprint.c (java_print_value_fields): Likewise.
2233 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2234 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2235 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2236 new optimized out value.
2237 * findvar.c (address_from_register): Likewise.
2238 * frame.c (put_frame_register): Tweak error string to say the
2239 register was not saved, rather than optimized out.
2240 * infcmd.c (default_print_one_register_info): Adjust call to
2241 val_print_optimized_out. Use value_of_register instead of
2242 get_frame_register_value.
2243 * mi/mi-main.c (output_register): Use value_of_register instead of
2244 get_frame_register_value.
2245 * valprint.c (valprint_check_validity): Likewise.
2246 (val_print_optimized_out): New value parameter. If the value is
2247 lval_register, print <not saved> instead.
2248 (value_check_printable, val_print_scalar_formatted): Adjust calls
2249 to val_print_optimized_out.
2250 * valprint.h (val_print_optimized_out): New value parameter.
2251 * value.c (struct value) <optimized_out>: Extend comment.
2252 (error_value_optimized_out): New function.
2253 (require_not_optimized_out): Use it. Use a different string for
2254 lval_register values.
2255 * value.h (error_value_optimized_out): New declaration.
2256 * NEWS: Mention <not saved>.
2258 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2260 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2261 strcmp to compare two symtab filenames.
2263 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2265 * symtab.c (search_symbols_equal): Delete.
2266 (sort_search_symbols_remove_dups): Replace call to
2267 search_symbols_equal by call to compare_search_syms,
2268 adjusting as necessary.
2270 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2273 * python/python.c: Document gdb.execute command in Python help.
2275 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2277 * python/py-frame.c (frame_info_to_frame_object): Use
2278 gdbpy_convert_exception. Clean up Python object on failure.
2280 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2282 * python/lib/gdb/command/frame_filters.py
2283 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2284 (ShowFrameFilterPriority.invoke): Ditto.
2286 2013-10-01 Keith Seitz <keiths@redhat.com>
2288 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2289 (parse_linespec): Make 'argptr' const.
2290 Remove temporary cast of 'argptr' to const char **.
2291 (decode_line_full): Pass const pointer to parse_linespec.
2292 (decode_line_1): Likewise.
2293 (decode_objc): Make local variable 'new_argptr' const.
2294 (find_function_symbols): Remove temporary cast to char *
2296 * objc-lang.c (find_imps): Make argument 'method' const.
2298 * objc-lang.h (find_imps): Likewise.
2300 2013-10-01 Keith Seitz <keiths@redhat.com>
2302 * completer.c (skip_quoted_chars): Make all arguments const.
2304 (skip_quoted): Likewise.
2305 * completer.h (skip_quoted_chars): Likewise.
2306 (skip_quoted): Likewise.
2307 * defs.h (skip_quoted): Remove duplicate declaration.
2308 * jv-exp.y: Include completer.h.
2309 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2310 * p-exp.y: Include completer.h.
2312 2013-10-01 Keith Seitz <keiths@redhat.com>
2314 * c-exp.y (parse_number): Make first argument const.
2315 Make a copy of the input to manipulate.
2316 (c_parse_escape): Make first argument const.
2317 Make local variable 'tokptr' const.
2318 (parse_string_or_char): Make first two arguments const.
2319 (macro_original_text): Make const.
2320 (lex_one_token): Make local variable 'tokstart' const.
2321 Likewise for local variables named 'p'.
2322 Cast away const for struct stoken (temporary).
2323 * c-lang.h (c_parse_escpae): Make first argument const.
2324 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2326 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2328 * f-exp.y (parse_number): Make first argument const.
2329 (match_string_literal): Make local variable 'tokstart'
2331 (yylex): Make local variable 'p' const.
2332 Cast away const for struct stoken (temporary).
2333 * go-exp.y (parse_number): Make first argument const.
2334 (parse_string_or_char): Likewise.
2335 Make local variable 'tokstart' const.
2336 (lex_one_token): Likewise for numerous locals called 'p'.
2337 Cast away const for struct stoken (temporary).
2338 * jv-exp.y (parse_number): Make first argument const.
2339 Make local variables 'tokstart' and 'tokptr' const.
2340 Cast away const for call to skip_quoted (temporary).
2341 (yylex): Make local variable 'p' const.
2342 Cast away const for struct stoken (temporary).
2343 * m2-exp.y (parse_number): Make local variable 'p' const.
2344 (yylex): Likewise for 'tokstart'.
2345 Cast away const for struct stoken (temporary).
2346 Make local variable 'p' const.
2347 * macroexp.c (get_character_constant): Pass a const string
2349 (get_string_literal): Likewise.
2350 (macro_expand_next): Make first argument const.
2351 Cast away const for init_shared_buffer.
2352 * macroexp.h (macro_expand_next): Make first argument const.
2353 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2354 Pass a const string to c_parse_escape.
2355 Make local variables 'p' and 'namestart' const.
2356 * parse.c (lexptr): Make const.
2357 (prev_lexptr): Likewise.
2358 (find_template_name_end): Return const.
2359 Make argument const, too.
2360 (parse_exp_in_context): Make first argument const.
2361 Remove the entire const_hack.
2362 (parse_exp_in_context_1): Make first argument const.
2363 * parser-defs.h (find_template_name_end): Return const.
2364 Make argument const, too.
2365 (lexptr): Make const.
2366 (prev_lexptr): Likewise.
2367 * utils.c (parse_escape): Make second argument const.
2368 * utils.h (parse_escape): Likewise.
2370 2013-10-01 Keith Seitz <keiths@redhat.com>
2372 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2374 (block_lookup): Make 'raw_name' and 'name' const.
2375 * ada-lex.l (processString): Update for struct stoken.ptr.
2376 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2377 (operator_stoken): Likewise.
2378 (lex_one_token): Remove temporary cast to char * for
2380 * f-exp.y (yylex): Likewise.
2381 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2382 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2383 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2385 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2386 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2387 * linespec.c (struct ls_parser): Make 'stream' const.
2388 (find_parameter_list_end): Make argument 'input' and local
2390 (linespec_lexer_lex_string): Make local variables 'start' and
2392 Use skip_spaces_const instead of skip_spaces.
2393 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2395 (parse_linespec): Temporarily cast 'argptr' to const for
2396 'parser->lexer.stream'.
2397 * m2-exp.y (yylex): Remove temporary cast to char * for
2399 * objc-lang.c (add_msglist): Make local variable 'p' const.
2400 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2401 (exp : STRING): Make 'sp' const.
2402 (parse_number): Make argument 'p' const.
2403 * parser-defs.h (struct stoken): Make 'ptr' const.
2405 2013-10-01 Doug Evans <dje@google.com>
2407 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2409 2013-10-01 Yao Qi <yao@codesourcery.com>
2411 * varobj.c (c_value_of_root): Remove declaration.
2412 (cplus_value_of_root, java_value_of_root): Likewise.
2413 (ada_value_of_root): Likewise.
2414 (struct language_specific) <value_of_root>: Remove.
2415 (languages): Update initialization.
2416 (check_scope): Move earlier.
2417 (c_value_of_root): Move earlier and rename to ...
2418 (value_of_root_1): ... this.
2419 (value_of_root): Caller update.
2420 (cplus_value_of_root, java_value_of_root): Remove.
2421 (ada_value_of_root): Remove.
2423 2013-10-01 Yao Qi <yao@codesourcery.com>
2425 * varobj.c (varobj_format_string): Remove "unknown".
2426 (languages): Remove the first element.
2427 * varobj.h (enum varobj_languages): Remove vlang_c.
2429 2013-10-01 Yao Qi <yao@codesourcery.com>
2431 * varobj.c (struct language_specific) <language>: Remove.
2432 (languages): Update the initialization.
2434 2013-10-01 Yao Qi <yao@codesourcery.com>
2436 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2437 "solib-target.h". Include "windows-tdep.h".
2438 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2439 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2440 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2441 windows-tdep.o to gdb_target_obs.
2443 2013-10-01 Yao Qi <yao@codesourcery.com>
2445 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2447 (amd64_windows_init_abi): Don't call set_solib_ops and
2448 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2449 windows_init_abi instead.
2450 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2452 (i386_cygwin_init_abi): Don't call set_solib_ops,
2453 set_gdbarch_has_dos_based_file_system and
2454 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2455 windows_init_abi instead.
2456 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2457 (windows_init_abi): New function.
2458 (windows_iterate_over_objfiles_in_search_order): Make it
2460 * windows-tdep.h (windows_init_abi): Declare.
2461 (windows_iterate_over_objfiles_in_search_order): Remove
2464 2013-10-01 Jerome Guitton <guitton@adacore.com>
2466 Checked in by Joel Brobecker <brobecker@adacore.com>
2467 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2468 incomplete dictionnary instead of None in case of missing
2469 environment variables.
2470 (elinos_init): in case of an incomplete environment, best
2471 effort to load system libraries instead of abort.
2473 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2475 * ada-lang.c (ada_has_this_exception_support): Ignore
2476 mst_solib_trampoline minimal symbols.
2478 2013-09-30 Tristan Gingold <gingold@adacore.com>
2480 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2481 hardware watchpoint.
2482 (i386_darwin_dr_set): Support 32 and 64 bit states.
2483 (i386_darwin_dr_get): Likewise.
2484 (i386_darwin_dr_set_control): Make static.
2485 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2486 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2488 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2490 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2491 Replace TIDGET with ptid_get_lwp.
2492 Replace GET_LWP with ptid_get_lwp.
2493 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2494 Replace BUILD_THREAD with ptid_build.
2495 Replace BUILD_LWP with ptid_build.
2496 Replace PIDGET with ptid_get_pid.
2497 Replace TIDGET with ptid_get_lwp.
2498 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2499 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2500 Replace TIDGET with ptid_get_lwp.
2501 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2502 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2503 Replace TIDGET with ptid_get_lwp.
2504 Replace GET_LWP with ptid_get_lwp.
2505 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2507 * breakpoint.c: Likewise.
2508 * common/ptid.c (ptid_is_pid): Condense check for
2509 null_ptid and minus_one_ptid.
2510 (ptid_lwp_p): New function.
2511 (ptid_tid_p): New function.
2512 * common/ptid.h: Update comments for accessors.
2513 (ptid_lwp_p): New prototype.
2514 (ptid_tid_p): New prototype.
2515 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2516 * gcore.c: Replace PIDGET with ptid_get_pid.
2517 * gdbthread.h: Likewise.
2518 * gnu-nat.c: Likewise.
2519 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2520 Replace TIDGET with ptid_get_lwp.
2521 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2522 * hppanbsd-nat.c: Likewise.
2523 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2524 Replace TIDGET with ptid_get_lwp.
2525 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2526 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2527 * infcmd.c: Likewise.
2528 * inferior.h: Likewise.
2529 * inflow.c: Likewise.
2530 * infrun.c: Likewise.
2531 * linux-fork.c: Likewise.
2532 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2533 Replace GET_PID with ptid_get_pid.
2534 Replace is_lwp with ptid_lwp_p.
2535 Replace GET_LWP with ptid_get_lwp.
2536 Replace BUILD_LWP with ptid_build.
2538 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2540 * common/linux-btrace.c: Move sys/syscall.h out of the
2541 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2542 Also check for SYS_perf_event_open before attempting to buid.
2544 2013-09-27 Doug Evans <dje@google.com>
2546 * dwarf2read.c (dwarf2_section_info): Add comment.
2547 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2549 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2550 (dwarf2_read_section): Delete unused local "header". Add section
2551 name to error message.
2552 (create_dwo_in_dwp): Tweak comment.
2553 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2555 * dwarf2read.c (die_reader_specs): Tweak comment.
2556 (get_section_bfd_owner, get_section_bfd_section): New functions.
2557 (get_section_name, get_section_file_name): New functions.
2558 (get_section_id, get_section_flags): New functions.
2559 (*): Use new functions to access section fields.
2561 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2562 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2563 arg "htab". All callers updated.
2564 (create_debug_types_hash_table): Remove redundant copy of
2566 (create_dwo_in_dwp): Tweak comments.
2567 (read_str_index): Tweak comment. Record dwarf form name in static
2570 2013-09-27 Pedro Alves <palves@redhat.com>
2572 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2573 (remote_filename_p): Add comment.
2574 * remote.c (remote_filename_p): Adjust to use
2575 REMOTE_SYSROOT_PREFIX.
2576 * solib.c (solib_find): When deciding whether we need to add a
2577 directory separator, check whether the sysroot is "remote:"
2578 instead of checking whether the patch has a drive spec. Add
2581 2013-09-27 Pedro Alves <palves@redhat.com>
2583 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2585 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2588 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Fix set debug frame output.
2591 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2592 SENTINEL_FRAME entry lower to match enum frame_type order.
2594 2013-09-26 Pierre Muller <muller@sourceware.org>
2596 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2597 AMD64_R15_REGNUM when a register index is expected.
2598 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2599 Substitute in array.
2600 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2601 (amd64_push_arguments): Substitute in integer_regnum array.
2603 2013-09-25 Doug Evans <dje@google.com>
2605 * objfiles.c (allocate_objfile): Move comment to better place.
2607 New option "set debug symfile on".
2608 * NEWS: Mention "set debug symfile".
2609 * Makefile.in (SFILES): Add symfile-debug.c.
2610 (COMMON_OBS): Add symfile-debug.o.
2611 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2612 objfile's symbol functions.
2613 * objfiles.h (objfile_set_sym_fns): Declare.
2614 * symfile-debug.c: New file.
2615 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2616 objfile's symbol functions.
2617 (reread_symbols): Ditto.
2619 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2621 (add_symtab_fns): Update prototype.
2622 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2623 (registered_sym_fns): ... this.
2624 (symtab_fns): Update.
2625 (add_symtab_fns): New arg "flavour". All callers updated.
2626 (find_sym_fns): Rewrite to use new sym_fns registry.
2628 * symfile.h (struct sym_fns): Add "objfile" argument to
2629 sym_read_linetable. All uses updated.
2631 * symtab.c (domain_name, search_domain_name): New functions.
2632 * symtab.h (domain_name, search_domain_name): Declare.
2634 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2635 map_matching_symbols so objfile is first. All uses updated.
2636 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2637 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2639 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2642 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2645 2013-09-24 Doug Evans <dje@google.com>
2647 * objfiles.c (free_objfile): Move comment.
2649 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2651 * ada-exp.y (string_to_operator): Delete.
2652 (dummy_string_to_ada_operator): Delete.
2654 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2657 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2659 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2660 call_dummy_integer_regs, and classify.
2661 * amd64-tdep.h (amd64_classify): Add declaration.
2662 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2663 (amd64_reg_class): Delete, moved to i386-tdep.h.
2664 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2665 Replace call to amd64_classify by call to tdep->classify.
2666 (amd64_push_arguments): Get the list of registers to use for
2667 passing integer parameters from the gdbarch tdep structure,
2668 rather than using a hardcoded one. Replace calls to amd64_classify
2669 by calls to tdep->classify.
2670 (amd64_push_dummy_call): Get the register number used for
2671 the "hidden" argument from tdep->call_dummy_integer_regs.
2672 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2673 and tdep->call_dummy_integer_regs. Set tdep->classify.
2675 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2678 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2679 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2680 where tdep->memory_args_by_pointer is non-zero.
2682 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2685 * i386-tdep.h (struct gdbarch_tdep): Add new field
2686 integer_param_regs_saved_in_caller_frame.
2687 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2688 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2690 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2692 * amd64-windows-tdep.c: #include "value.h"
2693 (amd64_windows_classify): Delete.
2694 (amd64_windows_passed_by_integer_register)
2695 (amd64_windows_passed_by_xmm_register)
2696 (amd64_windows_passed_by_pointer)
2697 (amd64_windows_adjust_args_passed_by_pointer)
2698 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2699 (amd64_windows_push_dummy_call): New functions.
2700 (amd64_windows_init_abi): Remove setting of
2701 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2702 tdep->classify, tdep->memory_args_by_pointer and
2703 tdep->integer_param_regs_saved_in_caller_frame.
2704 Add call to set_gdbarch_push_dummy_call.
2706 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2708 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2709 objfile->original_name.
2711 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2713 Pass down original filename for objfile.
2714 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2715 * elfread.c (elf_symfile_read): Likewise.
2716 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2717 longer set ORIGINAL_NAME.
2718 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2719 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2720 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2721 symbol_file_add_from_bfd call.
2722 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2723 (macho_check_dsym): Add parameter filenamep. Change function comment.
2725 (macho_symfile_read): New variable dsym_filename. Update
2726 macho_check_dsym call. Use it for symbol_file_add_separate.
2727 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2728 it. Use it for objfile->original_name.
2729 (objfile_name): Return OBFD's filename, if available.
2730 * objfiles.h (allocate_objfile): Add new parameter name.
2731 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2732 * symfile-mem.c (symbol_file_add_from_memory): Update
2733 symbol_file_add_from_bfd call.
2734 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2736 (symbol_file_add_with_addrs): New parameter name, add function comment
2737 for it. Remove variable name. Update allocate_objfile call.
2738 (symbol_file_add_separate): New parameter name, add function comment
2739 for it. Update symbol_file_add_with_addrs call.
2740 (symbol_file_add_from_bfd): New parameter name. Update
2741 symbol_file_add_with_addrs call.
2742 (symbol_file_add): Update symbol_file_add_from_bfd call.
2743 (reread_symbols): New variable original_name. Save
2744 objfile->original_name by it.
2745 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2748 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2750 Code cleanup: Add objfile_name accessor function.
2751 * ada-lang.c (is_known_support_routine): Use objfile_name.
2752 * auto-load.c (source_gdb_script_for_objfile)
2753 (auto_load_objfile_script): Likewise.
2754 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2755 * dbxread.c (dbx_symfile_read): Likewise.
2756 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2757 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2758 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2759 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2760 (lookup_dwp_signatured_type, lookup_dwo_unit)
2761 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2762 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2763 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2764 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2765 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2766 (read_subrange_type, load_partial_dies, read_partial_die)
2767 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2768 (die_containing_type, build_error_marker_type, lookup_die_type)
2769 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2770 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2771 (get_DW_AT_signature_type, write_psymtabs_to_index)
2772 (save_gdb_index_command): Likewise.
2773 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2775 * expprint.c (dump_subexp_body_standard): Likewise.
2776 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2777 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2779 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2780 obj_name, use objfile_name for it, use the variable.
2781 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2783 * machoread.c (macho_symtab_read, macho_check_dsym)
2784 (macho_symfile_relocate): Likewise.
2785 * maint.c (maintenance_translate_address): Likewise.
2786 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2787 * minsyms.c (install_minimal_symbols): Likewise.
2788 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2790 (filter_overlapping_sections): Use objfile_name.
2791 (objfile_name): New function.
2792 * objfiles.h (struct objfile): Rename field name to original_name.
2793 (objfile_name): New prototype.
2794 * printcmd.c (sym_info, address_info): Use objfile_name.
2795 * probe.c (parse_probes, collect_probes, compare_probes)
2796 (info_probes_for_ops): Likewise.
2797 * progspace.c (clone_program_space): Likewise.
2798 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2799 (maintenance_info_psymtabs): Likewise.
2800 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2801 (source_section_scripts): Likewise.
2802 * python/py-objfile.c (objfpy_get_filename): Likewise.
2803 * python/py-progspace.c (pspy_get_filename): Likewise.
2804 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2805 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2806 * solib.c (solib_read_symbols): Likewise.
2807 * stabsread.c (scan_file_globals): Likewise.
2808 * stap-probe.c (handle_stap_probe): Likewise.
2809 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2810 (find_separate_debug_file_by_debuglink): Likewise.
2811 (reread_symbols): Likewise. Use the objfile field name renamed to
2813 (allocate_symtab): Use objfile_name.
2814 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2815 (dump_objfile, dump_msymbols, dump_symtab_1)
2816 (maintenance_print_msymbols, maintenance_print_objfiles)
2817 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2818 * target.c (target_translate_tls_address, target_info): Likewise.
2819 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2822 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2825 * probe.c (parse_probes): Rename variable objfile_name to
2828 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2830 Remove solib-sunos.c.
2831 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2832 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2833 * objfiles.c (rt_common_objfile): Remove.
2834 (free_objfile): Remove rt_common_objfile comparison.
2835 * objfiles.h (rt_common_objfile): Remove.
2836 * solib-sunos.c: Remove.
2837 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2839 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2841 Remove a.out NetBSD and OpenBSD hosts.
2842 * NEWS (Removed native configurations): New.
2843 * config/arm/nbsdaout.mh: Remove.
2844 * config/i386/nbsdaout.mh: Remove.
2845 * config/i386/obsdaout.mh: Remove.
2846 * config/m68k/nbsdaout.mh: Remove.
2847 * config/sparc/nbsdaout.mh: Remove.
2848 * config/vax/nbsdaout.mh: Remove.
2849 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2850 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2851 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2853 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2854 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2855 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2857 2013-09-23 Tom Tromey <tromey@redhat.com>
2859 * linespec.c (struct minsym_and_objfile): Remove.
2860 (minsym_and_objfile_d): Remove.
2861 (struct linespec, struct collect_info, linespec_parse_basic)
2862 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2863 (compare_msymbols, find_method, find_function_symbols)
2864 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2865 (add_minsym, search_minsyms_for_name): Update.
2867 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2869 * regcache.c: Add include of valprint.h.
2870 (dump_endian_bytes): Delete.
2871 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2873 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2875 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2877 2013-09-19 Pedro Alves <palves@redhat.com>
2879 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2882 2013-09-19 Pedro Alves <palves@redhat.com>
2883 Thomas Schwinge <thomas@codesourcery.com>
2884 Yue Lu <hacklu.newborn@gmail.com>
2886 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2887 Take a gdb_byte pointer instead of a char pointer.
2889 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2890 gnu_xfer_partial helper.
2891 (gnu_xfer_partial): New function.
2892 (gnu_target): Don't install a deprecated_xfer_memory hook.
2893 Install a to_xfer_partial hook.
2895 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2898 * main.c (captured_main): Replace catch_command_errors by
2899 catch_command_errors_const. Twice.
2900 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2901 (symbol_file_add): Make name parameter const.
2902 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2903 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2904 variable name. Change their usage accordingly.
2905 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2907 (symbol_file_add_main): Make args parameter const.
2909 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2910 Ulrich Weigand <uweigand@de.ibm.com>
2912 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2914 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2916 2013-09-18 Pedro Alves <palves@redhat.com>
2917 Yue Lu <hacklu.newborn@gmail.com>
2919 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2920 (gnu_create_inferior)
2921 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2922 (set_sig_thread_cmd): Use the lwpid field of ptids to
2923 store/extract thread ids instead of the tid field.
2924 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2926 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2928 * infcmd.c (default_print_one_register_info): Add detection of
2929 optimized out values.
2930 (default_print_registers_info): Switch to using
2931 get_frame_register_value.
2933 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2935 * infrun.c (handle_inferior_event): Check if we know the
2936 function start address before setting a resume breakpoint.
2938 2013-09-18 Pedro Alves <palves@redhat.com>
2940 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2941 minus_one_ptid instead of looking at the ptid's tid field and
2942 comparing that to -1.
2944 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2946 * main.h (get_gdb_program_name): Remove extra whitespace.
2948 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2950 * main.h (get_gdb_program_name): Add declaration.
2951 * main.c (get_gdb_program_name): Add definition.
2953 2013-09-17 Doug Evans <dje@google.com>
2955 * dwarf2read.c: Move definitions of complaint functions to after
2956 forward declarations of local functions.
2958 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2959 Pedro Alves <palves@redhat.com>
2962 * breakpoint.c (remove_threaded_breakpoints): New function.
2963 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2964 as thread_exit observer.
2966 2013-09-17 Pedro Alves <palves@redhat.com>
2969 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2970 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2971 * corelow.c (core_open):
2972 * frame.h (print_stack_frame, print_frame_info): New
2973 'set_current_sal' parameter.
2974 * infcmd.c (finish_command, kill_command): Adjust call to
2976 * inferior.c (inferior_command): Likewise.
2977 * infrun.c (normal_stop): Likewise.
2978 * linux-fork.c (linux_fork_context): Likewise.
2979 * record-full.c (record_full_goto_entry, record_full_restore):
2981 * remote-mips.c (common_open): Likewise.
2982 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2984 (print_frame_info): New 'set_current_sal' parameter. Set the last
2985 displayed sal depending on the new paremeter instead of looking at
2987 (backtrace_command_1, select_and_print_frame, frame_command)
2988 (current_frame_command, up_command, down_command): Adjust call to
2990 * thread.c (print_thread_info, restore_selected_frame)
2991 (do_captured_thread_select): Adjust call to print_stack_frame.
2992 * tracepoint.c (tfind_1): Likewise.
2993 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2994 (mi_cmd_stack_info_frame): Likewise.
2995 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2996 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2998 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3000 * value.c (isvoid_internal_fn): Replace "parameter" with
3003 2013-09-16 Stan Shebs <stan@codesourcery.com>
3005 * README: Update references to writing code for GDB.
3006 * configure.ac (build_warnings): Remove obsolete comment.
3007 * configure: Regenerate.
3008 * gdbarch.sh: Remove references to gdbint.texinfo.
3009 * gdbarch.h: Regenerate.
3010 * gdbtypes.c (objfile_type): Remove comments referencing internals
3013 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3015 * NEWS: Mention new convenience function $_isvoid.
3016 * value.c (isvoid_internal_fn): New function.
3017 (_initialize_values): Add new convenience function $_isvoid.
3019 2013-09-16 Pierre Muller <muller@sourceware.org>
3021 * arm-linux-tdep.c: Add "elf/common.h" header.
3022 Remove AT_HWCAP macro definintion as it is provided in
3024 * s390-tdep.c: Remove system header <elf.h>
3025 Add "elf/common.h" header for AT_HWCAP definition.
3026 (s390_core_read_description): Use correct CORE_ADDR
3027 for hwcap local variable used as third parameter
3028 of function target_auxv_search.
3030 2013-09-14 Pierre Muller <muller@sourceware.org>
3031 Tom Tromey <tromey@redhat.com>
3032 Pedro Alves <palves@redhat.com>
3034 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3035 mode if operating system doesn't know O_CLOEXEC.
3037 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3043 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3045 * NEWS: Mention TDB support.
3046 * features/s390-tdb.xml: New file.
3047 * features/s390-te-linux64.xml: New file.
3048 * features/s390x-te-linux64.xml: New file.
3049 * features/Makefile (WHICH): Add new tdescs above.
3050 (s390-te-linux64-expedite): Set.
3051 (s390x-te-linux64-expedite): Set.
3052 * features/s390-te-linux64.c: New file (generated).
3053 * features/s390x-te-linux64.c: New file (generated).
3054 * regformats/s390-te-linux64.dat: New file (generated).
3055 * regformats/s390x-te-linux64.dat: New file (generated).
3056 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3057 (HWCAP_S390_TE): Likewise.
3058 (S390_TDB_DWORD0_REGNUM): Likewise.
3059 (S390_TDB_DWORD0_REGNUM): Likewise.
3060 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3061 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3062 (S390_TDB_ATIA_REGNUM): Likewise.
3063 (S390_TDB_R0_REGNUM): Likewise.
3064 (S390_TDB_R1_REGNUM): Likewise.
3065 (S390_TDB_R2_REGNUM): Likewise.
3066 (S390_TDB_R3_REGNUM): Likewise.
3067 (S390_TDB_R4_REGNUM): Likewise.
3068 (S390_TDB_R5_REGNUM): Likewise.
3069 (S390_TDB_R6_REGNUM): Likewise.
3070 (S390_TDB_R7_REGNUM): Likewise.
3071 (S390_TDB_R8_REGNUM): Likewise.
3072 (S390_TDB_R9_REGNUM): Likewise.
3073 (S390_TDB_R10_REGNUM): Likewise.
3074 (S390_TDB_R11_REGNUM): Likewise.
3075 (S390_TDB_R12_REGNUM): Likewise.
3076 (S390_TDB_R13_REGNUM): Likewise.
3077 (S390_TDB_R14_REGNUM): Likewise.
3078 (S390_TDB_R15_REGNUM): Likewise.
3079 (S390_NUM_REGS): Increase.
3080 (S390_IS_TDBREGSET_REGNUM): New macro.
3081 (s390_regmap_tdb): Declare.
3082 (s390_sizeof_tdbregset): Define.
3083 (tdesc_s390_te_linux64): Declare.
3084 (tdesc_s390x_te_linux64): Likewise.
3085 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3086 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3087 (s390_regmap_tdb): New regmap.
3088 (s390_supply_tdb_regset): New function.
3089 (s390_tdb_regset): New regset.
3090 (s390_linux64v2_regset_sections): Add TDB regset to list.
3091 (s390x_linux64v2_regset_sections): Likewise.
3092 (s390_regset_from_core_section): Recognize TDB core note section.
3093 (s390_core_read_description): If HWCAP indicates TE support,
3094 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3095 (s390_gdbarch_init): Handle TDB regset.
3096 (_initialize_s390_tdep): Initialize new tdescs.
3097 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3098 (have_regset_tdb): New variable.
3099 (s390_native_supply): Support register invalidation.
3100 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3101 (check_regset): Treat ENODATA as "regset exists".
3102 (s390_linux_fetch_inferior_registers): Add TDB.
3103 (s390_read_description): Check for TDB existence and select
3105 * gdbserver/Makefile.in (clean): Add removal of new makefile
3107 (s390-te-linux64.c): New makefile target.
3108 (s390x-te-linux64.c): Likewise.
3109 * gdbserver/configure.srv (srv_regobj): Append new objects
3110 s390-te-linux64.o and s390x-te-linux64.o.
3111 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3112 s390x-te-linux64.xml, and s390-tdb.xml.
3113 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3115 (tdesc_s390_te_linux64): Likewise.
3116 (init_registers_s390x_te_linux64): Likewise.
3117 (tdesc_s390x_te_linux64): Likewise.
3118 (s390_check_regset): Treat ENODATA as "regset exists".
3119 (s390_arch_setup): Add TDB regset support.
3120 (initialize_low_arch): Initialize registers for new tdescs.
3122 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3124 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3125 (S390_IS_FPREGSET_REGNUM): New macro.
3126 * s390-tdep.c (s390_dwarf_regmap): Make const.
3127 (regnum_is_gpr_full): New function for replacing repeated code.
3128 (s390_pseudo_register_name): Use it.
3129 (s390_pseudo_register_type): Likewise.
3130 (s390_pseudo_register_read): Likewise.
3131 (s390_pseudo_register_write): Likewise.
3132 (s390_unwind_pseudo_register): Likewise.
3133 (s390_regmap_gregset): New format for regmap.
3134 (s390x_regmap_gregset): Likewise.
3135 (s390_regmap_fpregset): Likewise.
3136 (s390_regmap_upper): Likewise.
3137 (s390_regmap_last_break): Likewise.
3138 (s390_regmap_system_call): Likewise.
3139 (s390_supply_regset): Adjust to new regmap format.
3140 (s390_collect_regset): Likewise.
3141 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3142 (s390_native_collect): Likewise.
3143 (supply_gregset): Likewise.
3144 (fill_gregset): Likewise.
3145 (supply_fpregset): Likewise.
3146 (fill_fpregset): Likewise.
3147 (fetch_regset): Likewise.
3148 (store_regset): Likewise.
3149 (s390_linux_fetch_inferior_registers): Likewise.
3150 (s390_linux_fetch_inferior_registers): Likewise.
3152 2013-09-12 Andrew Pinski <apinski@cavium.com>
3154 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3156 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3158 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3160 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3162 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3164 2013-09-06 Pedro Alves <palves@redhat.com>
3166 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3167 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3168 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3169 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3170 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3173 2013-09-06 Pedro Alves <palves@redhat.com>
3175 * remote-sim.c (dump_mem): Constify buf parameter.
3176 gdbsim_xfer_inferior_memory): Rename to ...
3177 (gdbsim_xfer_memory): ... this. Adjust interface as
3178 target_xfer_partial helper.
3179 (gdbsim_xfer_partial): New function.
3180 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3181 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3183 2013-09-06 Pedro Alves <palves@redhat.com>
3185 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3186 host_address_to_string, and send debug output to gdb_stdlog.
3188 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3190 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3191 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3192 gdb_target_obs for cris target.
3193 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3194 (cris_gdbarch_init): Move calls to
3195 set_gdbarch_fetch_tls_load_module_address and
3196 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3197 Add call to gdbarch_init_osabi.
3198 * cris-linux-tdep.c: New file.
3199 * cris-tdep.h: New file.
3201 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3203 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3204 to deprecated_init_ui_hook.
3206 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3208 * cli/cli-interp.c (_initialize_cli_interp): Add a
3209 command_loop_proc to interp_procs.
3210 * event-top.c (cli_command_loop): Change signature to match
3211 interp_command_loop_ftype.
3212 * event-top.h (cli_command_loop): Same.
3213 * interps.c (interp_new): Require every interpreter to have a
3215 (current_interp_command_loop): Just call the command_loop_proc on
3216 the current interpreter.
3217 * tui/tui-interp.c (_initialize_tui_interp): Add a
3218 command_loop_proc to interp_procs.
3220 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3222 * cris-tdep.c (cris_gdbarch_init): Add call to
3223 get_gdbarch_fetch_tls_load_module_address.
3225 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3227 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3228 (cris_elf_gregset_t): Rename from elf_gregset_t.
3229 (crisv32_elf_gregset_t): Adjust.
3230 (cris_supply_gregset, fetch_core_registers): Adjust.
3232 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3234 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3236 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3238 * defs.h (deprecated_command_loop_hook): Remove, including
3239 references in comments.
3240 * interps.c (current_interp_command_loop): No longer use
3241 deprecated_command_loop_hook.
3242 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3244 * top.c (deprecated_command_loop_hook): Remove.
3246 2013-09-05 Pedro Alves <palves@redhat.com>
3248 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3249 local is now int instead of ULONGEST. Print it with %d
3250 instead of paddress.
3252 2013-09-05 Tristan Gingold <gingold@adacore.com>
3254 * MAINTAINERS: Remove avr maintainership.
3256 2013-09-05 Pedro Alves <palves@redhat.com>
3258 * findvar.c (value_of_register): Rework in terms of
3259 value_of_register_lazy.
3261 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3263 * symfile.c (add_symbol_file_command): Remove trailing
3264 whitespaces and blank line after comment.
3266 2013-09-05 Pedro Alves <palves@redhat.com>
3268 * tui/tui-regs.c (tui_register_format): Don't look at the
3269 register's name here. Return string representing register
3270 value instead of storing it in the data element.
3271 (tui_get_register): Compare register string representations
3272 instead of register value states and contents.
3274 2013-09-05 Pedro Alves <palves@redhat.com>
3277 * tui/tui-regs.c (tui_show_registers): Show registers of the
3278 selected frame, not the current frame.
3280 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3282 * MAINTAINERS (Write After Approval): Add myself to the list.
3284 2013-09-04 Doug Evans <dje@google.com>
3286 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3287 (queue_and_load_dwo_tu): New function.
3288 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3289 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3290 Make dependent_cu optional.
3291 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3292 and an older .gdb_index is in use, queue and load all its TUs too.
3294 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3296 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3297 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3298 variable search_flags.
3299 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3300 (OPF_RETURN_REALPATH): ... here.
3301 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3302 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3304 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3306 * solib.c (solib_find): Likewise. Four times.
3307 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3308 in the function comment and for the realpath_fptr variable.
3309 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3310 (find_and_open_source): Likewise. Twice.
3311 * symfile.c (symfile_bfd_open): Likewise, also twice.
3313 2013-09-04 Doug Evans <dje@google.com>
3315 * progspace.c (save_current_space_and_thread): Remove unnecessary
3316 call to save_current_inferior.
3318 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3320 * sh64-tdep.c (sh64_do_register): Return after printing message
3321 about unavailable register contents.
3323 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3324 Pedro Alves <palves@redhat.com>
3326 * symfile.c (add_symbol_file_command): Error out on unknown
3327 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3328 options and collapse into single conditional branch.
3330 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3332 * inf-child.c (inf_child_follow_fork): New parameter
3334 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3335 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3336 * inferior.h (detach_fork): Remove.
3337 * infrun.c (detach_fork): Adjust comment and make it
3339 (follow_fork): Pass detach_fork parameter to
3341 * linux-nat.c (linux_child_follow_fork): New parameter
3343 * target.c (target_follow_fork): New parameter detach_fork.
3344 Pass detach_fork as parameter and print its value.
3345 * target.h (struct target_ops) <to_follow_fork>: New int
3347 (target_follow_fork): New parameter detach_fork.
3349 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3351 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3352 Replace sec->bfd by sec->the_bfd_section->owner.
3354 2013-09-03 Yao Qi <yao@codesourcery.com>
3356 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3357 from linux_has_shared_address_space.
3358 (linux_has_shared_address_space): Call linux_is_uclinux.
3359 * linux-tdep.h (linux_is_uclinux): Declare.
3360 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3363 2013-09-03 Yao Qi <yao@codesourcery.com>
3365 * config/djgpp/fnchange.lst: Remove entry of
3366 i386-interix-nat.c and i386-interix-tdep.c.
3367 * configure.ac: Remove '*-*-interix*'.
3368 * configure: Re-generated.
3369 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3370 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3372 * osabi.c (gdb_osabi_names): Remove "Interix".
3374 2013-09-03 Yao Qi <yao@codesourcery.com>
3376 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3378 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3380 * record.h (record_print_flag) <record_print_src_line,
3381 record_print_insn_range>: Rename into ...
3382 (record_print_flag) <record_print_src_line,
3383 record_print_insn_range>: ... this. Update all users.
3385 2013-09-02 Pierre Muller <muller@sourceware.org>
3387 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3390 2013-09-02 Pierre Muller <muller@sourceware.org>
3392 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3393 by use of plongest function.
3395 2013-09-02 Tristan Gingold <gingold@adacore.com>
3397 * NEWS: Add entry mentioning support for native Windows x64
3400 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3401 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3402 (struct amd64_windows_frame_cache): New struct.
3403 (amd64_windows_w2gdb_regnum): New global.
3404 (pc_in_range, amd64_windows_frame_decode_epilogue)
3405 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3406 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3407 (amd64_windows_frame_this_id): New functions.
3408 (amd64_windows_frame_unwind): New static global.
3409 (amd64_windows_skip_prologue): New function.
3410 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3411 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3412 with amd64_windows_skip_prologue.
3414 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3418 2013-08-30 Pedro Alves <palves@redhat.com>
3420 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3423 2013-08-30 Pedro Alves <palves@redhat.com>
3425 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3428 2013-08-30 Pedro Alves <palves@redhat.com>
3430 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3431 Adjust arguments to print_stack_frame.
3433 2013-08-30 Pedro Alves <palves@redhat.com>
3435 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3437 2013-08-30 Pedro Alves <palves@redhat.com>
3439 * frame.h (show_and_print_stack_frame): Delete declaration.
3441 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3444 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3445 (archpy_name): Check for valid architecture.
3446 (archpy_disassemble): Ditto.
3448 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3450 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3451 instead of "long long" in call to ptrace64.
3453 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3455 * mi/mi-interp.c (mi_command_loop): Change signature to match
3456 interp_command_loop_ftype.
3457 (mi1_command_loop): Remove.
3458 (mi2_command_loop): Remove.
3459 (mi3_command_loop): Remove.
3460 (mi_interpreter_resume): Remove setting of
3461 deprecated_command_loop_hook.
3462 (_initialize_mi_interp): Set mi_command_loop as the command loop
3465 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3467 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3470 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3472 * value.c (allocate_value_contents): Make static.
3473 * value.h (allocate_value_contents): Remove prototype.
3475 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3477 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3478 of assembling value via allocate_value_lazy and attribute setter.
3479 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3480 assembling value via allocate_value_lazy and attribute setter.
3481 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3482 assembling value via allocate_value_lazy and attribute setter.
3484 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3486 * value.c (value_from_contents_and_address): Replace allocate_value and
3487 memcpy with value_from_contents.
3489 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3491 * python/py-framefilter.c (py_print_frame): Remove usage of
3492 PyString_AsString. Use python_string_to_host_string instead.
3493 Refactor function to work with a string as a new allocation
3494 instead of a pointer.
3495 (py_print_frame): Ditto.
3496 * python/lib/gdb/frames.py (return_list): Cain iterators together
3497 instead of adding them as a list.
3498 (_sort_list): Call return_list, and remove duplicate code.
3499 (execute_frame_filters): Convert iterator to a list with list().
3500 * python/lib/gdb/command/frame_filters.py
3501 (SetFrameFilterPriority._set_filter_priority): Convert priority
3502 attribute to an integer.
3503 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3504 wrapper function __next__.
3505 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3508 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3511 * python/py-framefilter.c (apply_frame_filter): Check
3512 gdb_python_initialized. Exit if the Python frame-filter code
3513 cannot be initialized.
3515 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3518 * top.c (print_gdb_version): Remove erroneous newline after help
3521 2013-08-29 Yao Qi <yao@codesourcery.com>
3523 * varobj.c (install_dynamic_child): Remove trailing space.
3524 Add one blank line after variable declaration.
3526 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3529 * corefile.c (get_exec_file): Use exec_filename.
3530 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3531 * exec.c (exec_close): Free EXEC_FILENAME.
3532 (exec_file_attach): New variable canonical_pathname. Use
3533 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3535 * exec.h (exec_filename): New.
3536 * inferior.c (print_inferior, inferior_command): Use
3537 PSPACE_EXEC_FILENAME.
3538 * mi/mi-main.c (print_one_inferior): Likewise.
3539 * progspace.c (clone_program_space, print_program_space): Likewise.
3540 * progspace.h (struct program_space): New field pspace_exec_filename.
3541 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3542 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3544 2013-08-28 Will Newton <will.newton@linaro.org>
3546 * common/linux-ptrace.c: Include stdint.h unconditionally.
3548 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3553 2013-08-28 Yao Qi <yao@codesourcery.com>
3554 Pedro Alves <palves@redhat.com>
3556 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3557 instead of stdio_fileopen.
3558 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3559 .Call stderr_fileopen instead of stdio_fileopen.
3560 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3561 [__MINGW32__] (stderr_file_fputs): New function.
3562 (stderr_fileopen): New function.
3563 * ui-file.h (stderr_fileopen): Declare.
3565 2013-08-27 Doug Evans <dje@google.com>
3567 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3568 (struct dwarf2_per_cu_data): Ditto.
3569 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3570 (process_imported_unit_die): Ditto.
3571 (follow_die_sig_1): Simplify assert.
3573 2013-08-27 Pedro Alves <palves@redhat.com>
3575 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3576 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3577 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3578 windows_xfer_memory directly.
3579 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3581 2013-08-27 Pedro Alves <palves@redhat.com>
3583 * darwin-nat.c (darwin_xfer_memory): Delete.
3584 (_initialize_darwin_inferior): Don't install a
3585 deprecated_xfer_memory method.
3587 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3588 Yao Qi <yao@codesourcery.com>
3590 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3591 (parse_no_frames_option): Remove.
3592 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3593 (mi_cmd_stack_list_args): Adjust.
3594 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3595 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3596 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3598 (list_args_or_locals): New parameter 'skip_unavailable'.
3600 * valprint.c (scalar_type_p): Rename to ...
3601 (val_print_scalar_type_p): ... this. Make extern.
3602 (val_print, value_check_printable): Adjust.
3603 * valprint.h (val_print_scalar_type_p): Declare.
3604 * value.c (value_entirely_unavailable): New function.
3605 * value.h (value_entirely_unavailable): Declare.
3607 * NEWS: Mention the new option "--skip-unavailable" to MI
3608 commands '-stack-list-locals', '-stack-list-arguments' and
3609 '-stack-list-variables'.
3611 2013-08-27 Yao Qi <yao@codesourcery.com>
3613 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3614 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3616 * mi/mi-getopt.c (mi_getopt): Remove.
3617 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3619 (mi_getopt): Call mi_getopt_1.
3620 (mi_getopt_silent): New.
3621 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3623 2013-08-26 Doug Evans <dje@google.com>
3626 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3627 .gdb_index is in use.
3628 * symfile.c (reread_symbols): Reset objfile->sf.
3630 * NEWS: Document "mt print objfiles" now takes optional regexp.
3631 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3632 regexp of objfiles to print.
3633 (_initialize_symmisc): Update doc string for "mt print objfiles".
3635 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3636 missing debug info checks.
3638 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3639 Ulrich Weigand <uweigand@de.ibm.com>
3641 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3642 line tables generated by XLC compiled binaries.
3644 2013-08-23 Doug Evans <dje@google.com>
3646 * symmisc.c (dump_symtab): Delete prototype.
3647 (dump_msymbols, dump_objfile): Ditto.
3648 (maintenance_info_symtabs): Mark as dont_repeat.
3649 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3651 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3652 debugging printf to better location.
3654 2013-08-23 Pedro Alves <palves@redhat.com>
3656 * target.c (target_read_live_memory): Change type of 'ret' local
3659 2013-08-23 Pedro Alves <palves@redhat.com>
3661 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3662 (remote_read_bytes): Change return type to LONGEST, and adjust to
3663 return a target_xfer_error on error.
3664 (remote_xfer_memory): Delete.
3665 (remote_flash_write): Change type of 'ret' local to LONGEST.
3666 (remote_xfer_partial, remote_xfer_partial): Adjust.
3667 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3669 2013-08-23 Pierre Muller <muller@sourceware.org>
3671 ARI fix: Push # directives to start of line.
3672 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3674 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3677 * breakpoint.c (enable_command, disable_command): Iterate over
3678 all specified breakpoint locations.
3680 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3682 * common/linux-ptrace.c (linux_fork_to_function): Push #
3683 directives to the start of the line.
3684 (linux_check_ptrace_features): Fix warning message to use
3687 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3689 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3690 nat/linux-waitpid.h.
3691 (linux-waitpid.o): New object file rule.
3692 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3693 (current_ptrace_options): Moved from linux-nat.c.
3694 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3696 (linux_fork_to_function): New function.
3697 (linux_grandchild_function): Likewise.
3698 (linux_child_function): Likewise.
3699 (linux_check_ptrace_features): New function, heavily
3700 based on linux-nat.c:linux_test_for_tracefork.
3701 (linux_enable_event_reporting): New function.
3702 (ptrace_supports_feature): Likewise.
3703 (linux_supports_tracefork): Likewise.
3704 (linux_supports_traceclone): Likewise.
3705 (linux_supports_tracevforkdone): Likewise.
3706 (linux_supports_tracesysgood): Likewise.
3707 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3708 gdbserver/linux-low.c.
3709 (linux_enable_event_reporting): New declaration.
3710 (linux_supports_tracefork): Likewise.
3711 (linux_supports_traceclone): Likewise.
3712 (linux_supports_tracevforkdone): Likewise.
3713 (linux_supports_tracesysgood): Likewise.
3714 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3715 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3716 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3717 * config/arm/linux.mh (NATDEPFILES): Likewise.
3718 * config/i386/linux.mh (NATDEPFILES): Likewise.
3719 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3720 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3721 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3722 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3723 * config/mips/linux.mh (NATDEPFILES): Likewise.
3724 * config/pa/linux.mh (NATDEPFILES): Likewise..
3725 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3726 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3727 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3728 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3729 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3730 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3731 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3732 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3733 ptrace's 4th argument's types.
3734 Check the type of PTRACE_TYPE_ARG4.
3735 * configure: Regenerate.
3736 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3737 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3738 (linux_supports_tracefork_flag): Remove.
3739 (linux_supports_tracesysgood_flag): Likewise.
3740 (linux_supports_tracevforkdone_flag): Likewise.
3741 (current_ptrace_options): Moved to
3742 common/linux-ptrace.c.
3743 (linux_tracefork_child): Remove.
3744 (my_waitpid): Remove.
3745 (linux_test_for_tracefork): Renamed to
3746 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3747 (linux_test_for_tracesysgood): Remove.
3748 (linux_supports_tracesysgood): Remove.
3749 (linux_supports_tracefork): Remove.
3750 (linux_supports_tracevforkdone): Remove.
3751 (linux_enable_tracesysgood): Remove.
3752 (linux_enable_event_reporting): Remove.
3753 (linux_init_ptrace): New function.
3754 (linux_child_post_attach): Call linux_init_ptrace.
3755 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3756 (linux_child_follow_fork): Call linux_supports_tracefork
3757 and linux_supports_tracevforkdone.
3758 (linux_child_insert_fork_catchpoint): Call
3759 linux_supports_tracefork.
3760 (linux_child_insert_vfork_catchpoint): Likewise.
3761 (linux_child_set_syscall_catchpoint): Call
3762 linux_supports_tracesysgood.
3763 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3764 * nat/linux-nat.h: New file.
3765 * nat/linux-waitpid.c: New file.
3766 * nat/linux-waitpid.h: New file.
3768 2013-08-22 Samuel Bronson <naesten@gmail.com>
3770 ARM Linux support for `catch syscall'.
3771 * syscalls/arm-linux.py: New file.
3772 * syscalls/arm-linux.xml: Likewise.
3773 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3774 (arm_linux_init_abi): Register the new function and syscall xml file.
3775 * data-directory/Makefile.in: Install the new syscall xml file.
3776 * NEWS: Brag about this.
3778 2013-08-22 Pedro Alves <palves@redhat.com>
3781 * corefile.c (target_xfer_memory_error): New function.
3782 (memory_error): Defer EIO to target_memory_error.
3783 (read_memory): Use target_xfer_partial, and handle finer-grained
3785 * target.c (target_xfer_error_to_string): New function.
3786 (memory_xfer_partial_1): If memory is known to be
3787 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3788 (target_xfer_partial): Make extern.
3789 * target.h (enum target_xfer_error): New enum.
3790 (target_xfer_error_to_string): Declare function.
3791 (target_xfer_partial): Declare function.
3792 (struct target_ops) <xfer_partial>: Adjust describing comment.
3794 2013-08-22 Alan Modra <amodra@gmail.com>
3796 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3797 * configure.tgt: Likewise as targets.
3799 2013-08-20 Doug Evans <dje@google.com>
3801 * buildsym.c (subfile_stack): Move here from buildsym.h.
3802 (pending_macros): Ditto.
3803 (get_macro_table): New function.
3804 (buildsym_init): Initialize subfile_stack.
3805 * coffread.c (type_vector,type_vector_length): Moved here from
3807 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3808 (coff_symtab_read): Use it.
3809 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3810 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3811 with call to get_macro_table.
3812 * stabsread.c (type_vector,type_vector_length): Moved here from
3814 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3815 * buildsym.h (get_macro_table): Declare.
3817 2013-08-20 Tom Tromey <tromey@redhat.com>
3819 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3821 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3823 2013-08-20 Doug Evans <dje@google.com>
3825 * blockframe.c: Remove #include "psymtab.h".
3826 * cp-support.c: Ditto.
3830 2013-08-20 Tom Tromey <tromey@redhat.com>
3833 * exceptions.h (return_mask): Now an enum.
3834 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3837 2013-08-20 Tom Tromey <tromey@redhat.com>
3839 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3841 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3842 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3843 * jit.c (jit_object_close_impl): Update.
3844 * jv-lang.c (get_dynamics_objfile): Update.
3845 * linespec.c (add_minsym): Use get_dynamics_objfile.
3846 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3847 (allocate_objfile): Don't initialize 'gdbarch' field.
3848 (get_objfile_arch): Update.
3849 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3851 (struct objfile) <gdbarch>: ... here. Remove.
3852 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3854 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3856 2013-08-20 Alan Modra <amodra@gmail.com>
3858 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3859 for IBM long double nan and inf.
3860 (floatformat_is_negative, floatformat_classify,
3861 floatformat_mantissa): Similarly.
3862 (floatformat_ieee_single, floatformat_ieee_double,
3863 floatformat_ieee_quad, floatformat_arm_ext,
3864 floatformat_ia64_spill): Delete unused vars.
3865 (_initialize_doublest): Delete unused function.
3866 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3867 little-endian variants of floatformat_ibm_long_double.
3869 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3871 * Makefile.in (SFILES): Remove common/target-common.c and
3872 add target/waitstatus.c.
3873 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3874 target/resume.h, target/wait.h and target/waitstatus.h.
3875 (COMMON_OBS): Remove target-common.o and add
3877 (target-common.o): Remove.
3878 (waitstatus.o): New target object file.
3879 * common/target-common.c: Move contents to
3880 target/waitstatus.c and remove.
3881 * common/target-common.h: Move contents to other files and
3883 (enum resume_kind: Move to target/resume.h.
3884 (TARGET_WNOHANG): Move to target/wait.h.
3885 (enum target_waitkind): Move to target/waitstatus.h.
3886 (struct target_waitstatus): Likewise.
3887 * target.h: Do not include target-common.h and
3888 include target/resume.h, target/wait.h and
3889 target/waitstatus.h.
3890 * target/resume.h: New file.
3891 * target/wait.h: New file.
3892 * target/waitstatus.h: New file.
3893 * target/waitstatus.c: New file.
3895 2013-08-19 Pedro Alves <palves@redhat.com>
3897 * linux-nat.c (linux_test_for_tracefork)
3898 (linux_test_for_tracesysgood, linux_child_follow_fork)
3899 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3900 (linux_nat_wait_1): Extend comment.
3901 (linux_async_pipe): Add comment.
3903 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3905 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3906 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3907 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3908 Update to account for fact that PC is now a pseudo-register.
3909 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3910 cases for RL78_PC_REGNUM.
3912 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3915 * top.c (quit_force): Skip writing history file
3916 if input is not from terminal.
3918 2013-08-14 Tom Tromey <tromey@redhat.com>
3920 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3921 resultthreadlist>: New fields.
3922 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3923 (remote_get_threadlist, remote_threadlist_iterator): Use
3924 new fields. Remove static variables.
3926 2013-08-14 Tom Tromey <tromey@redhat.com>
3928 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3929 remote_watch_data_address>: New fields.
3930 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3931 (process_stop_reply, remote_wait_as)
3932 (remote_check_watch_resources, remote_stopped_data_address): Update.
3934 2013-08-14 Tom Tromey <tromey@redhat.com>
3936 * remote.c (struct remote_state) <async_client_callback,
3937 async_client_context>: New fields.
3938 (async_client_callback, async_client_context): Remove.
3939 (remote_async_serial_handler, remote_async): Update.
3941 2013-08-14 Tom Tromey <tromey@redhat.com>
3943 * remote.c (sizeof_pkt): Remove.
3944 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3946 2013-08-14 Tom Tromey <tromey@redhat.com>
3948 * remote.c (struct remote_state) <use_threadinfo_query,
3949 use_threadextra_query>: New fields.
3950 (remote_threads_info, remote_threads_extra_info)
3951 (remote_open_1): Update.
3953 2013-08-14 Tom Tromey <tromey@redhat.com>
3955 * remote.c (struct remote_state) <finished_object,
3956 finished_annex, finished_offset>: New fields.
3957 (remote_read_qxfer): Use remote_state fields; remove static
3960 2013-08-14 Tom Tromey <tromey@redhat.com>
3962 * remote.c (struct remote_state) <last_sent_step>:
3964 (last_sent_step): Remove.
3965 (remote_resume, remote_wait_as): Update.
3967 2013-08-14 Tom Tromey <tromey@redhat.com>
3969 * remote.c (struct remote_state) <last_sent_signal>:
3971 (last_sent_signal): Remove.
3972 (new_remote_state, remote_resume, remote_wait_as): Update.
3974 2013-08-14 Tom Tromey <tromey@redhat.com>
3976 * remote.c (struct remote_state) <last_program_signals_packet>:
3978 (last_program_signals_packet): Remove.
3979 (remote_program_signals, remote_open_1): Update.
3981 2013-08-14 Tom Tromey <tromey@redhat.com>
3983 * remote.c (struct remote_state) <last_pass_packet>:
3985 (last_pass_packet): Remove.
3986 (remote_pass_signals, remote_open_1): Update.
3988 2013-08-14 Tom Tromey <tromey@redhat.com>
3990 * remote.c (struct remote_state) <remote_traceframe_number>:
3992 (remote_traceframe_number): Remove.
3993 (new_remote_state, remote_open_1, set_remote_traceframe)
3994 (remote_trace_find): Update.
3996 2013-08-14 Tom Tromey <tromey@redhat.com>
3998 * remote.c (struct remote_state) <general_thread, continue_thread>:
4000 (general_thread, continue_thread): Remove.
4001 (record_currthread, set_thread, set_general_process)
4002 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4003 (extended_remote_mourn_1): Update.
4005 2013-08-14 Tom Tromey <tromey@redhat.com>
4007 * remote.c (struct remote_state) <remote_desc>: New field.
4008 (remote_desc): Remove.
4009 (remote_threads_info, remote_threads_extra_info, remote_close)
4010 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4011 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4012 (remote_hostio_send_command, remote_file_put, remote_file_get)
4013 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4014 (remote_async, remote_new_objfile, set_range_stepping): Update.
4016 2013-08-14 Tom Tromey <tromey@redhat.com>
4018 * remote.c (remote_state): Now a pointer.
4019 (get_remote_state_raw): Update.
4020 (new_remote_state): New function.
4021 (_initialize_remote): Use new_remote_state.
4023 2013-08-14 Tom Tromey <tromey@redhat.com>
4025 * remote.c (remote_protocol_features): Now const.
4027 2013-08-14 Tom Tromey <tromey@redhat.com>
4029 * remote.c (crc32_table, crc32): Remove.
4030 (remote_verify_memory): Use xcrc32.
4032 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4034 * value.h (create_internalvar_type_lazy): Adjust prototype
4037 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4039 * common/format.c (parse_format_string): Don't allow '#' flag for
4040 pointer arguments in format string.
4042 2013-08-13 Pierre Muller <muller@sourceware.org>
4044 * utils.c (init_page_info): Only call tgetnum function
4045 if rl_get_screen_size did not return useful values.
4047 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4049 PR breakpoints/15117
4050 * linespec.c (linespec_parse_basic): Check for convenience
4051 variable or history value while parsing.
4053 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4055 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4057 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4058 different signals between the generic Linux kernel implementation
4060 (avr_linux_gdb_signal_from_target): Delete.
4061 (avr_linux_gdb_signal_to_target): Delete.
4062 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4064 2013-08-09 Doug Evans <dje@google.com>
4066 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4069 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4071 * linux-tdep.c: Define enum with generic signal numbers.
4072 (linux_gdb_signal_from_target): New function.
4073 (linux_gdb_signal_to_target): Likewise.
4074 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4075 methods to the functions above.
4076 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4077 (linux_gdb_signal_to_target): Likewise.
4078 * alpha-linux-tdep.c: Define new enum with signals different
4079 from generic Linux kernel.
4080 (alpha_linux_gdb_signal_from_target): New function.
4081 (alpha_linux_gdb_signal_to_target): Likewise.
4082 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4083 with the functions mentioned above.
4084 * avr-tdep.c: Define enum with differences between Linux kernel
4086 (avr_linux_gdb_signal_from_target): New function.
4087 (avr_linux_gdb_signal_to_target): Likewise.
4088 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4089 the functions mentioned above.
4090 * sparc-linux-tdep.c: Define enum with differences between SPARC
4091 and generic Linux kernel signal numbers.
4092 (sparc32_linux_gdb_signal_from_target): New function.
4093 (sparc32_linux_gdb_signal_to_target): Likewise.
4094 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4095 to the functions defined above.
4096 * xtensa-linux-tdep.c: Define enum with differences between
4097 Xtensa and Linux kernel generic signals.
4098 (xtensa_linux_gdb_signal_from_target): New function.
4099 (xtensa_linux_gdb_signal_to_target): Likewise.
4100 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4101 to the functions defined above.
4102 * mips-linux-tdep.c: Define enum with differences between
4103 signals in MIPS and Linux kernel generic ones.
4104 (mips_gdb_signal_to_target): New function.
4105 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4106 only different signals from the Linux kernel generic.
4107 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4108 the functions defined above.
4109 * mips-linux-tdep.h (enum mips_signals): Remove.
4111 2013-08-09 Pedro Alves <palves@redhat.com>
4113 * avr-tdep.c (XMALLOC): Delete macro.
4114 * cli/cli-dump.c (XMALLOC): Delete macro.
4116 2013-08-09 Pedro Alves <palves@redhat.com>
4118 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4119 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4120 (fopen_with_cleanup, add_dump_command): Make static.
4121 * cli/cli-dump.h: Delete file.
4122 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4125 2013-08-09 Pedro Alves <palves@redhat.com>
4127 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4130 2013-08-09 Pedro Alves <palves@redhat.com>
4132 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4135 2013-08-09 Pedro Alves <palves@redhat.com>
4137 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4138 (gcore_command): Use tilde_expand here, and when showing the
4139 filename to the user, show the expanded version.
4141 2013-08-09 Yao Qi <yao@codesourcery.com>
4143 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4146 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4148 * gcore.c (create_gcore_bfd): Use tilde_expand.
4150 2013-08-08 Yao Qi <yao@codesourcery.com>
4152 * frame.h (read_frame_local): Declare.
4153 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4155 * stack.c (read_frame_local): New.
4157 2013-08-08 Yao Qi <yao@codesourcery.com>
4159 * mi/mi-cmd-stack.c: Update comments to function
4160 list_args_or_locals.
4162 2013-08-07 Tom Tromey <tromey@redhat.com>
4165 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4166 (process_psymtab_comp_unit_reader): Use it.
4167 (process_psymtab_comp_unit): Update. Add "pretend_language"
4169 (dwarf2_build_psymtabs_hard): Update.
4170 (scan_partial_symbols): Pass CU's language to
4171 process_psymtab_comp_unit.
4173 2013-08-07 Tom Tromey <tromey@redhat.com>
4175 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4176 (dwarf2_gdb_index_functions): Update.
4177 * psymtab.c (find_symbol_file_from_partial): Remove.
4178 (psym_functions): Update.
4179 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4182 2013-08-07 Tom Tromey <tromey@redhat.com>
4184 * symfile.c (set_initial_language): Look up "main" symbol
4185 and use its language.
4186 * symtab.c (find_main_filename): Remove.
4187 * symtab.h (find_main_filename): Remove.
4189 2013-08-07 Tom Tromey <tromey@redhat.com>
4191 * dwarf2read.c (recursively_compute_inclusions): Add
4192 "immediate_parent" argument. Set symtab's "user" field
4194 (compute_symtab_includes): Update.
4196 2013-08-07 Tom Tromey <tromey@redhat.com>
4198 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4199 when adding label symbols.
4201 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4202 Ulrich Weigand <uweigand@de.ibm.com>
4204 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4205 * configure.host (powerpc64-*-aix*): Likewise.
4207 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4208 Ulrich Weigand <uweigand@de.ibm.com>
4210 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4212 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4213 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4214 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4215 * configure.ac: Check for ptrace64.
4216 * configure, config.in: Regenerate.
4218 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4219 Ulrich Weigand <uweigand@de.ibm.com>
4221 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4222 Call ptrace64 instead of ptrace if defined.
4223 Add macro addr_ptr to take care of ptrace address argument.
4224 (pdc_read_regs): Likewise.
4225 (pdc_write_regs): Likewise.
4226 (aix_thread_resume): Likewise.
4227 (fetch_regs_kernel_thread): Likewise.
4228 (store_regs_kernel_thread): Likewise.
4230 2013-08-07 Anton Blanchard <anton@samba.org>
4232 * MAINTAINERS: Add myself to Write After Approval.
4234 2013-08-05 Tom Tromey <tromey@redhat.com>
4236 * aix-thread.c (_initialize_aix_thread): Use
4237 complete_target_initialization.
4238 * bsd-uthread.c (_initialize_bsd_uthread): Use
4239 complete_target_initialization.
4240 * dec-thread.c (_initialize_dec_thread): Use
4241 complete_target_initialization.
4242 * ravenscar-thread.c (_initialize_ravenscar): Use
4243 complete_target_initialization.
4244 * sol-thread.c (_initialize_sol_thread): Use
4245 complete_target_initialization.
4246 * spu-multiarch.c (_initialize_spu_multiarch): Use
4247 complete_target_initialization.
4249 2013-08-05 Tom Tromey <tromey@redhat.com>
4251 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4252 * ada-lang.c (ada_lookup_simple_minsym): Return
4253 bound_minimal_symbol.
4254 * ada-lang.h (ada_lookup_simple_minsym): Update.
4255 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4256 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4257 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4258 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4259 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4260 * minsyms.c (msymbol_objfile): Remove.
4261 (lookup_minimal_symbol_internal): New function, from
4262 lookup_minimal_symbol.
4263 (lookup_minimal_symbol): Rewrite using
4264 lookup_minimal_symbol_internal.
4265 (lookup_bound_minimal_symbol): New function.
4266 * minsyms.h (msymbol_objfile): Remove.
4267 (lookup_bound_minimal_symbol): Declare.
4268 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4269 * parse.c (write_exp_msymbol): Change parameter to a
4270 bound_minimal_symbol.
4271 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4272 * parser-defs.h (write_exp_msymbol): Update.
4273 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4274 * symfile.c (simple_read_overlay_table): Use
4275 lookup_bound_minimal_symbol.
4276 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4277 (search_symbols): Likewise.
4278 (print_msymbol_info): Take a bound_minimal_symbol argument.
4279 (symtab_symbol_info, rbreak_command): Update.
4280 * symtab.h (struct symbol_search) <msymbol>: Change type
4281 to bound_minimal_symbol.
4282 * valops.c (find_function_in_inferior): Use
4283 lookup_bound_minimal_symbol.
4284 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4286 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4289 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4291 (async_cleanup_sigint_signal_handler): ... this.
4292 (initialize_sigint_signal_handler): Remove declaration.
4293 (handle_remote_sigint): Rename the declaration to ...
4294 (async_handle_remote_sigint): ... this.
4295 (handle_remote_sigint_twice): Rename the declaration to ...
4296 (async_handle_remote_sigint_twice): ... this.
4297 (async_remote_interrupt, async_remote_interrupt_twice)
4298 (remote_interrupt): Remove the declarations.
4299 (remote_interrupt_twice): Rename the declaration ...
4300 (sync_remote_interrupt_twice): ... this.
4301 (sigint_remote_twice_token): Rename the variable to ...
4302 (async_sigint_remote_twice_token): ... this.
4303 (sigint_remote_token): Rename the variable to ...
4304 (async_sigint_remote_token): ... this.
4305 (initialize_sigint_signal_handler): Rename the function to ...
4306 (async_initialize_sigint_signal_handler): ... this. Update the name
4308 (handle_remote_sigint): Rename the function to ...
4309 (async_handle_remote_sigint): ... this. Update the names inside.
4310 (handle_remote_sigint_twice): Rename the function to ...
4311 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4312 (cleanup_sigint_signal_handler): Rename the function to ...
4313 (async_cleanup_sigint_signal_handler): ... this.
4314 (remote_interrupt): Rename the function to ...
4315 (sync_remote_interrupt): this. Update the names inside.
4316 (remote_interrupt_twice): Rename the function to ...
4317 (sync_remote_interrupt_twice): this. Update the names inside.
4318 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4319 (_initialize_remote): Update the names inside.
4321 2013-08-02 Tom Tromey <tromey@redhat.com>
4324 * breakpoint.c (update_watchpoint, watchpoint_check)
4325 (watch_command_1): Update.
4326 * eval.c (fetch_subexp_value): Add "preserve_errors"
4328 * ppc-linux-nat.c (check_condition): Update.
4329 * value.h (fetch_subexp_value): Update.
4331 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4333 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4336 2013-08-01 Doug Evans <dje@google.com>
4339 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4340 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4341 Add assert of sig_entry->dwo_unit == NULL.
4342 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4343 had already been read.
4344 (read_signatured_type): Set per_cu.tu_read.
4347 * valops.c (value_struct_elt): Add missing call to check_typedef.
4348 (value_find_oload_method_list): Ditto.
4350 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4351 effectively, struct symbol_search **.
4352 (make_cleanup_free_search_symbols): Change arg to struct
4353 symbol_search **. All callers updated.
4354 (compare_search_syms): Compare symtab file name and block as well.
4355 (search_symbols_equal): New function.
4356 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4357 New args new_head, new_tail. Result is now void. Remove dups after
4358 sorting the symbols.
4359 (search_symbols): Sort all found symbols once, after all have been
4360 found, and remove duplicates. Simplify cleanup tracking of result.
4361 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4363 Further workarounds for binutils/15021.
4364 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4365 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4366 Watch for duplicate symtabs coming from type units.
4367 (compute_symtab_includes): Update call to
4368 recursively_compute_inclusions. Build vector of included symtabs
4370 * symtab.h (symtab_ptr): New typedef.
4371 (DEF_VEC_P (symtab_ptr)): New VEC type.
4372 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4375 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4377 * cli/cli-script.c (script_from_file): Remove use of
4379 * main.c (captured_main): Remove use of error_pre_print and
4381 * utils.c (error_pre_print, quit_pre_print): Remove.
4382 * utils.h (error_pre_print, quit_pre_print): Likewise.
4384 2013-08-01 Yao Qi <yao@codesourcery.com>
4386 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4388 (mi_cmd_stack_list_variables): Likewise.
4390 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4392 * exceptions.c (deprecated_throw_reason): Remove.
4393 * exceptions.h (deprecated_throw_reason): Remove.
4395 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4397 * remote-mips.c (mips_error): Replace use of
4398 deprecated_throw_reason with throw_verror. Use the error message
4399 passed to mips_error as the error message for throw_verror.
4401 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4403 * monitor.c (monitor_interrupt_query): Replace use of
4404 deprecated_throw_reason with quit.
4405 * nto-procfs.c (interrupt_query): Likewise.
4406 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4407 * remote-mips.c (mips_kill): Likewise.
4408 * remote.c (interrupt_query): Likewise.
4410 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4412 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4415 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4416 Yao Qi <yao@codesourcery.com>
4418 * tracepoint.c (trace_dump_command): Select the current frame.
4420 2013-07-30 Doug Evans <dje@google.com>
4422 * dwarf2read.c (process_queue): Add type signature to debug output.
4424 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4426 * value.c (value_fetch_lazy): Mark optimized out values as such
4427 rather than raising an error.
4429 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4431 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4432 before checking which bits of the parent, not the child, value are
4435 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4438 * top.c: Include "filenames.h".
4439 (set_history_filename): New function.
4440 (init_main): Install it as set hook of the "set history filename"
4443 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4445 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4446 attribute parameter.
4447 (dwarf2_const_value_data): Constify struct attribute parameter.
4448 (dwarf2_const_value): Constify struct attribute parameter.
4449 (dwarf2_const_value_attr): Constify struct attribute parameter.
4450 (lookup_die_type): Constify struct attribute parameter.
4451 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4452 (follow_die_ref_or_sig): Constify struct attribute parameter.
4453 (follow_die_ref): Constify struct attribute parameter.
4454 (follow_die_sig): Constify struct attribute parameter.
4455 (get_DW_AT_signature_type): Constify struct attribute parameter.
4456 (get_type_unit_group): Constify struct attribute parameter.
4457 (fill_in_loclist_baton): Constify struct attribute parameter.
4458 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4459 (type_unit_group): Constify struct attribute parameter.
4461 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4463 * dwarf2read.c (attr_form_is_block): Make argument const.
4464 (attr_form_is_section_offset): Make argument const.
4465 (attr_form_is_constant): Make argument const.
4466 (attr_form_is_ref): Make argument const.
4468 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4470 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4472 (attr_form_is_ref): Moved below attr_form_is_constant.
4474 2013-07-29 Doug Evans <dje@google.com>
4476 * main.c (captured_command_loop): Tweak comment.
4478 * target.c (target_async_permitted_1): Fix comment.
4480 * symtab.c (iterate_over_some_symtabs): Add comment.
4482 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4484 2013-07-27 Yao Qi <yao@codesourcery.com>
4486 * NEWS: Mention that GDBserver now supports hardware
4487 watchpoints on the MIPS GNU/Linux target.
4489 2013-07-27 Yao Qi <yao@codesourcery.com>
4491 * Makefile.in (HFILES_NO_SRCDIR): Add
4492 common/mips-linux-watch.h.
4493 (mips-linux-watch.o): New rule.
4494 * common/mips-linux-watch.c: New.
4495 * common/mips-linux-watch.h: New.
4496 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4497 * mips-linux-nat.c: Include mips-linux-watch.h.
4498 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4499 to common/mips-linux-watch.h.
4500 (MAX_DEBUG_REGISTER): Likewise.
4501 (enum pt_watch_style): Likewise.
4502 (struct mips32_watch_regs): Likewise.
4503 (struct mips64_watch_regs): Likewise.
4504 (struct pt_watch_regs): Likewise.
4505 (struct mips_watchpoint): Likewise.
4506 (mips_linux_watch_get_irw_mask): Move to
4507 common/mips-linux-watch.c.
4508 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4509 (mips_linux_watch_get_watchlo): Likewise.
4510 (mips_linux_watch_set_watchlo): Likewise.
4511 (mips_linux_watch_get_watchhi): Likewise.
4512 (mips_linux_watch_set_watchhi): Likewise.
4513 (mips_linux_read_watch_registers): Likewise.
4514 (mips_linux_watch_type_to_irw): Likewise.
4515 (mips_linux_stopped_data_address, fill_mask): Likewise.
4516 (mips_linux_watch_try_one_watch): Likewise.
4517 (mips_linux_watch_populate_regs): Likewise.
4519 2013-07-27 Yao Qi <yao@codesourcery.com>
4521 * mips-linux-nat.c (get_irw_mask): Rename to ...
4522 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4523 'set' to 'n'. Update function comment. All callers changed.
4524 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4525 function comment. All callers changed.
4526 (get_num_valid): Rename to ...
4527 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4528 'set' to 'n'. Update function comment. All callers changed.
4529 (get_watchlo): Rename to ...
4530 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4531 'set' to 'n'. Update function comment. All callers changed.
4532 (set_watchlo): Rename to ...
4533 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4534 'set' to 'n'. Update function comment. All callers changed.
4535 (get_watchhi): Rename to ...
4536 (mips_linux_watch_get_watchhi): ... this. Update function
4537 comment. All callers changed.
4538 (set_watchhi): Rename to ...
4539 (mips_linux_watch_set_watchhi): ... this. Update function
4540 comment. All callers changed.
4541 (mips_linux_read_watch_registers): Update function comment.
4542 Add new parameters 'lwpid', 'watch_readback', and
4543 'watch_readback_valid'. Update.
4544 (type_to_irw): Rename to ...
4545 (mips_linux_watch_type_to_irw): ... this. Update function
4546 comment. All callers changed.
4547 (fill_mask): Update function comment.
4548 (try_one_watch): Rename to ...
4549 (mips_linux_watch_try_one_watch): ... this. Change the type
4550 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4551 (populate_regs_from_watches): Rename to ...
4552 (mips_linux_watch_populate_regs): ... this. Add parameter
4553 'current_watches'. All callers changed.
4555 2013-07-27 Yao Qi <yao@codesourcery.com>
4557 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4559 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4560 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4561 (struct pt_watch_regs): Likewise.
4562 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4563 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4564 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4565 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4566 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4568 2013-07-27 Yao Qi <yao@codesourcery.com>
4570 * breakpoint.h: Include break-common.h.
4571 (enum target_hw_bp_type): Move to ...
4572 * common/break-common.h: ... here. New.
4574 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4576 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4577 process group regardless of having tty on stdin.
4579 2013-07-25 Doug Evans <dje@google.com>
4581 * linux-fork.h (detach_fork): Delete.
4583 2013-07-25 Tom Tromey <tromey@redhat.com>
4585 PR remote/15256, PR remote/15266:
4586 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4587 * monitor.c (monitor_detach): Use unpush_target.
4588 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4589 * remote-mips.c (mips_detach): Use unpush_target. Don't
4591 * remote-sim.c (gdbsim_detach): Use unpush_target.
4592 * target.c (pop_target): Remove.
4593 (pop_all_targets_above): Don't call target_close.
4594 (target_close): Assert that the target is unpushed.
4595 * target.h (pop_target): Don't declare.
4596 * tracepoint.c (tfile_open): Use unpush_target.
4598 2013-07-25 Tom Tromey <tromey@redhat.com>
4600 * linux-thread-db.c (init_thread_db_ops): Call
4601 complete_target_initialization.
4602 (_initialize_thread_db): Don't call add_target.
4603 * target.c (complete_target_initialization): New function.
4604 (add_target_with_completer): Call it.
4605 * target.h (complete_target_initialization): Declare.
4607 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4609 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4610 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4611 (HPPANBSD_SIZEOF_GREGS): New define.
4612 (hppaobsd_supply_gregset): Handle additional registers.
4613 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4614 we provide more registers now.
4615 (hppabsd_supply_gregset): Supply additional registers.
4616 (hppabsd_collect_gregset): Collect additional registers.
4618 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4620 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4621 (hppabsd_dwarf2_frame_init_reg): New function.
4622 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4624 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4626 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4627 'z' format code. Remove error for optimized out values, standard
4628 code will handle these fine.
4630 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4632 * NEWS: Mention new 'z' formatter.
4633 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4634 (_initialize_printcmd): Mention 'z' formatter in help text of the
4637 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4639 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4642 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4644 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4645 interface can evaluate arguments. Fallback to the old mode if it
4647 (create_exception_master_breakpoint): Likewise.
4648 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4649 (struct sym_probe_fns elf_probe_fns): Export function above to the
4651 * probe.c (can_evaluate_probe_arguments): New function.
4652 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4654 (can_evaluate_probe_arguments): New function prototype.
4655 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4656 probe interface can evaluate arguments. Fallback to the old mode
4658 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4659 interface can evaluate arguments. Warning the user if it cannot.
4660 (stap_can_evaluate_probe_arguments): New function.
4661 (struct probe_ops stap_probe_ops): Export function above to the
4663 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4664 New function pointer.
4666 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4668 * Makefile.in (SFILES): Add common/target-common.c.
4669 Add common/target-common.h to headers.
4670 (COMMON_OBS): Add target-common.o.
4671 (target-common.o): New target.
4672 * linux-nat.h (resume_kind): Move to common/target-common.h.
4673 * target.c (target_waitstatus_to_string): Move to
4674 common/target-common.c.
4675 * target.h: Include target-common.h.
4676 (target_waitkind): Move to common/target-common.h.
4677 (target_waitstatus): Likewise.
4678 (TARGET_WNOHANG): Likewise.
4679 * common/target-common.c: New file.
4680 * common/target-common.h: New file.
4682 2013-07-24 Doug Evans <dje@google.com>
4684 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4687 2013-07-23 Yao Qi <yao@codesourcery.com>
4689 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4690 parameter 'gdbarch'.
4691 (i386_stack_tramp_frame_sniffer): Caller update.
4692 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4693 parameter 'gdbarch' and 'target'.
4694 (i386_linux_core_read_description): Caller update.
4695 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4697 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4700 2013-07-23 Tom Tromey <tromey@redhat.com>
4702 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4705 2013-07-22 Doug Evans <dje@google.com>
4707 * exec.h (remove_target_sections): Delete arg abfd.
4708 * exec.c (exec_close): Update call to remove_target_sections.
4709 (remove_target_sections): Delete arg abfd.
4710 * solib.c (update_solib_list): Ditto.
4711 (reload_shared_libraries_1): Ditto.
4712 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4713 * target.h (struct target_section): Rename key to owner.
4716 2013-07-22 Tom Tromey <tromey@redhat.com>
4718 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4720 2013-07-22 Tom Tromey <tromey@redhat.com>
4722 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4723 Simplify cleanup handling.
4725 2013-07-22 Tom Tromey <tromey@redhat.com>
4727 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4728 on all return paths.
4730 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4732 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4733 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4734 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4736 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4738 * top.c (print_gdb_version): Add help, apropos description and
4739 url to online documentation.
4741 2013-07-19 Hui Zhu <hui@codesourcery.com>
4744 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4746 2013-07-19 Yao Qi <yao@codesourcery.com>
4748 * target.c (update_current_target): Change the default action
4749 of 'to_traceframe_info' from tcomplain to return_zero.
4750 * target.h (struct target_ops) <to_traceframe_info>: Add more
4752 * valops.c (read_value_memory): Call
4753 traceframe_available_memory unconditionally.
4755 2013-07-18 Yao Qi <yao@codesourcery.com>
4757 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4758 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4759 symbol without prefix. If found, set its type to
4760 'mst_solib_trampoline'.
4762 2013-07-17 Doug Evans <dje@google.com>
4764 * NEWS: Mention "set print raw frame-arguments".
4765 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4766 * stack.c (print_raw_frame_arguments): New static global.
4767 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4768 (_initialize_stack): New command "set/show print raw frame-arguments".
4769 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4770 (set_print_raw, show_print_raw): New functions.
4771 (_initialize_valprint): New prefix command "set/show print raw".
4772 * valprint.h (value_print_options): Improve comments.
4774 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4775 of all *list variables.
4777 * gdbcmd.h (togglelist): Delete.
4778 * cli/cli-cmds.c (togglelist): Delete.
4779 (init_cmd_lists): Update.
4780 * cli/cli-cmds.h (togglelist): Delete.
4782 2013-07-17 Tom Tromey <tromey@redhat.com>
4784 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4787 2013-07-16 Doug Evans <dje@google.com>
4789 * nto-tdep.c (nto_relocate_section_addresses): Update,
4790 target_section.bfd deleted.
4791 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4792 * s390-tdep.c (s390_load): Ditto.
4793 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4795 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4797 * common/format.c (parse_format_string): Add checks for NULL
4798 character before calling strchr.
4800 2013-07-16 Doug Evans <dje@google.com>
4802 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4803 temp_pathname argument.
4804 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4805 when opening the file fails.
4807 * target.h (struct target_section): Delete member bfd.
4808 All users updated to use the_bfd_section->owner instead.
4809 * exec.c (add_to_section_table): Assert bfd is expected value.
4810 Remove initialization of target_section.bfd.
4811 (remove_target_sections): Update.
4812 (section_table_available_memory): Update.
4813 (section_table_xfer_memory_partial): Update.
4814 (print_section_info): Update.
4815 (exec_set_section_address): Update.
4816 * record-full.c (record_full_core_xfer_partial): Update.
4817 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4818 * solib-target.c (solib_target_relocate_section_addresses): Update.
4819 * symfile.c (build_section_addr_info_from_section_table): Update.
4820 * target.c (memory_xfer_live_readonly_partial): Update.
4821 (memory_xfer_partial_1): Update.
4823 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4825 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4826 now available for embedded (BookE) and server (BookS) processors,
4827 correct mentions of 'booke' and adjust comments accordingly in order to
4828 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4829 (have_ptrace_booke_interface): Rename function and variable
4830 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4831 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4832 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4833 'hwdebug_point_cmp'. Update all uses.
4834 (booke_find_thread_points_by_tid): Rename function
4835 'booke_find_thread_points_by_tid' to
4836 'hwdebug_find_thread_points_by_tid'. Update all uses.
4837 (booke_insert_point): Rename function 'booke_insert_point' to
4838 'hwdebug_insert_point'. Update all uses.
4839 (booke_remove_point): Rename function 'booke_remove_point' to
4840 'hwdebug_remove_point'. Update all uses.
4842 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4844 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4845 numbers with enum values.
4847 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4850 * thread.c (thread_apply_all_command): Check for valid threads
4852 (thread_array_cleanup): New struct.
4853 (set_thread_refcount): New function.
4855 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4857 * infcmd.c (default_print_one_register_info): Reuse function
4860 2013-07-10 Tom Tromey <tromey@redhat.com>
4862 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4863 (ada-exp.o): New target.
4865 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4867 * mt-tdep.c (mt_registers_info): Call
4868 get_no_prettyformat_print_options instead of
4869 get_raw_print_options (regression by last patch from Doug
4872 2013-07-09 Pedro Alves <palves@redhat.com>
4874 Checked in by Joel Brobecker <brobecker@adacore.com>.
4875 * ada-lang.c (coerce_unspec_val_to_type): Use
4876 value_optimized_out_const.
4877 * value.c (value_optimized_out_const): New function.
4878 * value.h (value_optimized_out_const): New declaration.
4880 2013-07-09 Doug Evans <dje@google.com>
4882 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4883 Enum values rename as well. All uses updated.
4884 * valprint.h (value_print_options): Rename member pretty to
4885 pretty format. Rename member prettyprint_arrays to
4886 prettyformat_arrays. Rename member prettyprint_structs to
4887 prettyformat_structs. All uses updated.
4888 (get_no_prettyformat_print_options): Renamed from
4889 get_raw_print_options.
4890 * valprint.c (get_no_prettyformat_print_options): Renamed from
4891 get_raw_print_options. All callers updated.
4892 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4893 All callers updated.
4894 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4895 All callers updated.
4896 (_initialize_valprint): Improve help text for "set print pretty" and
4899 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4901 * value.c (value_bits_valid): Revert previous change, and change
4902 by Pedro on 2013-07-04, due to regressions in
4903 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4905 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4906 Pedro Alves <palves@redhat.com>
4908 * value.c (value_bits_valid): If the value is not lval_computed
4909 or has no check validity handler then the answer is the
4910 optimized_out flag, otherwise defer to the handler.
4912 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4914 * top.c (print_gdb_configuration): Explain in output of
4915 --configuration what does "relocatable" mean.
4917 * main.c (print_gdb_help): Regroup options in the --help text.
4918 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4919 the relevant discussions.
4921 2013-07-06 Yao Qi <yao@codesourcery.com>
4923 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4924 Remove parameter 'lsal'.
4925 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4926 to inner block. Caller update.
4927 (base_breakpoint_create_breakpoints_sal): Update.
4928 (bkpt_create_breakpoints_sal): Likewise.
4929 (tracepoint_create_breakpoints_sal): Likewise.
4930 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4931 element 0 of vector 'canonical->sals'.
4933 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4935 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4936 register number instead of the pseudo register one.
4937 (rs6000_dwarf2_reg_to_regnum): Likewise.
4939 2013-07-04 Pedro Alves <palves@redhat.com>
4941 * findvar.c (value_of_register): Use allocate_optimized_out_value
4942 if the register has been optimized out, instead of
4943 set_value_optimized_out.
4944 * frame-unwind.c (frame_unwind_got_optimized): Use
4945 allocate_optimized_out_value.
4947 2013-07-04 Pedro Alves <palves@redhat.com>
4949 * value.c (value_bits_valid): If the value is not lval_computed,
4950 or doesn't have a check_validity hook, assume the value is entirely
4953 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4955 * stack.c (read_frame_arg): No longer fetch lazy values.
4956 * value.c (value_optimized_out): If the value is not already
4957 marked optimized out, and is lazy then fetch it.
4958 (value_primitive_field): Move optimized out check to later in the
4959 function, after we have loaded any lazy values.
4960 (value_fetch_lazy): Use optimized out flag directly rather than
4961 calling optimized_out method.
4963 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4965 * valops.c: Don't include "user-regs.h".
4966 (value_fetch_lazy): Moved to value.c.
4967 * value.c: Include "user-regs.h".
4968 (value_fetch_lazy): Moved from valops.c.
4970 2013-07-04 Yao Qi <yao@codesourcery.com>
4973 2013-06-27 Yao Qi <yao@codesourcery.com>
4975 * common/create-version.sh: Update comments. Handle the case
4976 that TARGET_ALIAS is empty.
4978 2013-07-03 Pedro Alves <palves@redhat.com>
4980 * Makefile.in (config.status): Depend on development.sh.
4981 (aclocal_m4_deps): Add libmcheck.m4.
4982 * acinclude.m4: Include libmcheck.m4.
4983 * configure.ac: Source development.sh instead of setting
4984 'development' here. --enable-libmcheck/--disable-libmcheck code
4985 factored out to GDB_AC_LIBMCHECK. Run it.
4986 * development.sh: New file.
4987 * libmcheck.m4: New file.
4988 * configure: Regenerate.
4990 2013-07-02 Tom Tromey <tromey@redhat.com>
4992 * contrib/ari/update-web-ari.sh: Update for version.in change.
4994 2013-07-02 Tom Tromey <tromey@redhat.com>
4996 * common/ptid.h: Comment fixes.
4998 2013-07-01 Tom Tromey <tromey@redhat.com>
5000 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5001 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5002 (dwarf2_read_index, create_all_comp_units): Update.
5004 2013-07-01 Tom Tromey <tromey@redhat.com>
5006 * configure.ac (build_warnings): Add -Wold-style-definition.
5007 * configure: Rebuild.
5008 * machoread.c (_initialize_machoread): Use "(void)".
5009 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5012 2013-07-01 Tom Tromey <tromey@redhat.com>
5014 * configure.ac (build_warnings): Add -Wold-style-declaration.
5015 * configure: Rebuild.
5016 * dsrec.c (make_srec): Use "static const", not "const static".
5017 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5019 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5020 Use "static const", not "const static".
5021 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5023 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5025 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5027 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5029 (v850_dbtrap_breakpoint_from_pc): Likewise.
5030 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5033 2013-07-01 Tom Tromey <tromey@redhat.com>
5035 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5036 * configure: Rebuild.
5038 2013-07-01 Pedro Alves <palves@redhat.com>
5040 * defs.h: Include "pathmax.h".
5041 * utils.c: Don't include sys/param.h.
5042 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5043 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5044 instead of MAXPATHLEN.
5045 * solib-sunos.c: Don't include sys/param.h.
5046 * xcoffread.c: Don't include sys/param.h.
5047 * bsd-kvm.c: Don't include sys/param.h.
5048 * darwin-nat.c: Don't include sys/param.h.
5049 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5050 * darwin-nat-info.c: Don't include sys/param.h.
5051 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5053 * i386obsd-nat.c: Don't include sys/param.h.
5054 * inf-child.c: Don't include sys/param.h.
5055 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5056 * linux-fork.c: Don't include sys/param.h.
5057 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5058 * linux-nat.c: Don't include sys/param.h.
5059 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5060 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5061 * m68klinux-nat.c: Don't include sys/param.h.
5062 * nbsd-nat.c: Don't include sys/param.h.
5063 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5064 * ppc-linux-nat.c: Don't include sys/param.h.
5065 * rs6000-nat.c: Don't include sys/param.h.
5066 * spu-linux-nat.c. Don't include sys/param.h.
5067 * windows-nat.c: Don't include sys/param.h.
5068 * xtensa-linux-nat.c: Don't include sys/param.h.
5069 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5071 2013-07-01 Pedro Alves <palves@redhat.com>
5073 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5074 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5075 * gnulib/aclocal.m4: Regenerate.
5076 * gnulib/config.in: Regenerate.
5077 * gnulib/configure: Regenerate.
5078 * gnulib/import/pathmax.h: New file.
5079 * gnulib/import/Makefile.am: Regenerate.
5080 * gnulib/import/Makefile.in: Regenerate.
5081 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5082 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5083 * gnulib/import/m4/pathmax.m4: New file.
5085 2013-07-01 Pedro Alves <palves@redhat.com>
5087 * configure.ac (GDBINIT): Define, depending on host.
5088 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5089 * top.c (PATH_MAX): Delete fallback definition.
5090 (GDBINIT_FILENAME): Delete.
5091 (gdbinit): Reimplement as const char array set to the GDBINIT
5093 * top.h (gdbinit): Make const.
5094 * configure, config.in: Regenerate.
5096 2013-07-01 Pedro Alves <palves@redhat.com>
5098 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5099 * cli/cli-cmds.h (source_script): Likewise.
5100 * exceptions.c (catch_command_errors_const): New function.
5101 * exceptions.h (catch_command_errors_const): Declare.
5102 * main.c (get_init_files): Make parameters const, and adjust.
5103 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5104 'local_gdbinit' locals const. Adjust to use
5105 catch_command_errors_const.
5106 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5107 'local_gdbinit' locals const.
5109 2013-07-01 Pedro Alves <palves@redhat.com>
5111 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5112 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5113 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5116 2013-07-01 Pedro Alves <palves@redhat.com>
5118 Import the "unistd" gnulib module.
5119 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5120 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5121 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5122 import/m4/unistd_h.m4.
5123 * gnulib/aclocal.m4: Renenerate.
5124 * gnulib/config.in: Renenerate.
5125 * gnulib/configure: Renenerate.
5126 * gnulib/import/Makefile.am: Renenerate.
5127 * gnulib/import/Makefile.in: Renenerate.
5128 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5129 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5130 * gnulib/import/m4/off_t.m4: New file.
5131 * gnulib/import/m4/ssize_t.m4: New file.
5132 * gnulib/import/m4/sys_types_h.m4: New file.
5133 * gnulib/import/m4/unistd_h.m4: New file.
5134 * gnulib/import/sys_types.in.h: New file.
5135 * gnulib/import/unistd.c: New file.
5136 * gnulib/import/unistd.in.h: New file.
5138 2013-07-01 Pedro Alves <palves@redhat.com>
5140 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5141 defined instead of checking HAVE_UNISTD_H.
5143 2013-07-01 Pedro Alves <palves@redhat.com>
5145 Reimport gnulib from scratch.
5146 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5147 import/m4/onceonly.m4.
5148 * gnulib/aclocal.m4: Renegerate.
5149 * gnulib/config.in: Renegerate.
5150 * gnulib/configure: Renegerate.
5151 * gnulib/import/Makefile.in: Renegerate.
5152 * gnulib/import/extra/update-copyright: Renegerate.
5153 * gnulib/import/m4/onceonly.m4: Delete.
5155 2013-07-01 Pedro Alves <palves@redhat.com>
5157 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5159 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5162 * remote.c (async_remote_interrupt_twice): Make it static.
5163 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5165 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5167 * ia64-linux-tdep.c: Include <ctype.h>.
5168 (ia64_linux_stap_is_single_operand): New function.
5169 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5171 2013-06-28 Tom Tromey <tromey@redhat.com>
5173 * Makefile.in (version.c): Use version.in, not
5175 * common/create-version.sh: Likewise.
5176 * common/version.in: Move...
5177 * version.in: ...here.
5179 2013-06-28 Pedro Alves <palves@redhat.com>
5181 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5183 * utils.h (pagination_enabled): Declare.
5185 2013-06-28 Pedro Alves <palves@redhat.com>
5187 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5188 Move higher up in file.
5190 2013-06-28 Tom Tromey <tromey@redhat.com>
5192 * tracepoint.c (deprecated_readline_begin_hook)
5193 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5196 2013-06-28 Pedro Alves <palves@redhat.com>
5199 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5200 checking if they're available.
5201 * value.c (value_available_contents_eq): Change comment.
5202 * value.h (value_available_contents_eq): Expand comment.
5204 2013-06-27 Tom Tromey <tromey@redhat.com>
5206 * target.c (find_run_target): Remove.
5207 * target.h (find_run_target): Remove.
5209 2013-06-27 Tom Tromey <tromey@redhat.com>
5211 * corelow.c (core_gdbarch): Now static.
5213 2013-06-27 Tom Tromey <tromey@redhat.com>
5215 * target.c (target_struct_index): Remove.
5217 2013-06-27 Pedro Alves <palves@redhat.com>
5219 * infrun.c: Remove comment describing the 'stepping over runtime
5220 loader dynamic symbol resolution code' mechanism; moved to
5223 2013-06-27 Pedro Alves <palves@redhat.com>
5225 * exceptions.c (catch_command_errors): Remove spurious space.
5226 * exceptions.h (catch_command_errors): Second parameter is "arg",
5229 2013-06-27 Yao Qi <yao@codesourcery.com>
5231 * common/create-version.sh: Update comments. Handle the case
5232 that TARGET_ALIAS is empty.
5234 2013-06-26 Pedro Alves <palves@redhat.com>
5236 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5239 2013-06-26 Pedro Alves <palves@redhat.com>
5241 * infrun.c: Update comments on stepping over runtime loader
5242 dynamic symbol resolution code.
5244 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5246 * ax-gdb.h (union exp_element): Forward declare.
5247 * parser-defs.h: Include expression.h.
5249 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5251 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5253 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5255 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5257 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5259 Fix trace-status to output proper start-time and stop-time.
5260 * tracepoint.c (trace_status_command): Fix type of printf arg to
5261 prevent improper type conversion.
5262 (trace_status_mi): Likewise.
5264 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5266 * mips-tdep.c (mips_next_pc): Fix a typo.
5268 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5270 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5272 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5273 Yao Qi <yao@codesourcery.com>
5275 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5276 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5277 * mi/mi-main.c (print_variable_or_computed): New function.
5278 (mi_cmd_trace_frame_collected): New function.
5279 * tracepoint.c (find_trace_state_variable_by_number): New.
5280 (struct traceframe_info): Move to tracepoint.h
5281 (struct collection_list): Likewise.
5282 (do_collect_symbol): Include locals and arguments in the
5283 collected variables list.
5284 (clear_collection_list): Clear wholly collected variables list
5285 and computed variables list.
5286 (append_exp): New function.
5287 (encode_actions_1): Include variables in the wholly
5288 collected variables list. Include memory ranges and
5289 full-fledged expressions in the computed expressions list.
5290 (encode_actions): Move some code to ...
5291 Return the cleanup chain.
5292 (encode_actions_rsp): ... here. New function.
5293 (get_traceframe_location, get_traceframe_info): Remove static.
5294 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5295 (struct collection_list): Moved from tracepoint.c. Add two
5296 new fields 'wholly_collected' and 'computed'.
5297 (find_trace_state_variable_by_number): Declare.
5298 (encode_actions): Adjust declaration.
5299 (encode_actions_rsp): Declare.
5300 (get_traceframe_info, get_traceframe_location): Declare.
5302 * NEWS: Mention new MI command -trace-frame-collected.
5304 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5305 Yao Qi <yao@codesourcery.com>
5307 * ctf.c (ctf_traceframe_info): Push trace state variables
5308 present in the trace data into the traceframe info object.
5309 * breakpoint.c (DEF_VEC_I): Remove.
5310 * common/filestuff.c (DEF_VEC_I): Likewise.
5311 * dwarf2loc.c (DEF_VEC_I): Likewise.
5312 * mi/mi-main.c (DEF_VEC_I): Likewise.
5313 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5314 * features/traceframe-info.dtd: Add tvar element and its
5316 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5317 (build_traceframe_info): Push trace state variables present in
5318 the trace data into the traceframe info object.
5319 (traceframe_info_start_tvar): New function.
5320 (tvar_attributes): New.
5321 (traceframe_info_children): Add "tvar" element.
5322 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5324 * NEWS: Mention the change in GDB and GDBserver.
5326 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5327 Yao Qi <yao@codesourcery.com>
5329 * tracepoint.c (trace_dump_command): Move code to ...
5330 (get_traceframe_location): ... here. New.
5332 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5333 Yao Qi <yao@codesourcery.com>
5335 * tracepoint.c (trace_dump_command): GDB emits an error
5336 instead of a warning when a traceframe is not selected.
5338 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5339 Yao Qi <yao@codesourcery.com>
5341 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5342 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5344 (do_clear_collection_list, init_collection_list): New.
5345 (encode_actions): Add local variables 'tracepoint_list' and
5346 'stepping_list'. Call init_collection_list and make cleanup
5347 which calls do_clear_collection_list. Don't call
5348 clear_collection_list.
5349 (_initialize_tracepoint): Delete references to
5350 'tracepoint_list' and 'stepping_list'.
5352 2013-06-25 Tom Tromey <tromey@redhat.com>
5354 * common/create-version.sh (date): Use "$", not "$$" in sed
5357 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5359 * NEWS (New targets): Add entry for TI MSP430.
5361 2013-06-25 Yao Qi <yao@codesourcery.com>
5363 * remote.c (remote_start_remote): Move code to upload tsv
5366 2013-06-25 Yao Qi <yao@codesourcery.com>
5367 Hui Zhu <hui@codesourcery.com>
5368 Pedro Alves <palves@redhat.com>
5370 PR breakpoints/15075
5371 PR breakpoints/15434
5372 * breakpoint.c (bpstat_stop_status): Call
5373 b->ops->after_condition_true.
5374 (update_dprintf_command_list): Don't append "continue" command
5375 to the command list of dprintf breakpoint.
5376 (base_breakpoint_after_condition_true): New function.
5377 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5378 (dprintf_after_condition_true): New function.
5379 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5380 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5382 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5384 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5385 (ALLDEPFILES): Add msp430-tdep.c.
5386 * configure.tgt (msp430*-*-elf): New target.
5387 * msp430-tdep.c: New file.
5389 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5391 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5392 microMIPS synthetic symbols.
5394 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5396 * objfiles.h (pc_in_section): New prototype.
5397 (in_plt_section): Remove name argument, replace prototype with
5398 static inline function.
5399 * mips-tdep.h: Include "objfiles.h".
5400 (in_mips_stubs_section): New function.
5401 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5402 in_solib_call_trampoline member.
5403 (hppa_in_solib_call_trampoline): Remove name argument.
5404 * objfiles.c (pc_in_section): New function.
5405 (in_plt_section): Remove function.
5406 * mips-linux-tdep.c: Include "objfiles.h".
5407 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5408 name argument. Return 1 rather than the low 16-bit halfword of
5409 any instruction examined.
5410 (mips_linux_in_dynsym_resolve_code): Update
5411 mips_linux_in_dynsym_stub call accordingly.
5412 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5413 rather than an equivalent hand-coded sequence.
5414 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5415 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5416 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5417 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5419 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5420 on call to tdep->in_solib_call_trampoline.
5421 (hppa_in_solib_call_trampoline): Remove name argument, update
5422 according to in_plt_section change.
5423 (hppa_skip_trampoline_code): Update according to in_plt_section
5425 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5426 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5428 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5429 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5430 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5431 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5432 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5433 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5434 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5435 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5436 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5437 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5438 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5439 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5440 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5442 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5444 * common/create-version.sh: Fix expansion of $host_alias
5445 and $target_alias in generation of HOST_NAME and TARGET_NAME
5448 2013-06-24 Tom Tromey <tromey@redhat.com>
5450 * common/create-version.sh: New file.
5451 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5453 (HFILES_NO_SRCDIR): Use common/version.h.
5454 * version.in: Move to ...
5455 * common/version.in: ... here. Replace date with "DATE".
5456 * version.h: Move to ...
5457 * common/version.h: ... here.
5459 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5461 * gdb/gnulib/Makefile.in: Update date in copyright header.
5462 * gdb/gnulib/configure.ac: Ditto.
5463 * gdb/gnulib/update-gnulib.sh: Ditto.
5465 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5467 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5468 "gdb/gnulib/import".
5470 2013-06-21 Will Newton <will.newton@linaro.org>
5472 * doublest.c (ldfrexp): Remove function.
5473 (convert_doublest_to_floatformat): Call frexpl instead of
5476 2013-06-21 Will Newton <will.newton@linaro.org>
5478 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5479 * gnulib/aclocal.m4: Regenerate.
5480 * gnulib/config.in: Regenerate.
5481 * gnulib/configure: Regenerate.
5482 * gnulib/import/Makefile.am: Update.
5483 * gnulib/import/Makefile.in: Update.
5484 * gnulib/import/m4/gnulib-cache.m4: Update.
5485 * gnulib/import/m4/gnulib-comp.m4: Update.
5486 * gnulib/import/float+.h: Import.
5487 * gnulib/import/float.c: Import.
5488 * gnulib/import/float.in.h: Import.
5489 * gnulib/import/fpucw.h: Import.
5490 * gnulib/import/frexp.c: Import.
5491 * gnulib/import/frexpl.c: Import.
5492 * gnulib/import/isnan.c: Import.
5493 * gnulib/import/isnand-nolibm.h: Import.
5494 * gnulib/import/isnand.c: Import.
5495 * gnulib/import/isnanl-nolibm.h: Import.
5496 * gnulib/import/isnanl.c: Import.
5497 * gnulib/import/itold.c: Import.
5498 * gnulib/import/m4/exponentd.m4: Import.
5499 * gnulib/import/m4/exponentl.m4: Import.
5500 * gnulib/import/m4/float_h.m4: Import.
5501 * gnulib/import/m4/fpieee.m4: Import.
5502 * gnulib/import/m4/frexp.m4: Import.
5503 * gnulib/import/m4/frexpl.m4: Import.
5504 * gnulib/import/m4/isnand.m4: Import.
5505 * gnulib/import/m4/isnanl.m4: Import.
5506 * gnulib/import/m4/math_h.m4: Import.
5507 * gnulib/import/math.c: Import.
5508 * gnulib/import/math.in.h: Import.
5510 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5512 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5513 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5514 signature_INTEL_edx comparisons.
5516 2013-06-20 Doug Evans <dje@google.com>
5519 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5520 All callers updated.
5521 (open_dwp_file): If we can't find the dwp file, search the basename
5522 in debug-file-directory.
5524 * dwarf2read.c (struct dwp_file): Fix comment.
5525 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5527 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5530 2013-06-20 Yao Qi <yao@codesourcery.com>
5532 * breakpoint.c (create_breakpoint): Fix code indentation.
5534 2013-06-20 Yao Qi <yao@codesourcery.com>
5536 * breakpoint.c (create_breakpoints_sal_default): Remove
5537 parameter 'lsal'. Update declaration.
5538 (bkpt_create_breakpoints_sal): Caller update.
5539 (tracepoint_create_breakpoints_sal): Likewise.
5541 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5542 Yao Qi <yao@codesourcery.com>
5544 * NEWS: Mention the new option '--skip-unavailable' of command
5545 -data-list-register-values.
5546 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5547 --skip-unavailable option. Adjust to use output_register.
5548 (output_register): Add new 'skip_unavailable' parameter.
5551 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5553 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5554 common/i386-gcc-cpuid.h.
5555 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5556 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5557 Copy the latest version from upstream gcc.
5558 * common/linux-btrace.c: Include i386-cpuid.h.
5559 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5561 (cpu_supports_btrace): Likewise.
5562 * go32-nat.c: Include i386-cpuid.h.
5563 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5565 2013-06-19 Doug Evans <dje@google.com>
5567 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5568 (get_section_index): Ditto.
5570 2013-06-19 Tom Tromey <tromey@redhat.com>
5572 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5575 2013-06-18 Doug Evans <dje@google.com>
5577 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5579 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5580 Move test of cu_index closer to use. Print complaint if cu_index
5583 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5585 * machoread.c (oso_vector): Delete this global.
5586 (macho_register_oso): Add new parameter "oso_vector_ptr".
5587 Use it instead of the "oso_vector" global.
5588 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5589 (macho_symfile_read): Use a local oso_vector, to be free'ed
5590 at the end of this function, in place of the old "oso_vector"
5591 global. Update various function calls accordingly. Use one
5592 single cleanup chain for the entire function.
5594 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5596 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5597 DWARF2_PER_OBJFILE by uses of DATA instead.
5599 2013-06-18 Tom Tromey <tromey@redhat.com>
5601 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5603 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5604 Special case signals other than GDB_SIGNAL_TRAP.
5605 (explains_signal_watchpoint): New function.
5606 (base_breakpoint_explains_signal): Add 'sig' argument.
5607 (initialize_breakpoint_ops): Set 'explains_signal' method for
5609 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5611 (bpstat_explains_signal): Likewise.
5612 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5614 2013-06-18 Tom Tromey <tromey@redhat.com>
5616 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5618 2013-06-18 Tom Tromey <tromey@redhat.com>
5620 * python/python.c (finish_python_initialization): Decref
5621 'pythondir' on failure path as well.
5623 2013-06-18 Tom Tromey <tromey@redhat.com>
5626 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5627 after taking bits_to_skip into account. Sign extend byte_offset.
5628 * utils.h (gdb_sign_extend): Declare.
5629 * utils.c (gdb_sign_extend): New function.
5631 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5633 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5635 2013-06-17 Pierre Muller <muller@sourceware.org>
5637 * corelow.c (core_open): Print GDB signal name instead of target
5640 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5642 * .gitignore: Add /gcore.
5644 2013-06-13 Doug Evans <dje@google.com>
5646 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5647 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5649 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5651 * stack.c (backtrace_command_1): Fix indentation.
5653 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5655 * window-nat.c (thread_rec): Add missing empty line after
5656 local variable declaration.
5658 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5660 * windows-nat.c (thread_rec): Revert format used to print
5661 error code returned by SuspendThread from %d back to %u.
5663 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5665 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5667 (get_windows_debug_event): Likewise, for all debug traces.
5669 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5671 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5674 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5675 Yao Qi <yao@codesourcery.com>
5677 * mi/mi-main.c (get_register): Remove declaration.
5678 (output_register): Declare.
5679 (mi_cmd_data_list_register_values): Remove local variable
5680 'tuple_cleanup'. Move some code into output_register.
5681 (get_register): Renamed to ...
5682 (output_register): ... this. Output the register's
5683 "number" ui_out tuple here.
5685 2013-06-07 Pedro Alves <palves@redhat.com>
5687 * darwin-nat.c: Fix formating in copyright header.
5688 * darwin-nat.h: Likewise.
5689 * gnu-nat.c: Likewise.
5690 * machoread.c: Likewise.
5692 2013-06-07 Pedro Alves <palves@redhat.com>
5695 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5696 static. Output a global target description pointer.
5697 (init_registers_${name}): Adjust to initialize a
5698 target description structure.
5700 2013-06-07 Will Newton <will.newton@linaro.org>
5702 * printcmd.c (build_address_symbolic): Call
5703 gdbarch_addr_bits_remove for text minimal symbols.
5705 2013-06-07 Will Newton <will.newton@linaro.org>
5707 * MAINTAINERS: Add myself to Write After Approval.
5709 2013-06-07 Yao Qi <yao@codesourcery.com>
5711 * tracepoint.c (start_tracing): Move code to ...
5712 (trace_reset_local_state): ... here. New.
5713 (disconnect_tracing): Don't call set_current_traceframe,
5714 set_tracepoint_num, and set_traceframe_context. Call
5715 trace_reset_local_state instead.
5716 (tfile_close): Call trace_reset_local_state.
5717 * ctf.c (ctf_close): Likewise.
5718 * remote.c (remote_close): Likewise.
5719 * tracepoint.h (trace_reset_local_state): Declare.
5721 2013-06-06 Doug Evans <dje@google.com>
5723 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5724 and fix header docs.
5726 2013-06-05 Doug Evans <dje@google.com>
5727 Keith Seitz <keiths@redhat.com>
5730 * cp-namespace.c (find_symbol_in_baseclass): Call
5731 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5732 Check result of call to lookup_symbol_static.
5733 Call lookup_static_symbol_aux unconditionally.
5734 Call check_typedef on base types before accessing them.
5735 (cp_lookup_nested_symbol): Fix comment.
5737 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5739 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5740 minimal symbols pointing to function descriptors.
5742 2013-06-05 Tom Tromey <tromey@redhat.com>
5744 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5746 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5747 Pedro Alves <palves@redhat.com>
5749 * remote.c (remote_wait_as): Restore signal handler before returning
5750 when GDB gets a notification.
5752 2013-06-04 Gary Benson <gbenson@redhat.com>
5755 * breakpoint.h (handle_solib_event): Moved function declaration
5757 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5758 (bpstat_stop_status): Pass new argument to handle_solib_event.
5759 * solib.h (update_solib_breakpoints): New function declaration.
5760 (handle_solib_event): Moved function declaration from
5762 * solib.c (update_solib_breakpoints): New function.
5763 (handle_solib_event): Moved function from breakpoint.c.
5764 Updated to call solib_ops->handle_event if not NULL.
5765 * solist.h (target_so_ops): New fields "update_breakpoints" and
5767 * infrun.c (set_stop_on_solib_events): New function.
5768 (_initialize_infrun): Use the above for "set
5769 stop-on-solib-events".
5770 (handle_inferior_event): Pass new argument to handle_solib_event.
5771 * solib-svr4.c (probe.h): New include.
5772 (svr4_free_library_list): New forward declaration.
5773 (probe_action): New enum.
5774 (probe_info): New struct.
5775 (probe_info): New static variable.
5776 (NUM_PROBES): New definition.
5777 (svr4_info): New fields "using_xfer", "probes_table" and
5779 (free_probes_table): New function.
5780 (free_solib_list): New function.
5781 (svr4_pspace_data_cleanup): Free probes table and solib list.
5782 (svr4_copy_library_list): New function.
5783 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5784 (svr4_read_so_list): New parameter "prev_lm".
5785 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5786 (svr4_current_sos): New function.
5787 (probe_and_action): New struct.
5788 (hash_probe_and_action): New function.
5789 (equal_probe_and_action): Likewise.
5790 (register_solib_event_probe): Likewise.
5791 (solib_event_probe_at): Likewise.
5792 (solib_event_probe_action): Likewise.
5793 (solist_update_full): Likewise.
5794 (solist_update_incremental): Likewise.
5795 (disable_probes_interface_cleanup): Likewise.
5796 (svr4_handle_solib_event): Likewise.
5797 (svr4_update_solib_event_breakpoint): Likewise.
5798 (svr4_update_solib_event_breakpoints): Likewise.
5799 (svr4_create_solib_event_breakpoints): Likewise.
5800 (enable_break): Free probes table before creating breakpoints.
5801 Use svr4_create_solib_event_breakpoints to create breakpoints.
5802 (svr4_solib_create_inferior_hook): Free the solib list.
5803 (_initialize_svr4_solib): Initialise
5804 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5806 2013-06-04 Gary Benson <gbenson@redhat.com>
5808 * target.h (target_ops): New field
5809 "to_augmented_libraries_svr4_read".
5810 (target_augmented_libraries_svr4_read): New macro.
5811 * target.c (update_current_target): Handle
5812 to_augmented_libraries_svr4_read.
5813 * remote.c (remote_state): New field
5814 "augmented_libraries_svr4_read".
5815 (remote_augmented_libraries_svr4_read_feature): New function.
5816 (remote_protocol_features): Add entry for
5817 "augmented-libraries-svr4-read".
5818 (remote_augmented_libraries_svr4_read): New function.
5819 (init_remote_ops): Initialize
5820 remote_ops.to_augmented_libraries_svr4_read.
5822 2013-06-04 Gary Benson <gbenson@redhat.com>
5826 2013-06-04 Gary Benson <gbenson@redhat.com>
5828 * objfiles.h (inhibit_section_map_updates): New function
5830 (resume_section_map_updates): Likewise.
5831 (resume_section_map_updates_cleanup): Likewise.
5832 * objfiles.c (objfile_pspace_info): Removed field
5833 "objfiles_changed_p". New fields "new_objfiles_available",
5834 "section_map_dirty" and "inhibit_updates".
5835 (allocate_objfile): Set new_objfiles_available.
5836 (free_objfile): Set section_map_dirty.
5837 (objfile_relocate1): Likewise.
5838 (in_plt_section): Likewise.
5839 (find_pc_section): Update the conditions under which the
5840 section map will be updated.
5841 (inhibit_section_map_updates): New function.
5842 (resume_section_map_updates): Likewise.
5843 (resume_section_map_updates_cleanup): Likewise.
5845 2013-06-04 Gary Benson <gbenson@redhat.com>
5847 * probe.h (get_probe_argument_count): New declaration.
5848 (evaluate_probe_argument): Likewise.
5849 * probe.c (get_probe_argument_count): New function.
5850 (evaluate_probe_argument): Likewise.
5851 (probe_safe_evaluate_at_pc): Use the above new functions.
5853 2013-06-04 Alan Modra <amodra@gmail.com>
5855 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5856 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5857 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5858 target mem reads on optional insns.
5859 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5860 ppc_insns_match_pattern calls.
5861 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5862 Add match for power7 thread safety insns, and new order of
5863 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5864 invocation in comment, and update rest of comment.
5865 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5866 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5867 (ppc64_standard_linkage2_target): Update insn offsets.
5868 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5869 stubs first. Update calls.
5871 2013-06-04 Yao Qi <yao@codesourcery.com>
5873 * solib.c (solib_find): Don't need dir separator if path has
5876 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5878 Revert (indirectly causes a SIGSEGV):
5879 * machoread.c (macho_symfile_read): Assign first cleanup to
5882 2013-06-03 Yao Qi <yao@codesourcery.com>
5884 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5885 mi-parse.c. Make them static.
5886 (mi_all_values): Likewise.
5887 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5888 mi_parse_print_values. Make it external.
5889 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5890 Remove the declarations.
5891 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5892 * mi/mi-parse.h (mi_parse_print_values): Declare.
5893 * mi/mi-cmd-stack.c: Include mi-parse.h.
5894 (parse_print_values): Remove
5895 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5896 of parse_print_values.
5897 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5899 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5900 Yao Qi <yao@codesourcery.com>
5902 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5903 (encode_actions): Move code to ...
5904 (all_tracepoint_actions_and_cleanup): ... here. New.
5905 (trace_dump_command): Likewise.
5907 2013-05-30 Tom Tromey <tromey@redhat.com>
5909 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5911 2013-05-30 Tom Tromey <tromey@redhat.com>
5913 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5914 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5915 'old_chain' argument. Add 'parser_result' argument.
5916 (gdb_xml_create_parser_and_cleanup): Remove old version.
5917 (gdb_xml_parse_quick): Update.
5918 (xml_process_xincludes): Update.
5919 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5922 2013-05-30 Tom Tromey <tromey@redhat.com>
5924 * probe.c (collect_probes): Check arguments for NULL before
5925 calling compile_rx_or_error.
5926 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5929 2013-05-30 Tom Tromey <tromey@redhat.com>
5931 * infrun.c (adjust_pc_after_break): Introduce an outer null
5934 2013-05-30 Tom Tromey <tromey@redhat.com>
5936 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5938 2013-05-30 Tom Tromey <tromey@redhat.com>
5940 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5941 for 'old_chain'. Do not check 'head' before processing
5944 2013-05-30 Tom Tromey <tromey@redhat.com>
5946 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5949 2013-05-30 Tom Tromey <tromey@redhat.com>
5951 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5952 inner scope. Unconditionally call do_cleanups.
5954 2013-05-30 Tom Tromey <tromey@redhat.com>
5956 * source.c (find_and_open_source): Call do_cleanups.
5958 2013-05-30 Tom Tromey <tromey@redhat.com>
5960 * linux-thread-db.c (thread_db_load_search): Unconditionally
5963 2013-05-30 Tom Tromey <tromey@redhat.com>
5965 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5966 for 'cleanup'; instead use a later one.
5968 2013-05-30 Tom Tromey <tromey@redhat.com>
5970 * python/py-breakpoint.c (bppy_get_commands): Use
5971 explicit, unconditional return.
5972 * python/py-frame.c (frapy_read_var): Likewise.
5973 * python/python.c (gdbpy_decode_line): Likewise.
5975 2013-05-30 Tom Tromey <tromey@redhat.com>
5977 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5978 do_cleanups on all return paths.
5980 2013-05-30 Tom Tromey <tromey@redhat.com>
5982 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5984 2013-05-30 Tom Tromey <tromey@redhat.com>
5986 * stabsread.c (read_struct_type): Call do_cleanups along
5989 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5991 * mips-linux-tdep.c: Adjust formatting throughout.
5993 2013-05-30 Tom Tromey <tromey@redhat.com>
5995 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5996 along all return paths.
5998 2013-05-30 Tom Tromey <tromey@redhat.com>
6000 * symfile.c (find_separate_debug_file): Call do_cleanups
6001 along all return paths.
6003 2013-05-30 Tom Tromey <tromey@redhat.com>
6005 * symtab.c (search_symbols): Introduce a null cleanup for
6008 2013-05-30 Tom Tromey <tromey@redhat.com>
6010 * python/py-value.c (valpy_binop): Call do_cleanups before
6013 2013-05-30 Tom Tromey <tromey@redhat.com>
6015 * python/py-prettyprint.c (print_children): Remove extra
6018 2013-05-30 Tom Tromey <tromey@redhat.com>
6020 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6023 2013-05-30 Tom Tromey <tromey@redhat.com>
6025 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6026 along all return paths.
6028 2013-05-30 Tom Tromey <tromey@redhat.com>
6030 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6033 2013-05-30 Tom Tromey <tromey@redhat.com>
6035 * varobj.c (c_value_of_root): Call do_cleanups along all
6038 2013-05-30 Tom Tromey <tromey@redhat.com>
6040 * tracepoint.c (trace_dump_command): Unconditionally call
6043 2013-05-30 Tom Tromey <tromey@redhat.com>
6045 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6046 do_cleanups earlier.
6048 2013-05-30 Tom Tromey <tromey@redhat.com>
6050 * machoread.c (macho_symfile_read): Assign first cleanup to
6053 2013-05-30 Tom Tromey <tromey@redhat.com>
6055 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6057 2013-05-30 Tom Tromey <tromey@redhat.com>
6059 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6061 2013-05-30 Tom Tromey <tromey@redhat.com>
6063 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6064 call discard_cleanups.
6065 (inf_ptrace_attach): Likewise.
6067 2013-05-30 Tom Tromey <tromey@redhat.com>
6069 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6071 (mips_initialize): Likewise.
6072 (common_open): Call do_cleanups.
6074 2013-05-30 Tom Tromey <tromey@redhat.com>
6076 * utils.c (internal_vproblem): Call do_cleanups.
6078 2013-05-30 Tom Tromey <tromey@redhat.com>
6080 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6082 2013-05-30 Tom Tromey <tromey@redhat.com>
6084 * cli/cli-script.c (setup_user_args): Don't return after error.
6086 2013-05-30 Tom Tromey <tromey@redhat.com>
6088 * somread.c (som_symtab_read): Call do_cleanups.
6090 2013-05-30 Tom Tromey <tromey@redhat.com>
6092 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6094 2013-05-30 Tom Tromey <tromey@redhat.com>
6096 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6097 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6098 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6099 * source.c (show_substitute_path_command): Call do_cleanups.
6100 (unset_substitute_path_command, set_substitute_path_command):
6102 * symfile.c (load_command): Call do_cleanups.
6104 2013-05-30 Tom Tromey <tromey@redhat.com>
6106 * contrib/cleanup_check.py: New file.
6107 * contrib/gcc-with-excheck: Add option parsing.
6109 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6111 * windows-nat.c (windows_delete_thread): Add missing space
6114 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6116 * inferior.c (top level): Include tilde.h.
6117 (add_inferior_command): Call tilde_expand on the value of 'exec'
6120 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6121 Yao Qi <yao@codesourcery.com>
6123 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6125 (encode_actions): Likewise.
6126 * remote.c (remote_download_tracepoint): Caller update.
6127 * tracepoint.h (encode_actions): Update declaration.
6129 2013-05-30 Pedro Alves <palves@redhat.com>
6131 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6134 2013-05-30 Yao Qi <yao@codesourcery.com>
6136 * remote.c (remote_check_symbols): Remove unused parameter
6139 (remote_start_remote, remote_new_objfile): Caller update.
6141 2013-05-30 Yao Qi <yao@codesourcery.com>
6143 * mi/mi-cmds.c (mi_cmds): Define MI command
6144 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6147 2013-05-29 Pedro Alves <palves@redhat.com>
6149 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6150 (remote_insert_watchpoint, remote_remove_watchpoint)
6151 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6152 (remote_verify_memory, compare_sections_command)
6153 (remote_search_memory): Set the general process/thread on the
6156 2013-05-29 Pedro Alves <palves@redhat.com>
6158 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6159 (_initialize_aarch64_tdep): Don't call
6160 initialize_tdesc_aarch64_without_fpu.
6161 * features/Makefile (WHICH): Remove reference to
6162 aarch64-without-fpu.
6163 * features/aarch64-without-fpu.c: Delete file.
6164 * regformats/aarch64-without-fpu.dat: Delete file.
6166 2013-05-28 Yao Qi <yao@codesourcery.com>
6168 * tracepoint.c (stringify_collection_list): Remove parameter
6170 (encode_actions): Caller update. Remove local variables.
6172 2013-05-24 Yao Qi <yao@codesourcery.com>
6174 * tracepoint.c (TFILE_PID): Remove.
6175 (tfile_open): Don't add thread and inferior.
6176 (tfile_close): Don't set 'inferior_ptid'. Don't call
6177 exit_inferior_silent.
6178 (tfile_thread_alive): Remove.
6179 (init_tfile_ops): Don't set field 'to_thread_alive' of
6182 2013-05-23 Doug Evans <dje@google.com>
6184 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6186 2013-05-23 Pedro Alves <palves@redhat.com>
6188 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6189 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6190 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6191 Only define if HAVE_SOCKETS is defined.
6192 * configure.ac: Check for sys/socket.h.
6193 * config.in, configure: Regenerate.
6195 2013-05-23 Pedro Alves <palves@redhat.com>
6197 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6198 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6199 printing uint32_t variables.
6201 2013-05-23 Pedro Alves <palves@redhat.com>
6203 * NEWS: Mention GDBserver range stepping support.
6205 2013-05-23 Yao Qi <yao@codesourcery.com>
6206 Pedro Alves <palves@redhat.com>
6208 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6210 * infcmd.c (step_once, until_next_command): Enable range stepping.
6211 * infrun.c (displaced_step_prepare): Disable range stepping.
6212 (resume): Disable range stepping if stepping over a breakpoint or
6213 we have software watchpoints. If range stepping is enabled,
6214 assert the thread is in the stepping range.
6215 (clear_proceed_status_thread): Clear may_range_step.
6216 (handle_inferior_event): Disable range stepping as soon as we know
6217 the thread that hit the event. Re-enable it whenever we're going
6218 to step with a step range.
6219 * remote.c (struct vCont_action_support) <r>: New field.
6220 (use_range_stepping): New global.
6221 (remote_vcont_probe): Handle 'r' action.
6222 (append_resumption): Append an 'r' action if the thread may range
6224 (show_range_stepping): New function.
6225 (set_range_stepping): New function.
6226 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6227 'set range-stepping' and 'show range-stepping' commands.
6228 * NEWS: Mention range stepping, the new vCont;r action, and the
6229 new "set/show range-stepping" commands.
6231 2013-05-23 Yao Qi <yao@codesourcery.com>
6232 Pedro Alves <palves@redhat.com>
6234 * remote.c (struct vCont_action_support): New struct.
6235 (struct remote_state) <support_vCont_t>: Remove field.
6236 <vCont_actions_support>: New field.
6237 (remote_vcont_probe, remote_stop_ns): Update.
6239 2013-05-23 Yao Qi <yao@codesourcery.com>
6240 Pedro Alves <palves@redhat.com>
6242 * gdbthread.h (pc_in_thread_step_range): New declaration.
6243 * thread.c (pc_in_thread_step_range): New function.
6244 * infrun.c (handle_inferior_event): Use it.
6246 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6248 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6251 2013-05-22 Keith Seitz <keiths@redhat.com>
6253 * ada-lang.c (is_known_support_routine): Add explicit free of
6254 'func_name' from find_frame_funname.
6255 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6256 for func_name from find_frame_funname.
6257 * python/py-frame.c (frapy_name): Add explicit free of
6258 'name' from find_frame_funname.
6259 * stack.c (find_frame_funname): Add comment explaining that
6260 funcp must be freed by the caller.
6261 Return copy of symbol names instead of pointers.
6262 (print_frame): Add a cleanup for 'funname' from
6264 * stack.h (find_frame_funname): Remove "const" from
6265 'funname' parameter.
6267 2013-05-22 Tom Tromey <tromey@redhat.com>
6270 * c-valprint.c (c_value_print): Use value_addr for
6271 references. Convert back to reference type with value_ref.
6273 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6275 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6276 unloaded DLL, it will be done by handle_solib_event. See
6277 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6280 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6282 * ui-out.c: Create typedef ui_out_level_p and define vector
6283 operations for that type.
6284 (struct ui_out): Use a vector instead of an array.
6285 (current_level): Return level from a vector.
6286 (push_level): Create a level in a vector.
6287 (pop_level): Delete a level in a vector.
6288 (ui_out_new): Create initial level zero level, and store in a
6290 (ui_out_destroy): Add vector cleanup.
6292 2013-05-22 Pedro Alves <palves@redhat.com>
6294 * python/python-internal.h (gdb_Py_DECREF): Tag with
6295 "ARI: editCase function".
6297 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6299 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6301 2013-05-21 Pedro Alves <palves@redhat.com>
6303 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6304 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6305 * python/py-utils.c (py_decref): Don't check for NULL before
6308 2013-05-21 Pedro Alves <palves@redhat.com>
6310 * python/py-utils.c (py_decref): Remove extra braces.
6311 (gdb_pymodule_addobject): Remove extra braces.
6312 * python-internal.h (gdb_Py_DECREF): New static inline function.
6313 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6315 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6317 * breakpoints.c (detach_breakpoints): Do not
6318 detach breakpoints locations with loc_type bp_loc_other.
6320 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6322 Workaround Python 2.6.
6323 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6326 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 Code cleanup: constification.
6329 * solib.c (solib_ops): Make return type and ops variable type const.
6330 (set_solib_ops): Make the new_ops parameter and ops variable const.
6331 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6332 (solib_add, solib_keep_data_in_core, clear_solib)
6333 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6334 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6336 * solib.h (set_solib_ops): Make the new_ops parameter const.
6338 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6340 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6342 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6343 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6344 (SYSTEM_GDBINIT_FILES): New variables.
6345 (all): Add stamp-system-gdbinit.
6346 (stamp-system-gdbinit): New rule.
6347 (clean-system-gdbinit, install-system-gdbinit)
6348 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6349 (install-only): Add dependency on install-system-gdbinit.
6350 (uninstall): Add dependency on uninstall-system-gdbinit.
6351 (clean): Add dependency on clean-system-gdbinit.
6352 * system-gdbinit/elinos.py: New file.
6353 * system-gdbinit/wrs-linux.py: New file.
6355 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6357 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6359 2013-05-21 Hui Zhu <hui@codesourcery.com>
6361 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6362 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6363 * mi/mi-cmd-break.c (ctype.h): New include.
6364 (gdb_obstack.h): New include.
6365 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6366 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6367 (mi_cmd_dprintf_insert): New.
6368 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6369 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6371 2013-05-20 Tom Tromey <tromey@redhat.com>
6373 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6375 2013-05-20 Tom Tromey <tromey@redhat.com>
6377 * python/py-value.c (valpy_get_dynamic_type): Simplify
6378 dynamic_type assignment. Use Py_XINCREF.
6380 2013-05-20 Tom Tromey <tromey@redhat.com>
6382 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6384 2013-05-20 Tom Tromey <tromey@redhat.com>
6386 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6387 (gdbpy_selected_frame): Move object-construction code
6390 2013-05-20 Tom Tromey <tromey@redhat.com>
6392 * python/py-arch.c (gdbpy_initialize_arch): Use
6393 gdb_pymodule_addobject.
6394 * python/py-block.c (gdbpy_initialize_blocks): Use
6395 gdb_pymodule_addobject.
6396 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6397 gdb_pymodule_addobject.
6398 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6399 gdb_pymodule_addobject.
6400 * python/py-event.c (gdbpy_initialize_event_generic): Use
6401 gdb_pymodule_addobject.
6402 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6403 gdb_pymodule_addobject.
6404 * python/py-evts.c (add_new_registry): Use
6405 gdb_pymodule_addobject.
6406 (gdbpy_initialize_py_events): Likewise.
6407 * python/py-finishbreakpoint.c
6408 (gdbpy_initialize_finishbreakpoints): Use
6409 gdb_pymodule_addobject.
6410 * python/py-frame.c (gdbpy_initialize_frames): Use
6411 gdb_pymodule_addobject.
6412 * python/py-function.c (gdbpy_initialize_functions): Use
6413 gdb_pymodule_addobject.
6414 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6415 gdb_pymodule_addobject.
6416 * python/py-infthread.c (gdbpy_initialize_thread): Use
6417 gdb_pymodule_addobject.
6418 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6419 gdb_pymodule_addobject.
6420 * python/py-param.c (gdbpy_initialize_parameters): Use
6421 gdb_pymodule_addobject.
6422 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6423 gdb_pymodule_addobject.
6424 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6425 gdb_pymodule_addobject.
6426 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6427 gdb_pymodule_addobject.
6428 * python/py-type.c (gdbpy_initialize_types): Use
6429 gdb_pymodule_addobject.
6430 * python/py-utils.c (gdb_pymodule_addobject): New function.
6431 * python/py-value.c (gdbpy_initialize_values): Use
6432 gdb_pymodule_addobject.
6433 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6434 * python/python.c (_initialize_python): Use
6435 gdb_pymodule_addobject.
6437 2013-05-20 Tom Tromey <tromey@redhat.com>
6439 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6440 * python/py-param.c (get_set_value, get_show_value): Use
6442 * python/python.c (start_type_printers, apply_type_printers):
6443 Use explicit decrefs.
6445 2013-05-20 Tom Tromey <tromey@redhat.com>
6447 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6450 2013-05-20 Tom Tromey <tromey@redhat.com>
6452 * python/python.c (gdbpy_run_events): Decref the result
6453 of PyObject_CallObject.
6455 2013-05-20 Tom Tromey <tromey@redhat.com>
6457 * python/py-symtab.c (set_sal): Use
6458 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6459 (symtab_and_line_to_sal_object): Update.
6461 2013-05-20 Tom Tromey <tromey@redhat.com>
6463 * python/py-param.c (compute_enum_values): Decref 'item'.
6465 2013-05-20 Tom Tromey <tromey@redhat.com>
6467 * mi/mi-main.c: Include python-internal.h.
6468 (mi_cmd_list_features): Check gdb_python_initialized.
6469 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6470 (python_inferior_exit, python_new_objfile, add_thread_object)
6471 (delete_thread_object, py_free_inferior): Check
6472 gdb_python_initialized.
6473 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6474 gdb_python_initialized.
6475 * python/py-type.c (save_objfile_types): Check
6476 gdb_python_initialized.
6477 * python/python-internal.h (gdb_python_initialized): Declare.
6478 * python/python.c (ensure_python_env): Throw exception if
6479 Python not initialized.
6480 (before_prompt_hook, source_python_script_for_objfile)
6481 (start_type_printers, apply_type_printers,
6482 free_type_printers): Check gdb_python_initialized.
6483 * varobj.c (varobj_get_display_hint)
6484 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6485 (install_new_value_visualizer, varobj_set_visualizer)
6486 (value_get_print_value): Check gdb_python_initialized.
6488 2013-05-20 Tom Tromey <tromey@redhat.com>
6490 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6492 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6493 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6495 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6497 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6499 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6501 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6502 init function to return 'int'.
6503 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6504 Return 'int'. Check errors.
6505 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6507 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6508 Return 'int'. Check errors.
6509 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6511 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6513 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6515 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6517 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6519 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6521 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6523 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6525 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6527 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6529 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6531 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6533 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6535 * python/python-internal.h (gdbpy_initialize_auto_load,
6536 gdbpy_initialize_values, gdbpy_initialize_frames,
6537 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6538 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6539 gdbpy_initialize_blocks, gdbpy_initialize_types,
6540 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6541 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6542 gdbpy_initialize_finishbreakpoints,
6543 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6544 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6545 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6546 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6547 gdbpy_initialize_signal_event,
6548 gdbpy_initialize_breakpoint_event,
6549 gdbpy_initialize_continue_event,
6550 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6551 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6552 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6553 * python/python.c (gdb_python_initialized): New global.
6554 (gdbpy_initialize_events): Return 'int'. Check errors.
6555 (_initialize_python): Check errors. Set
6556 gdb_python_initialized.
6558 2013-05-20 Tom Tromey <tromey@redhat.com>
6560 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6561 Decref the reslut of PyObject_CallMethod.
6563 2013-05-20 Tom Tromey <tromey@redhat.com>
6565 * python/py-event.c (gdbpy_initialize_event_generic): Return
6566 early if PyType_Ready fails.
6568 2013-05-20 Tom Tromey <tromey@redhat.com>
6570 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6571 as 'default' in the switch.
6573 2013-05-20 Tom Tromey <tromey@redhat.com>
6575 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6576 get_addr_from_python calls out of TRY_CATCH.
6577 (infpy_write_memory, infpy_search_memory): Likewise.
6578 * python/py-utils.c (get_addr_from_python): Return negative
6579 value on error. Use TRY_CATCH.
6580 * python/python-internal.h (get_addr_from_python): Use
6581 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6583 2013-05-20 Tom Tromey <tromey@redhat.com>
6585 * python/py-event.c (evpy_emit_event): Decref the
6586 result of PyObject_CallFunctionObjArgs.
6588 2013-05-20 Tom Tromey <tromey@redhat.com>
6590 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6593 2013-05-20 Tom Tromey <tromey@redhat.com>
6595 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6597 2013-05-20 Tom Tromey <tromey@redhat.com>
6599 * python/py-event.h (gdbpy_initialize_event_generic): Use
6600 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6601 * python/py-evts.c (add_new_registry): Use
6602 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6603 * python/python-internal.h
6604 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6606 2013-05-20 Tom Tromey <tromey@redhat.com>
6608 * python/py-arch.c (archpy_disassemble): Update.
6609 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6610 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6611 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6612 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6614 (GDB_PY_HANDLE_EXCEPTION): Update.
6615 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6617 2013-05-20 Tom Tromey <tromey@redhat.com>
6619 * python/python-internal.h (events_object_type): Remove.
6621 2013-05-20 Tom Tromey <tromey@redhat.com>
6623 * python/py-event.h (evpy_emit_event): Use
6624 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6625 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6628 2013-05-20 Tom Tromey <tromey@redhat.com>
6630 * py-evtregistry.c (create_event_object): Decref
6631 eventregistry_object if PyList_New fails.
6633 2013-05-20 Tom Tromey <tromey@redhat.com>
6635 * py-cmd.c (gdbpy_string_to_argv): Check result of
6638 2013-05-20 Tom Tromey <tromey@redhat.com>
6640 * python/python.c (before_prompt_hook): Add cleanup to
6643 2013-05-20 Tom Tromey <tromey@redhat.com>
6645 * python/py-function.c (fnpy_init): Decref result of
6646 PyObject_GetAttrString.
6648 2013-05-20 Tom Tromey <tromey@redhat.com>
6650 * python/py-threadevent.c (get_event_thread): Use
6651 CPYCHECKER_RETURNS_BORROWED_REF.
6652 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6654 (pspace_to_pspace_object, objfile_to_objfile_object)
6655 (find_thread_object): Use it.
6657 2013-05-20 Tom Tromey <tromey@redhat.com>
6659 * python/py-arch.c (arch_object_type): Use
6660 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6661 * python/py-block.c (block_syms_iterator_object_type):
6662 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6663 * python/py-bpevent.c (breakpoint_event_object_type):
6664 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6665 * python/py-cmd.c (cmdpy_object_type): Use
6666 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6667 * python/py-continueevent.c (continue_event_object_type):
6668 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6669 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6670 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6671 * python/py-events.h (thread_event_object_type):
6672 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6673 * python/py-evtregistry.c (eventregistry_object_type): Use
6674 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6675 * python/py-exitedevent.c (exited_event_object_type):
6676 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6677 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6678 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6679 * python/py-function.c (fnpy_object_type): Use
6680 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6681 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6682 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6683 * python/py-infthread.c (thread_object_type): Use
6684 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6685 * python/py-lazy-string.c (lazy_string_object_type):
6686 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6687 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6688 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6689 * python/py-objfile.c (objfile_object_type): Use
6690 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6691 * python/py-param.c (parmpy_object_type):
6692 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6693 * python/py-progspace.c (pspace_object_type):
6694 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6695 * python/py-signalevent.c (signal_event_object_type):
6696 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6697 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6698 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6699 * python/py-type.c (type_object_type, field_object_type)
6700 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6701 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6703 (value_object_type, block_object_type, symbol_object_type)
6704 (event_object_type, stop_event_object_type, breakpoint_object_type)
6705 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6707 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6709 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6710 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6712 2013-05-20 Doug Evans <dje@google.com>
6714 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6716 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6717 reading_dwo_directly.
6718 (struct signatured_type): New member dwo_unit.
6719 (struct die_reader_specs): New member comp_dir.
6720 (create_signatured_type_table_from_index): Use malloc for
6721 all_type_units instead of objfile's obstack.
6722 (create_all_type_units): Ditto.
6723 (fill_in_sig_entry_from_dwo_entry): New function.
6724 (add_type_unit): New function.
6725 (lookup_dwo_signatured_type): New function.
6726 (lookup_dwp_signatured_type): New function.
6727 (lookup_signatured_type): New arg cu. All callers updated.
6728 (init_cu_die_reader): Initialize comp_dir.
6729 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6730 Change assert of matching type signatures to call error on mismatch.
6731 (lookup_dwo_unit): Add assert.
6732 (init_tu_and_read_dwo_dies): New function.
6733 (init_cutu_and_read_dies): Call it.
6734 (build_type_unit_groups): Handle case of no type unit groups created.
6735 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6736 (lookup_dwo_cutu): Tweak complaint.
6737 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6738 (dwarf2_per_objfile_free): Free all_type_units.
6740 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6742 * windows-nat.c (handle_unload_dll): Add missing empty line.
6744 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6746 * dwarf2read.c (prototyped_function_p): New function.
6747 (read_subroutine_type): Use it.
6749 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6751 * rs6000-aix-tdep.c: De-indent some example code provided
6754 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6756 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6757 region is ok for a hardware watchpoint using the new ptrace interface
6760 2013-05-17 Doug Evans <dje@google.com>
6762 * NEWS: Mention new maintenance commands check-symtabs, and
6763 expand-symtabs, and renamed check-psymtabs.
6764 * psymtab.c (maintenance_check_psymtabs): Renamed from
6765 maintenance_check_symtabs. Only process already-expanded symbol
6767 (_initialize_psymtab): Update.
6768 * symmisc.c (maintenance_check_symtabs): New function.
6769 (maintenance_expand_name_matcher): New function
6770 (maintenance_expand_file_matcher): New function
6771 (maintenance_expand_symtabs): New function.
6772 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6775 2013-05-17 Tom Tromey <tromey@redhat.com>
6777 * python/py-inferior.c (infpy_read_memory): Don't call
6778 PyErr_SetString if PyObject_New fails.
6779 * python/py-frame.c (frame_info_to_frame_object): Don't call
6780 PyErr_SetString if PyObject_New fails.
6782 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6784 * acinclude.m4: Add check for dlopen in libdl.
6785 * configure.ac: Ditto.
6786 * configure: Regenerate.
6788 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6790 * frame.c (frame_stash): Convert to htab.
6791 (frame_addr_hash): New function.
6792 (frame_addr_hash_eq): New function.
6793 (frame_stash_create): Convert function to create
6795 (frame_stash_add): Convert function to add an entry to a hash
6797 (frame_stash_find): Convert function to search the hash table.
6798 (frame_stash_invalidate): Convert function to empty the hash
6800 (get_frame_id): Only add to stash if a frame_id is created.
6801 (_initialize_frame): Call frame_stash_create.
6803 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6805 * configure.ac: Ensure MIG is available when building for GNU Hurd
6807 * configure: Regenerate.
6809 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6811 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6813 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6815 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6816 all cleanups are done before returning from this function.
6818 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6820 * utils.h: #include "exceptions.h".
6821 (enum errors): Remove partial declaration.
6823 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6825 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6826 * gdbarch.h, gdbarch.c: Regenerate.
6827 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6830 * rs6000-aix-tdep.h: New file.
6831 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6832 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6834 (struct field_info, struct ld_info_desc): New types.
6835 (ld_info32_desc, ld_info64_desc): New static constants.
6836 (struct ld_info): New type.
6837 (rs6000_aix_extract_ld_info): New function.
6838 (rs6000_aix_shared_library_to_xml): Likewise.
6839 (rs6000_aix_ld_info_to_xml): Likewise.
6840 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6841 (rs6000_aix_init_osabi): Add call to
6842 set_gdbarch_core_xfer_shared_libraries_aix.
6843 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6844 Remove "xml-utils.h" include.
6845 (LdInfo): Delete typedef.
6846 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6848 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6849 Adjust code accordingly.
6850 (rs6000_core_ldinfo): Delete, folded into
6851 rs6000_aix_core_xfer_shared_libraries_aix.
6852 (rs6000_xfer_shared_library): Delete.
6853 (rs6000_xfer_shared_libraries): Reimplement.
6855 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6857 * record.c (record_goto_cmdlist): New.
6858 (cmd_record_goto): Split into this ...
6859 (cmd_record_goto_begin): ... this
6860 (cmd_record_goto_end): ... and this.
6861 (_initialize_record): Change "record goto" to prefix command.
6862 Add commands for "record goto begin" and "record goto end".
6863 Add an alias for "record goto start" to "record goto begin".
6865 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6867 * linespec.c (convert_linespec_to_sals): New comment for
6868 SOURCE_FILENAME assignment.
6870 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6872 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6875 2013-05-14 Tom Tromey <tromey@redhat.com>
6877 * eval.c (parse_and_eval_long): Make 'exp' const.
6878 * value.h (parse_and_eval_long): Update.
6880 2013-05-14 Tom Tromey <tromey@redhat.com>
6882 * ui-file.c (gdb_fopen): Make arguments const.
6883 * ui-file.h (gdb_fopen): Make arguments const.
6885 2013-05-14 Tom Tromey <tromey@redhat.com>
6887 * remote.c (remote_set_trace_notes): Make arguments const.
6888 * target.c (update_current_target): Update cast.
6889 * target.h (to_set_trace_notes): Make arguments const.
6891 2013-05-14 Tom Tromey <tromey@redhat.com>
6893 * go32-nat.c (go32_terminal_info): Make 'args' const.
6894 * inferior.h (child_terminal_info): Update.
6895 * inflow.c (child_terminal_info): Make 'args' const.
6896 * target.c (default_terminal_info): Make 'args' const.
6897 (debug_to_terminal_save_ours): Likewise.
6898 * target.h (struct target_ops) <to_terminal_info>: Make argument
6901 2013-05-13 Tom Tromey <tromey@redhat.com>
6903 * gcore.c (create_gcore_bfd): Make 'filename' const.
6904 * gcore.h (create_gcore_bfd): Make 'filename' const.
6905 * record-full.c (record_full_save): Make 'recfilename' const.
6906 * target.c (target_save_record): Make 'filename' const.
6907 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6909 (target_save_record): Likewise.
6911 2013-05-13 Tom Tromey <tromey@redhat.com>
6914 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6915 ranges section has been read.
6917 2013-05-13 Tom Tromey <tromey@redhat.com>
6920 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6921 STRUCTOP_PTR>: Return a not_lval value for
6922 EVAL_AVOID_SIDE_EFFECTS.
6923 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6924 for EVAL_AVOID_SIDE_EFFECTS.
6926 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6928 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6929 floating point registers to register type before storing
6931 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6934 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6935 Tom Tromey <tromey@redhat.com>
6937 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6939 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6941 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6942 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6943 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6944 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6946 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6947 Tom Tromey <tromey@redhat.com>
6950 * configure: Rebuild.
6951 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6954 2013-05-10 Pedro Alves <palves@redhat.com>
6956 * remote.c (_initialize_remote): Fix spelling of
6957 qXfer:traceframe-info:read packet in packet config command.
6959 2013-05-10 David Taylor <dtaylor@emc.com>
6963 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6964 "QTro" at start of packet.
6966 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6968 * solib-aix.c (solib_aix_relocate_section_addresses):
6969 For the .bss section action, apply the same offset as
6972 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6974 * solib-aix.c (solib_aix_relocate_section_addresses):
6975 Remove FIXME comment.
6977 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6980 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6981 New functions, directly copied from sparc-sol-thread.c.
6982 * sparc-sol-thread.c: Delete.
6983 * configure.ac: Remove code handling sparc-solaris-thread.c.
6984 * configure: Regenerate.
6986 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6988 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6990 (backtrace_command): Add "no-filters" option parsing.
6991 (_initialize_stack): Alter help to reflect "no-filters" option.
6992 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6993 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6994 (py-frame.o): Add target
6995 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6997 * python/python.h: Add new frame filter constants, and flag enum.
6998 (apply_frame_filter): Add definition.
6999 * python/python.c (apply_frame_filter): New non-Python
7001 * python/py-utils.c (py_xdecref): New function.
7002 (make_cleanup_py_xdecref): Ditto.
7003 * python/py-objfile.c: Declare frame_filters dictionary.
7004 (objfpy_dealloc): Add frame_filters dealloc.
7005 (objfpy_new): Initialize frame_filters attribute.
7006 (objfile_to_objfile_object): Ditto.
7007 (objfpy_get_frame_filters): New function.
7008 (objfpy_set_frame_filters): New function.
7009 * python/py-progspace.c: Declare frame_filters dictionary.
7010 (pspy_dealloc): Add frame_filters dealloc.
7011 (pspy_new): Initialize frame_filters attribute.
7012 (pspacee_to_pspace_object): Ditto.
7013 (pspy_get_frame_filters): New function.
7014 (pspy_set_frame_filters): New function.
7015 * python/py-framefilter.c: New file.
7016 * python/lib/gdb/command/frame_filters.py: New file.
7017 * python/lib/gdb/frames.py: New file.
7018 * python/lib/gdb/__init__.py: Initialize global frame_filters
7020 * python/lib/gdb/FrameDecorator.py: New file.
7021 * python/lib/gdb/FrameIterator.py: New file.
7022 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7023 * mi/mi-cmds.h: Declare.
7024 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7025 --no-frame-filter logic, and Python frame filter logic.
7026 (stack_enable_frame_filters): New function.
7027 (parse_no_frame_option): Ditto.
7028 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7030 (mi_cmd_stack_list_locals): Ditto.
7031 (mi_cmd_stack_list_args): Ditto.
7032 (mi_cmd_stack_list_variables): Ditto.
7033 * NEWS: Add frame filter note.
7035 2013-05-09 Doug Evans <dje@google.com>
7037 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7038 All callers updated.
7039 (syms_from_objfile): Ditto. Make static.
7040 (symbol_file_add_with_addrs): Renamed from
7041 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7042 num_offsets. All callers updated.
7043 * symfile.h (syms_from_objfile): Delete.
7045 * symfile.c (decrement_reading_symtab): Add assert.
7046 (increment_reading_symtab): Ditto.
7048 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7050 * source.c (forward_search_command): Replace call to getc
7052 (reverse_search_command): Likewise.
7054 2013-05-08 Doug Evans <dje@google.com>
7056 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7059 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7061 * sol-thread.c (info_cb): Factorize the code a little.
7063 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7065 * sol-thread.c (info_cb): Rework the output of the "maintenance
7066 info sol-threads" command a bit.
7068 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7070 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7071 Replace ti.ti_startfunc by ti.ti_pc.
7073 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7075 * solib-aix.c (solib_aix_free_library_list): New function
7076 for the case where HAVE_LIBEXPAT is not defined.
7078 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7080 PR breakpoints/15413:
7081 * breakpoint.c (condition_completer): Simplify the code to
7082 disconsider multiple locations of breakpoints when completing the
7083 "condition" command.
7085 2013-05-07 Pierre Muller <muller@sourceware.org>
7087 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7088 instead of <sys/wait.h>.
7090 2013-05-07 Pierre Muller <muller@sourceware.org>
7092 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7093 trailing new line from warning message.
7095 2013-05-07 Pierre Muller <muller@sourceware.org>
7097 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7098 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7100 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7102 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7103 error message (ARI fix).
7105 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7107 * features/library-list-aix.dtd: Replace library-list by
7109 * rs6000-nat.c: Replace library-list by library-list-aix
7111 * solib-aix.c: Likewise.
7113 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7115 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7116 Renames TARGET_OBJECT_AIX_LIBRARIES.
7117 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7118 TARGET_OBJECT_LIBRARIES_AIX throughout.
7119 * solib-aix.c: Likwise.
7121 2013-05-07 Yao Qi <yao@codesourcery.com>
7123 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7124 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7126 2013-05-07 Yao Qi <yao@codesourcery.com>
7128 * solib-dsbt.c (enable_break): Declare.
7129 (dsbt_current_sos): Remove call to enable_break2.
7130 (enable_break2): Rename to enable_break. Set solib breakpoint
7131 on '_dl_debug_state'.
7132 (enable_break): Remove.
7134 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7136 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7137 debug state prior to replicating existing hardware watchpoints or
7140 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7142 * gcore.c (gcore_create_callback): Ignore sections with
7143 separate_debug_objfile_backlink != NULL.
7145 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7146 Andrew Jenner <andrew@codesourcery.com>
7147 Chung-Lin Tang <cltang@codesourcery.com>
7148 Julian Brown <julian@codesourcery.com>
7150 Based on the nios2-elf port from Altera Corporation.
7152 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7154 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7155 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7156 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7157 * nios2-tdep.h: New.
7158 * nios2-tdep.c: New.
7159 * nios2-linux-tdep.c: New.
7160 * features/Makefile (WHICH): Add nios2-linux.
7161 (nios2-linux-expedite): Set.
7162 * features/nios2-cpu.xml: New.
7163 * features/nios2.xml: New.
7164 * features/nios2-linux.xml: New.
7165 * features/nios2.c: New (autogenerated).
7166 * features/nios2-linux.c: New (autogenerated).
7167 * regformats/nios2-linux.dat: New (autogenerated).
7168 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7171 2013-05-06 Doug Evans <dje@google.com>
7173 * symfile.c: Whitespace cleanup.
7175 * solist.h (struct target_so_ops): New member clear_so.
7176 * solib-svr4.c (svr4_clear_so): New function.
7177 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7178 * solib.c (clear_so): Renamed from free_so_symbols.
7179 All callers updated. Call target clear_so if it exists.
7181 2013-05-06 Tom Tromey <tromey@redhat.com>
7183 * ada-lang.c (ada_value_primitive_packed_val): Don't
7185 * value.c (set_value_parent): Incref the new parent and decref
7187 (value_copy, value_primitive_field): Use set_value_parent.
7189 2013-05-06 Tom Tromey <tromey@redhat.com>
7191 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7192 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7194 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7195 * dwarf2read.c (write_constant_as_bytes)
7196 (dwarf2_fetch_constant_bytes): New functions.
7198 2013-05-06 Tom Tromey <tromey@redhat.com>
7200 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7202 (dwarf2_const_value_attr): Update.
7204 2013-05-06 Tom Tromey <tromey@redhat.com>
7206 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7207 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7208 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7211 2013-05-06 Tom Tromey <tromey@redhat.com>
7213 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7216 2013-05-06 Doug Evans <dje@google.com>
7218 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7219 * stabsread.h (process_one_symbol): Update declaration.
7220 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7221 * elfread.c (elf_symfile_relocate_probe): Ditto.
7222 * psymtab.c (relocate_psymtabs): Ditto.
7223 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7224 (objfile_relocate): Ditto.
7225 * objfiles.h (objfile_relocate): Update declaration.
7226 * symfile.c (relative_addr_info_to_section_offsets): Constify
7228 (default_symfile_offsets): Ditto.
7229 (syms_from_objfile_1): Constify offsets parameter.
7230 (syms_from_objfile): Ditto.
7231 (symbol_file_add_with_addrs_or_offsets): Ditto.
7232 (symfile_map_offsets_to_segments): Constify data parameter.
7233 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7234 delta parameters of member relocate.
7235 (struct sym_probe_fns): Constify new_offsets,
7236 delta parameters of member sym_relocate_probe.
7237 (struct sym_fns): Constify section_addr_info parameter of member
7239 (relative_addr_info_to_section_offsets): Update declaration.
7240 (default_symfile_offsets): Ditto.
7241 (syms_from_objfile): Ditto.
7242 (symfile_map_offsets_to_segments): Ditto.
7244 * symfile.c (syms_from_objfile_1): Use correct section count when
7245 objfile->sf == NULL.
7247 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7249 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7251 2013-05-06 Doug Evans <dje@google.com>
7253 * psympriv.h (struct partial_symtab): Augment comment for member
7256 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7258 Reimplement shared library support on ppc-aix...
7259 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7260 * features/library-list-aix.dtd: New file.
7261 * solib-aix.h, solib-aix.c: New file.
7262 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7263 (rs6000_find_toc_address_hook): Delete.
7264 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7265 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7266 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7268 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7269 (vmap_symtab, fixup_breakpoints): Delete.
7270 (rs6000_xfer_shared_libraries): New function.
7271 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7272 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7273 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7274 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7275 (rs6000_xfer_shared_library): New function.
7276 (find_toc_address): Delete.
7277 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7278 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7279 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7280 before creating minimal symbol. Adjust function description
7282 (scan_xcoff_symtab): Replace call to
7283 prim_record_minimal_symbol_and_info by call to
7284 record_minimal_symbol.
7285 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7286 around default_symfile_offsets.
7287 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7288 powerpc-aix targets.
7289 * config/rs6000/nm-rs6000.h: Delete.
7290 * config/powerpc/aix.mh (NAT_FILE): Delete.
7291 (NATDEPFILES): Remove xcoffsolib.o.
7292 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7293 (ALL_TARGET_OBS): Add solib-aix.o.
7294 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7295 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7296 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7297 * xcoffsolib.h, xcoffsolib.c: Delete.
7299 * solib.c (reload_shared_libraries): Remove reference to
7300 SOLIB_CREATE_INFERIOR_HOOK.
7301 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7302 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7303 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7305 * corelow.c (deprecated_core_resize_section_table): Delete.
7306 * exec.c: Remove include of xcoffsolib.h".
7307 (map_vmap, vmap): Delete.
7308 (exec_close_1): Remove references to vmap.
7309 (exec_file_attach): Remove vmap handling code, and reference
7310 to DEPRECATED_IBM6000_TARGET.
7311 (bfdsec_to_vmap): Delete.
7312 (exec_files_info): Remove block of code handling VMAP.
7313 * infcmd.c (post_create_inferior): Remove reference to
7314 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7315 * infrun.c (follow_exec): Remove reference to
7316 SOLIB_CREATE_INFERIOR_HOOK.
7317 * stack.c (print_frame): Remove reference to PC_SOLIB.
7318 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7319 (dsbt_relocate_main_executable): Likewise.
7320 * solib-frv.c (frv_current_sos): Likewise.
7322 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7324 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7325 to target_write_memory and target_read_memory.
7327 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7329 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7330 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7332 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7334 * darwin-nat.c: Replace all "%x" instances in format strings
7335 into "0x%x" throughout.
7337 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7339 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7340 gdb_assert by call to MACH_CHECK_ERROR.
7341 (darwin_attach_pid): Raise an error rather than a failed
7342 assertion when various system calls failed. Report a warning
7343 instead of raising a failed assertion when PREV_NOT is not NULL
7344 after call to mach_port_request_notification.
7345 (darwin_ptrace_me): Raise an error rather than a failed
7346 assertion when read returns nonzero.
7348 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7350 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7352 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7354 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7356 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7358 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7359 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7360 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7361 a stale cleanup. Fix double free of NAME.
7363 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7365 * windows-nat.c (windows_delete_thread): Accept an additional
7366 argument, the thread's exit code, and announce thread death when
7367 print_thread_events is non-zero and we are deleting a thread that
7368 is not the main thread.
7369 (get_windows_debug_event): Pass thread exit code to
7370 windows_delete_thread.
7372 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7374 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7375 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7376 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7377 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7378 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7379 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7380 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7381 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7382 (gdbarch_tdep): New struct.
7383 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7385 (v850e3v5_register_name): New function.
7386 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7387 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7388 code handling the struct return conventions for the RH850 ABI.
7390 (v850_eight_byte_align_p): New function.
7391 (v850_push_call_dummy): Push structs by value, not by reference
7392 for the RH850 ABI. Add support for eight byte alignment.
7393 (v850_dbtrap_breakpoint_from_pc): New function.
7394 (v850_gdbarch_init): Add ABI detection code. Register
7395 v850e3v5_register_name for the v850e3v5 architecture. Set the
7396 number of registers for v850e3v5. Register
7397 v850_dbtrap_breakpoint_from_pc as appropriate.
7398 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7400 2013-05-03 Doug Evans <dje@google.com>
7402 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7403 of bfd_count_sections.
7404 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7405 * symfile.c (default_symfile_offsets): Ditto.
7406 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7407 one entry, not bfd_count_sections entries.
7409 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7411 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7412 `save' and `restore' register groups. Don't include SPL
7413 or SPH in these groups.
7414 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7415 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7416 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7417 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7418 dwarf2_append_unwinders().
7420 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7422 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7423 ignore SIGINT and SIGTRAP in case these internal signals are
7426 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7428 * darwin-nat.c (darwin_read_write_inferior): Change types
7429 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7430 of copy_count to "mach_msg_type_number_t".
7431 (darwin_read_dyld_info): Change type of parameter
7432 rdaddr to "gdb_byte *".
7434 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7436 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7437 of &info->load_map from "char *" to "gdb_byte *".
7439 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7441 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7442 from "char *" to "gdb_byte *".
7443 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7445 2013-04-30 Doug Evans <dje@google.com>
7447 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7448 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7449 DWO stub. If DWO isn't found, just use stub.
7450 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7452 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7453 calling init_cutu_and_read_dies.
7455 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7457 * target-descriptions.c (maint_print_c_tdesc_cmd):
7458 Add case to parse structures as register types and
7461 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7463 * MAINTAINERS (Write After Approval): Add myself to the list.
7465 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7467 * sol-thread.c (rw_common): Change type of parameter "buf"
7469 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7470 rw_common to "gdb_byte *" instead of "char *".
7472 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7474 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7475 of local variable msym to const struct bound_minimal_symbol.
7476 Adjust use accordingly.
7477 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7479 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7481 * i386gnu-nat.c (CREG_OFFSET): New macro.
7482 (creg_offset): New array.
7483 (CREG_ADDR): Use creg_offset instead of reg_offset.
7485 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7487 * mep-tdep.c (mep_write_pc): Delete.
7488 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7489 Add call to set_gdbarch_pc_regnum.
7491 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7493 * common/filestuff.c: Replace #include <dirent.h> by
7494 #include "gdb_dirent.h".
7496 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7498 * common/filestuff.c: Replace #include <sys/stat.h> by
7499 #include "gdb_stat.h".
7501 2013-04-29 Pierre Muller <muller@sourceware.org>
7503 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7504 editCase function rule.
7505 (get_DW_AT_signature_type): Likewise.
7507 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7509 * m32r-tdep.c (m32r_write_pc): Delete.
7510 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7511 Add call to set_gdbarch_pc_regnum.
7513 2013-04-29 Pierre Muller <muller@sourceware.org>
7515 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7517 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7519 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7521 2013-04-28 Yao Qi <yao@codesourcery.com>
7523 * solib-dsbt.c (fetch_loadmap): Re-indent.
7524 (displacement_from_map, enable_break2): Likewise.
7525 (dsbt_relocate_section_addresses): Likewise.
7527 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7531 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7534 * dwarf2read.c (process_full_comp_unit): Always create a static
7537 2013-04-25 Hui Zhu <hui@codesourcery.com>
7539 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7540 to loc->cmd_bytecode.
7542 2013-04-24 Doug Evans <dje@google.com>
7544 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7546 2013-04-22 Keith Seitz <keiths@redhat.com>
7548 * tracepoint.c (trace_save): Call the writer's start method.
7550 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7553 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7556 2013-04-23 Tom Tromey <tromey@redhat.com>
7558 * common/filestuff.c: Check USE_WIN32API before including
7560 (HAVE_F_GETFD): New define.
7561 (mark_cloexec): Check HAVE_F_GETFD.
7562 (gdb_open_cloexec): Change 'mode' to unsigned long.
7563 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7564 (gdb_pipe_cloexec): Check HAVE_PIPE.
7565 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7568 2013-04-23 Hui Zhu <hui@codesourcery.com>
7571 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7573 2013-04-23 Hui Zhu <hui@codesourcery.com>
7576 * breakpoint.c (dprintf_print_recreate): New.
7577 (save_breakpoints): Let it not save dprintf commands.
7578 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7580 2013-04-22 Tom Tromey <tromey@redhat.com>
7583 * Makefile.in (SFILES): Add filestuff.c
7584 (COMMON_OBS): Add filestuff.o.
7585 (filestuff.o): New target.
7586 * auto-load.c (auto_load_objfile_script_1): Use
7588 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7589 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7590 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7591 * common/agent.c (gdb_connect_sync_socket): Use
7593 * common/filestuff.c: New file.
7594 * common/filestuff.h: New file.
7595 * common/linux-osdata.c (linux_common_core_of_thread)
7596 (command_from_pid, commandline_from_pid, print_source_lines)
7597 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7598 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7600 * common/linux-procfs.c (linux_proc_get_int)
7601 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7602 * config.in, configure: Rebuild.
7603 * configure.ac: Don't check for sys/socket.h. Check for
7605 * corelow.c (core_open): Use gdb_open_cloexec.
7606 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7607 * fork-child.c (fork_inferior): Call close_most_fds.
7608 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7609 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7610 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7611 Use gdb_fopen_cloexec.
7612 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7614 (linux_async_pipe): Use gdb_pipe_cloexec.
7615 * remote-fileio.c (remote_fileio_func_open): Use
7617 * remote.c (remote_file_put, remote_file_get): Use
7619 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7621 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7622 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7623 * solib.c (solib_find): Use gdb_open_cloexec.
7624 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7625 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7626 (tfile_open): Use gdb_open_cloexec.
7627 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7628 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7629 * xml-support.c (xml_fetch_content_from_file): Use
7631 * main.c (captured_main): Call notice_open_fds.
7633 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7635 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7636 'char *' to 'gdb_byte *'.
7637 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7640 2013-04-22 Yao Qi <yao@codesourcery.com>
7642 * infrun.c: Fix typo in comment.
7644 2013-04-22 Andrew Haley <aph@redhat.com>
7646 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7649 2013-04-20 Yao Qi <yao@codesourcery.com>
7651 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7652 'char *' to 'gdb_byte *'. Cast the return value of
7653 'bt_ctf_get_char_array' to 'gdb_byte *'.
7655 2013-04-19 Pedro Alves <palves@redhat.com>
7657 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7659 * configure: Regenerate.
7661 2013-04-19 Pedro Alves <palves@redhat.com>
7663 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7666 2013-04-19 Pedro Alves <palves@redhat.com>
7668 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7669 Change type of 'myaddr' parameter to gdb_byte pointer.
7670 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7671 to 'long long' pointer instead of to 'unsigned long long'.
7672 (monitor_write_memory_block, monitor_read_memory_single)
7673 (monitor_read_memory): Change type of 'myaddr' parameter to
7676 2013-04-19 Pedro Alves <palves@redhat.com>
7678 * record.c (validate_history_size): Make parameter 'setting'
7681 2013-04-19 Pedro Alves <palves@redhat.com>
7683 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7686 2013-04-19 Pedro Alves <palves@redhat.com>
7688 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7691 2013-04-19 Pedro Alves <palves@redhat.com>
7693 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7694 * ada-tasks.c (read_fat_string_value): Likewise.
7696 2013-04-19 Pedro Alves <palves@redhat.com>
7698 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7699 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7700 'offset', and adjust.
7702 2013-04-19 Pedro Alves <palves@redhat.com>
7704 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7705 (read_index_from_section): Add cast to 'char *'.
7707 2013-04-19 Pedro Alves <palves@redhat.com>
7709 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7711 2013-04-19 Pedro Alves <palves@redhat.com>
7713 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7715 2013-04-19 Pedro Alves <palves@redhat.com>
7717 * record-full.c (record_full_get_bookmark): Change local 'ret'
7718 type to char * and add cast to gdb_byte *.
7719 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7721 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7723 2013-04-19 Pedro Alves <palves@redhat.com>
7725 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7726 * python/py-prettyprint.c (print_string_repr): Change type of
7727 'output' local to char *. Add cast to gdb_byte * in
7728 LA_PRINT_STRING call.
7729 (print_children): Change type of 'output' local to char *.
7730 * python/py-value.c (valpy_string): Add cast to const char * in
7731 PyUnicode_Decode call.
7733 2013-04-19 Pedro Alves <palves@redhat.com>
7735 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7736 and change its type to 'const char *'. Adjust.
7737 (mips_send_packet): Add cast to 'char *', and remove cast to
7739 (mips_receive_packet): Remove cast to 'unsigned char *'.
7740 (mips_load_srec): Use bfd_byte.
7741 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7742 (pmon_checkset): Make 'value' parameter unsigned.
7744 2013-04-19 Pedro Alves <palves@redhat.com>
7746 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7748 2013-04-19 Pedro Alves <palves@redhat.com>
7750 * remote.c (remote_write_bytes_aux, compare_sections_command)
7752 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7753 (remote_hostio_readlink, remote_bfd_iovec_pread)
7754 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7755 binary buffer, and char when buffer is used as string.
7756 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7757 (trace_save, tfile_open, traceframe_walk_blocks)
7758 (tfile_fetch_registers): Likewise.
7760 2013-04-19 Pedro Alves <palves@redhat.com>
7762 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7763 buffer and size_t size. Adjust.
7764 * ser-base.h (ser_base_write): Adjust.
7765 * ser-go32.c (cnts): Change type to size_t.
7766 (dos_write): Change prototype -- take 'void *'
7767 buffer and size_t size. Adjust.
7768 (dos_info): Print elements of 'cnts' as unsigned long.
7769 * serial.c (serial_write): Likewise.
7770 * serial.h (serial_write): Adjust.
7771 (struct serial_ops) <write>: Change prototype -- take 'void *'
7772 buffer and size_t size. Adjust.
7774 2013-04-19 Pedro Alves <palves@redhat.com>
7776 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7778 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7780 2013-04-19 Pedro Alves <palves@redhat.com>
7782 * alpha-tdep.c (alpha_extract_return_value): Use
7783 regcache_cooked_read_unsigned to read 'v0'.
7785 2013-04-19 Pedro Alves <palves@redhat.com>
7787 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7788 parameters 'at', 'as' and 'offset' to uint32_t.
7790 2013-04-19 Pedro Alves <palves@redhat.com>
7792 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7793 'is64' to signed 'int'.
7795 2013-04-19 Pedro Alves <palves@redhat.com>
7797 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7800 2013-04-19 Pedro Alves <palves@redhat.com>
7802 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7803 'insnbuf' buffer type to unsigned int[].
7805 2013-04-19 Pedro Alves <palves@redhat.com>
7807 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7809 2013-04-19 Pedro Alves <palves@redhat.com>
7811 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7814 2013-04-19 Pedro Alves <palves@redhat.com>
7816 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7817 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7819 * mips-tdep.c (heuristic_fence_post): Change type to int.
7820 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7822 2013-04-19 Pedro Alves <palves@redhat.com>
7824 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7825 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7826 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7828 2013-04-19 Pedro Alves <palves@redhat.com>
7830 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7831 it to get a string view of the byte buffer.
7832 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7833 type to gdb_byte *. Adjust.
7834 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7835 Change local to char *.
7836 * solib-darwin.c (find_program_interpreter): Change return type to
7838 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7839 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7840 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7841 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7842 * solib-svr4.c (find_program_interpreter): Change return type to
7844 (enable_break): Change local 'interp_name' to char *.
7845 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7846 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7847 (spu_pseudo_register_write_spu): Use char for string buffer.
7849 (info_spu_event_command, info_spu_signal_command): Add casts to
7852 2013-04-19 Pedro Alves <palves@redhat.com>
7854 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7856 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7857 * ada-lang.c (ada_value_assign): Use gdb_byte.
7858 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7859 (alphanbsd_sigtramp_offset): Use gdb_byte.
7860 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7861 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7862 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7863 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7864 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7865 * arm-tdep.c (arm_stub_unwind_sniffer)
7866 (arm_displaced_init_closure): Use gdb_byte.
7867 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7868 (arm_default_thumb_le_breakpoint)
7869 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7870 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7871 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7872 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7873 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7874 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7875 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7876 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7877 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7878 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7879 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7880 (cris_store_return_value, cris_extract_return_value): Use
7882 (constraint): Change type of parameter to char * from signed
7883 char*. Use gdb_byte.
7884 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7885 of local buffer to gdb_byte *.
7886 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7887 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7888 (add_address_entry): Change type of local buffer to gdb_byte[].
7889 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7890 (frv_push_dummy_call): Use gdb_byte.
7891 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7892 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7893 (hppa_hpux_supply_save_state): Use gdb_byte.
7894 * hppa-tdep.c (hppa32_push_dummy_call)
7895 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7896 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7897 (slotN_contents, replace_slotN_contents): Change type of parameter
7899 (fetch_instruction, ia64_pseudo_register_write)
7900 (ia64_register_to_value, ia64_value_to_register)
7901 (ia64_extract_return_value, ia64_store_return_value)
7902 (ia64_push_dummy_call): Use gdb_byte.
7903 * m32c-tdep.c (m32c_return_value): Remove cast.
7904 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7905 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7907 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7908 * mn10300-tdep.c (mn10300_store_return_value)
7909 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7911 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7912 (moxie_process_record): Remove casts.
7913 * ppc-ravenscar-thread.c (supply_register_at_address)
7914 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7915 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7916 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7917 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7918 * remote.c (compare_sections_command): Use gdb_byte.
7919 * score-tdep.c (score7_free_memblock): Change type of parameter to
7921 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7922 gdb_byte *. Use gdb_byte.
7923 (sh_push_dummy_call_fpu): Use gdb_byte.
7924 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7925 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7926 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7927 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7928 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7929 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7930 (sh64_store_return_value, sh64_register_convert_to_virtual):
7931 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7932 (sh64_pseudo_register_write): Use gdb_byte.
7933 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7934 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7936 (irix_current_sos): Use gdb_byte.
7937 * solib-som.c (som_current_sos): Use gdb_byte.
7938 * sparc-ravenscar-thread.c (supply_register_at_address)
7939 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7940 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7941 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7942 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7944 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7946 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7947 * xstormy16-tdep.c (xstormy16_extract_return_value)
7948 (xstormy16_store_return_value): Change parameter type to
7949 'gdb_byte *'. Adjust.
7950 (xstormy16_push_dummy_call): Use gdb_byte.
7951 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7952 (call0_analyze_prologue, execute_code): Use gdb_byte.
7954 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7955 Pedro Alves <palves@redhat.com>
7957 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7960 2013-04-17 Doug Evans <dje@google.com>
7962 * dwarf2read.c (struct signatured_type): New member type.
7963 (struct attribute): Replace member signatured_type with signature.
7964 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7965 (read_call_site_scope): Call follow_die_ref instead of
7966 follow_die_ref_or_sig.
7967 (read_structure_type): Rewrite handling of signatured types.
7968 (read_enumeration_type): Ditto.
7969 (read_attribute_value): Update.
7970 (build_error_marker_type): New function.
7971 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7972 Don't call error for bad types, just build an error marker type.
7973 (dump_die_shallow): Update.
7974 (follow_die_sig_1): Renamed from follow_die_sig.
7975 Don't call error for bad types, instead return NULL.
7976 (follow_die_sig): New function.
7977 (get_signatured_type, get_DW_AT_signature_type): New functions.
7979 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7981 * aarch64-tdep.c (aarch64_write_pc): Removed.
7982 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7985 2013-04-17 Yao Qi <yao@codesourcery.com>
7987 * top.c (print_gdb_configuration): Print configure-time
7988 parameter on using libbabeltrace or not.
7990 2013-04-16 Pedro Alves <palves@redhat.com>
7992 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7994 2013-04-16 Pedro Alves <palves@redhat.com>
7996 * common/glibc_thread_db.h: Update from upstream glibc
7997 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7999 2013-04-16 Pedro Alves <palves@redhat.com>
8001 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8002 * common/glibc_thread_db.h: ... this new file ...
8003 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8005 2013-04-16 Will Newton <will.newton@gmail.com>
8006 Pedro Alves <palves@redhat.com>
8010 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8011 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8014 2013-04-16 Pedro Alves <palves@redhat.com>
8015 Eli Zaretskii <eliz@gnu.org>
8017 * NEWS: Mention "set foo unlimited".
8019 2013-04-15 Doug Evans <dje@google.com>
8021 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8022 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8023 (create_dwo_cu_reader): Renamed from
8024 create_dwo_debug_info_hash_table_reader.
8025 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8026 Remove support for multiple CUs in a DWO file.
8027 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8029 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8031 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8032 (create_dwo_in_dwp): Ditto.
8034 2013-04-15 Tom Tromey <tromey@redhat.com>
8036 * NEWS: Move recent entries into "since 7.6" section.
8038 2013-04-15 Tom Tromey <tromey@redhat.com>
8042 * break-catch-throw.c (struct exception_catchpoint)
8043 <exception_rx, pattern>: New fields.
8044 (fetch_probe_arguments, dtor_exception_catchpoint)
8045 (check_status_exception_catchpoint)
8046 (print_one_detail_exception_catchpoint): New functions.
8047 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8048 Compile regular expression if needed.
8049 (extract_exception_regexp): New function.
8050 (catch_exception_command_1): Use extract_exception_regexp.
8051 (compute_exception): Use fetch_probe_arguments.
8052 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8053 and check_status fields.
8054 * cp-abi.c (cplus_typename_from_type_info): New function.
8055 * cp-abi.h (cplus_typename_from_type_info): Declare.
8056 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8057 * gdb_regex.h (compile_rx_or_error): Declare.
8058 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8060 (init_gnuv3_ops): Set get_type_from_type_info field.
8061 * probe.c (compile_rx_or_error): Move...
8062 * utils.c (compile_rx_or_error): ... here.
8064 2013-04-15 Tom Tromey <tromey@redhat.com>
8068 * break-catch-throw.c (compute_exception): New function.
8069 (exception_funcs): New global.
8070 (_initialize_break_catch_throw): Create $_exception.
8071 * cp-abi.c (cplus_type_from_type_info): New function.
8072 * cp-abi.h (cplus_type_from_type_info): Declare.
8073 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8074 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8075 (gnuv3_get_type_from_type_info): New functions.
8076 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8078 2013-04-15 Tom Tromey <tromey@redhat.com>
8080 * break-catch-throw.c (struct exception_names): New.
8081 (exception_functions): Change type.
8082 (re_set_exception_catchpoint): Look for SDT probes.
8084 2013-04-15 Tom Tromey <tromey@redhat.com>
8087 * break-catch-throw.c (exception_functions): New global.
8088 (gnu_v3_exception_catchpoint_ops): Move earlier.
8089 (struct exception_catchpoint): New.
8090 (classify_exception_breakpoint): Rewrite.
8091 (re_set_exception_catchpoint): New function.
8092 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8093 Allocate a struct exception_catchpoint.
8094 (catch_exception_command_1): Update.
8095 (initialize_throw_catchpoint_ops): Set 're_set' method.
8097 2013-04-15 Tom Tromey <tromey@redhat.com>
8099 * Makefile.in (SFILES): Add break-catch-throw.c
8100 (COMMON_OBS): Add break-catch-throw.o.
8101 * break-catch-throw.c: New file.
8102 * breakpoint.c: Move exception-catching code to new file.
8103 (ep_parse_optional_if_clause): No longer static.
8104 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8106 2013-04-15 Tom Tromey <tromey@redhat.com>
8110 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8111 * c-exp.y (TYPEID): New token.
8112 (exp): Add new TYPEID productions.
8113 (ident_tokens): Add "typeid".
8114 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8115 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8116 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8117 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8118 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8120 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8121 (build_std_type_info_type, gnuv3_get_typeid_type)
8122 (gnuv3_get_typeid): New functions.
8123 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8124 new fields on ABI object.
8125 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8126 * std-operator.def (OP_TYPEID): New.
8128 2013-04-15 Tom Tromey <tromey@redhat.com>
8130 * elfread.c (elf_symtab_read): Install versioned symbol under
8131 unversioned name as well.
8133 2013-04-15 Tom Tromey <tromey@redhat.com>
8136 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8137 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8138 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8139 (gdb_demangle): New function.
8140 * cp-support.h (gdb_demangle): Declare.
8141 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8142 (dwarf2_name): Use gdb_demangle.
8143 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8144 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8146 (gnuv3_print_method_ptr): Use gdb_demangle.
8147 * jv-lang.c (java_demangle): Use gdb_demangle.
8148 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8149 * language.c (unk_lang_demangle): Use gdb_demangle.
8150 * symtab.c (symbol_find_demangled_name)
8151 (demangle_for_lookup): Use gdb_demangle.
8153 2013-04-15 Tom Tromey <tromey@redhat.com>
8157 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8159 (classify_exception_breakpoint): New function.
8160 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8161 (print_mention_exception_catchpoint)
8162 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8163 (catch_exception_command_1): Handle "rethrow" catchpoint.
8164 (catch_rethrow_command): New function.
8165 (_initialize_breakpoint): Add "catch rethrow" command.
8167 2013-04-15 Pierre Muller <muller@sourceware.org>
8169 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8170 set_gdbarch_write_pc as deprecated anymore.
8172 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8174 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8177 2013-04-13 Yao Qi <yao@codesourcery.com>
8179 * ctf.c (_initialize_ctf): Include "completer.h".
8180 Call add_target_with_completer instead of add_target.
8182 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8184 Fix GDB regression related to PR binutils/14813.
8185 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8186 * minidebug.c (lzma_close): Add return value comment.
8187 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8188 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8189 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8191 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8193 * config.in: Regenerate.
8195 2013-04-12 Tom Tromey <tromey@redhat.com>
8197 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8199 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8200 (struct die_reader_specs) <buffer>: Likewise.
8201 (die_reader_func_ftype): Make 'info_ptr' const.
8202 (struct line_header) <include_dirs, statement_program_start,
8203 statement_program_end>: Now const.
8204 (struct file_entry) <name>: Likewise.
8205 (struct partial_die_info) <sibling>: Likewise.
8206 (struct dwarf_block) <data>: Likewise.
8207 (dwarf2_read_section): Remove cast.
8208 (dwarf2_get_section_info): Make 'bufp' const.
8209 (read_index_from_section): Constify.
8210 (dw2_get_file_names_reader): Make 'info_ptr' const.
8211 (dw2_get_primary_filename_reader): Likewise.
8212 (read_comp_unit_head): Make 'info_ptr' and return type const.
8213 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8215 (read_abbrev_offset): Constify.
8216 (dwarf2_create_include_psymtab): Make 'name' const.
8217 (create_debug_types_hash_table): Update.
8218 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8219 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8221 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8222 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8223 (read_comp_units_from_section): Constify.
8224 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8225 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8227 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8228 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8229 (create_dwp_hash_table, dwarf2_ranges_read)
8230 (dwarf2_record_block_ranges): Constify.
8231 (read_die_and_children, read_die_and_siblings_1)
8232 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8234 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8235 (abbrev_table_read_table): Constify.
8236 (load_partial_dies): Make 'info_ptr' const.
8237 (read_partial_die, read_attribute_value, read_attribute): Make
8238 'info_ptr' and return type const.
8239 (read_address, read_initial_length)
8240 (read_checked_initial_length_and_offset, read_offset)
8241 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8243 (read_direct_string): Make 'buf' and return type const.
8244 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8245 (read_indirect_string): Make return type const.
8246 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8247 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8249 (read_str_index): Make return type const.
8250 (add_include_dir): Make 'include_dir' const.
8251 (add_file_name): Make 'name' const.
8252 (dwarf_decode_line_header): Constify.
8253 (psymtab_include_file_name): Make return type const.
8254 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8255 (dwarf2_start_subfile): Make 'filename' const.
8256 (dwarf2_const_value_attr): Make 'bytes' const.
8257 (read_signatured_type_reader): Make 'info_ptr' const.
8258 (decode_locdesc): Constify.
8259 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8261 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8262 'mac_end', and return type const.
8263 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8264 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8266 (per_cu_header_read_in): Constify.
8267 * symfile.h (dwarf2_get_section_info): Update.
8269 2013-04-12 Tom Tromey <tromey@redhat.com>
8271 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8273 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8275 * NEWS: Mention "show configuration", --configuration.
8276 * top.c (print_gdb_configuration): New function, displays the
8277 details about GDB configure-time parameters.
8278 (print_gdb_version): Mention "show configuration".
8279 * cli/cli-cmds.c (show_configuration): New function.
8280 (_initialize_cli_cmds): Add the "show configuration" command.
8281 * main.c (captured_main) <print_configuration>: New static var.
8282 <long_options>: Use it.
8283 If --configuration was given, call print_gdb_configuration.
8285 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8286 Pedro Alves <palves@redhat.com>
8288 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8289 (generated_files): Add gcore.
8290 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8291 HAVE_NATIVE_GCORE_HOST.
8293 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8294 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8295 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8296 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8297 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8298 Add HAVE_NATIVE_GCORE_HOST.
8299 * configure: Regenerate.
8300 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8301 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8302 AC_CONFIG_FILES for gcore.
8303 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8305 * gdb_gcore.sh: Rename to ...
8306 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8307 and GCORE_TRANSFORM_NAME substitutions.
8309 Fix parsing tabs in ${gdb_target_obs}.
8310 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8312 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8314 * remote.c (unpush_and_perror): Add output message final dot.
8316 2013-04-11 Yao Qi <yao@codesourcery.com>
8318 * tracepoint.c (tfile_interp_line): Fit parameters line and
8321 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8323 * solib.c (solib_map_sections): Remove code overwriting
8324 SO->SO_NAME with the bfd's filename.
8326 2013-04-10 Pedro Alves <palves@redhat.com>
8328 * cli/cli-decode.c (integer_unlimited_completer): New function.
8329 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8330 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8332 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8333 (is_unlimited_literal): New function.
8334 (do_set_command): Handle literal "unlimited" arguments.
8335 * frame.c (_initialize_frame) <set backtrace limit>: Document
8337 * printcmd.c (_initialize_printcmd) <set print
8338 max-symbolic-offset>: Add help text.
8339 * record-full.c (_initialize_record_full) <set record full
8340 insn-number-max>: Likewise.
8341 * record.c (_initialize_record) <set record
8342 instruction-history-size, set record function-call-history-size>:
8344 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8346 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8348 * source.c (_initialize_source) <set listsize>: Add help text.
8349 * utils.c (initialize_utils) <set height, set width>: Likewise.
8350 <set pagination>: Mention "set height unlimited".
8351 * valprint.c (_initialize_valprint) <set print elements, set print
8352 repeats>: Document "unlimited".
8354 2013-04-10 Pedro Alves <palves@redhat.com>
8356 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8357 instead of disconnect_tracing.
8358 * infcmd.c (detach_command, disconnect_command): Call
8359 query_if_trace_running. Adjust.
8360 * top.c: Include "tracepoint.h".
8361 (quit_target): Delete. Contents moved ...
8362 (quit_force): ... here. Wrap each stage of teardown in
8363 TRY_CATCH. Call disconnect_tracing before detaching.
8365 2013-04-10 Hui Zhu <hui@codesourcery.com>
8366 Yao Qi <yao@codesourcery.com>
8368 * configure.ac: Check libbabeltrace is installed.
8369 * config.in: Regenerate.
8370 * configure: Regenerate.
8371 * Makefile.in (LIBBABELTRACE): New.
8372 (CLIBS): Add LIBBABELTRACE.
8373 * ctf.c: Include "exec.h".
8374 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8375 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8376 (ctf_save_metadata_header): Define new type aliases in
8378 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8379 in metadata. Start a new faked packet for trace status.
8380 (ctf_write_status): Write trace status to CTF.
8381 (ctf_write_uploaded_tsv): Write TSV to CTF.
8382 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8383 (ctf_write_definition_end): End the faked packet.
8385 (ctx, ctf_iter, trace_dirname): New.
8386 (start_pos): New variable.
8387 (ctf_destroy, ctf_open_dir, ctf_open): New.
8388 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8390 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8391 (ctf_fetch_registers, ctf_xfer_partial): New.
8392 (ctf_get_trace_state_variable_value): New.
8393 (ctf_get_tpnum_from_frame_event): New.
8394 (ctf_get_traceframe_address): New.
8395 (ctf_trace_find, ctf_has_stack): New.
8396 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8397 (ctf_get_trace_status, ctf_read_status): New.
8398 (_initialize_ctf): New.
8399 * tracepoint.c (get_tracepoint_number): New
8400 (get_uploaded_tsv): Remove 'static'.
8401 (struct traceframe_info, trace_regblock_size): Move it to ...
8402 * tracepoint.h: ... here.
8403 (get_tracepoint_number): Declare it.
8404 (get_uploaded_tsv): Declare it.
8406 * NEWS: Mention new configure option.
8408 2013-04-10 Pedro Alves <palves@redhat.com>
8409 Hui Zhu <hui@codesourcery.com>
8411 * breakpoint.c (dprintf_re_set): New.
8412 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8415 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8417 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8418 Remove solib-svr4.o from the list.
8420 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8422 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8423 Use gdb_assert_not_reached instead of invalid boolean expression.
8425 2013-04-09 Pedro Alves <palves@redhat.com>
8427 * remote.c (unpush_and_perror): New function.
8428 (readchar, remote_serial_write): Use it.
8430 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8432 * NEWS: Mention new btrace RSP packets.
8434 2013-04-08 Tom Tromey <tromey@redhat.com>
8436 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8439 2013-04-08 Tom Tromey <tromey@redhat.com>
8441 * maint.c (print_bfd_section_info): Print the section index.
8442 * symmisc.c (dump_msymbols): Print the section index.
8444 2013-04-08 Tom Tromey <tromey@redhat.com>
8447 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8448 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8449 * breakpoint.c (resolve_sal_pc): Update.
8450 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8451 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8452 (minsym_lookup_iterator_cb): Use it.
8453 (default_read_var_value): Update.
8454 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8456 * infcmd.c (jump_command): Update.
8457 * linespec.c (minsym_found): Update.
8458 * maint.c (maintenance_translate_address): Update.
8459 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8460 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8461 * parse.c (write_exp_msymbol): Update.
8462 * printcmd.c (address_info): Update.
8463 * psymtab.c (find_pc_sect_psymbol): Update.
8464 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8466 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8467 Don't initialize SYMBOL_OBJ_SECTION.
8468 * spu-tdep.c (spu_catch_start): Update.
8469 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8470 * symmisc.c (dump_msymbols, print_symbol): Update.
8471 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8472 how fallback section is computed.
8473 (fixup_symbol_section): Update.
8474 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8476 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8477 Initialize SYMBOL_SECTION.
8478 * symtab.h (struct general_symbol_info) <section>: Update comment.
8479 <obj_section>: Remove.
8480 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8481 (SYMBOL_OBJFILE): New macro.
8483 2013-04-08 Tom Tromey <tromey@redhat.com>
8485 * coffread.c (record_minimal_symbol): Update.
8486 * dbxread.c (record_minimal_symbol): Update.
8487 * elfread.c (record_minimal_symbol): Update.
8488 * machoread.c (macho_symtab_add_minsym): Update.
8489 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8491 * minsyms.c (prim_record_minimal_symbol): Update.
8492 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8494 (prim_record_minimal_symbol_and_info): Likewise.
8495 * minsyms.h (prim_record_minimal_symbol_full)
8496 (prim_record_minimal_symbol_and_info): Update.
8497 * symtab.c (allocate_symbol, initialize_symbol)
8498 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8499 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8502 2013-04-08 Tom Tromey <tromey@redhat.com>
8505 * solib-som.c (som_solib_section_offsets): Use BFD section
8506 indices. Set offsets for all sections.
8507 * somread.c (som_symtab_read): Compute BFD section for
8508 symbol. Use prim_record_minimal_symbol_and_info.
8509 (som_symfile_read): Fix comment.
8510 (struct find_section_offset_arg): New.
8511 (find_section_offset, set_section_index): New functions.
8512 (som_symfile_offsets): Use set_section_index to compute
8515 2013-04-08 Tom Tromey <tromey@redhat.com>
8517 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8518 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8519 gdb_bfd_section_index.
8520 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8522 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8524 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8526 * objfiles.c (add_to_objfile_sections_full): New function.
8527 (add_to_objfile_sections): Use it.
8528 (build_section_table): Rewrite.
8529 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8530 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8531 (struct objfile) <sections>: Update comment.
8532 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8534 (ALL_OBJSECTIONS): Use it.
8535 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8536 * solib-frv.c (frv_relocate_main_executable): Update.
8537 * solib-target.c (solib_target_relocate_section_addresses):
8538 Use gdb_bfd_section_index.
8539 * symfile.c (build_section_addr_info_from_section_table):
8540 Use gdb_bfd_section_index.
8541 (build_section_addr_info_from_bfd, place_section): Likewise.
8542 * symtab.c (fixup_section): Update.
8543 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8545 2013-04-08 Tom Tromey <tromey@redhat.com>
8547 * minsyms.h (struct bound_minimal_symbol): New.
8548 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8549 Remove objfile argument.
8550 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8551 Return bound_minimal_symbol.
8552 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8553 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8554 Return bound_minimal_symbol.
8555 (in_gnu_ifunc_stub): Update.
8556 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8557 Remove 'objfile_p' argument.
8558 (lookup_solib_trampoline_symbol_by_pc): Update.
8559 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8560 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8561 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8562 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8563 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8564 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8565 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8566 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8567 stack.c, symtab.c, tui/tui-disasm.c: Update.
8569 2013-04-08 Tom Tromey <tromey@redhat.com>
8571 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8572 Use symbol's obstack, not an objfile.
8573 * coffread.c (process_coff_symbol): Update.
8574 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8575 * jv-lang.c (add_class_symbol): Update.
8576 * mdebugread.c (new_symbol): Update.
8577 * minsyms.c (prim_record_minimal_symbol_full)
8578 (terminate_minimal_symbol_table): Update.
8579 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8580 * stabsread.c (define_symbol, read_enum_type): Update.
8581 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8582 Handle Ada specially.
8583 (symbol_set_language): Add 'obstack' argument.
8584 (symbol_set_names): Update.
8585 (symbol_natural_name, symbol_demangled_name): Always use
8587 * symtab.h (struct general_symbol_info)
8588 <language_specific::obstack>: New field.
8589 <ada_mangled>: New field.
8590 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8591 (symbol_set_language): Update.
8593 2013-04-08 Tom Tromey <tromey@redhat.com>
8595 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8596 Take an obstack, not an objfile.
8597 (symbol_set_names): Update.
8598 * symtab.h (symbol_set_demangled_name): Update.
8600 2013-04-08 Tom Tromey <tromey@redhat.com>
8602 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8604 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8605 (read_func_scope): Call allocate_template_symbol.
8606 (new_symbol_full): Call allocate_symbol.
8607 * jit.c (finalize_symtab): Call allocate_symbol.
8608 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8609 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8610 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8611 (common_block_end): Call allocate_symbol.
8612 * symtab.c (allocate_symbol, initialize_symbol)
8613 (allocate_template_symbol): New functions.
8614 * symtab.c (allocate_symbol, initialize_symbol)
8615 (allocate_template_symbol): Declare.
8616 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8618 2013-04-08 Pedro Alves <palves@redhat.com>
8619 Keith Seitz <keiths@redhat.com>
8621 * breakpoint.c (create_breakpoint): Rename
8622 "parse_condition_and_thread" parameter to "parse_arg". Update
8623 describing comment. If !PARSE_ARG, then error out if ARG is not
8624 the empty string after extracting the location.
8625 * breakpoint.h (create_breakpoint): Rename
8626 "parse_condition_and_thread" parameter to "parse_arg".
8628 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8630 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8632 2013-04-07 Yao Qi <yao@codesourcery.com>
8634 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8635 and 'addr2' to CORE_ADDR.
8636 * target.c (update_current_target): Update.
8637 * target.h (struct target_ops) <to_trace_find>: Change parameter
8639 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8640 'addr2' to CORE_ADDR.
8641 (tfile_trace_find): Likewise.
8642 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8643 Change local variable 'addr' to type CORE_ADDR.
8644 * tracepoint.h (tfind_1): Update declaration.
8646 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8648 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8649 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8652 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8654 * main.h (windows_get_absolute_argv0): ...to here.
8656 2013-04-05 Doug Evans <dje@google.com>
8658 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8659 (read_cutu_die_from_dwo): Add comments.
8660 (read_structure_type): Update comment.
8661 (read_enumeration_type, read_namespace_type): Update comment.
8662 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8664 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8666 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8667 * Makefile.in (gdb.z): Remove.
8668 (install-only): Remove $(man1dir) and gdb.1 installation.
8671 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8673 Fix compatibility with Linux kernel 3.8.3.
8674 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8675 to more inner block. Remove parsing of NUMBER from outer block.
8676 Parse NUMBER only if KEYWORD has been identified.
8678 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8680 Fix variable name shadowing.
8681 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8682 filename to mapsfilename and update its uses.
8684 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8686 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8687 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8688 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8689 details of the problem.
8691 2013-04-04 Pedro Alves <palves@redhat.com>
8692 Hui Zhu <hui@codesourcery.com>
8694 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8695 tracepoint, reset its STEP_COUNT and call validate_actionline.
8697 2013-04-03 Doug Evans <dje@google.com>
8699 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8700 read_die_and_siblings.
8701 (read_die_and_siblings): New function.
8702 (read_cutu_die_from_dwo): Dump die if requested.
8703 (read_die_and_children): Call read_full_die_1 and
8704 read_die_and_siblings_1.
8705 (read_full_die): Dump die if requested.
8707 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8709 * dwarf2read.c (struct dwo_file): New member comp_dir.
8710 Rename member name to dwo_name. All uses updated.
8711 (hash_dwo_file): Include comp_dir in computation.
8712 (eq_dwo_file): Ditto.
8713 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8714 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8716 * psymtab.c (read_psymtabs_with_fullname): Don't call
8717 psymtab_to_fullname if the basenames are different.
8719 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8721 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8722 New entry about "fullname" presence.
8724 2013-04-03 Pedro Alves <palves@redhat.com>
8726 * NEWS: Mention x86_64/Cygwin as new native configuration.
8728 2013-04-02 Doug Evans <dje@google.com>
8730 * dwarf2read.c (read_structure_type): Fix typo in comment.
8732 2013-04-02 Pedro Alves <palves@redhat.com>
8734 * NEWS: Mention "set/show debug aarch64", "set/show debug
8735 coff-pe-read" and "set/show debug mach-o".
8737 2013-04-02 Pedro Alves <palves@redhat.com>
8739 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8741 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8743 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8744 gdb_string.h is now in common/.
8746 2013-04-02 Pedro Alves <palves@redhat.com>
8748 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8749 under "New options".
8751 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8755 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8757 2013-04-02 Pedro Alves <palves@redhat.com>
8761 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8762 (remote_serial_write): New function.
8763 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8765 2013-04-01 Jiong Wang <jiwang@tilera.com>
8767 * NEWS: Mention TILE-Gx in "New native configurations" and
8768 "New targets" sections.
8770 2013-04-01 Doug Evans <dje@google.com>
8772 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8773 (process_enumeration_scope): Simplify.
8775 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8777 (struct signatured_type): ... to here.
8778 (sig_type_ptr): New typedef.
8779 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8780 out of union 't'. All uses updated.
8781 (dw2_get_file_names_reader): Assert not called for a type unit.
8782 (dw2_get_file_names): Assert not called for a type unit or type
8784 (build_type_psymtabs_reader): Assert called for a type unit.
8785 (build_type_psymtab_dependencies): Assert called for a type unit group.
8787 * dwarf2read.c (free_dwo_file): Add comment.
8788 (dwarf2_per_objfile_free): Unref dwp bfd.
8790 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8792 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8793 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8794 (read_pe_exported_syms): Remove unused 'exportix'.
8795 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8796 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8797 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8799 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8801 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8802 (print_it_watchpoint): Remove unused 'bl'.
8803 (say_where): Remove unused 'uiout'.
8804 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8805 (bkpt_breakpoint_hit): Remove unused 'b'.
8806 (internal_bkpt_print_it): Remove unused 'uiout'.
8807 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8809 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8811 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8812 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8814 2013-03-29 Doug Evans <dje@google.com>
8816 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8817 Delete arg is_dwp. All callers updated.
8818 (open_dwp_file): New function.
8819 (open_and_init_dwp_file): Call it.
8820 (get_dwp_file): New function.
8821 (lookup_dwo_cutu): Call it.
8823 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8824 unnecessary, cleanup.
8826 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8828 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8829 (lookup_dwo_unit): New function.
8830 (init_cutu_and_read_dies): Move DWO handling to new functions.
8832 * dwarf2read.c (struct signatured_type): Tweak comment.
8833 (struct dwo_unit): Tweak comment.
8834 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8835 (create_dwo_debug_info_hash_table): Tweak comment.
8836 (dwarf2_per_cu_offset_and_type): Tweak comment.
8838 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8839 missing .debug_types section.
8841 2013-03-29 Yao Qi <yao@codesourcery.com>
8843 * corelow.c: Include "completer.h".
8844 (_initialize_corelow): Call add_target_with_completer with
8845 argument 'filename_completer'.
8846 * tracepoint.c: Likewise.
8847 * exec.c (_initialize_exec): Likewise.
8848 * target.c (add_target): Rename to ...
8849 (add_target_with_completer): ... this. Call set_cmd_completer
8850 if parameter completer is not NULL.
8852 * target.h: Include "command.h".
8853 (add_target_with_completer): Declare it.
8855 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8857 * coffread.c (is_import_fixup_symbol): New function.
8858 (record_minimal_symbol): Use is_import_fixup_symbol to
8859 detect import fixup symbols, and discard them.
8861 2013-03-28 Doug Evans <dje@google.com>
8863 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8864 types hash table until we know we need it.
8866 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8869 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8870 All callers updated.
8871 (dw2_print_stats): Print #read CUs too.
8872 (dump_die_shallow): Print signatured types better.
8874 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8875 info_or_types_section to section. All uses updated.
8876 (struct dwo_unit): Ditto.
8878 2013-03-28 Pedro Alves <palves@redhat.com>
8880 * NEWS (New options): New section.
8881 (New options): Mention set/show remote trace-status-packet.
8882 * remote.c (PACKET_qTStatus): New enumeration value.
8883 (remote_get_trace_status): Skip sending qTStatus if the packet is
8884 disabled. Use packet_ok.
8885 (_initialize_remote): Register a configuration command for
8888 2013-03-28 Doug Evans <dje@google.com>
8890 * symfile.c (find_separate_debug_file): Add comment.
8891 (terminate_after_last_dir_separator): Tweak comment.
8893 * dwarf2read.c (create_partial_symtab): Add forward decl.
8894 (create_partial_symtab): Move to be closer to other psymtab functions.
8895 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8897 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8898 (compute_symtab_includes): Remove unnecessary forward declaration.
8899 (die_needs_namespace): Add comment marking group of functions for
8900 dwarf2 name computation.
8902 * typeprint.c (_initialize_typeprint): Improve type help text.
8904 * python/python.c (finish_python_initialization): Provide suggestion
8905 for how to tell gdb to find its python files.
8907 2013-03-28 Pedro Alves <palves@redhat.com>
8911 * source.c (_initialize_source): Change back "set listsize" to an
8914 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8917 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8919 2013-03-27 Pedro Alves <palves@redhat.com>
8921 * top.c (history_size): Rename to ...
8922 (history_size_setshow_var): ... this. Add comment.
8923 (show_commands): Use readline's 'history_length' instead of
8924 computing the history length by calling history_get in a loop.
8925 (set_history_size_command): Error out for sizes over INT_MAX.
8926 Restore previous history size on invalid size.
8927 (init_history): If HISTSIZE is negative, leave the history size as
8929 (init_main): Adjust.
8931 2013-03-27 Pedro Alves <palves@redhat.com>
8933 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8934 coff_pe_read" command to "set debug coff-pe-read".
8936 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8938 * record.c (command_size_to_target_size): Fix size comparison.
8939 Change parameter type from pointer to integer to integer.
8942 2013-03-27 Pierre Muller <muller@sourceware.org>
8944 * windows-nat.c (handle_output_debug_string): Avoid typecast
8945 from integer of different size warning.
8947 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8949 * windows-nat.c (handle_output_debug_string): Add empty line
8950 after local block variable definition.
8952 2013-03-26 Pedro Alves <palves@redhat.com>
8954 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8955 (net_open): Make 'polls' local unsigned.
8957 2013-03-26 Pedro Alves <palves@redhat.com>
8959 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8960 a zuinteger command instead of uinteger.
8962 2013-03-26 Pedro Alves <palves@redhat.com>
8964 * record-full.c (record_full_insn_num): Make it unsigned.
8965 (record_full_check_insn_num, record_full_message)
8966 (record_full_registers_change, record_full_xfer_partial): Remove
8967 record_full_insn_max_num check (it's always != 0).
8968 (record_full_info, record_full_restore): Use %u as format string.
8969 (): Use %u as format string.
8970 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8971 check (it's always != 0).
8973 2013-03-26 Pedro Alves <palves@redhat.com>
8975 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8976 and "set dcache size" commands zuinteger instead of uinteger.
8978 2013-03-26 Pedro Alves <palves@redhat.com>
8980 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8981 command zuinteger instead of uinteger.
8983 2013-03-26 Pedro Alves <palves@redhat.com>
8985 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8986 zuinteger instead of uinteger.
8988 2013-03-26 Pedro Alves <palves@redhat.com>
8990 * record.c (record_insn_history_size_setshow_var)
8991 (record_call_history_size_setshow_var): New globals.
8992 (command_size_to_target_size): New function.
8993 (cmd_record_insn_history, cmd_record_call_history): Use
8994 command_size_to_target_size instead of cast.
8995 (validate_history_size, set_record_insn_history_size)
8996 (set_record_call_history_size): New functions.
8997 (_initialize_record): Install set_record_insn_history_size and
8998 set_record_call_history_size as "set" hooks of "set record
8999 instruction-history-size" and "set record
9000 function-call-history-size".
9002 2013-03-26 Pedro Alves <palves@redhat.com>
9004 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9005 use with history_max_entries use. Remove FIXME note.
9007 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9009 * record-btrace.c (record_btrace_close): Call
9010 record_btrace_auto_disable.
9012 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9014 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9016 2013-03-25 Doug Evans <dje@google.com>
9018 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9020 2013-03-25 Tom Tromey <tromey@redhat.com>
9023 * c-exp.y (exp): Add new productions for destructors after '.' and
9025 (write_destructor_name): New function.
9027 2013-03-25 Tom Tromey <tromey@redhat.com>
9030 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9031 value_struct_elt, not lookup_struct_elt_type.
9032 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9033 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9034 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9036 2013-03-25 Yao Qi <yao@codesourcery.com>
9038 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9039 instead of '_mkdir'.
9041 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9043 * windows-nat.c (windows_get_absolute_argv0): New function.
9044 * windows-nat.h: Add its prototype.
9046 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9047 Use IS_DIR_SEPARATOR instead of looking for a character inside
9048 SLASH_STRING. Include filenames.h.
9049 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9050 relocate_gdb_directory works when passed gdb_program_name.
9051 Include windows-nat.h.
9053 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9055 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9056 * remote.c (trace_error): Remove the special handling of '2'.
9057 (readchar) <SERIAL_EOF>
9058 (readchar) <SERIAL_ERROR>
9059 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9060 (remote_get_trace_status): Call throw_exception if EX is
9062 * utils.c (perror_with_name): Rename to ...
9063 (throw_perror_with_name): ... here. New parameter errcode, describe it
9064 in the function comment.
9065 (perror_with_name): New function wrapper.
9066 * utils.h (enum errors): New stub declaration.
9067 (throw_perror_with_name): New declaration.
9069 2013-03-22 Pedro Alves <palves@redhat.com>
9070 Yao Qi <yao@codesourcery.com>
9071 Mark Kettenis <kettenis@gnu.org>
9073 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9074 Don't let the user set the value to UINT_MAX directly.
9075 <var_integer>: Don't let the user set the value to INT_MAX
9078 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9080 * remote.c (remote_unpush_target): New function.
9081 (remote_open_1): Remove two pop_target calls, update one comment, add
9082 comment to target_preopen call. Replace pop_target call by
9083 remote_unpush_target call.
9084 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9085 pop_target calls by remote_unpush_target calls.
9087 2013-03-22 Pedro Alves <palves@redhat.com>
9089 * linux-nat.c (linux_child_follow_fork): Don't call
9090 linux_enable_event_reporting.
9091 (linux_handle_extended_wait): Don't call
9092 linux_enable_event_reporting.
9094 2013-03-22 Pedro Alves <palves@redhat.com>
9096 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9097 use it to rewrite the trampoline buffers with type gdb_byte[], and
9098 undefine the macro. Remove char* cast.
9100 2013-03-21 Doug Evans <dje@google.com>
9102 New commands "mt set per-command {space,time,symtab} {on,off}".
9104 * event-top.c: #include "maint.h".
9105 * main.c: #include "maint.h".
9106 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9107 timeval-utils.h, maint.h, cli/cli-setshow.h.
9108 (per_command_time, per_command_space): New static globals.
9109 (per_command_symtab): New static global.
9110 (per_command_setlist, per_command_showlist): New static globals.
9111 (struct cmd_stats): Move here from utils.c.
9112 (set_per_command_time): Renamed from set_display_time in utils.c
9113 and moved here. All callers updated.
9114 (set_per_command_space): Renamed from set_display_space in utils.c
9115 and moved here. All callers updated.
9116 (count_symtabs_and_blocks): New function.
9117 (report_command_stats): Moved here from utils.c. Add support for
9118 printing symtab stats. Only print data if enabled before command
9120 (make_command_stats_cleanup): Ditto.
9121 (sert_per_command_cmd, show_per_command_cmd): New functions.
9122 (_initialize_maint_cmds): Add new commands
9123 mt set per-command {space,time,symtab} {on,off}.
9124 * maint.h: New file.
9125 * top.c: #include "maint.h".
9126 * utils.c (reset_prompt_for_continue_wait_time): New function.
9127 (get_prompt_for_continue_wait_time): New function.
9128 * utils.h (reset_prompt_for_continue_wait_time): Declare
9129 (get_prompt_for_continue_wait_time): Declare.
9130 (make_command_stats_cleanup): Moved to maint.h.
9131 (set_display_time, set_display_space): Moved to maint.h and renamed
9132 to set_per_command_time, set_per_command_space.
9133 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9134 parse_binary_operation and made non-static. Don't call error,
9135 just return an error marker. All callers updated.
9136 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9138 2013-03-21 Tom Tromey <tromey@redhat.com>
9140 * symfile.c (alloc_section_addr_info): Update header. Don't set
9141 'num_sections' field.
9142 (build_section_addr_info_from_section_table): Set 'num_sections'.
9143 (build_section_addr_info_from_bfd): Likewise.
9144 (build_section_addr_info_from_objfile): Remove dead loop
9146 (free_section_addr_info): Unconditionally call xfree.
9147 (relative_addr_info_to_section_offsets, addrs_section_sort)
9148 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9150 (syms_from_objfile_1): Remove dead 'if' condition. Check
9152 (add_symbol_file_command): Set 'num_sections'.
9153 * symfile-mem.c (symbol_file_add_from_memory): Set
9155 * somread.c (som_symfile_offsets): Remove dead loop condition.
9156 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9157 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9159 2013-03-21 Tom Tromey <tromey@redhat.com>
9161 * tracepoint.h (decode_agent_options): Add 'trace_string'
9163 * tracepoint.c (decode_agent_options): Add 'trace_string'
9165 (validate_actionline): Update.
9166 (collect_symbol): Add 'trace_string' argument.
9167 (struct add_local_symbols_data) <trace_string>: New field.
9168 (do_collect_symbol): Update.
9169 (add_local_symbols): Add 'trace_string' argument.
9170 (encode_actions_1): Update.
9171 (trace_dump_actions): Update.
9172 * dwarf2loc.c (access_memory): Update.
9173 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9174 * ax-general.c (new_agent_expr): Update.
9175 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9176 (gen_trace_for_return_address): Add argument.
9177 (trace_kludge, trace_string_kludge): Remove.
9178 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9179 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9180 (gen_trace_for_var): Add 'trace_string' argument.
9181 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9182 (gen_printf, agent_eval_command_one): Update.
9184 2013-03-21 Tom Tromey <tromey@redhat.com>
9187 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9188 Handle FILENAME token.
9190 2013-03-21 Tom Tromey <tromey@redhat.com>
9192 * c-exp.y (YYPRINT): Define.
9193 (c_print_token): New function.
9195 2013-03-21 Tom Tromey <tromey@redhat.com>
9197 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9199 2013-03-21 Yao Qi <yao@codesourcery.com>
9201 * ctf.c: Include "gdb_stat.h".
9202 [USE_WIN32API]: New macro 'mkdir'.
9203 (ctf_start): Use permission bits macros if they are defined.
9205 2013-03-20 Keith Seitz <keiths@redhat.com>
9207 * breakpoint.h (struct breakpoint): Add comment to
9208 extra_string indicating that this member is mallod'd.
9209 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9211 2013-03-20 Pedro Alves <palves@redhat.com>
9215 * cli/cli-setshow.c (do_set_command)
9216 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9217 the result of parsing the command argument. Throw error if the
9218 value is greater than UINT_MAX. Print the invalid value with
9220 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9221 result of parsing the command argument. Throw error if the value
9222 is greater than INT_MAX, not greater or equal. Also throw error
9223 if the value is less than INT_MIN. Print the invalid value with
9225 <var_zuinteger_unlimited>: Throw error if the value is greater
9226 than INT_MAX, not greater or equal.
9227 (do_show_command) <var_integer, var_zinteger,
9228 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9230 2013-03-20 Tom Tromey <tromey@redhat.com>
9232 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9234 * dwarf2read.c (read_func_scope): Remove old FIXME.
9235 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9237 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9238 Unconditionally call via computed ops, if possible.
9239 * printcmd.c (address_info): Unconditionally call via computed ops,
9241 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9243 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9244 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9247 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9248 Tom Tromey <tromey@redhat.com>
9251 * coffread.c (coff_register_index): New global.
9252 (process_coff_symbol, coff_read_enum_type): Set
9253 SYMBOL_ACLASS_INDEX.
9254 (_initialize_coffread): Initialize new global.
9255 * dwarf2loc.c (locexpr_find_frame_base_location)
9256 (dwarf2_block_frame_base_locexpr_funcs)
9257 (loclist_find_frame_base_location)
9258 (dwarf2_block_frame_base_loclist_funcs): New.
9259 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9260 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9261 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9262 (dwarf2_block_frame_base_loclist_funcs): New.
9263 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9264 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9266 (read_func_scope): Update.
9267 (fixup_go_packaging, mark_common_block_symbol_computed)
9268 (var_decode_location, new_symbol_full, dwarf2_const_value):
9269 Set SYMBOL_ACLASS_INDEX.
9270 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9271 (_initialize_dwarf2_read): Initialize new globals.
9272 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9273 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9274 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9276 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9277 (_initialize_mdebugread): Initialize new globals.
9278 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9279 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9280 (stab_register_index, stab_regparm_index): New globals.
9281 (define_symbol, read_enum_type, common_block_end): Set
9282 SYMBOL_ACLASS_INDEX.
9283 (_initialize_stabsread): Initialize new globals.
9284 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9286 (MAX_SYMBOL_IMPLS): New define.
9287 (register_symbol_computed_impl, register_symbol_block_impl)
9288 (register_symbol_register_impl)
9289 (initialize_ordinary_address_classes): New functions.
9290 (_initialize_symtab): Call initialize_ordinary_address_classes.
9291 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9292 (struct symbol_impl): New.
9293 (SYMBOL_ACLASS_BITS): New define.
9294 (struct symbol) <aclass, ops>: Remove fields.
9295 <aclass_index>: New field.
9296 (symbol_impls): Declare.
9297 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9298 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9299 (register_symbol_computed_impl, register_symbol_block_impl)
9300 (register_symbol_register_impl): Declare.
9301 (struct symbol_computed_ops): Add location_has_loclist.
9302 (struct symbol_block_ops): New.
9303 (SYMBOL_BLOCK_OPS): New.
9304 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9306 2013-03-20 Tom Tromey <tromey@redhat.com>
9308 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9309 (print_partial_symbols, recursively_search_psymtabs): Use
9312 2013-03-20 Pierre Muller <muller@sourceware.org>
9314 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9315 addtion, subtraction, multiplication and division binary operator.
9317 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9320 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9321 * bsd-kvm.c (bsd_kvm_close): Likewise.
9322 * bsd-uthread.c (bsd_uthread_close): Likewise.
9323 * corelow.c (core_close): Likewise.
9324 (core_close_cleanup): Remove parameter quitting from a caller.
9325 * event-top.c (async_disconnect): Likewise.
9326 * exec.c (exec_close_1): Remove parameter quitting.
9327 * go32-nat.c (go32_close): Likewise.
9328 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9329 parameter quitting from a caller.
9330 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9332 (mips_linux_close): Remove parameter quitting. Remove parameter
9333 quitting from a caller.
9334 * monitor.c (monitor_close): Remove parameter quitting.
9335 * monitor.h (monitor_close): Likewise.
9336 * record-btrace.c (record_btrace_close): Likewise.
9337 * record-full.c (record_full_close): Likewise.
9338 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9339 it also from fprintf_unfiltered.
9340 * remote-mips.c (mips_close): Remove parameter quitting.
9341 (mips_detach): Remove parameter quitting from a caller.
9342 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9343 (gdbsim_close): Remove duplicate function comment. Remove parameter
9344 quitting and remove it also from printf_filtered.
9345 * remote.c (remote_close): Remove parameter quitting.
9346 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9347 * target.c (update_current_target): Remove parameter int from to_close
9349 (push_target, unpush_target, pop_target): Remove parameter quitting from
9351 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9352 Remove parameter quitting from a caller.
9353 (target_preopen): Remove parameter quitting from a caller.
9354 (target_close): Remove parameter quitting. Remove parameter quitting
9355 from a caller two times. Remove parameter quitting also from
9357 * target.h (struct target_ops): Remove parameter quitting and as int
9358 from fields to_xclose and to_close.
9359 (extern struct target_ops current_target):
9360 (target_close, pop_all_targets): Remove parameter quitting. Update the
9362 (pop_all_targets_above): Remove parameter quitting.
9363 * top.c (quit_target): Remove parameter quitting from a caller.
9364 * tracepoint.c (tfile_close): Remove parameter quitting.
9365 * windows-nat.c (windows_close): Remove parameter quitting.
9367 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9369 * windows-nat.c (handle_output_debug_string): Replace call
9370 to string_to_core_addr with call to strtoull.
9372 2013-03-20 Yao Qi <yao@codesourcery.com>
9374 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9375 and write it to CTF metadata.
9377 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9379 * windows-nat.c (handle_output_debug_string): Change type of n to
9380 SIZE_T to avoid crash on 64 bit systems.
9382 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9384 * python/python-internal.h (HAVE_SNPRINTF)
9385 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9386 about redefinition of snprintf by pyerrors.h.
9388 2013-03-15 Steve Ellcey <sellcey@mips.com>
9390 * remote-sim.c (sim_command_completer): Make char arguments const.
9392 2013-03-15 Tom Tromey <tromey@redhat.com>
9395 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9397 2013-03-14 Tom Tromey <tromey@redhat.com>
9399 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9401 (get_file_crc): Move from symfile.c.
9402 (gdb_bfd_crc): New function.
9403 * gdb_bfd.h (gdb_bfd_crc): Declare.
9404 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9405 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9406 (separate_debug_file_exists): Use gdb_bfd_crc.
9408 2013-03-14 Tom Tromey <tromey@redhat.com>
9410 * symfile.c (get_debug_link_info): Remove.
9411 (find_separate_debug_file_by_debuglink): Use
9412 bfd_get_debug_link_info.
9414 2013-03-14 Tom Tromey <tromey@redhat.com>
9416 * symtab.c (error_in_psymtab_expansion): New function.
9417 (lookup_symbol_aux_quick)
9418 (basic_lookup_transparent_type_quick): Remove "last resort"
9419 code. Use error_in_psymtab_expansion.
9421 2013-03-14 Doug Evans <dje@google.com>
9422 Jan Kratochvil <jan.kratochvil@redhat.com>
9424 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9425 any successful compare_filenames_for_search or FILENAME_CMP.
9426 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9427 * symtab.c (iterate_over_some_symtabs): Likewise.
9429 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9431 * source.c (print_source_lines_base): Make a local copy of
9434 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9435 Jan Kratochvil <jan.kratochvil@redhat.com>
9437 * source.c (print_source_lines_base): Suppress "file" for TUI.
9439 2013-03-14 Keith Seitz <keiths@redhat.com>
9440 Alan Matsuoka <alanm@redhat.com>
9444 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9446 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9449 2013-03-14 Yao Qi <yao@codesourcery.com>
9451 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9452 status to tfile if trace is stopped by command 'tstop'.
9454 2013-03-14 Yao Qi <yao@codesourcery.com>
9456 * tracepoint.c (tfile_write_status): Write trace notes and user
9457 name into tfile if they are not NULL.
9459 2013-03-14 Hui Zhu <hui@codesourcery.com>
9460 Yao Qi <yao@codesourcery.com>
9462 * Makefile.in (REMOTE_OBS): Add ctf.o.
9463 (SFILES): Add ctf.c.
9464 (HFILES_NO_SRCDIR): Add ctf.h.
9465 * ctf.c, ctf.h: New files.
9466 * tracepoint.c: Include 'ctf.h'.
9467 (collect_pseudocommand): Remove static.
9468 (trace_save_command): Parse option "-ctf".
9469 Produce different trace file writers per option.
9470 Adjust output message.
9471 (trace_save_tfile, trace_save_ctf): New.
9472 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9473 * mi/mi-main.c: Include 'ctf.h'.
9474 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9475 trace_save_tfile or trace_save_ctf.
9476 * NEWS: Mention these changes.
9478 2013-03-14 Yao Qi <yao@codesourcery.com>
9480 * tracepoint.c (trace_file_writer_xfree): New.
9481 (struct tfile_writer_data): New.
9482 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9483 (tfile_write_header, tfile_write_regblock_type): New.
9484 (tfile_write_status, tfile_write_uploaded_tsv): New.
9485 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9486 (tfile_write_raw_data, (tfile_end): New.
9487 (tfile_write_ops): New global variable.
9488 (TRACE_WRITE_R_BLOCK): New macro.
9489 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9490 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9491 (TRACE_WRITE_V_BLOCK): New macro.
9492 (trace_save): Add extra one parameter WRITER. Make it static.
9493 Use WRITER to writer trace.
9494 (tfile_trace_file_writer_new): New.
9495 (trace_save_command): Caller update.
9496 (trace_save_tfile): Write trace data in TFILE format.
9497 * tracepoint.h (struct trace_frame_write_ops): New.
9498 (struct trace_file_write_ops): New.
9499 (struct trace_file_writer): New.
9500 (trace_save): Remove its declaration.
9501 (trace_save_tfile): Declare it.
9502 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9503 instead of trace_save.
9505 2013-03-13 Pedro Alves <palves@redhat.com>
9507 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9509 2013-03-13 Pedro Alves <palves@redhat.com>
9511 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9513 * demangle.c (current_demangling_style_string): Make it const.
9514 (set_demangling_command): Assert the demangling style is known.
9515 Remove all handling of unknown styles. Set
9516 'current_demangling_style_string' to an element of the
9517 demangling_style_names array.
9518 (set_demangling_style): Delete.
9519 (_initialize_demangler): Set current_demangling_style_string to the
9520 element of the demangling_style_names array that corresponds to
9521 the default demangling style. Remove FIXME note. Don't call
9522 set_demangling_style.
9523 * gdb-demangle.h (set_demangling_style): Remove declaration.
9525 2013-03-13 Pedro Alves <palves@redhat.com>
9527 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9529 (ada_make_symbol_completion_list): Make "text0" parameter const.
9530 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9531 * breakpoint.c (condition_completer): Make "text" and "word"
9532 parameters const. Adjust.
9533 (check_tracepoint_command): Adjust to validate_actionline
9535 (catch_syscall_completer): Make "text" and "word" parameters
9537 * cli/cli-cmds.c (show_user): Make "comname" local const.
9538 (valid_command_p): Make "command" parameter const.
9539 (alias_command): Make "alias_prefix" and "command_prefix" locals
9541 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9542 (add_alias_cmd): Make "name" and "oldname" parameters const.
9543 Adjust. No longer make copy of OLDNAME.
9544 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9545 (add_setshow_cmd_full, add_setshow_enum_cmd)
9546 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9547 (add_setshow_filename_cmd, add_setshow_string_cmd)
9548 (add_setshow_string_noescape_cmd)
9549 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9550 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9551 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9552 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9553 Make "name" parameter const.
9554 (help_cmd): Rename "command" parameter to "arg". New const local
9556 (find_cmd): Make "command" parameter const.
9557 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9558 deprecated_cmd_warning prototype change.
9559 (undef_cmd_error): Make "cmdtype" parameter const.
9560 (lookup_cmd): Make "line" parameter const.
9561 (deprecated_cmd_warning): Change type of "text" parameter to
9562 pointer to const char, from pointer to pointer to char. Adjust.
9563 (lookup_cmd_composition): Make "text" parameter const.
9564 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9566 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9568 * cli/cli-script.c (validate_comname): Make "tem" local const.
9569 (define_command): New const local "tem_c". Use it in calls to
9571 (document_command): Make "tem" and "comfull" locals const.
9572 (show_user_1): Make "prefix" and "name" parameters const.
9573 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9575 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9576 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9577 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9578 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9579 (complete_on_enum, add_setshow_enum_cmd)
9580 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9581 (add_setshow_filename_cmd, add_setshow_string_cmd)
9582 (add_setshow_string_noescape_cmd)
9583 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9584 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9585 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9586 Change prototypes, constifying strings.
9587 * completer.c (noop_completer, filename_completer): Make "text"
9588 and "prefix" parameters const.
9589 (location_completer, expression_completer)
9590 (complete_line_internal): Make "text" and "prefix" parameters
9592 (command_completer, signal_completer): Make "text" and "prefix"
9594 * completer.h (noop_completer, filename_completer)
9595 (expression_completer, location_completer, command_completer)
9596 (signal_completer): Change prototypes.
9597 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9599 * cp-abi.c (cp_abi_completer): Likewise.
9600 * expression.h (parse_expression_for_completion): Change
9602 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9604 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9605 * infrun.c (handle_completer): Make "text" and "word" parameters
9607 * interps.c (interpreter_completer): Make "text" and "word"
9609 * language.h (struct language_defn)
9610 <la_make_symbol_completion_list>: Make "text" and "word"
9612 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9613 (parse_exp_in_context): Rename to ...
9614 (parse_exp_in_context_1): ... this.
9615 (parse_exp_in_context): Reimplement, with const hack from
9617 (parse_expression_for_completion): Make "string" parameter const.
9618 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9619 to pointer to const char. Adjust.
9620 (print_command_1): Make "exp" parameter const.
9621 (output_command): Rename to ...
9622 (output_command_const): ... this. Make "exp" parameter const.
9623 (output_command): Reimplement.
9624 (x_command): Adjust.
9625 (display_command): Rename "exp" parameter to "arg". New "exp"
9626 local, const version of "arg".
9627 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9628 "cmd_name" local const.
9629 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9631 (cmdpy_completer): Make "text" and "word" parameters const.
9632 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9633 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9635 * remote.c (_initialize_remote): Make "cmd_name" local const.
9636 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9637 parameters const. Adjust.
9638 (completion_list_add_fields): Make "sym_text", "text" and "word"
9640 (struct add_name_data) <sym_text, text, word>: Make fields const.
9641 (default_make_symbol_completion_list_break_on): Make "text" and
9642 "word" parameters const. Adjust locals.
9643 (default_make_symbol_completion_list)
9644 (make_symbol_completion_list, make_symbol_completion_type)
9645 (make_symbol_completion_list_fn): Make "text" and "word"
9647 (make_file_symbol_completion_list): Make "text", "word" and
9648 "srcfile" parameters const. Adjust locals.
9649 (add_filename_to_list): Make "text" and "word" parameters const.
9650 (struct add_partial_filename_data) <text, word>: Make fields
9652 (make_source_files_completion_list): Make "text" and "word"
9654 * symtab.h (default_make_symbol_completion_list_break_on)
9655 (default_make_symbol_completion_list, make_symbol_completion_list)
9656 (make_symbol_completion_type enum type_code)
9657 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9658 (make_source_files_completion_list): Change prototype.
9659 * top.c (execute_command): Adjust to pass pointer to pointer to
9660 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9662 (set_verbose): Make "cmdname" local const.
9663 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9665 (validate_actionline): Make "line" parameter a pointer to const
9667 (encode_actions_1): Make "action_exp" local const, and adjust.
9668 (encode_actions): Adjust.
9669 (replace_comma): Delete.
9670 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9671 const, and adjust. Don't frob the action string while splitting
9672 it at commas. Instead, make a copy of each split substring in
9674 (trace_dump_command): Adjust to validate_actionline prototype
9676 * tracepoint.h (decode_agent_options, decode_agent_options)
9677 (encode_actions, validate_actionline): Change prototypes.
9678 * valprint.h (output_command): Delete declaration.
9679 (output_command_const): Declare.
9680 * value.c (function_destroyer): Cast const away in xfree call.
9682 2013-03-13 Pedro Alves <palves@redhat.com>
9684 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9685 rather than casting 'const char * const *' to 'const char **'.
9686 * ada-lex.l (processInt): Make "trailer" local const. Remove
9687 'const char **' cast.
9688 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9689 locals, and use those as strtol output pointer, instead than doing
9690 invalid casts to from 'const char **' to 'char **'.
9691 (_initialize_demangle): Remove cast.
9692 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9693 locals, and use those as strtol output pointer, instead than doing
9694 invalid casts to from 'const char **' to 'char **'.
9695 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9697 * stap-probe.c (stap_parse_register_operand)
9698 (stap_parse_single_operand): Likewise.
9700 2013-03-13 Yao Qi <yao@codesourcery.com>
9702 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9703 the last matched 'V' blcok in trace frame.
9705 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9707 * NEWS: Create a new section for the next release branch.
9708 Rename the section of the current branch, now that it has
9711 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9713 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9714 * version.in: Bump version to 7.6.50.20130312-cvs.
9716 2013-03-12 Keith Seitz <keiths@redhat.com>
9718 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9719 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9720 Remove temporary copy of input string.
9721 (mi_execute_command_wrapper): Make "cmd" const.
9722 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9723 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9725 (mi_parse): Make "cmd" const.
9727 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9729 2013-03-12 Keith Seitz <keiths@redhat.com>
9731 * ada-lang.c (ada_read_renaming_var_value): Pass const
9732 pointer to expression string to parse_exp_1.
9733 (create_excep_cond_exprs): Likewise.
9734 * ax-gdb.c (agent_eval_command_one): Likewise.
9735 (maint_agent_printf_command): Likewise.
9736 Constify much of the string handling/parsing.
9737 * breakpoint.c (set_breakpoint_condition): Pass const
9738 pointer to expression string to parse_exp_1.
9739 (update_watchpoint): Likewise.
9740 (parse_cmd_to_aexpr): Constify string handling.
9741 Pass const pointer to parse_exp_1.
9742 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9743 (find_condition_and_thread): Likewise.
9745 (watch_command_1): Make "arg" const.
9746 Constify string handling.
9747 Copy the expression string instead of changing the input
9749 (update_breakpoint_location): Pass const pointer to
9751 * eval.c (parse_and_eval_address): Make "exp" const.
9752 (parse_to_comma_and_eval): Make "expp" const.
9753 (parse_and_eval): Make "exp" const.
9754 * expression.h (parse_expression): Make argument const.
9755 (parse_exp_1): Make first argument const.
9756 * findcmd.c (parse_find_args): Treat "args" as const.
9757 * linespec.c (parse_linespec): Pass const pointer to
9758 linespec_expression_to_pc.
9759 (linespec_expression_to_pc): Make "exp_ptr" const.
9760 * parse.c (parse_exp_1): Make "stringptr" const.
9761 Make a copy of the expression to pass to parse_exp_in_context until
9762 this whole interface can be constified.
9763 (parse_expression): Make "string" const.
9764 * printcmd.c (ui_printf): Treat "arg" as const.
9765 Handle const strings.
9766 * tracepoint.c (validate_actionline): Pass const pointer to
9767 all calls to parse_exp_1.
9768 (encode_actions_1): Likewise.
9769 * value.h (parse_to_comma_and_eval): Make argument const.
9770 (parse_and_eval_address): Likewise.
9771 (parse_and_eval): Likewise.
9772 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9773 (varobj_set_value): Likewise.
9774 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9775 constify string handling.
9776 Pass const pointers to parse_and_eval_address and
9777 parse_to_comman_and_eval.
9778 * cli/cli-utils.c (skip_to_space): Rename to ...
9779 (skip_to_space_const): ... this. Handle const strings.
9780 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9781 skip_to_space_const.
9782 (skip_to_space_const): Declare.
9783 * common/format.c (parse_format_string): Make "arg" const.
9784 Handle const strings.
9785 * common/format.h (parse_format_string): Make "arg" const.
9786 * gdbserver/ax.c (ax_printf): Make "format" const.
9787 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9788 of the expression string.
9790 2013-03-12 Hui Zhu <hui@codesourcery.com>
9792 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9794 2013-03-12 Yao Qi <yao@codesourcery.com>
9795 Hui Zhu <hui@codesourcery.com>
9797 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9798 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9801 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9803 * ada-lex.l (rules): Only recognize 'thread' as a
9804 delimiter when followed by numerals, as for c-exp.y.
9805 Use new rewind_to_char function to rewind the input for
9806 expression-delimiting tokens.
9807 (rewind_to_char): New function.
9809 2013-03-11 Pedro Alves <palves@redhat.com>
9810 Jan Kratochvil <jan.kratochvil@redhat.com>
9812 * configure: Regenerate.
9813 * configure.ac (check dynamic export flag): Link python test with
9816 2013-03-11 Doug Evans <dje@google.com>
9817 Keith Seitz <keiths@redhat.com>
9819 * linespec.c (find_linespec_symbols): Call find_function_symbols
9820 first, and then call lookup_prefix_sym/find_method.
9822 2013-03-11 Pedro Alves <palves@redhat.com>
9824 * charset.c (convert_between_encodings): Don't cast between
9825 different pointer to pointer types. Instead, make the 'inp' local
9826 be of the type iconv expects.
9827 (wchar_iterate): Don't cast between different pointer to pointer
9828 types. Instead, use new pointer local of the type iconv expects.
9829 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9830 Add new local of type char pointer, and use it to get a
9831 char/string view of the byte buffer, instead of casting between
9832 pointer to pointer types.
9834 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9836 * remote.c (remote_set_trace_buffer_size): Move != operator
9837 to the start of next line to fix an ARI warning.
9839 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9841 * NEWS: Add record changes.
9843 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9845 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9846 the instruction history disassembly.
9847 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9848 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9850 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9852 * Makefile.in (SFILES): Add record-btrace.c
9853 (COMMON_OBS): Add record-btrace.o
9854 * record-btrace.c: New.
9855 * objfiles.c: Include btrace.h.
9856 (free_objfile): call btrace_free_objfile.
9858 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9860 * target.c (target_call_history, target_call_history_from,
9861 target_call_history_range): New.
9862 * target.h (target_ops) <to_call_history, to_call_history_from,
9863 to_call_history_range>: New fields.
9864 (target_call_history, target_call_history_from,
9865 target_call_history_range): New declaration.
9866 * record.c (get_call_history_modifiers, cmd_record_call_history,
9867 record_call_history_size): New.
9868 (_initialize_record): Add the "record function-call-history" command.
9869 Add "set/show record function-call-history-size" commands.
9870 * record.h (record_print_flag): New.
9872 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9874 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9875 to_insn_history_range>: New fields.
9876 (target_insn_history): New.
9877 (target_insn_history_from): New.
9878 (target_insn_history_range): New.
9879 * target.c (target_insn_history): New.
9880 (target_insn_history_from): New.
9881 (target_insn_history_range): New.
9882 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9883 (record_insn_history_size): New.
9884 (get_insn_number): New.
9885 (get_context_size): New.
9887 (get_insn_history_modifiers): New.
9888 (cmd_record_insn_history): New.
9889 (_initialize_record): Add "set/show record instruction-history-size"
9890 command. Add "record instruction-history" command.
9892 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9894 * record.h (record_disconnect): New.
9895 (record_detach): New.
9896 (record_mourn_inferior): New.
9898 * record-full.c (record_disconnect, record_detach,
9899 record_mourn_inferior, record_kill): Move to...
9900 * record.c: ...here.
9903 (record_unpush): New.
9904 (cmd_record_stop): Call record_stop. Replace unpush_target
9905 call with record_unpush call.
9906 (record_disconnect, record_detach): Assert that the target
9907 is of record stratum. Call record_unpush, record_stop, and
9909 (record_mourn_inferior, record_kill): Assert that the target
9910 is of record stratum. Call record_unpush and DEBUG.
9912 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9914 * record-full.h, record-full.c (record_memory_query): Rename
9916 (record_full_memory_query): ...this. Update all users.
9917 (record_arch_list_add_reg): Rename to ...
9918 (record_full_arch_list_add_reg): ...this. Update all users.
9919 (record_arch_list_add_mem): Rename to ...
9920 (record_full_arch_list_add_mem): ...this. Update all users.
9921 (record_arch_list_add_end): Rename to ...
9922 (record_full_arch_list_add_end): ...this. Update all users.
9923 (record_gdb_operation_disable_set): Rename to ...
9924 (record_full_gdb_operation_disable_set): ...this.
9927 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9929 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9930 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9931 (RECORD_IS_REPLAY): Renamed to ...
9932 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9933 (RECORD_FILE_MAGIC): Renamed to ...
9934 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9935 (record_mem_entry): Renamed to ...
9936 (record_full_mem_entry): ... this. Updated all users.
9937 (record_reg_entry): Renamed to ...
9938 (record_full_reg_entry): ... this. Updated all users.
9939 (record_end_entry): Renamed to ...
9940 (record_full_end_entry): ... this. Updated all users.
9941 (record_type) <record_end, record_reg, record_mem>: Renamed
9943 (record_full_type) <record_full_end, record_full_reg,
9944 record_full_mem>: ... this. Updated all users.
9945 (record_entry): Renamed to ...
9946 (record_full_entry): ... this. Updated all users.
9947 (record_core_buf_entry): Renamed to ...
9948 (record_full_core_buf_entry): ... this. Updated all users.
9949 (record_core_regbuf): Renamed to ...
9950 (record_full_core_regbuf): ... this. Updated all users.
9951 (record_core_start): Renamed to ...
9952 (record_full_core_start): ... this. Updated all users.
9953 (record_core_end): Renamed to ...
9954 (record_full_core_end): ... this. Updated all users.
9955 (record_core_buf_list): Renamed to ...
9956 (record_full_core_buf_list): ... this. Updated all users.
9957 (record_first): Renamed to ...
9958 (record_full_first): ... this. Updated all users.
9959 (record_list): Renamed to ...
9960 (record_full_list): ... this. Updated all users.
9961 (record_arch_list_head): Renamed to ...
9962 (record_full_arch_list_head): ... this. Updated all users.
9963 (record_arch_list_tail): Renamed to ...
9964 (record_full_arch_list_tail): ... this. Updated all users.
9965 (record_stop_at_limit): Renamed to ...
9966 (record_full_stop_at_limit): ... this. Updated all users.
9967 (record_insn_max_num): Renamed to ...
9968 (record_full_insn_max_num): ... this. Updated all users.
9969 (record_insn_num): Renamed to ...
9970 (record_full_insn_num): ... this. Updated all users.
9971 (record_insn_count): Renamed to ...
9972 (record_full_insn_count): ... this. Updated all users.
9973 (record_ops): Renamed to ...
9974 (record_full_ops): ... this. Updated all users.
9975 (record_core_ops): Renamed to ...
9976 (record_full_core_ops): ... this. Updated all users.
9977 (set_record_cmdlist): Renamed to ...
9978 (set_record_full_cmdlist): ... this. Updated all users.
9979 (show_record_cmdlist): Renamed to ...
9980 (show_record_full_cmdlist): ... this. Updated all users.
9981 (record_cmdlist): Renamed to ...
9982 (record_full_cmdlist): ... this. Updated all users.
9983 (record_beneath_to_resume_ops): Renamed to ...
9984 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9985 (record_beneath_to_resume): Renamed to ...
9986 (record_full_beneath_to_resume): ... this. Updated all users.
9987 (record_beneath_to_wait_ops): Renamed to ...
9988 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9989 (record_beneath_to_wait): Renamed to ...
9990 (record_full_beneath_to_wait): ... this. Updated all users.
9991 (record_beneath_to_store_registers_ops): Renamed to ...
9992 (record_full_beneath_to_store_registers_ops): ... this.
9994 (record_beneath_to_store_registers): Renamed to ...
9995 (record_full_beneath_to_store_registers): ... this.
9997 (record_beneath_to_xfer_partial_ops): Renamed to ...
9998 (record_full_beneath_to_xfer_partial_ops): ... this.
10000 (record_beneath_to_xfer_partial): Renamed to ...
10001 (record_full_beneath_to_xfer_partial): ... this.
10003 (record_beneath_to_insert_breakpoint): Renamed to ...
10004 (record_full_beneath_to_insert_breakpoint): ... this.
10006 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10007 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10009 (record_beneath_to_stopped_data_address): Renamed to ...
10010 (record_full_beneath_to_stopped_data_address): ... this.
10012 (record_beneath_to_async): Renamed to ...
10013 (record_full_beneath_to_async): ... this. Updated all users.
10014 (record_goto_insn): Renamed to ...
10015 (record_full_goto_insn): ... this. Updated all users.
10016 (record_save): Renamed to ...
10017 (record_full_save): ... this. Updated all users.
10018 (record_reg_alloc): Renamed to ...
10019 (record_full_reg_alloc): ... this. Updated all users.
10020 (record_reg_release): Renamed to ...
10021 (record_full_reg_release): ... this. Updated all users.
10022 (record_mem_alloc): Renamed to ...
10023 (record_full_mem_alloc): ... this. Updated all users.
10024 (record_mem_release): Renamed to ...
10025 (record_full_mem_release): ... this. Updated all users.
10026 (record_end_alloc): Renamed to ...
10027 (record_full_end_alloc): ... this. Updated all users.
10028 (record_end_release): Renamed to ...
10029 (record_full_end_release): ... this. Updated all users.
10030 (record_entry_release): Renamed to ...
10031 (record_full_entry_release): ... this. Updated all users.
10032 (record_list_release): Renamed to ...
10033 (record_full_list_release): ... this. Updated all users.
10034 (record_list_release_following): Renamed to ...
10035 (record_full_list_release_following): ... this.
10037 (record_list_release_first): Renamed to ...
10038 (record_full_list_release_first): ... this. Updated all users.
10039 (record_arch_list_add): Renamed to ...
10040 (record_full_arch_list_add): ... this. Updated all users.
10041 (record_get_loc): Renamed to ...
10042 (record_full_get_loc): ... this. Updated all users.
10043 (record_check_insn_num): Renamed to ...
10044 (record_full_check_insn_num): ... this. Updated all users.
10045 (record_arch_list_cleanups): Renamed to ...
10046 (record_full_arch_list_cleanups): ... this. Updated all users.
10047 (record_message): Renamed to ...
10048 (record_full_message): ... this. Updated all users.
10049 (record_message_wrapper): Renamed to ...
10050 (record_full_message_wrapper): ... this. Updated all users.
10051 (record_message_wrapper_safe): Renamed to ...
10052 (record_full_message_wrapper_safe): ... this. Updated all users.
10053 (record_gdb_operation_disable): Renamed to ...
10054 (record_full_gdb_operation_disable): ... this. Updated all users.
10055 (record_hw_watchpoint): Renamed to ...
10056 (record_full_hw_watchpoint): ... this. Updated all users.
10057 (record_exec_insn): Renamed to ...
10058 (record_full_exec_insn): ... this. Updated all users.
10059 (record_restore): Renamed to ...
10060 (record_full_restore): ... this. Updated all users.
10061 (record_async_inferior_event_token): Renamed to ...
10062 (record_full_async_inferior_event_token): ... this.
10064 (record_async_inferior_event_handler): Renamed to ...
10065 (record_full_async_inferior_event_handler): ... this.
10067 (record_core_open_1): Renamed to ...
10068 (record_full_core_open_1): ... this. Updated all users.
10069 (record_open_1): Renamed to ...
10070 (record_full_open_1): ... this. Updated all users.
10071 (record_open): Renamed to ...
10072 (record_full_open): ... this. Updated all users.
10073 (record_close): Renamed to ...
10074 (record_full_close): ... this. Updated all users.
10075 (record_resume_step): Renamed to ...
10076 (record_full_resume_step): ... this. Updated all users.
10077 (record_resumed): Renamed to ...
10078 (record_full_resumed): ... this. Updated all users.
10079 (record_execution_dir): Renamed to ...
10080 (record_full_execution_dir): ... this. Updated all users.
10081 (record_resume): Renamed to ...
10082 (record_full_resume): ... this. Updated all users.
10083 (record_get_sig): Renamed to ...
10084 (record_full_get_sig): ... this. Updated all users.
10085 (record_sig_handler): Renamed to ...
10086 (record_full_sig_handler): ... this. Updated all users.
10087 (record_wait_cleanups): Renamed to ...
10088 (record_full_wait_cleanups): ... this. Updated all users.
10089 (record_wait_1): Renamed to ...
10090 (record_full_wait_1): ... this. Updated all users.
10091 (record_wait): Renamed to ...
10092 (record_full_wait): ... this. Updated all users.
10093 (record_stopped_by_watchpoint): Renamed to ...
10094 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10095 (record_disconnect): Renamed to ...
10096 (record_full_disconnect): ... this. Updated all users.
10097 (record_detach): Renamed to ...
10098 (record_full_detach): ... this. Updated all users.
10099 (record_mourn_inferior): Renamed to ...
10100 (record_full_mourn_inferior): ... this. Updated all users.
10101 (record_kill): Renamed to ...
10102 (record_full_kill): ... this. Updated all users.
10103 (record_stopped_data_address): Renamed to ...
10104 (record_full_stopped_data_address): ... this. Updated all users.
10105 (record_registers_change): Renamed to ...
10106 (record_full_registers_change): ... this. Updated all users.
10107 (record_store_registers): Renamed to ...
10108 (record_full_store_registers): ... this. Updated all users.
10109 (record_xfer_partial): Renamed to ...
10110 (record_full_xfer_partial): ... this. Updated all users.
10111 (record_breakpoint): Renamed to ...
10112 (record_full_breakpoint): ... this. Updated all users.
10113 (record_breakpoint_p): Renamed to ...
10114 (record_full_breakpoint_p): ... this. Updated all users.
10115 (record_breakpoints): Renamed to ...
10116 (record_full_breakpoints): ... this. Updated all users.
10117 (record_sync_record_breakpoints): Renamed to ...
10118 (record_full_sync_record_breakpoints): ... this.
10120 (record_init_record_breakpoints): Renamed to ...
10121 (record_full_init_record_breakpoints): ... this.
10123 (record_insert_breakpoint): Renamed to ...
10124 (record_full_insert_breakpoint): ... this. Updated all users.
10125 (record_remove_breakpoint): Renamed to ...
10126 (record_full_remove_breakpoint): ... this. Updated all users.
10127 (record_can_execute_reverse): Renamed to ...
10128 (record_full_can_execute_reverse): ... this. Updated all users.
10129 (record_get_bookmark): Renamed to ...
10130 (record_full_get_bookmark): ... this. Updated all users.
10131 (record_goto_bookmark): Renamed to ...
10132 (record_full_goto_bookmark): ... this. Updated all users.
10133 (record_async): Renamed to ...
10134 (record_full_async): ... this. Updated all users.
10135 (record_can_async_p): Renamed to ...
10136 (record_full_can_async_p): ... this. Updated all users.
10137 (record_is_async_p): Renamed to ...
10138 (record_full_is_async_p): ... this. Updated all users.
10139 (record_execution_direction): Renamed to ...
10140 (record_full_execution_direction): ... this. Updated all users.
10141 (record_info): Renamed to ...
10142 (record_full_info): ... this. Updated all users.
10143 (record_delete): Renamed to ...
10144 (record_full_delete): ... this. Updated all users.
10145 (record_is_replaying): Renamed to ...
10146 (record_full_is_replaying): ... this. Updated all users.
10147 (record_goto_entry): Renamed to ...
10148 (record_full_goto_entry): ... this. Updated all users.
10149 (record_goto_begin): Renamed to ...
10150 (record_full_goto_begin): ... this. Updated all users.
10151 (record_goto_end): Renamed to ...
10152 (record_full_goto_end): ... this. Updated all users.
10153 (record_goto): Renamed to ...
10154 (record_full_goto): ... this. Updated all users.
10155 (init_record_ops): Renamed to ...
10156 (init_record_full_ops): ... this. Updated all users.
10157 (record_core_resume): Renamed to ...
10158 (record_full_core_resume): ... this. Updated all users.
10159 (record_core_kill): Renamed to ...
10160 (record_full_core_kill): ... this. Updated all users.
10161 (record_core_fetch_registers): Renamed to ...
10162 (record_full_core_fetch_registers): ... this. Updated all users.
10163 (record_core_prepare_to_store): Renamed to ...
10164 (record_full_core_prepare_to_store): ... this. Updated all users.
10165 (record_core_store_registers): Renamed to ...
10166 (record_full_core_store_registers): ... this. Updated all users.
10167 (record_core_xfer_partial): Renamed to ...
10168 (record_full_core_xfer_partial): ... this. Updated all users.
10169 (record_core_insert_breakpoint): Renamed to ...
10170 (record_full_core_insert_breakpoint): ... this. Updated all users.
10171 (record_core_remove_breakpoint): Renamed to ...
10172 (record_full_core_remove_breakpoint): ... this. Updated all users.
10173 (record_core_has_execution): Renamed to ...
10174 (record_full_core_has_execution): ... this. Updated all users.
10175 (init_record_core_ops): Renamed to ...
10176 (init_record_full_core_ops): ... this. Updated all users.
10177 (cmd_record_restore): Renamed to ...
10178 (cmd_record_full_restore): ... this. Updated all users.
10179 (record_save_cleanups): Renamed to ...
10180 (record_full_save_cleanups): ... this. Updated all users.
10181 (cmd_record_start): Renamed to ...
10182 (cmd_record_full_start): ... this. Updated all users.
10183 (set_record_insn_max_num): Renamed to ...
10184 (set_record_full_insn_max_num): ... this. Updated all users.
10185 (set_record_command): Renamed to ...
10186 (set_record_full_command): ... this. Updated all users.
10187 (show_record_command): Renamed to ...
10188 (show_record_full_command): ... this. Updated all users.
10189 (_initialize_record): Renamed to ...
10190 (_initialize_record_full): ... this. Updated all users.
10192 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10194 * record.h: Split into this and ...
10195 * record-full.h: ... this.
10196 * record.c: Split into this and ...
10197 * record-full.c: ... this.
10198 * target.h (target_ops): Add new fields to_info_record,
10199 to_save_record, to_delete_record, to_record_is_replaying,
10200 to_goto_record_begin, to_goto_record_end, to_goto_record.
10201 (target_info_record): New.
10202 (target_save_record): New.
10203 (target_supports_delete_record): New.
10204 (target_delete_record): New.
10205 (target_record_is_replaying): New.
10206 (target_goto_record_begin): New.
10207 (target_goto_record_end): New.
10208 (target_goto_record): New.
10209 * target.c (target_info_record): New.
10210 (target_save_record): New.
10211 (target_supports_delete_record): New.
10212 (target_delete_record): New.
10213 (target_record_is_replaying): New.
10214 (target_goto_record_begin): New.
10215 (target_goto_record_end): New.
10216 (target_goto_record): New.
10217 * record.h: Declare struct cmd_list_element.
10218 (record_cmdlist): New declaration.
10219 (set_record_cmdlist): New declaration.
10220 (show_record_cmdlist): New declaration.
10221 (info_record_cmdlist): New declaration.
10222 (cmd_record_goto): New declaration.
10223 * record.c: Remove unnecessary includes.
10224 Include inferior.h.
10225 (cmd_record_goto): Remove declaration.
10226 (record_cmdlist): Now extern. Initialize.
10227 (set_record_cmdlist): Now extern. Initialize.
10228 (show_record_cmdlist): Now extern. Initialize.
10229 (info_record_cmdlist): Now extern. Initialize.
10230 (find_record_target): New.
10231 (require_record_target): New.
10232 (cmd_record_start): Update.
10233 (cmd_record_delete): Remove target-specific code.
10234 Call target_delete_record.
10235 (cmd_record_stop): Unpush any record target.
10236 (set_record_insn_max_num): Move to record-full.c
10237 (set_record_command): Add comment.
10238 (show_record_command): Add comment.
10239 (info_record_command): Update comment.
10240 Remove target-specific code.
10241 Call the record target's to_info_record.
10242 (cmd_record_start): New.
10243 (cmd_record_goto): Now extern.
10244 Remove target-specific code.
10245 Call target_goto_begin, target_goto_end, or target_goto.
10246 (_initialize_record): Move record target ops initialization to
10248 Change "record" command help text.
10249 Move "record restore", "record set", and "record show" commands to
10251 * Makefile.in (SFILES): Add record-full.c.
10252 (HFILES_NO_SRCDIR): Add record-full.h.
10253 (COMMON_OBS): Add record-full.o.
10254 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10255 * arm-tdep.c: Include record-full.h.
10256 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10257 * i386-tdep.c: Include record-full.h.
10258 * infrun.c: Include record-full.h.
10259 * linux-record.c: Include record-full.h.
10260 * moxie-tdep.c: Include record-full.h.
10261 * record-full.c: Include record-full.h.
10262 Change module comment.
10263 (set_record_full_cmdlist): New.
10264 (show_record_full_cmdlist): New.
10265 (record_full_cmdlist): New.
10266 (record_goto_insn): New declaration.
10267 (record_save): New declaration.
10268 (record_check_insn_num): Change query string.
10269 (record_info): New.
10270 (record_delete): New.
10271 (record_is_replaying): New.
10272 (record_goto_entry): New.
10273 (record_goto_begin): New.
10274 (record_goto_end): New.
10275 (record_goto): New.
10276 (init_record_ops): Update.
10277 (init_record_core_ops): Update.
10278 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10279 (cmd_record_start): New.
10280 (set_record_insn_max_num): Moved from record.c
10281 (set_record_full_command): New.
10282 (show_record_full_command): New.
10283 (_initialize_record_full): New.
10285 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10287 * target.h (add_deprecated_target_alias): New.
10288 * target.c (add_deprecated_target_alias): New.
10290 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10292 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10294 (linux_supports_btrace): Add kernel and
10296 (kernel_supports_btrace): New function.
10297 (cpu_supports_btrace): New function.
10298 (intel_supports_btrace): New function.
10300 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10302 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10303 * remote.c: Include btrace.h.
10304 (struct btrace_target_info): New struct.
10305 (remote_supports_btrace): New function.
10306 (send_Qbtrace): New function.
10307 (remote_enable_btrace): New function.
10308 (remote_disable_btrace): New function.
10309 (remote_teardown_btrace): New function.
10310 (remote_read_btrace): New function.
10311 (init_remote_ops): Add btrace ops.
10312 (enum <unnamed>): Add btrace packets.
10313 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10314 (_initialize_remote): Add packet configuration for branch tracing.
10316 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10318 * features/btrace.dtd: New file.
10319 * Makefile.in (XMLFILES): Add btrace.dtd.
10320 * btrace.h (parse_xml_btrace): New declaration.
10321 * btrace.c: Include xml-support.h.
10322 (parse_xml_btrace): New function.
10323 (parse_xml_btrace_block): New function.
10324 (block_attributes): New struct.
10325 (btrace_attributes): New struct.
10326 (btrace_children): New struct.
10327 (btrace_elements): New struct.
10329 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10331 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10332 (amd64_linux_enable_btrace): New.
10333 (amd64_linux_disable_btrace): New.
10334 (amd64_linux_teardown_btrace): New.
10335 (_initialize_amd64_linux_nat): Initialize btrace ops.
10336 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10337 (i386_linux_enable_btrace): New.
10338 (i386_linux_disable_btrace): New.
10339 (i386_linux_teardown_btrace): New.
10340 (_initialize_i386_linux_nat): Initialize btrace ops.
10341 * config/i386/linux.mh: Add linux-btrace.o.
10342 * config/i386/linux64.mh: Add linux-btrace.o.
10344 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10346 * common/linux_btrace.h: New file.
10347 * common/linux_btrace.c: New file.
10348 * Makefile.in (SFILES): Add btrace.c.
10349 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10350 (COMMON_OBS): Add btrace.o.
10351 (linux-btrace.o): New rule.
10353 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10355 * target.h: Include btrace.h.
10356 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10357 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10358 * target.c (target_supports_btrace): New function.
10359 (target_enable_btrace): New function.
10360 (target_disable_btrace): New function.
10361 (target_teardown_btrace): New function.
10362 (target_read_btrace): New function.
10363 * btrace.h: New file.
10364 * btrace.c: New file.
10365 * Makefile.in: Add btrace.c.
10366 * gdbthread.h: Include btrace.h.
10367 (struct thread_info): Add btrace field.
10368 * thread.c: Include btrace.h.
10369 (clear_thread_inferior_resources): Call target_teardown_btrace.
10370 * common/btrace-common.h: New file.
10372 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10374 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10375 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10376 kill_status to outer block.
10378 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10380 Fix entry-values if the callee called a noreturn function.
10381 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10382 get_frame_address_in_block. Add new comment.
10384 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10386 Fix entry-values in C++ across CUs.
10387 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10388 lookup_minimal_symbol. Add a comment.
10390 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10391 DW_AT_linkage_name.
10393 2013-03-08 Yao Qi <yao@codesourcery.com>
10395 * tracepoint.c (_initialize_tracepoint): Indent the code.
10397 2013-03-08 Pedro Alves <palves@redhat.com>
10399 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10400 (parse_find_args, find_command): Change type of pattern buffer
10401 locals to 'gdb_byte *'.
10403 2013-03-08 Stan Shebs <stan@codesourcery.com>
10404 Hafiz Abid Qadeer <abidh@codesourcery.com>
10406 * NEWS: Mention set and show trace-buffer-size commands.
10407 Mention new packet.
10408 * target.h (struct target_ops): New method
10409 to_set_trace_buffer_size.
10410 (target_set_trace_buffer_size): New macro.
10411 * target.c (update_current_target): Set up new method.
10412 * tracepoint.c (trace_buffer_size): New global.
10413 (start_tracing): Send it to the target.
10414 (set_trace_buffer_size): New function.
10415 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10416 * remote.c (remote_set_trace_buffer_size): New function.
10417 (_initialize_remote): Use it.
10418 (QTBuffer:size) New remote command.
10419 (PACKET_QTBuffer_size): New enum.
10420 (remote_protocol_features): Add an entry for
10421 PACKET_QTBuffer_size.
10423 2013-03-08 Tom Tromey <tromey@redhat.com>
10425 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10428 2013-03-07 Pedro Alves <palves@redhat.com>
10430 * target.c (target_read_stralloc, target_fileio_read_alloc):
10431 *Cast pointer to 'gdb_byte *' in target call.
10433 2013-03-07 Pedro Alves <palves@redhat.com>
10435 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10438 2013-03-07 Keith Seitz <keiths@redhat.com>
10440 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10441 (trace_pass_command): Likewise.
10442 * cli/cli-cmds.c: Include cli/cli-utils.h.
10443 (source_command): Use skip-spaces.
10444 (disassemble_command): Likewise.
10445 * findcmd.c: Include cli/cli-utils.h.
10446 (parse_find_args): Use skip_spaces.
10447 * go32-nat.c: Include cli/cli-utils.h.
10448 (go32_sldt): Use skip_spaces.
10449 (go32_sgdt): Likewise.
10450 (go32_sidt): Likewise.
10451 (go32_pde): Likewise.
10452 (go32_pte): Likewise.
10453 (go32_pte_for_address): Likewise.
10454 * infcmd.c: Include cli/cli-utils.h.
10455 (registers_info): Use skip_spaces.
10456 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10457 (linux_info_proc): Likewise.
10458 * linux-thread-db.c: Include cli/cli-utils.h.
10459 (info_auto_load_libthread_db): Use skip_spaces_const.
10460 * m32r-rom.c: Include cli/cli-utils.h.
10461 (m32r_upload_command): Use skip_spaces.
10462 * maint.c: Include cli/cli-utils.h.
10463 (maintenance_translate_address): Use skip_spaces.
10464 * mi/mi-parse.c: Include cli/cli-utils.h.
10465 (mi_parse_argv): Use skip_spaces.
10466 (mi_parse): Likewise.
10467 * minsyms.c: Include cli/cli-utils.h.
10468 (msymbol_hash_iw): Use skip_spaces_const.
10469 * objc-lang.c: Include cli/cli-utils.h.
10470 (parse_selector): Use skip_spaces.
10471 (parse_method): Likewise.
10472 * python/python.c: Include cli/cli-utils.h.
10473 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10474 (python_command)[HAVE_PYTHON]: Likewise.
10475 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10476 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10477 (m32r_load): Use skip_spaces.
10478 * serial.c: Include cli/cli-utils.h.
10479 (serial_open): Use skip_spaces_const.
10480 * stack.c: Include cli/cli-utils.h.
10481 (parse_frame_specification_1): Use skip_spaces_const.
10482 * symfile.c: Include cli/cli-utils.h.
10483 (set_ext_lang_command): Use skip_spaces.
10484 * symtab.c: Include cli/cli-utils.h.
10485 (rbreak_command): Use skip_spaces.
10486 * thread.c (thread_name_command): Use skip_spaces.
10487 * tracepoint.c (validate_actionline): Use skip_spaces.
10488 (encode_actions_1): Likewise.
10489 (trace_find_range_command): Likewise.
10490 (trace_find_outside_command): Likewise.
10491 (trace_dump_actions): Likewise.
10493 2013-03-07 Pedro Alves <palves@redhat.com>
10495 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10496 * expprint.c (print_subexp_standard): Likewise.
10497 * utils.c (host_char_to_target): Likewise.
10498 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10499 * varobj.c (value_get_print_value): Change type of local to char*.
10500 Cast it gdb_byte * in call to language printer.
10502 2013-03-07 Pedro Alves <palves@redhat.com>
10504 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10506 (make_wchar_iterator): Remove cast to char*.
10507 (wchar_iterate): Change type of local.
10509 2013-03-07 Pedro Alves <palves@redhat.com>
10511 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10512 for 'regcache->register_status'.
10514 2013-03-07 Pedro Alves <palves@redhat.com>
10516 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10519 2013-03-07 Pedro Alves <palves@redhat.com>
10521 * stap-probe.c (handle_stap_probe): Add cast to char*.
10523 2013-03-07 Pedro Alves <palves@redhat.com>
10525 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10526 RECORD_MSGRCV>: Pass a signed variable to
10527 regcache_raw_read_signed, instead of an unsigned one.
10529 2013-03-07 Pedro Alves <palves@redhat.com>
10531 * remote-notif.c (notif_debug): Change type to int.
10532 * remote-notif.h (notif_debug): Likewise.
10534 2013-03-07 Pedro Alves <palves@redhat.com>
10536 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10538 2013-03-07 Pedro Alves <palves@redhat.com>
10540 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10541 * remote.h (hex2bin, bin2hex): ... here.
10542 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10544 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10546 * utils.c (initialize_utils): Improve doc strings of "set/show
10547 width", "set/show height", and "set/show pagination".
10549 2013-03-06 Keith Seitz <keiths@redhat.com>
10551 * ax-gdb.c (gen_printf): Make FORMAT const.
10552 * ax-gdb.h (gen_printf): Likewise.
10553 * ax-general.c (ax_string): Make STR const.
10554 * ax.h (ax_string): Likewise.
10556 2013-03-06 Doug Evans <dje@google.com>
10558 * elfread.c (elf_symfile_read): Move debugging printf to more
10561 2013-03-06 Pedro Alves <palves@redhat.com>
10563 * python/py-utils.c (target_string_to_unicode): Delete function.
10564 * python/python-internal.h (target_string_to_unicode): Delete
10567 2013-03-06 Pierre Muller <muller@sourceware.org>
10569 * linespec.c (get_current_search_block): ARI fix, use (void)
10570 for empty parameter list.
10572 2013-03-05 Doug Evans <dje@google.com>
10574 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10575 of old ada_lookup_symbol_list. In !full_search case, don't
10576 search superblocks.
10577 (ada_lookup_symbol_list): Delete arg full_search, all callers
10578 updated. Call ada_lookup_symbol_list_worker.
10579 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10580 * ada-lang.h (ada_lookup_symbol_list): Update.
10581 * language.h (language_defn): Update comment for
10582 la_iterate_over_symbols.
10583 * linespec.c (iterate_over_file_blocks): New function.
10584 (iterate_over_all_matching_symtabs): Call it.
10585 (lookup_prefix_sym): Ditto.
10586 (get_current_search_block): New function.
10587 (get_search_block): Delete.
10588 (find_label_symbols): Call get_current_search_block.
10589 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10590 * symtab.c (iterate_over_symbols): Don't search superblocks.
10592 2013-03-05 Yao Qi <yao@codesourcery.com>
10594 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10595 parameter VAR's type from "unsigned int" to "int".
10596 * command.h (var_zuinteger_unlimited): Update its comments.
10597 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10599 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10601 * NEWS: Mention new target x86_64-*-cygwin*.
10603 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10605 * configure.host: Add x86_64-*-cygwin* as host.
10606 * configure.tgt: Add x86_64-*-cygwin* as target.
10607 * config/i386/cygwin64.mh: New file.
10609 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10611 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10613 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10615 * linespec.c (struct linespec_canonical_name): New.
10616 (struct linespec_state): Change canonical_names type to it.
10617 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10618 xrealloc element size. Initialize the different CANONICAL fields.
10619 (canonical_to_fullform): New.
10620 (filter_results): Use it. Add variables canonical, fullform and
10622 (struct decode_line_2_item, decode_line_2_compare_items): New.
10623 (decode_line_2): Remove variables iter and item_names, add variables
10624 items and items_count. Modify the code for these new variables.
10626 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10628 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10629 calling do_cleanup.
10631 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10633 * tracepoint.c (build_traceframe_info): Add code for byte order.
10635 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10637 * v850-tdep.c: (v850e2_register_name): Revise system register
10638 names to match current V850E2M architecture specifications.
10639 Update register number enum comments too.
10641 2013-03-01 Jiong Wang <jiwang@tilera.com>
10642 Pedro Alves <palves@redhat.com>
10644 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10646 (tilegx_skip_prologue): Limit prologue analysis to section end.
10648 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10650 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10653 2013-03-01 Pedro Alves <palves@redhat.com>
10655 Use gdb_byte for bytes from the program being debugged.
10657 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10658 Change type of local 'buf' to gdb_byte.
10659 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10660 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10661 * cris-tdep.c (cris_sigcontext_addr)
10662 (cris_sigtramp_frame_unwind_cache): Likewise.
10663 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10664 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10666 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10667 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10668 (hppa32_hpux_search_dummy_call_sequence)
10669 (hppa_hpux_supply_save_state): Likewise.
10670 * hppa-linux-tdep.c (insns_match_pattern)
10671 (hppa_linux_find_global_pointer): Likewise.
10672 * hppa-tdep.c (hppa_in_function_epilogue_p)
10673 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10674 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10675 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10676 (i386fbsd_collect_uthread): Likewise.
10677 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10678 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10679 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10680 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10681 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10682 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10683 (ia64_libunwind_frame_prev_register)
10684 (ia64_libunwind_sigtramp_frame_this_id)
10685 (ia64_find_global_pointer_from_dynamic_section)
10686 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10687 (ia64_unwind_pc): Likewise.
10688 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10689 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10690 (m68hc11_extract_return_value): Likewise.
10691 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10692 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10693 (mep_get_insn, mep_push_dummy_call): Likewise.
10694 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10695 (mips_linux_in_dynsym_stub): Likewise.
10696 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10697 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10698 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10700 * remote-mips.c (mips_set_register): Likewise.
10701 * remote-sim.c (gdbsim_fetch_register): Likewise.
10702 * score-tdep.c (score7_fetch_inst): Change type of parameter
10703 'memblock' and local 'buf' to gdb_byte.
10704 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10705 Change type of local 'buf' to gdb_byte. Adjust.
10706 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10708 (score7_analyze_prologue): Change type of 'memblock' and
10709 'memblock_ptr' locals to gdb_byte*.
10710 * sh64-tdep.c (sh64_extract_return_value)
10711 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10712 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10713 * solib-pa64.c (pa64_solib_create_inferior_hook)
10714 (pa64_open_symbol_file_object): Remove local 'buf'.
10715 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10716 (som_open_symbol_file_object): Likewise.
10717 * solib-spu.c (spu_current_sos): Likewise.
10718 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10719 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10720 (spu_store_registers): Likewise.
10721 * target.c (debug_print_register): Likewise.
10722 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10723 * xstormy16-tdep.c (xstormy16_store_return_value)
10724 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10725 (xstormy16_find_jmp_table_entry): Likewise.
10727 2013-03-01 Jiong Wang <jiwang@tilera.com>
10729 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10730 (tilegx_gdbarch_init): Install it.
10732 2013-02-28 Tom Tromey <tromey@redhat.com>
10734 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10737 2013-02-28 Doug Evans <dje@google.com>
10739 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10740 * python/python.c (gdbpy_find_pc_line): Ditto.
10742 2013-02-28 Tom Tromey <tromey@redhat.com>
10744 * contrib/excheck.py: New file.
10745 * contrib/exsummary.py: New file.
10746 * contrib/gcc-with-excheck: New file.
10748 2013-02-28 Tom Tromey <tromey@redhat.com>
10750 * python/python.c (gdbpy_print_stack): Call begin_line and
10751 fprintf_filtered inside TRY_CATCH.
10753 2013-02-28 Tom Tromey <tromey@redhat.com>
10755 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10758 2013-02-28 Tom Tromey <tromey@redhat.com>
10760 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10761 frame_object_to_frame_info inside TRY_CATCH.
10763 2013-02-28 Tom Tromey <tromey@redhat.com>
10765 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10768 2013-02-28 Tom Tromey <tromey@redhat.com>
10770 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10772 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10774 * windows-nat.c: Throughout, fix format strings and casts of
10775 printf-like functions to avoid type related warnings on all
10777 (handle_output_debug_string): Fetch context information address
10778 from debug string using string_to_core_addr.
10780 2013-02-27 Jiong Wang <jiwang@tilera.com>
10782 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10783 * regformats/reg-tilegx32.dat: New.
10785 2013-02-27 Jiong Wang <jiwang@tilera.com>
10787 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10789 2013-02-27 Jiong Wang <jiwang@tilera.com>
10791 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10793 2013-02-27 Yao Qi <yao@codesourcery.com>
10794 Pedro Alves <palves@redhat.com>
10796 * tracepoint.c (tfile_trace_find): For tfind
10797 pc/tp/range/outside, look for the next trace frame instead of
10798 always starting from frame 0.
10800 2013-02-26 Anthony Green <green@moxielogic.com>
10802 * configure.tgt: Add support for moxie-*-rtems* target.
10804 2013-02-25 Pedro Alves <palves@redhat.com>
10806 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10809 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10811 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10812 if $fp is used as the virtual frame pointer.
10814 2013-02-23 Alan Modra <amodra@gmail.com>
10816 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10818 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10819 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10820 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10821 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10823 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10826 * elfread.c (build_id_bfd_get): Make the return type const.
10827 (build_id_verify): Make the check parameter const.
10828 (build_id_to_debug_filename): Make the build_id parameter and variable
10830 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10832 2013-02-21 Alan Modra <amodra@gmail.com>
10834 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10836 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10838 Add a new method 'disassemble' to gdb.Architecture class.
10839 * python/py-arch.c (archpy_disassmble): Implementation of the
10840 new method gdb.Architecture.disassemble.
10841 (arch_object_methods): Add entry for the new method.
10843 2013-02-20 Jiong Wang <jiwang@tilera.com>
10845 * MAINTAINERS (Write After Approval): Add myself to the list.
10847 2013-02-19 Pedro Alves <palves@redhat.com>
10849 Garbage collect 'struct monitor_ops'::load_routine.
10851 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10852 * monitor.c (monitor_load): No longer call
10853 current_monitor->load_routine.
10854 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10855 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10856 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10858 2013-02-19 Pedro Alves <palves@redhat.com>
10862 Harmonize with generic_load.
10864 * monitor.c: Include "readline/readline.h".
10865 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10866 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10867 long/strtol for the 'load_offset' local. Error out if no argument
10868 is given or if too many arguments are given. Tilde expand the
10869 passed in file name.
10871 2013-02-19 Kai Tietz <ktietz@redhat.com>
10874 * symfile.c (load_section_data): Change type of load_offset
10876 (generic_load): User strtoulst instead of strtoul for conversion
10879 2013-02-19 Jiong Wang <jiwang@tilera.com>
10881 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10882 for return address, "lr" register, saved on stack.
10883 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10884 after we invoke tilegx_analyze_prologue.
10886 2013-02-19 Jiong Wang <jiwang@tilera.com>
10888 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10890 2013-02-19 Jiong Wang <jiwang@tilera.com>
10892 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10894 2013-02-19 Jiong Wang <jiwang@tilera.com>
10896 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10897 (tilegx_write_pc): New function.
10898 (tilegx_cannot_reference_register): Return zero if REGNO
10899 is TILEGX_FAULTNUM_REGNUM.
10900 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10901 (tilegx_register_name): Add handling of "faultnum" register.
10902 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10903 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10904 handling of TILEGX_FAULTNUM_REGNUM.
10905 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10907 2013-02-19 Jiong Wang <jiwang@tilera.com>
10909 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10910 should be aligned to 64bit.
10912 2013-02-19 Kai Tietz <ktietz@redhat.com>
10914 * windows-nat.c (windows_xfer_memory): Fix debug-output
10917 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10919 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10920 Don't check DSP register number if HAVE_DSP is not set.
10922 2013-02-19 Alan Modra <amodra@gmail.com>
10924 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10925 throughout file instead.
10926 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10927 Don't xmalloc return value.
10928 (build_id_verify): Similarly. Don't xfree.
10929 (build_id_to_debug_filename): Update.
10930 (find_separate_debug_file_by_buildid): Update, don't xfree.
10932 2013-02-18 Tom Tromey <tromey@redhat.com>
10935 * dwarf2read.c (read_subrange_type): Use result of
10938 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10940 * frame.c: Remove one extra white space after #include
10943 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10945 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10947 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10949 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10950 and dir commands into an if block.
10952 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10954 * python/py-breakpoint (struct pybp_code): Use int instead of
10957 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10958 Hafiz Abid Qadeer <abidh@codesourcery.com>
10960 * NEWS: Mention new field "trace-file".
10961 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10962 (tfile_open): Record the trace file's filename in the trace
10964 (tfile_files_info): Mention the name of the trace file.
10965 Check the "filename" field explicitely.
10966 (trace_status_command): Explicitely check "filename" field.
10967 (trace_find_command): Ditto.
10968 (trace_find_pc_command): Ditto.
10969 (trace_find_tracepoint_command): Ditto.
10970 (trace_find_line_command): Ditto.
10971 (trace_find_range_command): Ditto.
10972 (trace_find_outside_command): Ditto.
10973 * tracepoint.h (struct trace_status) <from_file>: Rename it
10974 to "filename" and make it hold the trace file's filename
10975 instead of a boolean.
10976 * remote.c (remote_get_trace_status): Initialize "filename"
10977 field with NULL instead of 0.
10979 2013-02-15 Yao Qi <yao@codesourcery.com>
10981 * remote.c: Fix a typo.
10983 2013-02-14 Pierre Muller <muller@sourceware.org>
10985 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10987 2013-02-14 Pedro Alves <palves@redhat.com>
10989 * utils.c (savestring): Don't #undef it. Move function to
10990 common/common-utils.c.
10991 * common/common-utils.c: Include gdb_string.h.
10992 (savestring): Move here from utils.c.
10993 * common/common-utils.h (savestring): Declare.
10995 2013-02-14 Pedro Alves <palves@redhat.com>
10997 * utils.c (savestring): Rename parameter 'size' to 'len'.
10999 2013-02-14 Pedro Alves <palves@redhat.com>
11000 Yufeng Zhang <yufeng.zhang@arm.com>
11002 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11003 (aarch64_inferior_data, struct aarch64_inferior_data):
11005 (struct aarch64_process_info): New.
11006 (aarch64_process_list): New global.
11007 (aarch64_find_process_pid, aarch64_add_process)
11008 (aarch64_process_info_get): New functions.
11009 (aarch64_inferior_data_get): Delete.
11010 (aarch64_process_info_get): New function.
11011 (aarch64_forget_process): New function.
11012 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11013 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11014 aarch64_get_debug_reg_state.
11015 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11016 instead of linux_nat_iterate_watchpoint_lwps.
11017 (aarch64_linux_new_fork): New function.
11018 (aarch64_linux_child_post_startup_inferior): Use
11019 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11020 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11021 (aarch64_linux_remove_hw_breakpoint)
11022 (aarch64_handle_aligned_watchpoint)
11023 (aarch64_handle_unaligned_watchpoint)
11024 (aarch64_linux_insert_watchpoint)
11025 (aarch64_linux_remove_watchpoint)
11026 (aarch64_linux_stopped_data_address): Adjust to pass the current
11027 process id to aarch64_debug_reg_state.
11028 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11029 linux_nat_new_fork hook, and aarch64_forget_process as
11030 linux_nat_forget_process hook; remove the call to
11031 register_inferior_data_with_cleanup.
11033 2013-02-14 Pedro Alves <palves@redhat.com>
11035 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11036 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11039 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11040 Hafiz Abid Qadeer <abidh@codesourcery.com>
11042 * tracepoint.h (validate_trace_state_variable_name): Declare.
11043 * tracepoint.c (validate_trace_state_variable_name): New.
11044 (trace_variable_command): Parse the trace state variable's name
11045 without using parse_expression. Do several validations.
11046 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11047 trace state variable's name with parse_expression. Validate it.
11049 2013-02-14 Yao Qi <yao@codesourcery.com>
11051 * infcmd.c (breakpoint_proceeded): Remove it.
11053 2013-02-14 Yao Qi <yao@codesourcery.com>
11055 * tracepoint.c (end_actions_pseudocommand): Make it static.
11056 (while_stepping_pseudocommand): Likewise.
11057 * tracepoint.h (end_actions_pseudocommand): Remove the
11059 (while_stepping_pseudocommand): Likewise.
11061 2013-02-14 Yao Qi <yao@codesourcery.com>
11063 * cli/cli-decode.c (help_cmd): Remove the declaration of
11065 (help_all): Likewise.
11067 2013-02-13 Pedro Alves <palves@redhat.com>
11069 * amd64-linux-nat.c (update_debug_registers_callback):
11071 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11073 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11074 i386_debug_reg_state.
11075 (amd64_linux_new_fork): New function.
11076 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11077 linux_nat_new_fork hook, and i386_forget_process as
11078 linux_nat_forget_process hook.
11079 * i386-linux-nat.c (update_debug_registers_callback):
11081 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11083 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11084 i386_debug_reg_state.
11085 (i386_linux_new_fork): New function.
11086 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11087 linux_nat_new_fork hook, and i386_forget_process as
11088 linux_nat_forget_process hook.
11089 * i386-nat.c (i386_init_dregs): Delete.
11090 (i386_inferior_data, struct i386_inferior_data):
11092 (struct i386_process_info): New.
11093 (i386_process_list): New global.
11094 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11096 (i386_inferior_data_get): Delete.
11097 (i386_process_info_get): New function.
11098 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11099 (i386_forget_process): New function.
11100 (i386_cleanup_dregs): Rewrite.
11101 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11102 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11103 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11104 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11105 to i386_debug_reg_state.
11106 (i386_use_watchpoints): Don't register inferior data.
11107 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11109 (i386_forget_process): Declare.
11110 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11111 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11112 New static globals.
11113 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11114 (add_initial_lwp): New, factored out from ...
11115 (add_lwp): ... this. Don't check the number of lwps before
11116 calling linux_nat_new_thread.
11117 (linux_nat_iterate_watchpoint_lwps): Delete.
11118 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11119 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11121 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11123 (linux_nat_kill, linux_nat_mourn_inferior): Call
11124 linux_nat_forget_process.
11125 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11126 (linux_nat_forget_process): New functions.
11127 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11129 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11130 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11132 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11133 (linux_nat_forget_process): New declarations.
11135 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11136 (amd64fbsd_mourn_inferior): New function.
11137 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11138 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11140 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11142 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11145 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11147 * aarch64-linux-nat.c (debug_reg_change_callback)
11148 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11151 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11153 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11156 2013-02-13 Pedro Alves <palves@redhat.com>
11157 Hafiz Abid Qadeer <abidh@codesourcery.com>
11159 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11161 2013-02-12 Tom Tromey <tromey@redhat.com>
11164 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11166 (classify_inner_name): Remove 'first_name' argument, add
11167 'context'. Remove unused variable.
11168 (yylex): Explicitly maintain the context type. Exit loop earlier
11169 if NAME result is seen.
11171 2013-02-12 Pedro Alves <palves@redhat.com>
11173 * amd64-darwin-tdep.c: Add (C) after Copyright.
11174 * cli/cli-cmds.h: Ditto.
11175 * cli/cli-decode.c: Ditto.
11176 * cli/cli-decode.h: Ditto.
11177 * cli/cli-dump.c: Ditto.
11178 * cli/cli-dump.h: Ditto.
11179 * cli/cli-interp.c: Ditto.
11180 * cli/cli-logging.c: Ditto.
11181 * cli/cli-script.c: Ditto.
11182 * cli/cli-script.h: Ditto.
11183 * cli/cli-setshow.c: Ditto.
11184 * cli/cli-setshow.h: Ditto.
11185 * cli/cli-utils.c: Ditto.
11186 * cli/cli-utils.h: Ditto.
11187 * config/alpha/nm-osf3.h: Ditto.
11188 * config/djgpp/djconfig.sh: Ditto.
11189 * config/i386/nm-fbsd.h: Ditto.
11190 * config/i386/nm-i386gnu.h: Ditto.
11191 * config/nm-linux.h: Ditto.
11192 * config/nm-nto.h: Ditto.
11193 * config/rs6000/nm-rs6000.h: Ditto.
11194 * config/sparc/nm-sol2.h: Ditto.
11195 * darwin-nat-info.c: Ditto.
11198 * gdb-demangle.h: Ditto.
11199 * i386-darwin-nat.c: Ditto.
11200 * i386-darwin-tdep.c: Ditto.
11201 * linux-fork.h: Ditto.
11202 * m32c-tdep.c: Ditto.
11203 * microblaze-linux-tdep.c: Ditto.
11204 * microblaze-rom.c: Ditto.
11205 * microblaze-tdep.c: Ditto.
11206 * microblaze-tdep.h: Ditto.
11207 * mips-linux-tdep.h: Ditto.
11208 * ppc-ravenscar-thread.c: Ditto.
11209 * ppc-ravenscar-thread.h: Ditto.
11210 * prologue-value.c: Ditto.
11211 * prologue-value.h: Ditto.
11212 * ravenscar-thread.c: Ditto.
11213 * ravenscar-thread.h: Ditto.
11214 * sparc-ravenscar-thread.c: Ditto.
11215 * sparc-ravenscar-thread.h: Ditto.
11216 * tilegx-linux-tdep.c: Ditto.
11217 * unwind_stop_reasons.def: Ditto.
11218 * windows-nat.h: Ditto.
11219 * xtensa-linux-tdep.c: Ditto.
11220 * xtensa-xtregs.c: Ditto.
11221 * regformats/regdat.sh: Ditto.
11222 * regformats/regdef.h: Ditto.
11224 2013-02-12 Pedro Alves <palves@redhat.com>
11226 * break-catch-sig.c: Update copyright years.
11228 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11230 Add support for a destructor for ui_out data and use it to
11231 provide a ui_out destructor.
11232 * ui-out.h: Declare the new ui_out destructor.
11233 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11234 * ui-out.c (default_data_destroy): Add a default data destructor
11235 which does nothing.
11236 (default_ui_out_impl): Set the new data_destroy field to
11237 default_data_destroy
11238 (uo_data_destroy): Local function which invokes the data
11239 destructor if present.
11240 (clear_table): Local function which clears the table data of a
11242 (ui_out_destroy): Public function which frees a ui_out object.
11243 (ui_out_table_end): Use the new clear_table function.
11244 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11246 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11249 2013-02-11 Doug Evans <dje@google.com>
11251 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11252 (printf_decfloat): New function. Broken out from ui_printf.
11253 Remove unnecessary code to shift the entire format string down.
11254 (printf_pointer): New function.
11255 (ui_printf): Code to print C strings, wide C strings, decfloats,
11256 and pointers moved to separate functions.
11258 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11260 * valops.c (value_assign): Handling bitfield offset in
11261 `lval_internalvar_component' case.
11263 2013-02-08 Doug Evans <dje@google.com>
11265 * common/format.c (parse_format_string): Fix whitespace.
11267 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11269 * stack.c (return_command): Work around uninitialized variable
11272 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11274 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11275 number of the registers from 36 to 34.
11277 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11279 * NEWS: Mention new AArch64 native and target support.
11281 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11283 * MAINTAINERS (Write After Approval): Add myself.
11285 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11286 Marcus Shawcroft <marcus.shawcroft@arm.com>
11287 Nigel Stephens <nigel.stephens@arm.com>
11288 Yufeng Zhang <yufeng.zhang@arm.com>
11290 * aarch64-linux-nat.c: New file.
11291 * config/aarch64/linux.mh: New file.
11292 * configure.host: Add AArch64.
11293 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11295 2013-02-07 Doug Evans <dje@google.com>
11297 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11298 disassemble command.
11300 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11302 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11303 set_gdbarch_fetch_tls_load_module_address.
11305 2013-02-06 David S. Miller <davem@davemloft.net>
11307 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11308 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11309 * value.c (struct_return_convention): New function.
11310 (using_struct_return): Implement in terms of struct_return_convention.
11311 * value.h (struct_return_convention): Declare.
11312 * stack.c (return_command): Allow successful overriding of the return
11313 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11315 2013-02-06 Tom Tromey <tromey@redhat.com>
11317 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11318 outside of TRY_CATCH.
11320 2013-02-06 Yao Qi <yao@codesourcery.com>
11322 * mi/mi-interp.c: Include "tracepoint.h".
11323 (mi_tsv_modified): Declare.
11324 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11325 (mi_interpreter_init): Call observer_attach_tsv_modified.
11326 (mi_tsv_modified): New.
11327 (mi_tsv_created, mi_tsv_deleted): Update.
11328 * tracepoint.c (trace_variable_command): Call
11329 observer_notify_tsv_modified if the initial value of tsv is
11331 (delete_trace_state_variable): Call
11332 observer_notify_tsv_deleted earlier.
11333 (trace_variable_command): Caller update.
11334 (create_tsv_from_upload): Likewise.
11335 * observer.sh: Declare "struct trace_state_variable".
11337 * NEWS: Mention the new MI notification "=tsv-modified".
11339 2013-02-05 Doug Evans <dje@google.com>
11341 * completer.c (location_completer): Fix typo in comment.
11343 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11345 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11348 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11350 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11351 Refactor if statement to avoid trailing || operator.
11353 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11355 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11357 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11359 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11360 * configure.host: Add powerpc*-*-freebsd* target.
11361 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11362 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11363 * config/powerpc/fbsd.mh: New file.
11365 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11366 Denys Vlasenko <dvlasenk@redhat.com>
11367 Pedro Alves <palves@redhat.com>
11369 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11370 (struct elf_internal_linux_prpsinfo): Forward declare.
11371 * gdbarch.h, gdbarch.c: Regenerate.
11372 * linux-tdep.c: Include `cli/cli-utils.h'.
11373 (linux_fill_prpsinfo): New function.
11374 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11375 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11376 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11377 depending on gdbarch pointer bitness.
11378 * ppc-linux-tdep.c: Include elf-bfd.h.
11379 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11382 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11383 Marcus Shawcroft <marcus.shawcroft@arm.com>
11384 Nigel Stephens <nigel.stephens@arm.com>
11385 Yufeng Zhang <yufeng.zhang@arm.com>
11387 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11389 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11390 Marcus Shawcroft <marcus.shawcroft@arm.com>
11391 Nigel Stephens <nigel.stephens@arm.com>
11392 Yufeng Zhang <yufeng.zhang@arm.com>
11394 * aarch64-newlib-tdep.c: New file.
11395 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11397 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11398 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11399 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11400 * osabi.c (gdb_osabi_names): Add "Newlib".
11402 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11403 Marcus Shawcroft <marcus.shawcroft@arm.com>
11404 Nigel Stephens <nigel.stephens@arm.com>
11405 Yufeng Zhang <yufeng.zhang@arm.com>
11407 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11408 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11409 * aarch64-linux-tdep.c: New file.
11410 * aarch64-linux-tdep.h: New file.
11411 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11412 * configure.tgt: Add aarch64-none-linux-gnu.
11414 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11415 Marcus Shawcroft <marcus.shawcroft@arm.com>
11416 Nigel Stephens <nigel.stephens@arm.com>
11417 Yufeng Zhang <yufeng.zhang@arm.com>
11419 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11420 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11421 (ALLDEPFILES): Add aarch64-tdep.c.
11422 * aarch64-tdep.c: New file.
11423 * aarch64-tdep.h: New file.
11424 * configure.tgt: Add AArch64.
11425 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11426 (aarch64-expedite): New definition.
11427 * features/aarch64-core.xml: New file.
11428 * features/aarch64-fpu.xml: New file.
11429 * features/aarch64-without-fpu.c: New file (generated).
11430 * features/aarch64-without-fpu.xml: New file.
11431 * features/aarch64.c: New file (generated).
11432 * features/aarch64.xml: New file.
11433 * regformats/aarch64-without-fpu.dat: New file (generated).
11434 * regformats/aarch64.dat: New file (generated).
11436 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11438 * contrib/expect-read1.c: New file.
11439 * contrib/expect-read1.sh: New file.
11441 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11443 * dwarf2read.c (file_file_name): New function with code from
11445 (file_full_name): Move most of the code to file_file_name.
11446 (macro_start_file): Rename variable full_name to file_name and use
11447 file_file_name for it. Add comp_dir parameter to new_macro_table.
11448 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11449 macro_source_file->filename access by macro_source_fullname call.
11450 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11452 * macrotab.c (struct macro_table): New field comp_dir.
11453 (macro_include): New variables link_fullname and source_fullname.
11454 Replace any macro_source_file->filename access by macro_source_fullname
11456 (macro_lookup_inclusion): Remove the partial filenames checking code.
11457 (check_for_redefinition): New variables source_fullname and
11458 found_key_fullname. Replace any macro_source_file->filename access by
11459 macro_source_fullname call.
11460 (macro_undef): New variables source_fullname and key_fullname. Replace
11461 any macro_source_file->filename access by macro_source_fullname call.
11462 (macro_lookup_definition): New variables retval and source_fullname.
11463 Replace any macro_source_file->filename access by macro_source_fullname
11465 (foreach_macro): New variable key_fullname. Replace any
11466 macro_source_file->filename access by macro_source_fullname call.
11467 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11468 macro_source_file->filename access by macro_source_fullname call.
11469 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11470 (macro_source_fullname): New function.
11471 * macrotab.h (struct macro_source_file): Extent the filename field
11473 (new_macro_table): New parameter comp_dir, add a comment for it.
11474 (macro_source_fullname): new declaration.
11476 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11478 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11479 this_real_name to outer block. Use it also for
11480 compare_filenames_for_search.
11481 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11482 with dw2_get_real_path for file_matcher, considering also
11483 BASENAMES_MAY_DIFFER.
11484 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11486 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11488 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11489 to the file_matcher parameter. Pass 0 to it.
11490 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11491 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11492 NULL psymtab_to_fullname result.
11493 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11494 an expected filename instead.
11495 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11496 file_matcher parameter. Call also psymtab_to_fullname, after newly
11497 considering BASENAMES_MAY_DIFFER.
11498 * source.c (rewrite_source_path): Remove static.
11499 * source.h (rewrite_source_path): New declaration.
11500 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11501 the expand_symtabs_matching field. Comment it.
11502 * symtab.c (file_matches): New function comment. Add parameter
11503 basenames, implement it.
11504 (search_symbols_file_matches): Add basenames parameter. Update the
11505 file_matches caller.
11506 (search_symbols): Match FILES also against symtab_to_fullname.
11507 Optimize it for BASENAMES_MAY_DIFFER.
11509 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11511 * source.c (print_source_lines_base): Print for TUI also "fullname".
11512 * tui/tui-data.c (init_content_element): Change tui_locator_element
11513 field to full_name.
11514 * tui/tui-data.h (struct tui_locator_element): Likewise.
11515 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11516 tui_update_locator_filename calls to tui_update_locator_fullname.
11517 Replace symtab->filename refererence by symtab_to_fullname call.
11518 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11519 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11520 field to full_name. Replace symtab->filename refererence by
11521 symtab_to_fullname call.
11522 (tui_show_symtab_source): Rename parameter to fullname. Change
11523 tui_locator_element field to full_name.
11524 * tui/tui-stack.c: Include source.h.
11525 (tui_set_locator_filename): Rename the declaration to ...
11526 (tui_set_locator_fullname): ... here. Rename its parameter to
11527 fullname, updates its comment.
11528 (tui_set_locator_info): Rename its parameter to fullname.
11529 (tui_set_locator_filename): Rename the definition to ...
11530 (tui_set_locator_fullname): ... here. Rename its parameter to
11531 fullname, updates its comment. Change tui_locator_element field to
11533 (tui_set_locator_info): Rename its parameter to fullname.
11534 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11535 (tui_update_locator_filename): Rename to ...
11536 (tui_update_locator_fullname): ... here. Rename callee to
11537 tui_set_locator_fullname.
11538 (tui_show_frame_info): Replace symtab->filename refererence by
11539 symtab_to_fullname call.
11540 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11541 (tui_update_locator_fullname): ... here.
11542 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11543 tui_update_locator_fullname. Replace symtab->filename refererence by
11544 symtab_to_fullname call.
11545 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11546 Rename the callee to tui_update_locator_fullname.
11547 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11549 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11551 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11552 by symtab_to_filename_for_display calls.
11553 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11554 (clear_command): New variable sal_fullname, initialize it. Replace
11555 compare_filenames_for_search by filename_cmp with sal_fullname.
11556 (say_where, update_static_tracepoint): Replace symtab->filename
11557 refererences by symtab_to_filename_for_display calls.
11558 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11560 * dwarf2read.c: Include source.h.
11561 (fixup_go_packaging): Replace symtab->filename refererences by
11562 symtab_to_filename_for_display calls.
11563 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11564 Replace symtab->filename refererences by symtab_to_filename_for_display
11566 (create_sals_line_offset, convert_linespec_to_sals): New variable
11567 fullname, initialize it, replace symtab->filename reference by the
11569 * linux-fork.c: Include source.h.
11570 (info_checkpoints_command): Replace symtab->filename refererences by
11571 symtab_to_filename_for_display calls.
11572 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11573 by symtab_to_filename_for_display calls.
11574 * mdebugread.c: Include source.h.
11575 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11576 symtab_to_filename_for_display calls.
11577 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11578 (mi_cmd_file_list_exec_source_files): Likewise.
11579 * printcmd.c: Include source.h.
11580 (build_address_symbolic): Replace symtab->filename refererences by
11581 symtab_to_filename_for_display calls.
11582 * psymtab.c (partial_map_symtabs_matching_filename)
11583 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11584 with psymtab_to_fullname.
11585 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11586 by symtab_to_filename_for_display calls.
11587 (stpy_get_filename): New variable filename, initialize it, use instead
11588 of symtab->filename refererences.
11589 (salpy_str): Make variable filename const char *. Replace
11590 symtab->filename refererences by symtab_to_filename_for_display calls.
11591 * skip.c: Include source.h and filenames.h.
11592 (skip_file_command): Remove const from the symtab variable. Replace
11593 symtab->filename refererences by symtab_to_fullname call.
11594 (function_name_is_marked_for_skip): New variables searched_for_fullname
11595 and fullname. Use them to search also with symtab's fullname.
11596 * source.c (find_source_lines): Replace symtab->filename refererences
11597 by symtab_to_filename_for_display calls.
11598 (print_source_lines_base): New variable filename, use it instead of
11599 symtab->filename. Replace symtab->filename refererences by
11600 symtab_to_filename_for_display calls.
11601 (line_info, forward_search_command): Replace symtab->filename
11602 refererences by symtab_to_filename_for_display calls.
11603 (reverse_search_command): Replace symtab->filename refererences by
11604 symtab_to_filename_for_display calls. New variable filename for it.
11605 * stack.c (frame_info): Likewise.
11606 * symmisc.c: Include source.h.
11607 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11608 (maintenance_info_symtabs): Replace symtab->filename refererences by
11609 symtab_to_filename_for_display calls.
11610 * symtab.c (iterate_over_some_symtabs): Call
11611 compare_filenames_for_search also with symtab_to_fullname.
11612 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11613 symtab->filename refererences by symtab_to_filename_for_display calls.
11614 (find_line_symtab): Replace symtab->filename refererences by
11615 symtab_to_filename_for_display calls.
11616 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11617 (print_symbol_info): Make the last parameter const char *. New
11618 variable s_filename. Use it in the function.
11619 (symtab_symbol_info): Make the last_filename variable const char *.
11620 Replace symtab->filename refererences by symtab_to_filename_for_display
11622 (rbreak_command): New variable fullname. Use it. Replace
11623 symtab->filename refererence by symtab_to_filename_for_display call.
11624 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11625 (print_one_static_tracepoint_marker): Replace symtab->filename
11626 refererences by symtab_to_filename_for_display calls.
11627 * tui/tui-source.c (tui_set_source_content): New variables filename and
11628 s_filename. Replace symtab->filename refererences by this variable.
11629 Replace other symtab->filename refererences by
11630 symtab_to_filename_for_display calls.
11632 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11633 Jan Kratochvil <jan.kratochvil@redhat.com>
11635 Add a new variable that controls a way in which filenames are
11637 * NEWS (set filename-display): New entry.
11638 * source.c (filename_display_basename, filename_display_relative)
11639 (filename_display_absolute, filename_display_kind_names)
11640 (filename_display_string, show_filename_display_string)
11641 (symtab_to_filename_for_display): New.
11642 (_initialize_source): Added initialization of 'filename-display'
11644 * source.h (symtab_to_filename_for_display): Added declaration.
11645 * stack.c (print_frame): Added new variable and calling of a new
11646 function and condition with this variable. Changed third argument of
11647 calling of a function.
11649 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11651 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11652 Rename field reference filename to fullname.
11653 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11654 fullname. New comment for it.
11655 * tui/tui-source.c (tui_set_source_content): Rename field reference
11656 filename to fullname. Initialize field by symtab_to_fullname now.
11657 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11658 reference filename to fullname. Use symtab_to_fullname during
11661 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11664 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11665 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11666 filename to fullname. Rename variable this_name to this_fullname.
11667 Lowercase FILENAME_CMP call.
11668 (dw2_find_symbol_file): New comment for the returned string.
11669 (dwarf2_gdb_index_functions): Rename the function to
11670 dw2_expand_symtabs_with_fullname.
11671 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11672 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11674 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11675 * symfile.h (struct quick_symbol_functions): Rename field
11676 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11677 parameter filename to fullname. Document returned string meaning for
11679 * symtab.c (find_line_symtab): Rename the called function to
11680 expand_symtabs_with_fullname.
11682 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11685 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11686 call of filename_cmp with compare_filenames_for_search.
11687 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11688 is_abs, unify the call of FILENAME_CMP with
11689 compare_filenames_for_search. New gdb_asserts for real_path and name.
11690 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11691 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11692 * symfile.h (struct quick_symbol_functions): Extend the comment for
11693 map_symtabs_matching_filename.
11694 * symtab.c (compare_filenames_for_search): Remove the function comment
11695 relative path requirement. Handle absolute filenames, with a comment.
11696 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11697 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11698 real_path and name. Unify the call of compare_filenames_for_search
11700 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11702 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11705 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11706 source_file references by symtab field references. Remove variables
11708 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11709 (clear_command, say_where): Replace bp_location field source_file
11710 references by symtab field references.
11711 (bp_location_dtor): Remove the source_file reference.
11712 (update_static_tracepoint): Replace bp_location field source_file
11713 references by symtab field references.
11714 (breakpoint_free_objfile): New function.
11715 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11716 Replace the field source_file by field symtab, extend its comment.
11717 (breakpoint_free_objfile): New declaration.
11718 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11719 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11720 field source_file references by symtab field references.
11722 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11724 Replace xfullpath calls by gdb_realpath calls.
11725 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11727 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11728 Remove it from the iterate_over_some_symtabs call.
11729 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11730 Remove it from the dw2_map_expand_apply calls, remove a block handling
11732 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11733 Remove it from the iterate_over_some_symtabs call.
11734 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11735 Remove it from the partial_map_expand_apply calls, remove a block
11736 handling it. Drop gdb_realpath call and cleanups from the real_path
11738 * source.c (openp): Drop the comment part about xfullpath. Replace
11739 xfullpath calls by gdb_realpath calls.
11740 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11741 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11742 from method map_symtabs_matching_filename and its comment.
11743 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11745 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11746 remove it also from the function comment, remove a block handling it.
11747 Drop gdb_realpath call and cleanups from the real_path handling.
11748 (iterate_over_symtabs): Drop variable full_path and its use.
11749 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11750 * utils.c (xfullpath): Remove.
11751 * utils.h (xfullpath): Remove.
11753 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11755 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11756 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11757 (ALLDEPFILES): Add ppc64-tdep.c.
11758 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11759 ppc64-tdep.o to gdb_target_obs.
11760 * ppc64-tdep.h: New file.
11761 * ppc64-tdep.c: New file.
11762 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11763 ppc-linux-tdep.c to here.
11764 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11765 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11766 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11767 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11768 from ppc-linux-tdep.c to here.
11769 (ppc64_convert_from_func_ptr_addr): Rename from
11770 ppc64_linux_convert_from_func_ptr_addr to
11771 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11774 (read_insn): Move from ppc-linux-tdep.c to here.
11775 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11776 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11777 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11778 Removed above functions.
11779 (ppc_linux_init_abi): Adjust.
11781 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11783 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11785 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11787 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11789 2013-02-01 Pedro Alves <palves@redhat.com>
11791 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11792 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11794 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11796 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11797 files with no separate debug info.
11798 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11799 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11800 only for files with no separate debug info.
11802 2013-01-31 Tom Tromey <tromey@redhat.com>
11804 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11806 (struct jit_program_space_data): Rename from jit_inferior_data.
11808 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11809 Change return type. Attach data to program space.
11810 (jit_program_space_data_cleanup): Rename from
11811 jit_inferior_data_cleanup; change argument type.
11812 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11814 (jit_register_code): Update.
11815 (jit_update_inferior_cache): Remove.
11816 (jit_breakpoint_deleted): Get jit data from the location's program
11818 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11819 'ps_data', change type.
11820 (jit_inferior_init, jit_breakpoint_re_set_internal)
11821 (jit_event_handler): Update.
11822 (free_objfile_data): Get data from objfile's program space.
11823 (_initialize_jit): Update.
11825 2013-01-31 Tom Tromey <tromey@redhat.com>
11828 * jit.c (struct jit_inferior_data) <cached_code_address,
11829 jit_breakpoint>: New fields.
11830 (jit_breakpoint_re_set_internal): Fix logging. Only create
11831 breakpoint if cached address has changed.
11832 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11834 (_initialize_jit): Register breakpoint deleted observer.
11836 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11838 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11839 (save_infcall_suspend_state): Ifdef out unused inf.
11840 (restore_infcall_suspend_state): Ifdef out unused inf.
11841 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11842 (jit_frame_sniffer): Remove unused inf_data.
11844 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11846 * c-exp.y (classify_inner_name): Remove unused type.
11847 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11848 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11850 (c_get_string): Remove unused kind.
11851 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11853 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11855 * charset.c (intermediate_encoding): Remove unused i.
11856 * completer.c (signal_completer): Remove unused i.
11857 * continuations.c (discard_my_continuations_1): Remove unused
11859 * corelow.c (core_close): Remove unuseD name.
11860 (get_core_siginfo): Remove unused pid.
11861 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11863 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11864 (loclist_describe_location): Remove unused first.
11865 * event-top.c (command_line_handler): Remove unused got_eof.
11866 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11867 (resize_section_table): Remove unused old_value.
11868 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11869 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11870 * i386-tdep.c (i386_process_record): Remove unused rex.
11871 * infcmd.c (get_return_value): Remove unused uiout.
11872 * jv-lang.c (type_from_class): Remove unused is_array.
11873 * jv-valprint.c (java_val_print): Remove unused i.
11874 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11875 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11876 * m2-typeprint.c (m2_print_type): Remove unused code.
11877 * macroexp.c (get_character_constant): Remove unused body_start.
11878 (macro_stringify): Remove unused result.
11879 * objc-lang.c (find_methods): Remove unused gdbarch.
11880 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11881 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11882 * stack.c (print_frame_args): Remove unused summary.
11883 * thread.c (thread_apply_command): Remove unused p.
11884 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11885 * valops.c (search_struct_method): Remove unused skip.
11886 * valprint.c (generic_val_print): Remove unused byte_order.
11887 * varobj.c (varobj_update): Remove unused changed.
11888 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11889 (alias_command): Remove unused c.
11890 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11891 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11893 (mi_cmd_data_write_memory): Remove unused word_format.
11894 (mi_cmd_data_write_memory_bytes): Remove unused r.
11895 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11897 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11898 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11901 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11903 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11904 * symtab.c (iterate_over_symtabs): Remove unused s.
11905 (find_pc_sect_symtab): Remove unused pspAce.
11906 (find_pc_sect_line): Remove unused alt_symtab.
11907 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11908 (completion_list_add_name): Remove unused newsize.
11910 2013-01-31 Tom Tromey <tromey@redhat.com>
11913 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11916 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11918 * target.c (target_read_string): Remove unused origlen.
11920 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11922 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11923 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11924 * ax-general.c (ax_print): Remove unused is_float.
11925 * blockframe.c (block_innermost_frame): Remove unused start, end.
11926 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11928 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11930 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11931 (svr4_read_so_list): Remove unused lmo.
11932 * solib-target.c (solib_target_relocate_section_addresses): Remove
11935 2013-01-30 Tom Tromey <tromey@redhat.com>
11937 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11939 2013-01-30 Tom Tromey <tromey@redhat.com>
11941 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11942 * utils.c (gnu_debuglink_crc32): Remove.
11943 * utils.h (gnu_debuglink_crc32): Don't declare.
11945 2013-01-30 Tom Tromey <tromey@redhat.com>
11947 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11948 (read_structure_type, read_enumeration_type): Remove cast.
11950 2013-01-30 Tom Tromey <tromey@redhat.com>
11952 * dwarf2read.c (read_namespace_type): Remove cast.
11953 (read_typedef): Likewise.
11955 2013-01-29 Tom Tromey <tromey@redhat.com>
11957 * dwarf2read.c (free_dwo_file): Remove assert.
11959 2013-01-29 Tom Tromey <tromey@redhat.com>
11961 * value.c (deprecated_set_value_modifiable): Remove.
11962 * value.h (deprecated_set_value_modifiable): Remove.
11964 2013-01-28 Doug Evans <dje@google.com>
11966 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11967 to addresses from dwo files.
11969 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11971 * valops.c (find_overload_match): Remove unused argument 'lax'.
11972 * value.h: Remove unused argument 'lax' from the declaration of
11973 find_overload_match.
11974 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11975 to find_overload_match.
11976 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11977 argument to find_overload_match.
11979 2013-01-25 Tom Tromey <tromey@redhat.com>
11981 * dwarf2read.c (processing_has_namespace_info): Remove.
11982 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11983 (process_die, read_func_scope, dwarf2_start_symtab)
11984 (new_symbol_full): Update.
11986 2013-01-25 Tom Tromey <tromey@redhat.com>
11988 * cp-namespace.c (cp_set_block_scope): Remove.
11989 * cp-support.h (cp_set_block_scope): Remove.
11990 * dbxread.c: Include block.h.
11991 (cp_set_block_scope): New function.
11992 (process_one_symbol): Update.
11993 * dwarf2read.c (read_func_scope): Use block_set_scope.
11995 2013-01-25 Pedro Alves <palves@redhat.com>
11997 * remote.c (add_current_inferior_and_thread): Tweak comment.
11999 2013-01-25 Tom Tromey <tromey@redhat.com>
12001 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12002 (cp_add_using_directive): Add 'copy_names' argument.
12003 * cp-support.h (cp_add_using_directive): Update.
12004 (struct using_direct) <import_src, import_dest, alias,
12005 declaration>: Now const.
12006 * dwarf2read.c (read_import_statement): Use obconcat.
12007 Don't copy names passed to cp_add_using_directive.
12009 2013-01-25 Tom Tromey <tromey@redhat.com>
12011 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12013 2013-01-25 Pedro Alves <palves@redhat.com>
12015 * remote.c (stop_reply_extract_thread): New.
12016 (add_current_inferior_and_thread): New parameter 'wait_status'.
12018 (remote_start_remote): Pass wait status to
12019 add_current_inferior_and_thread.
12020 (extended_remote_run): Update comment.
12021 (extended_remote_create_inferior_1): Pass wait status to
12022 add_current_inferior_and_thread.
12024 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12025 Ulrich Weigand <uweigand@de.ibm.com>
12027 * valarith.c (value_vector_widen): New function for replicating a
12028 scalar into a vector.
12029 (value_binop): Use value_vector_widen to widen scalar to vector
12030 rather than casting, this better matches gcc C behaviour.
12031 * valops.c (value_casst): Update logic for casting between vector
12032 types, and for casting from scalar to vector, try to match gcc C
12034 * value.h (value_vector_widen): Declare.
12035 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12036 function, handle special case for casting scalar to vector.
12037 (opencl_relop): Use opencl_value_cast.
12038 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12039 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12040 in order to use opencl_value_cast.
12042 2013-01-25 Yao Qi <yao@codesourcery.com>
12044 * event-loop.c: Include "queue.h".
12045 (gdb_event_p): New typedef.
12046 (DECLARE_QUEUE_P): Use.
12047 (DEFINE_QUEUE_P): Use.
12048 (async_queue_event): Remove.
12049 (gdb_event_xfree): New.
12050 (initialize_event_loop): New.
12051 (process_event): Use QUEUE macros.
12052 (event_queue): Remove.
12053 (gdb_wait_for_event): Caller update.
12054 (check_async_event_handlers): Likewise.
12055 (poll_timers): Likewise.
12056 * event-loop.h (initialize_event_loop): Declare.
12057 * event-loop.c (gdb_event_xfree): New.
12058 * top.c (gdb_init): Call initialize_event_loop.
12060 2013-01-25 Yao Qi <yao@codesourcery.com>
12062 * event-loop.c (async_queue_event): Remove one parameter
12063 'position'. Remove code handling 'position' == TAIL.
12064 (gdb_wait_for_event): Caller update.
12065 (check_async_event_handlers): Caller update.
12066 (poll_timers): Caller update.
12067 * event-loop.h (enum queue_position): Remove.
12069 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12071 * MAINTAINERS: Update my email.
12073 2013-01-25 Yao Qi <yao@codesourcery.com>
12075 * main.c (print_gdb_help): Remove "--epoch" from the help
12078 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12080 * symtab.c (skip_prologue_using_sal): Consider a file
12081 change the same as an increased line number
12083 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12085 * MAINTAINERS (Write After Approval): Add myself to the list.
12087 2013-01-24 Tom Tromey <tromey@redhat.com>
12089 * ada-lang.h (ada_decode_symbol): Make return type const.
12090 * ada-lang.c (ada_decode_symbol): Likewise.
12092 2013-01-23 Doug Evans <dje@google.com>
12094 * linespec.c (find_linespec_symbols): Make static.
12096 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12098 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12099 type on float conversion for complex type.
12101 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12103 Add a new class gdb.Architecture which exposes GDB's
12104 internal representation of architecture via GDB Python API.
12105 * Makefile.in: Add entries corresponding to the new file
12107 * NEWS (Python Scripting): Add entries for the new class
12108 gdb.Architecture and the new method gdb.Frame.architecture.
12109 * python/py-arch.c: Implement gdb.Architecture class.
12110 * python/py-frame.c (frapy_arch): Implement the method
12111 gdb.Frame.architecture().
12112 (frame_object_methods): Add 'architecture' to the method table.
12113 * python/python-internal.h: Add declarations of new utility
12115 * python/python.c (_initialize_python): Initialize
12116 gdb.Architecture class.
12118 2013-01-23 Doug Evans <dje@google.com>
12120 Work around binutils/15021.
12121 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12122 type_unit_group out of union s. All uses updated.
12123 (read_index_from_section): Watch for index version 8.
12124 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12125 an imported symtab.
12126 (write_psymtabs_to_index): Increment version number to 8.
12128 2013-01-22 Pedro Alves <palves@redhat.com>
12130 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12133 2013-01-22 Pedro Alves <palves@redhat.com>
12135 * annotate.c (annotate_breakpoints_changed): Rename to ...
12136 (annotate_breakpoints_invalid): ... this. Make static.
12137 (breakpoint_changed): Adjust.
12138 (_initialize_annotate): Always install the observers. Install a
12139 "breakpoint_created" observer.
12140 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12141 * breakpoint.c (set_breakpoint_condition)
12142 (breakpoint_set_commands, do_map_commands_command)
12143 (init_raw_breakpoint, clear_command, set_ignore_count)
12144 (enable_breakpoint_disp): No longer call
12145 annotate_breakpoints_changed.
12147 2013-01-22 Pedro Alves <palves@redhat.com>
12149 * annotate.c: Include "inferior.h".
12150 (frames_invalid_emitted)
12151 (breakpoints_invalid_emitted): New globals.
12152 (async_background_execution_p): New function.
12153 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12154 emitting the annotation if it has already been emitted.
12155 (annotate_display_prompt): New function.
12156 * annotate.h (annotate_display_prompt): New declaration.
12157 * event-top.c: Include annotate.h.
12158 (display_gdb_prompt): Call annotate_display_prompt.
12160 2013-01-22 Pedro Alves <palves@redhat.com>
12162 * annotate.c (ignore_count_changed): Delete.
12163 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12164 (annotate_ignore_count_change): Delete.
12165 (annotate_stopped): Don't emit a delayed breakpoints-changed
12167 * annotate.h (annotate_ignore_count_change): Delete.
12168 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12169 annotate_ignore_count_change.
12171 2013-01-22 Tom Tromey <tromey@redhat.com>
12173 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12174 require_rvalue for a register location.
12176 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12178 * breakpoint.c (print_one_breakpoint_location): Add MI
12179 field 'thread-groups' when printing a breakpoint.
12180 (output_thread_groups): New function.
12182 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12184 * python/lib/gdb/commands/explore.py
12185 (CompoundExplorer.explore_expr): Correct the name of a method
12187 (ExploreTypeCommand.invoke): Add a missing 'return'.
12189 2013-01-21 Tom Tromey <tromey@redhat.com>
12191 * gdb_obstack.h (obconcat): Move declaration here, from...
12192 * symfile.h (obconcat): ... here.
12193 * gdb_obstack.c: New file.
12194 (obconcat): Move from...
12195 * symfile.c (obconcat): ... here.
12196 * Makefile.in (SFILES): Add gdb_obstack.c.
12197 (COMMON_OBS): Add gdb_obstack.o.
12199 2013-01-21 Tom Tromey <tromey@redhat.com>
12201 * symfile.h (obsavestring): Don't declare.
12202 * symfile.c (obsavestring): Remove.
12203 * ada-exp.y: Use obstack_copy0, not obsavestring.
12204 * ada-lang.c: Use obstack_copy0, not obsavestring.
12205 * coffread.c: Use obstack_copy0, not obsavestring.
12206 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12207 * dbxread.c: Use obstack_copy0, not obsavestring.
12208 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12209 * jit.c: Use obstack_copy0, not obsavestring.
12210 * mdebugread.c: Use obstack_copy0, not obsavestring.
12211 * psymtab.c: Use obstack_copy0, not obsavestring.
12212 * stabsread.c: Use obstack_copy0, not obsavestring.
12213 * xcoffread.c: Use obstack_copy0, not obsavestring.
12215 2013-01-21 Tom Tromey <tromey@redhat.com>
12217 * dwarf2read.c (fixup_go_packaging): Save package name
12218 on objfile obstack.
12219 * gdbtypes.c (init_type): Don't copy name.
12221 2013-01-21 Tom Tromey <tromey@redhat.com>
12223 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12225 (struct attribute) <u.str>: Now const.
12226 (struct fnfieldlist) <name>: Now const.
12227 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12228 (partial_die_parent_scope): Make return type const.
12229 (partial_die_full_name, add_partial_symbol): Update.
12230 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12232 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12233 (read_file_scope, read_func_scope, dwarf2_add_field)
12234 (dwarf2_add_member_fn, read_structure_type)
12235 (process_enumeration_scope, read_array_type, read_module_type)
12236 (read_base_type, read_subrange_type): Update.
12237 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12238 (new_symbol_full, guess_full_die_structure_name): Update.
12239 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12240 (dwarf2_name): Return const type.
12241 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12244 2013-01-21 Tom Tromey <tromey@redhat.com>
12246 * gdbtypes.c (init_type): Make 'name' const.
12247 * gdbtypes.h (init_type): Update.
12249 2013-01-21 Tom Tromey <tromey@redhat.com>
12251 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12252 (start_symtab): Make 'name' and 'dirname' const. Use
12253 set_last_source_file.
12254 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12255 (last_source_file): Define. Now static.
12256 (set_last_source_file, get_last_source_file): New functions.
12257 * buildsym.h (last_source_file): Don't declare.
12258 (start_symtab): Update.
12259 (set_last_source_file, get_last_source_file): Declare.
12260 * coffread.c (complete_symtab): Use set_last_source_file.
12261 (coff_end_symtab): Likewise.
12262 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12263 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12264 set_last_source_file.
12265 (process_one_symbol): Use get_last_source_file.
12266 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12267 (psymtab_to_symtab_1): Use get_last_source_file.
12268 * xcoffread.c (process_linenos): Use get_last_source_file.
12269 (complete_symtab): Use set_last_source_file.
12270 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12271 (scan_xcoff_symtab): Use set_last_source_file.
12273 2013-01-21 Tom Tromey <tromey@redhat.com>
12275 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12276 (symbol_set_names): Remove casts. Handle field const-ness.
12278 2013-01-21 Tom Tromey <tromey@redhat.com>
12280 * dwarf2read.c (new_symbol_full): Remove cast.
12281 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12282 * symtab.h (symbol_set_demangled_name): Update.
12284 2013-01-21 Tom Tromey <tromey@redhat.com>
12286 * main.c (captured_main): Call bfd_init.
12288 2013-01-21 Tom Tromey <tromey@redhat.com>
12290 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12291 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12292 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12295 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12297 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12299 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12301 Fix gdb.fortran/common-block.exp crash in PIE mode.
12302 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12304 * f-valprint.c (info_common_command_for_block): Expect
12305 LOC_COMMON_BLOCK in gdb_assert.
12306 * symtab.h (struct general_symbol_info): Update comment for the
12307 common_block member.
12308 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12309 (enum address_class): New member LOC_COMMON_BLOCK.
12311 2013-01-18 David Blaikie <dblaikie@gmail.com>
12313 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12315 2013-01-18 Tom Tromey <tromey@redhat.com>
12318 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12319 Call require_rvalue.
12321 2013-01-18 Yao Qi <yao@codesourcery.com>
12323 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12324 (dbx_read_symtab): New declaration.
12325 (dbx_psymtab_to_symtab): Delete.
12326 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12327 Rename parameter PST to SELF. Exchanged two parameters.
12328 (start_psymtab): Caller update.
12329 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12330 (dwarf2_read_symtab): New declaration.
12331 (dwarf2_psymtab_to_symtab): Delete.
12332 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12333 Rename parameter PST to SELF. Exchanged two parameters.
12334 (create_partial_symtab): Caller update.
12335 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12336 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12337 Rename parameter PST to SELF. Exchanged two parameters.
12338 (parse_partial_symbols, new_psymtab): Caller update.
12339 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12341 * psymtab.c (psymtab_to_symtab): Caller update.
12342 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12343 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12344 Rename parameter PST to SELF. Exchanged two parameters.
12345 (xcoff_start_psymtab): Caller update.
12347 2013-01-18 Yao Qi <yao@codesourcery.com>
12349 * infrun.c (proceed): Rename local variable 'oneproc' to
12352 2013-01-17 Doug Evans <dje@google.com>
12354 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12355 (dw2_build_type_unit_groups): Delete. All uses updated.
12357 * symtab.h (struct symbol_search): Add comment.
12359 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12361 * symtab.c (compare_filenames_for_search): New comment for
12364 2013-01-17 Tom Tromey <tromey@redhat.com>
12366 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12368 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12370 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12371 initialize it by existing make_cleanup. Call new do_cleanups.
12373 2013-01-17 Tom Tromey <tromey@redhat.com>
12375 * cp-abi.c (cp_abi_completer): New function.
12376 (_initialize_cp_abi): Set completer for "set cp-abi".
12378 2013-01-17 Tom Tromey <tromey@redhat.com>
12380 * mem-break.c: Remove obsolete comment.
12381 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12383 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12385 * jit.c (jit_reader_load_command): Interpret the jit reader name
12386 as an absolute path if it begins with a forward slash.
12388 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12392 * jit.c (finalize_symtab): Ensure that only the global block has a
12395 2013-01-17 Pedro Alves <palves@redhat.com>
12397 * acinclude.m4: Include ../config/plugins.m4,
12398 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12399 * Makefile.in (aclocal_m4_deps): Update.
12400 * aclocal.m4: Renegerate.
12402 2013-01-16 Doug Evans <dje@google.com>
12404 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12406 2013-01-16 Pedro Alves <palves@redhat.com>
12407 Tom Tromey <tromey@redhat.com>
12410 * NEWS: Add "catch signal".
12411 * breakpoint.c (base_breakpoint_ops): No longer static.
12412 (bpstat_explains_signal): New function.
12413 (init_catchpoint): No longer static.
12414 (base_breakpoint_explains_signal): New function.
12415 (base_breakpoint_ops): Initialize new field.
12416 * breakpoint.h (enum bpstat_signal_value): New.
12417 (struct breakpoint_ops) <explains_signal>: New field.
12418 (bpstat_explains_signal): Remove macro, declare as function.
12419 (base_breakpoint_ops, init_catchpoint): Declare.
12420 * break-catch-sig.c: New file.
12421 * inferior.h (signal_catch_update): Declare.
12422 * infrun.c (signal_catch): New global.
12423 (handle_syscall_event): Update for change to
12424 bpstat_explains_signal.
12425 (handle_inferior_event): Likewise. Always handle random signals
12427 (signal_cache_update): Check signal_catch.
12428 (signal_catch_update): New function.
12429 (_initialize_infrun): Initialize signal_catch.
12430 * Makefile.in (SFILES): Add break-catch-sig.c.
12431 (COMMON_OBS): Add break-catch-sig.o.
12433 2013-01-16 Tom Tromey <tromey@redhat.com>
12435 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12436 (print_one_catch_solib, print_one_catch_syscall)
12437 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12440 2013-01-16 Yao Qi <yao@codesourcery.com>
12442 * printcmd.c (current_display_number): Make it static.
12444 2013-01-16 Yao Qi <yao@codesourcery.com>
12446 * infcmd.c (step_once): Don't check '!single_inst' as it was
12449 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12451 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12453 2013-01-14 Tom Tromey <tromey@redhat.com>
12455 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12457 * command.h (add_setshow_string_noescape_cmd): Update.
12458 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12459 (complete_set_gnutarget): New function.
12460 (_initialize_core): Set the "set gnutarget" completer.
12462 2013-01-14 Tom Tromey <tromey@redhat.com>
12465 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12466 (c_type_print_modifier): Likewise.
12467 * dwarf2read.c (read_tag_restrict_type): New function.
12468 (read_type_die_1): Handle DW_TAG_restrict_type.
12469 * gdbtypes.c (make_restrict_type): New function.
12470 (recursive_dump_type): Handle TYPE_RESTRICT.
12471 * gdbtypes.h (enum type_flag_values): Renumber.
12472 (enum type_instance_flag_value): Add
12473 TYPE_INSTANCE_FLAG_RESTRICT.
12474 (TYPE_RESTRICT): New macro.
12475 (make_restrict_type): Declare.
12477 2013-01-14 Tom Tromey <tromey@redhat.com>
12480 * psymtab.c (struct psymtab_state): New.
12481 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12483 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12484 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12486 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12487 Pedro Alves <palves@redhat.com>
12491 * remote.c (remote_threads_info): Make a copy of the reply from
12492 qfThreadInfo and use that instead of rs->buf.
12494 2013-01-14 Yao Qi <yao@codesourcery.com>
12496 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12497 (dbx_psymtab_to_symtab): Likewise.
12498 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12499 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12500 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12502 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12504 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12505 make_cleanup_restore_current_language. Call set_language. Move
12506 OLD_CHAIN and INNER_CHAIN cleanups.
12507 * utils.c (do_restore_current_language)
12508 (make_cleanup_restore_current_language): New functions.
12509 * utils.h (make_cleanup_restore_current_language): New declaration.
12511 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12513 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12514 non-existing files.
12516 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12517 non-existing files if FILENAME is already absolute.
12519 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12521 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12522 fputs_filtered. Append trailing newline.
12524 2013-01-11 Yao Qi <yao@codesourcery.com>
12525 Stan Shebs <stan@codesourcery.com>
12527 * psymtab.c (init_psymbol_list): Clarify the comment.
12529 2013-01-11 Yao Qi <yao@codesourcery.com>
12531 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12532 (update_dprintf_command_list): Assert that 'printf_line' is
12533 non-null. Remove condition check.
12535 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12538 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12540 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12542 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12544 2013-01-09 Anthony Green <green@moxielogic.com>
12546 * cp-abi.c (cplus_print_vtable): Don't return value from void
12548 * ada-lang.c (re_set_catch_assert): Ditto.
12550 2013-01-09 Doug Evans <dje@google.com>
12552 * symfile.h (quick_symbol_functions): Delete member
12553 pre_expand_symtabs_matching. All uses removed.
12554 * dwarf2read.c (dw2_lookup_symbol): Implement.
12555 (dw2_do_expand_symtabs_matching): Delete.
12556 (dw2_pre_expand_symtabs_matching): Delete.
12557 (struct dw2_symtab_iterator): New type.
12558 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12559 (dw2_expand_symtabs_for_function): Rewrite.
12560 (dwarf2_gdb_index_functions): Update.
12561 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12562 (psym_functions): Update.
12564 2013-01-09 Tom Tromey <tromey@redhat.com>
12566 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12567 * configure: Rebuild.
12568 * configure.ac: Add somread.o to the build if BFD has SOM
12570 * somread.c: Include som/aout.h, not syms.h.
12571 (som_symtab_read): Use som_external_symbol_dictionary_record.
12572 Unpack records manually.
12573 (_initialize_somread): Declare.
12575 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12577 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12578 Cast return_address to 64bits.
12580 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12582 * printcmd.c: Remove define of function output_command.
12583 * tracepoint.c: Remove extern of function output_command.
12584 * valprint.h: (output_command): New extern.
12586 2013-01-07 Tom Tromey <tromey@redhat.com>
12588 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12590 (objc_language_defn): Use c_printchar, c_printstr,
12593 2013-01-07 Tom Tromey <tromey@redhat.com>
12597 * ada-valprint.c (printstr, print_field_values): Remove
12599 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12601 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12603 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12604 * main.c (captured_main): Remove "epoch" argument.
12605 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12606 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12607 * p-valprint.c (pascal_object_print_value_fields): Remove
12609 * printcmd.c (print_command_1): Remove 'inspect' argument.
12610 (print_command, call_command): Update.
12611 (inspect_command): Remove.
12612 (_initialize_printcmd): Make "inspect" an alias for "print".
12613 * top.c (epoch_interface): Remove.
12614 * top.h (epoch_interface): Remove.
12615 * valprint.c (user_print_options): Update.
12616 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12617 * valprint.h (struct value_print_options) <inspect_it>: Remove
12620 2013-01-04 Tom Tromey <tromey@redhat.com>
12622 * valprint.h (read_string): Add 'extern'.
12624 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12626 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12627 used to decide whether to define darwin_read_dyld_info or not.
12629 2013-01-03 Pierre Muller <muller@sourceware.org>
12631 * main.c (relocate_gdb_directory): Avoid calling stat function
12634 2013-01-03 Yao Qi <yao@codesourcery.com>
12636 * psymtab.c (fixup_psymbol_section): Update declaration.
12637 (fixup_psymbol_section): Remove code returning value.
12639 2013-01-03 Yao Qi <yao@codesourcery.com>
12641 * symtab.h: Remove some out of date comments.
12642 (enum exception_event_kind): Move it ...
12643 * breakpoint.c: ... here.
12645 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12648 * darwin-nat.c (darwin_read_dyld_info): Only build if
12649 TASK_DYLD_INFO_COUNT is defined.
12650 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12651 TASK_DYLD_INFO_COUNT is defined.
12653 2013-01-02 Tom Tromey <tromey@redhat.com>
12655 * symfile.h (struct ecoff_debug_hack): Remove.
12656 * objfiles.c: Don't include mdebugread.h.
12658 2013-01-02 Tom Tromey <tromey@redhat.com>
12660 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12661 * configure.ac: Check for Mach-O support in BFD. Update
12663 * configure: Rebuild.
12665 2013-01-02 Tom Tromey <tromey@redhat.com>
12667 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12668 * configure.ac: Use GDB_AC_CHECK_BFD.
12669 * configure: Rebuild.
12671 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12673 * MAINTAINERS: Update my email.
12675 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12677 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12679 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12681 * rs6000-nat.c (bss_data_overlap): New function.
12682 (vmap_symtab): Use it to adjust the .bss section's offset.
12684 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12686 Update year range in copyright notice of all files.
12688 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12690 * top.c (print_gdb_version): Update copyright year.
12692 For older changes see ChangeLog-2012.
12698 version-control: never