1 2013-11-27 Pedro Alves <palves@redhat.com>
3 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
4 register in the previous frame's arch.
6 2013-11-27 Pedro Alves <palves@redhat.com>
8 * frame-unwind.c (frame_unwind_got_optimized): Return
9 an lval_register value instead of a not_lval value.
11 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
13 * frame.c: Include "valprint.h".
14 (frame_unwind_register_value): Use value_optimized_out.
15 * value.c (value_fetch_lazy): Likewise.
17 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
19 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
21 2013-11-26 Tom Tromey <tromey@redhat.com>
23 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
26 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
28 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
29 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
32 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
34 2013-11-25 Keith Seitz <keiths@redhat.com>
37 * c-exp.y (classify_inner_name): If no matching symbol was
38 found, try looking up the token as a base class.
39 Likewise if a constructor was found.
40 * cp-namespace.c (find_type_baseclass_by_name): New function.
41 * cp-support.h (find_type_baseclass_by_name): Declare.
42 * valops.c (value_struct_elt_for_reference): If we get
43 a non-static field, try to get a value based on the
44 current instance, if any.
46 2013-11-24 Yao Qi <yao@codesourcery.com>
48 * disasm.c (dis_asm_read_memory): Call target_read_code
49 instead of target_read_memory.
51 2013-11-24 Yao Qi <yao@codesourcery.com>
53 * NEWS: Add note on new "set code-cache" option.
54 * target-dcache.c (code_cache_enabled_1): New variable.
55 (code_cache_enabled): New variable.
56 (show_code_cache, set_code_cache): New function.
57 (code_cache_enabled_p): New function.
58 (_initialize_target_dcache): Register command.
59 * target-dcache.h (code_cache_enabled_p): Declare.
60 * target.c (memory_xfer_partial_1):Handle
61 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
62 (target_read_code): New function.
63 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
65 (target_read_code): Declare.
67 2013-11-24 Yao Qi <yao@codesourcery.com>
69 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
70 (stack_cache_enabled_1): ... this. New variable.
71 (stack_cache_enabled_p): Rename to ...
72 (stack_cache_enabled): ... this. New variable.
73 (set_stack_cache_enabled_p): Rename to ...
74 (set_stack_cache): ... this. Update caller.
75 (show_stack_cache_enabled_p): Rename to ...
76 (show_stack_cache): ... this. Update caller.
77 (stack_cache_enabled): Rename to ...
78 (stack_cache_enabled_p): ... this. Update caller.
79 (_initialize_target_dcache): Replace "data cache" with
80 "target memory cache".
81 * target-dcache.h (stack_cache_enabled): Remove declaration.
82 (stack_cache_enabled_p): Add declaration.
84 2013-11-23 Doug Evans <xdje42@gmail.com>
86 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
89 2013-11-23 Doug Evans <xdje42@gmail.com>
91 * python/py-frame.c (frapy_block): Fix error message text.
93 2013-11-23 Doug Evans <xdje42@gmail.com>
95 * cli/cli-script.c (multi_line_command_p): New function.
96 (recurse_read_control_structure, read_command_lines_1): Call it.
97 (execute_control_command): Consistently have a blank line between
100 2013-11-22 Sterling Augustine <saugustine@google.com>
103 * valprint.c (read_string): Set new variable fetchlen based on
104 fetchlimit and size. Use it in call to partial_memory_read.
107 2013-11-22 Tom Tromey <tromey@redhat.com>
110 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
111 the return address column is unspecified.
113 2013-11-22 Tom Tromey <tromey@redhat.com>
114 Pedro Alves <palves@redhat.com>
117 * value.c (value_fetch_lazy): Internal error if
118 get_frame_register_value returns the same register.
120 2013-11-22 Pedro Alves <palves@redhat.com>
121 Tom Tromey <tromey@redhat.com>
123 * frame.c (frame_stash_add): Now returns whether a frame with the
124 same ID was already known.
125 (compute_frame_id): New function, factored out from get_frame_id.
126 (get_frame_id): No longer lazilly compute the frame id here.
127 (get_prev_frame_if_no_cycle): New function. Detects wider stack
129 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
130 and checking for stack cycles here.
132 2013-11-22 Pedro Alves <palves@redhat.com>
135 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
136 this frame and the new previous frame, not between this frame and
139 2013-11-22 Pedro Alves <palves@redhat.com>
142 * dwarf2-frame.c (struct dwarf2_frame_cache)
143 <checked_tailcall_bottom, entry_cfa_sp_offset,
144 entry_cfa_sp_offset_p>: New fields.
145 (dwarf2_frame_cache): Adjust to use the new cache fields instead
146 of locals. Don't call dwarf2_tailcall_sniffer_first here.
147 (dwarf2_frame_prev_register): Call it here, but only once.
149 2013-11-21 Doug Evans <xdje42@gmail.com>
151 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
152 (type_equality_entry): Move here from python/py-type.c.
153 (type_equality_entry_d): Ditto.
154 (compare_maybe_null_strings, check_types_equal): Ditto.
155 (check_types_worklist, types_deeply_equal): Ditto.
156 * gdbtypes.h (types_deeply_equal): Declare.
157 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
158 (typy_richcompare): Update.
160 2013-11-20 Joel Brobecker <brobecker@adacore.com>
162 * python/py-value.c (is_intlike): Delete.
163 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
164 by use of is_integral_type.
165 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
166 by use of is_integral_type and check for TYPE_CODE_PTR.
168 2013-11-20 Tom Tromey <tromey@redhat.com>
170 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
172 * gnulib/aclocal.m4: Update.
173 * gnulib/config.in: Update.
174 * gnulib/configure: Update.
175 * gnulib/import/Makefile.am: Update.
176 * gnulib/import/Makefile.in: Update.
177 * gnulib/import/errno.in.h: Remove.
178 * gnulib/import/intprops.h: Remove.
179 * gnulib/import/m4/errno_h.m4: Remove.
180 * gnulib/import/m4/gnulib-cache.m4: Update.
181 * gnulib/import/m4/gnulib-comp.m4: Update.
182 * gnulib/import/m4/strerror.m4: Remove.
183 * gnulib/import/m4/sys_socket_h.m4: Remove.
184 * gnulib/import/strerror-override.c: Remove.
185 * gnulib/import/strerror-override.h: Remove.
186 * gnulib/import/strerror.c: Remove.
187 * gnulib/update-gnulib.sh: Update.
189 2013-11-20 Yao Qi <yao@codesourcery.com>
191 * target-dcache.c (target_dcache_get_or_init): Call
192 set_address_space_data if 'dcache' is NULL.
194 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
196 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
198 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
200 * python/lib/gdb/command/bound_register.py: New file.
201 * data-directory/Makefile.in: Copy bond_register.py to the right path
202 to be initialized at gdb startup.
204 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
206 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
208 (amd64_linux_read_description): Add initialization for MPX and
210 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
211 (amd64_linux_gregset_reg_offset): Add MPX registers.
212 (amd64_linux_core_read_description): Add initialization for MPX
214 (_initialize_amd64_linux_tdep): Initialize MPX targets.
215 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
216 register on the list.
217 (tdesc_amd64_mpx_linux) Add new target for MPX.
218 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
219 (amd64_mpx_names): MPX register names.
220 (amd64_init_abi): Add MPX register while initializing the ABI.
221 (_initialize_amd64_tdep): Initialize MPX targets.
222 * amd64-tdep.h (amd64_regnum): Add MPX registers.
223 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
225 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
227 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
228 registers on the range of registers to be read from
230 (i386_linux_read_description): Add case for MPX.
231 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
232 (i386_linux_gregset_reg_offset): Add MPX registers.
233 (i386_linux_core_read_description): Initialize also MPX.
234 (_initialize_i386_linux_tdep): Add mpx initialization.
235 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
237 (i386_regnum): Add MPX registers.
238 (I386_MPX_NUM_REGS): New macro.
239 (i386_bnd_regnum_p): New function.
240 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
241 number of registers to be the number of BNDSTATUS.
242 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
243 * i386-tdep.c: Include features/i386/i386-mpx.c.
244 (i386_mpx_names): Add MPX register names array.
245 (i386_bnd_names): Add bnd pseudo register names array.
246 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
248 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
249 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
251 (i386_bnd_type): New function.
252 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
254 (i386_pseudo_register_read_into_value): Add bnd case.
255 (i386_pseudo_register_write): Add bnd pseudo registers.
256 (i386_register_reggroup_p): Add MPX register to the group all.
257 (i386_validate_tdesc_p): Add MPX to the target description
259 (i386_pseudo_register_name): Add bnd pseudo registers.
260 (i386_gdbarch_init): Add MPX for architecture initialization.
261 (_initia_initialize_i386_tdep): Add mpx initialization.
262 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
264 (XSAVE_MPX_ADDR): New macro.
265 (i387_supply_xsave): Add MPX case.
266 (i387_collect_xsave): Add MPX case.
267 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
268 (I387_BNDCFGU_REGNUM): New macro.
269 (I387_NUM_MPX_REGS): New macro.
270 (I387_NUM_BND_REGS): New macro.
271 (I387_NUM_MPX_CTRL_REGS): New macro.
272 (I387_MPXEND_REGNUM): New macro.
273 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
274 (I386_XSTATE_BNDCFG): Likewise.
275 (I386_XSTATE_MPX_MASK): Likewise.
276 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
277 (I386_XSTATE_BNDREGS_SIZE): New macro.
278 (I386_XSTATE_BNDCFG_SIZE): Likewise.
279 (I386_XSTATE_SIZE): Adapt for MPX.
280 (I386_XSTATE_MAX_SIZE): Likewise.
282 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
284 * features/i386/Makefile: Adapts for using MPX registers.
285 * features/i386/32bit-mpx.xml: New file.
286 * features/i386/64bit-mpx.xml: Likewise.
287 * features/i386/amd64-mpx-linux.c: Likewise.
288 * features/i386/amd64-mpx-linux.xml: Likewise.
289 * features/i386/amd64-mpx.c: Likewise.
290 * features/i386/amd64-mpx.xml: Likewise.
291 * features/i386/i386-mpx-linux.c: Likewise.
292 * features/i386/i386-mpx-linux.xml: Likewise.
293 * features/i386/i386-mpx.c: Likewise.
294 * features/i386/i386-mpx.xml: Likewise.
295 * regformats/i386/amd64-mpx-linux.dat: New file.
296 * regformats/i386/amd64-mpx.dat: Likewise.
297 * regformats/i386/i386-mpx-linux.dat: Likewise.
298 * regformats/i386/i386-mpx.dat: Likewise.
300 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
302 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
303 Modified logic of creating a bitfield to be in sync with
306 2013-11-20 Will Newton <will.newton@linaro.org>
308 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
311 2013-11-20 Yao Qi <yao@codesourcery.com>
313 * progspace.h (struct address_space_data): Declare.
314 * target-dcache.c: Include "progspace.h".
315 (target_dache): Remove.
316 (target_dcache_aspace_key): New.
317 (target_dcache_cleanup): New function.
318 (target_dcache_init_p): Get data through
319 target_dcache_aspace_key.
320 (target_dcache_invalidate): Likewise.
321 (target_dcache_get): Likewise.
322 (target_dcache_get_or_init): Likewise.
323 (_initialize_target_dcache): Initialize
324 target_dcache_aspace_key.
326 2013-11-20 Yao Qi <yao@codesourcery.com>
328 * progspace.c (struct address_space): Update comments.
329 <REGISTRY_FIELDS>: New fields.
330 DEFINE_REGISTRY for address_space.
331 (new_address_space): Call address_space_alloc_data.
332 (free_address_space): Call address_space_free_data.
333 * progspace.h: Use DECLARE_REGISTRY.
335 2013-11-20 Yao Qi <yao@codesourcery.com>
337 * Makefile.in (SFILES):Add target-dcache.c.
338 (HFILES_NO_SRCDIR): Add target-dcache.h.
339 (COMMON_OBS): Add target-dcache.o.
340 * dcache.c: Remove inclusion to "target.h". Include
342 * memattr.c: Include "target-dcache.h".
344 * tracepoint.c: Likewise.
345 * target.c: (stack_cache_enabled_p_1): Move to
347 (stack_cache_enabled_p): Likewise.
348 (set_stack_cache_enabled_p): Likewise.
349 (show_stack_cache_enabled_p): Likewise.
350 (target_dcache, target_dcache_init_p): Likewise.
351 (target_dcache_invalidate): Likewise.
352 (target_dcache_get, target_dcache_get_or_init): Likewise.
353 (memory_xfer_partial_1): Call function stack_cache_enabled.
354 (initialize_target): Move code to target-dcache.c.
355 * target.h (target_dcache_invalidate): Move to
357 (target_dcache_get): Likewise.
358 * target-dcache.c: New.
359 * target-dcache.h: New.
361 2013-11-20 Yao Qi <yao@codesourcery.com>
363 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
366 2013-11-20 Yao Qi <yao@codesourcery.com>
368 * dcache.c (last_cache): Remove.
369 (dcache_free, dcache_init): Update.
371 (dcache_print_line): Add parameter 'dcache'. Replace
372 'target_dcache' with 'dcache'.
373 (dcache_info): Move code to dcache_info_1. Call
375 (dcache_info_1): New function.
376 (set_dcache_size): Call target_dcache_invalidate.
377 (set_dcache_line_size): Call target_dcache_invalidate.
378 * target.c (target_dcache_init_p): New function.
379 (target_dcache_invalidate): Check target_dcache_init_p first.
380 (target_dcache_get, target_dcache_get_or_init): New function.
381 (memory_xfer_partial_1): Adjust.
382 (initialize_target): Don't initialize 'target_dcache'.
383 * target.h (struct dcache_struct): Declare.
384 (target_dcache_get): Declare.
386 2013-11-19 Yao Qi <yao@codesourcery.com>
388 * varobj.c (varobj_get_type): Fix typo.
390 2013-11-19 Joel Brobecker <brobecker@adacore.com>
392 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
394 2013-11-19 Joel Brobecker <brobecker@adacore.com>
396 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
399 2013-11-18 Tom Tromey <tromey@redhat.com>
401 * common/gdb_stat.h: Remove.
402 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
403 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
404 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
405 * corefile.c: Use sys/stat.h, not gdb_stat.h.
406 * ctf.c: Use sys/stat.h, not gdb_stat.h.
407 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
408 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
409 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
410 * exec.c: Use sys/stat.h, not gdb_stat.h.
411 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
412 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
413 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
414 * jit.c: Use sys/stat.h, not gdb_stat.h.
415 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
416 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
417 * main.c: Use sys/stat.h, not gdb_stat.h.
418 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
419 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
420 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
421 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
422 * procfs.c: Use sys/stat.h, not gdb_stat.h.
423 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
424 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
425 * remote.c: Use sys/stat.h, not gdb_stat.h.
426 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
427 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
428 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
429 * source.c: Use sys/stat.h, not gdb_stat.h.
430 * symfile.c: Use sys/stat.h, not gdb_stat.h.
431 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
432 * symtab.c: Use sys/stat.h, not gdb_stat.h.
433 * top.c: Use sys/stat.h, not gdb_stat.h.
434 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
436 2013-11-18 Tom Tromey <tromey@redhat.com>
438 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
440 * gnulib/aclocal.m4: Update.
441 * gnulib/config.in: Update.
442 * gnulib/configure: Update.
443 * gnulib/import/Makefile.am: Update.
444 * gnulib/import/Makefile.in: Update.
445 * gnulib/import/m4/gnulib-cache.m4: Update.
446 * gnulib/import/m4/gnulib-comp.m4: Update.
447 * gnulib/import/m4/sys_stat_h.m4: New.
448 * gnulib/import/m4/time_h.m4: New.
449 * gnulib/import/sys_stat.in.h: New.
450 * gnulib/import/time.in.h: New.
452 2013-11-18 Tom Tromey <tromey@redhat.com>
454 * configure: Rebuild.
455 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
457 2013-11-18 Tom Tromey <tromey@redhat.com>
459 * configure: Rebuild.
460 * configure.ac: Don't check for unistd.h.
462 2013-11-18 Tom Tromey <tromey@redhat.com>
464 * configure: Rebuild.
465 * configure.ac: Don't check for stdlib.h
466 * defs.h: Include stdlib.h unconditionally.
468 2013-11-18 Tom Tromey <tromey@redhat.com>
470 * config.in: Rebuild.
471 * configure: Rebuild.
472 * configure.ac: Don't check for stddef.h.
473 * defs.h: Unconditionally include stddef.h. Remove duplicate
476 2013-11-18 Tom Tromey <tromey@redhat.com>
478 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
479 * common/gdb_dirent.h: Remove.
480 * common/filestuff.c: Use dirent.h.
481 * common/linux-osdata.c: Use dirent.h.
483 * config.in: Rebuild.
484 * configure: Rebuild.
485 * configure.ac: Don't use AC_HEADER_DIRENT.
486 * linux-fork.c: Use dirent.h
487 * linux-nat.c: Use dirent.h.
488 * nto-procfs.c: Use dirent.h.
489 * procfs.c: Use dirent.h.
491 2013-11-18 Tom Tromey <tromey@redhat.com>
493 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
494 * gnulib/aclocal.m4: Update.
495 * gnulib/config.in: Update.
496 * gnulib/configure: Update.
497 * gnulib/import/Makefile.am: Update.
498 * gnulib/import/Makefile.in: Update.
499 * gnulib/import/dirent.in.h: New.
500 * gnulib/import/m4/dirent_h.m4: New.
501 * gnulib/import/m4/gnulib-cache.m4: Update.
502 * gnulib/import/m4/gnulib-comp.m4: Update.
504 2013-11-18 Tom Tromey <tromey@redhat.com>
506 * configure: Rebuild.
507 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
510 2013-11-18 Tom Tromey <tromey@redhat.com>
512 * common/gdb_string.h: Remove.
513 * aarch64-tdep.c: Use string.h, not gdb_string.h.
514 * ada-exp.y: Use string.h, not gdb_string.h.
515 * ada-lang.c: Use string.h, not gdb_string.h.
516 * ada-lex.l: Use string.h, not gdb_string.h.
517 * ada-typeprint.c: Use string.h, not gdb_string.h.
518 * ada-valprint.c: Use string.h, not gdb_string.h.
519 * aix-thread.c: Use string.h, not gdb_string.h.
520 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
521 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
522 * alpha-nat.c: Use string.h, not gdb_string.h.
523 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
524 * alpha-tdep.c: Use string.h, not gdb_string.h.
525 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
526 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
527 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
528 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
529 * amd64-nat.c: Use string.h, not gdb_string.h.
530 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
531 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
532 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
533 * arch-utils.c: Use string.h, not gdb_string.h.
534 * arm-linux-nat.c: Use string.h, not gdb_string.h.
535 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
536 * arm-tdep.c: Use string.h, not gdb_string.h.
537 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
538 * armbsd-tdep.c: Use string.h, not gdb_string.h.
539 * armnbsd-nat.c: Use string.h, not gdb_string.h.
540 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
541 * armobsd-tdep.c: Use string.h, not gdb_string.h.
542 * avr-tdep.c: Use string.h, not gdb_string.h.
543 * ax-gdb.c: Use string.h, not gdb_string.h.
544 * ax-general.c: Use string.h, not gdb_string.h.
545 * bcache.c: Use string.h, not gdb_string.h.
546 * bfin-tdep.c: Use string.h, not gdb_string.h.
547 * breakpoint.c: Use string.h, not gdb_string.h.
548 * build-id.c: Use string.h, not gdb_string.h.
549 * buildsym.c: Use string.h, not gdb_string.h.
550 * c-exp.y: Use string.h, not gdb_string.h.
551 * c-lang.c: Use string.h, not gdb_string.h.
552 * c-typeprint.c: Use string.h, not gdb_string.h.
553 * c-valprint.c: Use string.h, not gdb_string.h.
554 * charset.c: Use string.h, not gdb_string.h.
555 * cli-out.c: Use string.h, not gdb_string.h.
556 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
557 * cli/cli-decode.c: Use string.h, not gdb_string.h.
558 * cli/cli-dump.c: Use string.h, not gdb_string.h.
559 * cli/cli-interp.c: Use string.h, not gdb_string.h.
560 * cli/cli-logging.c: Use string.h, not gdb_string.h.
561 * cli/cli-script.c: Use string.h, not gdb_string.h.
562 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
563 * cli/cli-utils.c: Use string.h, not gdb_string.h.
564 * coffread.c: Use string.h, not gdb_string.h.
565 * common/common-utils.c: Use string.h, not gdb_string.h.
566 * common/filestuff.c: Use string.h, not gdb_string.h.
567 * common/linux-procfs.c: Use string.h, not gdb_string.h.
568 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
569 * common/signals.c: Use string.h, not gdb_string.h.
570 * common/vec.h: Use string.h, not gdb_string.h.
571 * core-regset.c: Use string.h, not gdb_string.h.
572 * corefile.c: Use string.h, not gdb_string.h.
573 * corelow.c: Use string.h, not gdb_string.h.
574 * cp-abi.c: Use string.h, not gdb_string.h.
575 * cp-support.c: Use string.h, not gdb_string.h.
576 * cp-valprint.c: Use string.h, not gdb_string.h.
577 * cris-tdep.c: Use string.h, not gdb_string.h.
578 * d-lang.c: Use string.h, not gdb_string.h.
579 * dbxread.c: Use string.h, not gdb_string.h.
580 * dcache.c: Use string.h, not gdb_string.h.
581 * demangle.c: Use string.h, not gdb_string.h.
582 * dicos-tdep.c: Use string.h, not gdb_string.h.
583 * disasm.c: Use string.h, not gdb_string.h.
584 * doublest.c: Use string.h, not gdb_string.h.
585 * dsrec.c: Use string.h, not gdb_string.h.
586 * dummy-frame.c: Use string.h, not gdb_string.h.
587 * dwarf2-frame.c: Use string.h, not gdb_string.h.
588 * dwarf2loc.c: Use string.h, not gdb_string.h.
589 * dwarf2read.c: Use string.h, not gdb_string.h.
590 * elfread.c: Use string.h, not gdb_string.h.
591 * environ.c: Use string.h, not gdb_string.h.
592 * eval.c: Use string.h, not gdb_string.h.
593 * event-loop.c: Use string.h, not gdb_string.h.
594 * exceptions.c: Use string.h, not gdb_string.h.
595 * exec.c: Use string.h, not gdb_string.h.
596 * expprint.c: Use string.h, not gdb_string.h.
597 * f-exp.y: Use string.h, not gdb_string.h.
598 * f-lang.c: Use string.h, not gdb_string.h.
599 * f-typeprint.c: Use string.h, not gdb_string.h.
600 * f-valprint.c: Use string.h, not gdb_string.h.
601 * fbsd-nat.c: Use string.h, not gdb_string.h.
602 * findcmd.c: Use string.h, not gdb_string.h.
603 * findvar.c: Use string.h, not gdb_string.h.
604 * fork-child.c: Use string.h, not gdb_string.h.
605 * frame.c: Use string.h, not gdb_string.h.
606 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
607 * frv-tdep.c: Use string.h, not gdb_string.h.
608 * gdb.c: Use string.h, not gdb_string.h.
609 * gdb_bfd.c: Use string.h, not gdb_string.h.
610 * gdbarch.c: Use string.h, not gdb_string.h.
611 * gdbtypes.c: Use string.h, not gdb_string.h.
612 * gnu-nat.c: Use string.h, not gdb_string.h.
613 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
614 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
615 * go-exp.y: Use string.h, not gdb_string.h.
616 * go-lang.c: Use string.h, not gdb_string.h.
617 * go32-nat.c: Use string.h, not gdb_string.h.
618 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
619 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
620 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
621 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
622 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
623 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
624 * i386-linux-nat.c: Use string.h, not gdb_string.h.
625 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
626 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
627 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
628 * i386-tdep.c: Use string.h, not gdb_string.h.
629 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
630 * i386gnu-nat.c: Use string.h, not gdb_string.h.
631 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
632 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
633 * i387-tdep.c: Use string.h, not gdb_string.h.
634 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
635 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
636 * inf-child.c: Use string.h, not gdb_string.h.
637 * inf-ptrace.c: Use string.h, not gdb_string.h.
638 * inf-ttrace.c: Use string.h, not gdb_string.h.
639 * infcall.c: Use string.h, not gdb_string.h.
640 * infcmd.c: Use string.h, not gdb_string.h.
641 * inflow.c: Use string.h, not gdb_string.h.
642 * infrun.c: Use string.h, not gdb_string.h.
643 * interps.c: Use string.h, not gdb_string.h.
644 * iq2000-tdep.c: Use string.h, not gdb_string.h.
645 * irix5-nat.c: Use string.h, not gdb_string.h.
646 * jv-exp.y: Use string.h, not gdb_string.h.
647 * jv-lang.c: Use string.h, not gdb_string.h.
648 * jv-typeprint.c: Use string.h, not gdb_string.h.
649 * jv-valprint.c: Use string.h, not gdb_string.h.
650 * language.c: Use string.h, not gdb_string.h.
651 * linux-fork.c: Use string.h, not gdb_string.h.
652 * linux-nat.c: Use string.h, not gdb_string.h.
653 * lm32-tdep.c: Use string.h, not gdb_string.h.
654 * m2-exp.y: Use string.h, not gdb_string.h.
655 * m2-typeprint.c: Use string.h, not gdb_string.h.
656 * m32c-tdep.c: Use string.h, not gdb_string.h.
657 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
658 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
659 * m32r-rom.c: Use string.h, not gdb_string.h.
660 * m32r-tdep.c: Use string.h, not gdb_string.h.
661 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
662 * m68k-tdep.c: Use string.h, not gdb_string.h.
663 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
664 * m68klinux-nat.c: Use string.h, not gdb_string.h.
665 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
666 * m88k-tdep.c: Use string.h, not gdb_string.h.
667 * macrocmd.c: Use string.h, not gdb_string.h.
668 * main.c: Use string.h, not gdb_string.h.
669 * mdebugread.c: Use string.h, not gdb_string.h.
670 * mem-break.c: Use string.h, not gdb_string.h.
671 * memattr.c: Use string.h, not gdb_string.h.
672 * memory-map.c: Use string.h, not gdb_string.h.
673 * mep-tdep.c: Use string.h, not gdb_string.h.
674 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
675 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
676 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
677 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
678 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
679 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
680 * mi/mi-console.c: Use string.h, not gdb_string.h.
681 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
682 * mi/mi-interp.c: Use string.h, not gdb_string.h.
683 * mi/mi-main.c: Use string.h, not gdb_string.h.
684 * mi/mi-parse.c: Use string.h, not gdb_string.h.
685 * microblaze-rom.c: Use string.h, not gdb_string.h.
686 * microblaze-tdep.c: Use string.h, not gdb_string.h.
687 * mingw-hdep.c: Use string.h, not gdb_string.h.
688 * minidebug.c: Use string.h, not gdb_string.h.
689 * minsyms.c: Use string.h, not gdb_string.h.
690 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
691 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
692 * mips-tdep.c: Use string.h, not gdb_string.h.
693 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
694 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
695 * mipsread.c: Use string.h, not gdb_string.h.
696 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
697 * mn10300-tdep.c: Use string.h, not gdb_string.h.
698 * monitor.c: Use string.h, not gdb_string.h.
699 * moxie-tdep.c: Use string.h, not gdb_string.h.
700 * mt-tdep.c: Use string.h, not gdb_string.h.
701 * nbsd-tdep.c: Use string.h, not gdb_string.h.
702 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
703 * nto-procfs.c: Use string.h, not gdb_string.h.
704 * nto-tdep.c: Use string.h, not gdb_string.h.
705 * objc-lang.c: Use string.h, not gdb_string.h.
706 * objfiles.c: Use string.h, not gdb_string.h.
707 * opencl-lang.c: Use string.h, not gdb_string.h.
708 * osabi.c: Use string.h, not gdb_string.h.
709 * osdata.c: Use string.h, not gdb_string.h.
710 * p-exp.y: Use string.h, not gdb_string.h.
711 * p-lang.c: Use string.h, not gdb_string.h.
712 * p-typeprint.c: Use string.h, not gdb_string.h.
713 * parse.c: Use string.h, not gdb_string.h.
714 * posix-hdep.c: Use string.h, not gdb_string.h.
715 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
716 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
717 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
718 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
719 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
720 * printcmd.c: Use string.h, not gdb_string.h.
721 * procfs.c: Use string.h, not gdb_string.h.
722 * prologue-value.c: Use string.h, not gdb_string.h.
723 * python/py-auto-load.c: Use string.h, not gdb_string.h.
724 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
725 * ravenscar-thread.c: Use string.h, not gdb_string.h.
726 * regcache.c: Use string.h, not gdb_string.h.
727 * registry.c: Use string.h, not gdb_string.h.
728 * remote-fileio.c: Use string.h, not gdb_string.h.
729 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
730 * remote-mips.c: Use string.h, not gdb_string.h.
731 * remote-sim.c: Use string.h, not gdb_string.h.
732 * remote.c: Use string.h, not gdb_string.h.
733 * reverse.c: Use string.h, not gdb_string.h.
734 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
735 * ser-base.c: Use string.h, not gdb_string.h.
736 * ser-go32.c: Use string.h, not gdb_string.h.
737 * ser-mingw.c: Use string.h, not gdb_string.h.
738 * ser-pipe.c: Use string.h, not gdb_string.h.
739 * ser-tcp.c: Use string.h, not gdb_string.h.
740 * ser-unix.c: Use string.h, not gdb_string.h.
741 * serial.c: Use string.h, not gdb_string.h.
742 * sh-tdep.c: Use string.h, not gdb_string.h.
743 * sh64-tdep.c: Use string.h, not gdb_string.h.
744 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
745 * skip.c: Use string.h, not gdb_string.h.
746 * sol-thread.c: Use string.h, not gdb_string.h.
747 * solib-dsbt.c: Use string.h, not gdb_string.h.
748 * solib-frv.c: Use string.h, not gdb_string.h.
749 * solib-osf.c: Use string.h, not gdb_string.h.
750 * solib-spu.c: Use string.h, not gdb_string.h.
751 * solib-target.c: Use string.h, not gdb_string.h.
752 * solib.c: Use string.h, not gdb_string.h.
753 * somread.c: Use string.h, not gdb_string.h.
754 * source.c: Use string.h, not gdb_string.h.
755 * sparc-nat.c: Use string.h, not gdb_string.h.
756 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
757 * sparc-tdep.c: Use string.h, not gdb_string.h.
758 * sparc64-tdep.c: Use string.h, not gdb_string.h.
759 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
760 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
761 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
762 * spu-linux-nat.c: Use string.h, not gdb_string.h.
763 * spu-multiarch.c: Use string.h, not gdb_string.h.
764 * spu-tdep.c: Use string.h, not gdb_string.h.
765 * stabsread.c: Use string.h, not gdb_string.h.
766 * stack.c: Use string.h, not gdb_string.h.
767 * std-regs.c: Use string.h, not gdb_string.h.
768 * symfile.c: Use string.h, not gdb_string.h.
769 * symmisc.c: Use string.h, not gdb_string.h.
770 * symtab.c: Use string.h, not gdb_string.h.
771 * target.c: Use string.h, not gdb_string.h.
772 * thread.c: Use string.h, not gdb_string.h.
773 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
774 * tilegx-tdep.c: Use string.h, not gdb_string.h.
775 * top.c: Use string.h, not gdb_string.h.
776 * tracepoint.c: Use string.h, not gdb_string.h.
777 * tui/tui-command.c: Use string.h, not gdb_string.h.
778 * tui/tui-data.c: Use string.h, not gdb_string.h.
779 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
780 * tui/tui-file.c: Use string.h, not gdb_string.h.
781 * tui/tui-layout.c: Use string.h, not gdb_string.h.
782 * tui/tui-out.c: Use string.h, not gdb_string.h.
783 * tui/tui-regs.c: Use string.h, not gdb_string.h.
784 * tui/tui-source.c: Use string.h, not gdb_string.h.
785 * tui/tui-stack.c: Use string.h, not gdb_string.h.
786 * tui/tui-win.c: Use string.h, not gdb_string.h.
787 * tui/tui-windata.c: Use string.h, not gdb_string.h.
788 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
789 * typeprint.c: Use string.h, not gdb_string.h.
790 * ui-file.c: Use string.h, not gdb_string.h.
791 * ui-out.c: Use string.h, not gdb_string.h.
792 * user-regs.c: Use string.h, not gdb_string.h.
793 * utils.c: Use string.h, not gdb_string.h.
794 * v850-tdep.c: Use string.h, not gdb_string.h.
795 * valarith.c: Use string.h, not gdb_string.h.
796 * valops.c: Use string.h, not gdb_string.h.
797 * valprint.c: Use string.h, not gdb_string.h.
798 * value.c: Use string.h, not gdb_string.h.
799 * varobj.c: Use string.h, not gdb_string.h.
800 * vax-tdep.c: Use string.h, not gdb_string.h.
801 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
802 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
803 * windows-nat.c: Use string.h, not gdb_string.h.
804 * xcoffread.c: Use string.h, not gdb_string.h.
805 * xml-support.c: Use string.h, not gdb_string.h.
806 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
807 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
809 2013-11-18 Tom Tromey <tromey@redhat.com>
811 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
813 * gnulib/aclocal.m4: Update.
814 * gnulib/config.in: Update.
815 * gnulib/configure: Update.
816 * gnulib/import/Makefile.am: Update.
817 * gnulib/import/Makefile.in: Update.
818 * gnulib/import/errno.in.h: New.
819 * gnulib/import/intprops.h: New.
820 * gnulib/import/m4/errno_h.m4: New.
821 * gnulib/import/m4/gnulib-cache.m4: Update.
822 * gnulib/import/m4/gnulib-comp.m4: Update.
823 * gnulib/import/m4/strerror.m4: New.
824 * gnulib/import/m4/strstr.m4: New.
825 * gnulib/import/m4/sys_socket_h.m4: New.
826 * gnulib/import/strerror-override.c: New.
827 * gnulib/import/strerror-override.h: New.
828 * gnulib/import/strerror.c: New.
829 * gnulib/import/strstr.c: New.
831 2013-11-18 Tom Tromey <tromey@redhat.com>
833 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
836 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
838 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
839 * sparc-tdep.h: And its prototype.
841 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
843 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
845 2013-11-18 Pedro Alves <palves@redhat.com>
847 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
850 2013-11-18 Joel Brobecker <brobecker@adacore.com>
852 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
853 to -list-features output.
855 2013-11-17 Joel Brobecker <brobecker@adacore.com>
857 * dwarf2expr.h (struct dwarf_expr_context_funcs)
858 <read_addr_from_reg>: Renames "read_reg".
859 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
861 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
862 Use read_addr_from_reg in place of read_reg.
863 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
864 in place of read_reg.
865 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
867 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
868 with dwarf_expr_read_addr_from_reg.
869 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
870 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
871 needs_frame_read_addr_from_reg.
873 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
875 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
877 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
879 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
882 2013-11-15 Tom Tromey <tromey@redhat.com>
885 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
886 (classify_name): Likewise. Prefer a field of "this" over a
888 (classify_inner_name, yylex): Update.
890 2013-11-15 Joel Brobecker <brobecker@adacore.com>
892 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
893 Extend the documentation a bit.
894 <get_reg_value>: New field.
895 * dwarf2loc.c (dwarf_expr_get_reg_value)
896 (needs_frame_get_reg_value): New functions.
897 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
899 * dwarf2-frame.c (get_reg_value): New function.
900 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
901 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
902 Use new callback to compute result_val.
904 2013-11-15 Alan Modra <amodra@gmail.com>
906 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
907 (ppc64_desc_entry_point): ..this. Update comments here and at
909 (ppc64_standard_linkage1, ppc64_standard_linkage2,
910 ppc64_standard_linkage3): Update comments.
911 (ppc64_standard_linkage4, ppc64_standard_linkage5,
912 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
914 (ppc64_standard_linkage4_target): New function.
915 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
916 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
917 nop match. Fix comment wrap.
919 2013-11-14 Pedro Alves <palves@redhat.com>
921 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
922 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
924 2013-11-14 Pedro Alves <palves@redhat.com>
926 * infrun.c (struct execution_control_state)
927 <stepped_after_stopped_by_watchpoint>: New field.
928 (get_inferior_stop_soon): New function.
929 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
930 moved to struct execution_control_state -- adjust. Use
931 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
933 (handle_signal_stop): New function, factored out from
934 handle_inferior_event.
936 2013-11-14 Pedro Alves <palves@redhat.com>
938 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
940 * breakpoint.c (bpstat_explains_signal): Adjust to return a
942 (explains_signal_watchpoint, base_breakpoint_explains_signal):
943 Adjust to return a boolean.
944 * breakpoint.h (enum bpstat_signal_value): Delete.
945 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
946 (bpstat_explains_signal): Likewise.
947 * infrun.c (handle_inferior_event) <random signal checks>:
948 bpstat_explains_signal now returns a boolean - adjust. No longer
949 consider hiding signals.
951 2013-11-14 Pedro Alves <palves@redhat.com>
953 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
954 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
955 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
957 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
958 instead of BPSTAT_SIGNAL_HIDE.
959 * infrun.c (handle_inferior_event): Rework random signal checks.
961 2013-11-14 Pedro Alves <palves@redhat.com>
963 * infrun.c (struct execution_control_state): Remove
964 'random_signal' field.
965 (handle_syscall_event): Use bpstat_causes_stop instead of
966 bpstat_explains_signal. Don't set ecs->random_signal.
967 (handle_inferior_event): New 'random_signal' local.
968 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
969 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
970 bpstat_explains_signal. Don't set ecs->random_signal.
971 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
974 2013-11-14 Pedro Alves <palves@redhat.com>
976 * infrun.c (handle_inferior_event): Move comment from the
977 function's body to the function's description, adjusted.
979 2013-11-14 Pedro Alves <palves@redhat.com>
981 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
982 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
983 Assert we never fall through out of the TARGET_WAITKIND_LOADED
986 2013-11-14 Tom Tromey <tromey@redhat.com>
988 * python/py-linetable.c (ltpy_has_line)
989 (ltpy_get_all_source_lines): Fix loop termination condition.
991 2013-11-14 Joel Brobecker <brobecker@adacore.com>
993 * mi/mi-parse.h (struct mi_parse) <language>: New field.
994 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
995 PARSE->LANGUAGE during command execution, if set.
996 * mi/mi-parse.c: Add "language.h" #include.
997 (mi_parse): Add parsing of "--language" command option.
999 * NEWS: Add entry mentioning the new "--language" command option.
1001 2013-11-14 Pedro Alves <palves@redhat.com>
1002 Joel Brobecker <brobecker@adacore.com>
1004 * cli/cli-utils.h (extract_arg_const): Add declaration.
1005 * cli/cli-utils.c (extract_arg_const): New function.
1006 (extract_arg): Reimplement using extract_arg_const.
1008 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1010 * language.h: Add "symtab.h" #include.
1012 2013-11-13 Doug Evans <xdje42@gmail.com>
1014 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1015 specific breakpoints, don't evaluate breakpoint condition if
1018 2013-11-13 Keith Seitz <keiths@redhat.com>
1022 * cp-support.c (insepct_type): Add support for substituting
1023 namespace aliases, too.
1024 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1025 for DW_TAG_imported_declaration.
1026 (add_partial_symbol): Likewise.
1027 (process_die): Handle namespace aliases with
1028 read_namespace_alias.
1029 (die_needs_namespace): Add DW_TAG_imported_declaration.
1030 (read_namespace_alias): New function.
1031 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1032 (new_symbol_full): Handle DW_TAG_imported_declaration.
1034 2013-11-13 Keith Seitz <keiths@redhat.com>
1036 * p-exp.y (uptok): Make first parameter const.
1037 (yylex): Make `tokstart' and `tokptr' const.
1038 Don't copy the lexer input to a temporary buffer.
1040 Remove const workaround for parse_escape.
1041 Create a temporary buffer for a convenience variable instead
1042 of doing in-place modification of the input.
1043 If a match is found with a different case from the input,
1044 do not change the input at all.
1045 Use `tmp' to construct the resultant stoken instead of
1048 2013-11-13 Doug Evans <xdje42@gmail.com>
1050 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1052 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1054 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1055 entry with "ada-exceptions".
1057 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1059 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1060 after re-initialization of OBJFILE's obstack.
1062 2013-11-12 Doug Evans <xdje42@gmail.com>
1064 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1065 bs->stop != 0 on entry. Update function comment. Simplify early
1066 exit for frame mismatch. Reindent rest of function.
1068 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1070 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1073 2013-11-12 Doug Evans <dje@google.com>
1075 Work around gold/15646.
1076 * dwarf2read.c (read_index_from_section): Update comment.
1077 (struct dw2_symtab_iterator): New member global_seen.
1078 (dw2_symtab_iter_init): Initialize it.
1079 (dw2_symtab_iter_next): Skip duplicate global symbols.
1080 (dw2_expand_symtabs_matching): Ditto.
1082 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1084 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1085 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1087 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1088 (mi_cmd_info_ada_exceptions): New function.
1089 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1091 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1093 * ada-lang.h: #include "vec.h".
1094 (struct ada_exc_info): New.
1095 (ada_exc_info): New typedef.
1096 (DEF_VEC_O(ada_exc_info)): New vector.
1097 (ada_exceptions_list): Add declaration.
1098 * ada-lang.c (ada_is_exception_sym)
1099 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1100 (sort_remove_dups_ada_exceptions_list)
1101 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1102 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1103 (ada_exceptions_list_1, ada_exceptions_list)
1104 (info_exceptions_command): New function.
1105 (_initialize_ada_language): Add "info exception" command.
1107 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1110 * NEWS: Add linetable feature.
1111 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1112 * python/py-linetable.c: New file.
1113 * python/py-symtab.c (stpy_get_linetable): New function.
1114 * python/python-internal.h (symtab_to_linetable_object): Declare.
1115 (gdbpy_initialize_linetable): Ditto.
1116 * python/python.c (_initialize_python): Call
1117 gdbpy_initialize_linetable.
1119 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1121 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1122 the documentation of fields "except_string" and "condition".
1123 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1124 CONDITION on the heap before passing it to
1125 create_ada_exception_catchpoint.
1126 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1129 2013-11-11 Tom Tromey <tromey@redhat.com>
1131 * config.in, configure: Rebuild.
1132 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1134 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1136 * remote-sim.c (gdbsim_detach): Break declaration into
1137 shorter lines. No code change.
1139 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1141 * remote-sim.c (gdbsim_detach): Fix prototype.
1143 2013-11-08 Doug Evans <dje@google.com>
1145 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1146 (create_debug_types_hash_table): Only print debugging messages for
1147 each TU if dwarf2-read >= 2.
1148 (process_queue): Ditto.
1149 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1152 2013-11-08 Tom Tromey <tromey@redhat.com>
1154 * configure: Rebuild.
1155 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1157 2013-11-08 Tom Tromey <tromey@redhat.com>
1159 * configure, config.in: Rebuild.
1160 * configure.ac: Remove unused configury.
1162 2013-11-08 Tom Tromey <tromey@redhat.com>
1164 * m32c-tdep.c: Use gdb_string.h.
1166 2013-11-08 Tom Tromey <tromey@redhat.com>
1168 * configure, config.in: Rebuild.
1169 * configure.ac: Remove all link.h-related checks.
1171 2013-11-08 Tom Tromey <tromey@redhat.com>
1173 * acinclude.m4: Include common.m4.
1174 * common/common.m4: New file.
1175 * configure, config.in: Rebuild.
1176 * configure.ac: Use GDB_AC_COMMON.
1178 2013-11-08 Doug Evans <dje@google.com>
1180 * NEWS: Mention that "set debug symtab-create" now accepts a
1182 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1183 to set the symtab's primary flag.
1184 * jit.c (finalize_symtab): Ditto.
1185 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1186 * symfile.c (allocate_symtab): Only print debugging messages for
1187 symtab_create_debug levels 2 and higher.
1188 * symtab.c (symtab_create_debug): Change type to unsigned int.
1189 (set_symtab_primary): New function.
1190 (_initialize_symtab): Change "set debug symtab-create" to a
1192 * symtab.h (set_symtab_primary): Declare.
1193 (symtab_create_debug): Update decl.
1195 2013-11-08 Tom Tromey <tromey@redhat.com>
1197 * aix-thread.c (aix_thread_detach): Update.
1198 * corelow.c (core_detach): Update.
1199 * darwin-nat.c (darwin_detach): Update.
1200 * dec-thread.c (dec_thread_detach): Update.
1201 * gnu-nat.c (gnu_detach): Update.
1202 * go32-nat.c (go32_detach): Update.
1203 * inf-ptrace.c (inf_ptrace_detach): Update.
1204 * inf-ttrace.c (inf_ttrace_detach): Update.
1205 * linux-fork.c (linux_fork_detach): Update.
1206 * linux-fork.h (linux_fork_detach): Update.
1207 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1208 local for const-correctness.
1209 * linux-thread-db.c (thread_db_detach): Update.
1210 * monitor.c (monitor_detach): Update.
1211 * nto-procfs.c (procfs_detach): Update.
1212 * procfs.c (procfs_detach): Update.
1213 * record.c (record_detach): Update.
1214 * record.h (record_detach): Update.
1215 * remote-m32r-sdi.c (m32r_detach): Update.
1216 * remote-mips.c (mips_detach): Update.
1217 * remote-sim.c (gdbsim_detach): Update.
1218 * remote.c (remote_detach_1, remote_detach)
1219 (extended_remote_detach): Update.
1220 * sol-thread.c (sol_thread_detach): Update.
1221 * target.c (target_detach): Make "args" const.
1222 (init_dummy_target): Update.
1223 * target.h (struct target_ops) <to_detach>: Make argument const.
1224 (target_detach): Likewise.
1225 * windows-nat.c (windows_detach): Update.
1227 2013-11-07 Doug Evans <dje@google.com>
1230 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1231 and align fields for PT_GNU_RELRO segments.
1233 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1236 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1238 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1240 * NEWS: Document Python temporary breakpoint support.
1241 * python/py-breakpoint.c (bppy_get_temporary): New function.
1242 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1243 to temporary if True.
1245 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1247 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1248 removed to allow analyzing unconditional branch instructions
1249 with PC-relative offsets of zero.
1251 2013-11-07 Yao Qi <yao@codesourcery.com>
1253 * mi/mi-cmd-var.c: Include "language.h".
1254 (mi_cmd_var_info_expression): Get language name from
1256 * varobj.c (varobj_language_string): Remove.
1257 (variable_language): Remove declaration.
1258 (languages): Remove.
1259 (varobj_get_language): Change the type of return value.
1260 (variable_language): Remove.
1261 * varobj.h (enum varobj_languages): Remove.
1262 (varobj_language_string): Remove declaration.
1263 (varobj_get_language): Update declaration.
1265 2013-11-07 Yao Qi <yao@codesourcery.com>
1267 * language.h (struct language_defn) <la_natural_name>: New
1269 * ada-lang.c (ada_language_defn): Initialize field
1271 * c-lang.c (c_language_defn): Likewise.
1272 (cplus_language_defn, asm_language_defn): Likewise.
1273 * d-lang.c (d_language_defn): Likewise.
1274 * f-lang.c (f_language_defn): Likewise.
1275 * go-lang.c (go_language_defn): Likewise.
1276 * jv-lang.c (java_language_defn): Likewise.
1277 * language.c (unknown_language_defn ): Likewise.
1278 (auto_language_defn): Likewise.
1279 * m2-lang.c (m2_language_defn): Likewise.
1280 * objc-lang.c (objc_language_defn): Likewise.
1281 * opencl-lang.c (opencl_language_defn): Likewise.
1282 * p-lang.c (pascal_language_defn): Likewise.
1284 2013-11-07 Yao Qi <yao@codesourcery.com>
1286 * language.c (language_str): Return const char *.
1287 (add_language): Add const to 'language_names'
1288 * language.h (struct language_defn) <la_name>: Add const.
1289 (language_str: Update declaration.
1291 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1293 * s390-linux-nat.c (s390_read_description): Consider the TE field
1294 in the HWCAP for determining 'have_regset_tdb'.
1296 2013-11-06 Will Newton <will.newton@linaro.org>
1299 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1300 values. (read_partial_die): Likewise.
1302 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1305 * top.c (command_line_input): Unify interactivity tests to use
1306 input_from_terminal_p.
1307 * event-top.c (command_line_handler): Likewise.
1309 2013-11-06 Yao Qi <yao@codesourcery.com>
1311 * Makefile.in (check-perf): New target.
1313 2013-11-05 Will Newton <will.newton@linaro.org>
1316 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1317 (arm_print_float_info): Likewise.
1319 2013-11-04 Anton Blanchard <anton@samba.org>
1321 * target.c (memory_xfer_partial): Cap write to 4KB.
1323 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1325 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1326 probe scan even when the arch provides no get_longjmp_target.
1328 2013-10-31 Pedro Alves <palves@redhat.com>
1330 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1331 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1332 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1333 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1334 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1335 <bpstat handling>: If the bpstat chain wants the signal to be
1336 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1339 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1341 * breakpoint.c (update_watchpoint): Update error message and add
1342 an additional error message.
1344 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1346 * s390-tdep.h: Rename to...
1347 * s390-linux-tdep.h: ...here.
1348 * s390-tdep.c: Rename to...
1349 * s390-linux-tdep.c: ...here. Adjust #include.
1350 * s390-nat.c: Rename to...
1351 * s390-linux-nat.c: ...here. Adjust #include.
1352 * config/s390/s390.mh: Rename to...
1353 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1355 * configure.host: Reflect host rename "s390" -> "linux".
1356 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1357 * Makefile.in (ALL_TARGET_OBS): Likewise.
1358 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1360 (ALLDEPFILES): Reflect rename of .c files.
1362 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1364 * s390-nat.c: Whitespace cleanup.
1365 * s390-tdep.c: Likewise.
1366 * s390-tdep.h: Remove empty line at end of file.
1368 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1370 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1373 2013-10-29 Tom Tromey <tromey@redhat.com>
1375 * utils.c (reg): Move undefinition...
1376 * gdb_curses.h: ... here. Update comment to mention AIX.
1378 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1380 * exec.h (add_target_sections_of_objfile): New declaration.
1381 * exec.c (add_target_sections_of_objfile): New function.
1382 * symfile.c (add_symbol_file_command): Update current target sections.
1383 (remove_symbol_file_command): New command.
1384 (symfile_free_objfile): New function.
1385 (_initialize_symfile): Register observer for free_objfile events.
1386 * NEWS: Add description of the remove-symbol-file command.
1387 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1388 * objfiles.c (free_objfile): Notify free_objfile.
1389 (is_addr_in_objfile): New function.
1390 * objfiles.h (is_addr_in_objfile): New declaration.
1391 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1392 events instead of solib_unloaded events.
1393 (_initialize_printcmd): Register observer for free_objfile instead
1394 of solib_unloaded notifications.
1395 * solib.c (remove_user_added_objfile): New function.
1396 (_initialize_symfile): Add remove-symbol-file.
1398 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1400 * infcmd.c (default_print_one_register_info): Use val_print to
1401 print all values even optimized out or unavailable ones. Don't
1402 try to print a raw form of optimized out or unavailable values.
1404 2013-10-29 Yao Qi <yao@codesourcery.com>
1406 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1407 parameter 'arg' instead of from program_space_data.
1408 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1409 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1410 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1411 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1412 * inflow.c (inflow_inferior_data_cleanup): Get data from
1413 parameter 'arg' instead of inferior_data.
1414 * registry.h: Add comments.
1416 2013-10-28 Pedro Alves <palves@redhat.com>
1418 * breakpoint.c (watchpoints_triggered)
1419 <!target_stopped_data_address>: Hardcode return 1.
1421 2013-10-28 Pedro Alves <palves@redhat.com>
1423 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1426 2013-10-28 Pedro Alves <palves@redhat.com>
1428 * infrun.c (process_event_stop_test): New function, factored out
1429 from handle_inferior_event.
1430 (handle_inferior_event): 'process_event_stop_test' is now a
1431 function instead of a goto label -- adjust.
1433 2013-10-28 Pedro Alves <palves@redhat.com>
1435 * infrun.c (handle_inferior_event): Move process_event_stop_test
1436 goto label to the else branch of the ecs->random_signal check,
1437 along with FRAME and GDBARCH re-fetching.
1439 2013-10-28 Pedro Alves <palves@redhat.com>
1441 * infrun.c (switch_back_to_stepped_thread): New function, factored
1442 out from handle_inferior_event.
1443 (handle_inferior_event): Adjust to call
1444 switch_back_to_stepped_thread. Call it also at the tail of the
1445 random signal handling, and return, instead of also handling
1446 random signals just before the stepping tests.
1448 2013-10-28 Pedro Alves <palves@redhat.com>
1450 * infrun.c (clear_stop_func): Delete.
1451 (handle_inferior_event): Don't call clear_stop_func and don't
1452 clear 'ecs->random_signal'.
1454 2013-10-27 Yao Qi <yao@codesourcery.com>
1456 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1457 (varobj_create, varobj_get_path_expr): Update.
1458 (varobj_value_has_mutated, varobj_update): Likewise.
1459 (create_child_with_value, new_root_variable): Likewise.
1460 (number_of_children, name_of_variable): Likewise.
1461 (value_of_child, my_value_of_variable): Likewise.
1462 (varobj_value_is_changeable_p): Likewise.
1464 2013-10-25 Yao Qi <yao@codesourcery.com>
1466 * language.h (struct lang_varobj_ops): Declare.
1467 (struct language_defn) <la_varobj_ops>: New field.
1468 * ada-lang.c: Include "varobj.h"
1469 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1471 * c-lang.c: Include "varobj.h"
1472 (c_language_defn): Initialize field 'la_varobj_ops' with
1474 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1476 (asm_language_defn): Initialize field 'la_varobj_ops' with
1478 (minimal_language_defn): Likewise.
1479 * d-lang.c (d_language_defn): Likewise.
1480 * f-lang.c (f_language_defn): Likewise.
1481 * go-lang.c (go_language_defn): Likewise.
1482 * m2-lang.c (m2_language_defn): Likewise.
1483 * objc-lang.c (objc_language_defn): Likewise.
1484 * opencl-lang.c (opencl_language_defn): Likewise.
1485 * p-lang.c (pascal_language_defn): Likewise.
1486 * language.c (unknown_language_defn): Likewise.
1487 (auto_language_defn): Likewise.
1488 (local_language_defn): Likewise.
1489 * jv-lang.c (java_language_defn): Initialize field
1490 'la_varobj_ops' with java_varobj_ops.
1491 * varobj.c (varobj_create): Update.
1492 * varobj.h (default_varobj_ops): Define macro.
1494 2013-10-25 Pedro Alves <palves@redhat.com>
1496 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1498 (cp_print_static_field): If the value is entirely optimized out,
1499 print <optimized out> here.
1500 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1502 * p-valprint.c (pascal_object_print_static_field): If the value is
1503 entirely optimized out, print <optimized out> here.
1504 * valops.c (do_search_struct_field)
1505 (value_struct_elt_for_reference): No longer handle a NULL static
1507 * value.c (value_static_field): Return an optimized out value
1510 2013-10-25 Yao Qi <yao@codesourcery.com>
1512 * remote.c (remote_traceframe_info): Return early if
1513 traceframe is not selected.
1515 2013-10-25 Yao Qi <yao@codesourcery.com>
1517 * tracepoint.c (traceframe_fun): Remove.
1518 (traceframe_sal): Remove.
1519 (set_traceframe_context): Add local variables.
1521 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1523 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1526 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1528 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1529 failure from register information collection.
1531 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1533 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1535 (linux_corefile_thread_callback): Update accordingly.
1536 (linux_make_corefile_notes): Likewise.
1538 2013-10-24 Pedro Alves <palves@redhat.com>
1540 * NEWS (New options): Mention set/show startup-with-shell.
1541 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1543 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1544 startup-with-shell'.
1545 (show_startup_with_shell): New function.
1546 (_initialize_fork_child): Register the set/show startup-with-shell
1548 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1549 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1550 * procfs.c (procfs_init_inferior): Remove comment.
1551 * infcmd.c (startup_with_shell): New global.
1552 * inferior.h (startup_with_shell): Declare global.
1553 (STARTUP_WITH_SHELL): Delete.
1554 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1556 2013-10-23 Pedro Alves <palves@redhat.com>
1558 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1559 * common/signals.c: Include "gdb_assert.h".
1560 (signals): New field 'symbol'.
1561 (SET): Use the 'symbol' parameter.
1562 (gdb_signal_to_symbol_string): New function.
1563 * infrun.c (handle_inferior_event) <random signal>: In debug
1564 output, print the random signal enum as string in addition to its
1566 * target/waitstatus.c (target_waitstatus_to_string): Print the
1567 signal's enum value as string instead of the (POSIX) signal name.
1569 2013-10-23 Gary Benson <gbenson@redhat.com>
1572 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1573 from 32 to 18. Adjusted fscanf format string accordingly.
1574 (Avoids leaving cmd unterminated.)
1575 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1576 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1577 that local_address and remote_address will not overflow.
1578 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1579 leaving dependencies unterminated. Parse size as "%u" to match
1582 2013-10-22 Pedro Alves <palves@redhat.com>
1584 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1585 set ecs->random signal.
1587 2013-10-22 Pedro Alves <palves@redhat.com>
1589 * infrun.c (keep_going): Update comments.
1591 2013-10-22 Pedro Alves <palves@redhat.com>
1593 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1594 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1596 2013-10-22 Pedro Alves <palves@redhat.com>
1598 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1600 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1601 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1602 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1603 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1604 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1605 (GDB_SIGNAL_LAST): Change description string.
1606 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1607 Adjust to signal renaming.
1608 * darwin-nat.c (darwin_decode_message): Likewise.
1610 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1612 * MAINTAINERS (Write After Approval): Add myself to the list.
1614 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1616 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1617 forced off, downgrade them to software watchpoints if possible,
1618 and error out if not possible.
1619 (watch_command_1): Move watchpoint type selection closer to
1620 watchpoint creation, and extend the comments.
1622 2013-10-18 Pedro Alves <palves@redhat.com>
1625 * infrun.c (handle_inferior_event): Keep going if we got a random
1626 signal we should not stop for, instead of falling through to the
1629 2013-10-18 Yao Qi <yao@codesourcery.com>
1631 * c-varobj.c (cplus_number_of_children): Fix indentation.
1633 2013-10-17 Tom Tromey <tromey@redhat.com>
1636 * printcmd.c (printcmd): Call gdb_flush.
1638 2013-10-17 Tom Tromey <tromey@redhat.com>
1640 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1641 (elf_locate_sections): Update.
1643 2013-10-17 Yao Qi <yao@codesourcery.com>
1645 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1646 * ada-varobj.c: Remove the include of ada-varobj.h.
1647 (ada_varobj_get_number_of_children): Declare.
1648 (ada_varobj_get_name_of_child): Make it static.
1649 (ada_varobj_get_path_expr_of_child): Likewise.
1650 (ada_varobj_get_value_of_child): Likewise.
1651 (ada_varobj_get_type_of_child): Likewise.
1652 (ada_varobj_get_value_of_array_variable): Likewise.
1653 * ada-varobj.h: Remove.
1655 2013-10-17 Yao Qi <yao@codesourcery.com>
1657 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1658 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1659 * ada-varobj.c: Include "varobj.h".
1660 (ada_number_of_children): New. Moved from varobj.c.
1661 (ada_name_of_variable, ada_name_of_child): Likewise.
1662 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1663 (ada_type_of_child, ada_value_of_variable): Likewise.
1664 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1665 (ada_varobj_ops): New.
1666 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1667 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1668 * gdbtypes.h (get_target_type): Declare.
1669 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1671 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1672 (ANONYMOUS_UNION_NAME): Likewise.
1673 (get_type, get_value_type, get_target_type): Remove declarations.
1674 (value_get_print_value, varobj_value_get_print_value): Likewise.
1675 (c_number_of_children, c_name_of_variable): Likewise.
1676 (c_name_of_child, c_path_expr_of_child): Likewise.
1677 (c_value_of_child, c_type_of_child): Likewise.
1678 (c_value_of_variable, cplus_number_of_children): Likewise.
1679 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1680 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1681 (cplus_value_of_child, cplus_type_of_child): Likewise.
1682 (cplus_value_of_variable, java_number_of_children): Likewise.
1683 (java_name_of_variable, java_name_of_child): Likewise.
1684 (java_path_expr_of_child, java_value_of_child): Likewise.
1685 (java_type_of_child, java_value_of_variable): Likewise.
1686 (ada_number_of_children, ada_name_of_variable): Likewise.
1687 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1688 (ada_value_of_child, ada_type_of_child): Likewise.
1689 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1690 (ada_value_has_mutated): Likewise.
1691 (struct language_specific): Move it to varobj.h.
1692 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1693 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1695 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1697 (is_anonymous_child): Move it to c-varobj.c and rename to
1698 varobj_is_anonymous_child. Caller update.
1699 (get_type): Move it to c-varobj.c.
1700 (get_value_type): Rename it varobj_get_value_type. Make it
1702 (get_target_type): Move it gdbtypes.c.
1703 (varobj_formatted_print_options): New function.
1704 (value_get_print_value): Rename it to
1705 varobj_value_get_print_value and make it extern.
1706 (varobj_value_is_changeable_p): Make it extern.
1707 (adjust_value_for_child_access): Move it to c-varobj.c.
1708 (default_value_is_changeable_p): Rename it to
1709 varobj_default_value_is_changeable_p. Make it extern.
1710 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1711 (c_name_of_child, c_path_expr_of_child): Likewise.
1712 (c_value_of_child, c_type_of_child): Likewise.
1713 (c_value_of_variable, cplus_number_of_children): Likewise.
1714 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1715 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1716 (cplus_value_of_child, cplus_type_of_child): Likewise.
1717 (cplus_value_of_variable): Likewise.
1718 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1719 (java_name_of_child, java_path_expr_of_child): Likewise.
1720 (java_value_of_child, java_type_of_child): Likewise.
1721 (java_value_of_variable): Likewise.
1722 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1723 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1724 (ada_value_of_child, ada_type_of_child): Likewise.
1725 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1726 (ada_value_has_mutated): Likewise.
1727 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1728 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1729 (c_varobj_ops, cplus_varobj_ops): Declare.
1730 (java_varobj_ops, ada_varobj_ops): Declare.
1731 (varobj_default_value_is_changeable_p): Declare.
1732 (varobj_value_is_changeable_p): Declare.
1733 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1734 (varobj_get_path_expr_parent): Declare.
1735 (varobj_value_get_print_value): Declare.
1736 (varobj_formatted_print_options): Declare.
1737 (varobj_restrict_range): Declare.
1739 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1741 * target/waitstatus.h (target_waitkind): Remove spurious
1742 character from the comments.
1744 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1746 * gdbarch.sh (get_longjmp_target): Add method documentation.
1747 * gdbarch.h: Regenerate.
1749 2013-10-16 Tom Tromey <tromey@redhat.com>
1751 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1754 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1756 * gcore.in: Call GDB using the full path to the gcore script.
1757 Error out if the GDB binary is not found.
1759 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1762 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1765 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1768 * target.c (target_disable_btrace): Fix invalid return value for
1770 (target_teardown_btrace): Likewise.
1772 2013-10-14 Yao Qi <yao@codesourcery.com>
1774 * varobj.c (struct varobj): Move most of the fields to
1776 (struct varobj_dynamic): New struct.
1777 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1778 (varobj_has_more): Likewise.
1779 (dynamic_varobj_has_child_method): Likewise.
1780 (update_dynamic_varobj_children): Likewise.
1781 (varobj_get_num_children): Likewise.
1782 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1783 (install_new_value_visualizer): Likewise.
1784 (install_new_value_visualizer, install_new_value): Likewise.
1785 (varobj_update, new_variable, free_variable): Likewise.
1786 (my_value_of_variable, value_get_print_value): Likewise.
1787 (install_visualizer): Change the type of parameter 'var' to
1788 'struct varobjd_dynamic *'. Callers update.
1789 * varobj.h (struct varobj): Moved from varobj.c.
1790 (struct varobj) <dynamic>: New field.
1792 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1794 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1795 as the preferred name of r30.
1796 * nios2-linux-tdep.c (reg_offsets): Likewise.
1797 * features/nios2-cpu.xml: Likewise.
1798 * features/nios2-linux.c: Regenerated.
1799 * features/nios2.c: Regenerated.
1800 * regformats/nios2-linux.dat: Regenerated.
1802 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1804 Canonicalize directories for EXEC_FILENAME.
1805 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1807 * utils.c (gdb_realpath_keepfile): New function.
1808 * utils.h (gdb_realpath_keepfile): New declaration.
1810 2013-10-11 Doug Evans <dje@google.com>
1812 * Makefile.in (GDBFLAGS): New variable.
1815 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1817 * NEWS: Add entry documenting the new "-catch-assert" and
1818 "-catch-exception" GDB/MI commands.
1820 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1822 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1824 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1825 "enabled". Set B->ENABLE_STATE accordingly.
1826 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1828 (create_ada_exception_catchpoint): Add declaration.
1829 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1830 (create_ada_exception_catchpoint): Make non-static. Add new
1831 parameter "disabled". Use it in call to
1832 init_ada_exception_breakpoint.
1833 (catch_ada_exception_command): Add parameter "enabled" in call
1834 to create_ada_exception_catchpoint.
1835 (catch_assert_command): Likewise.
1837 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1839 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1840 "catch-exception" commands.
1841 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1842 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1844 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1846 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1847 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1848 of all its enumerates with "ada_". Update the rest of this
1851 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1853 * ada-lang.c (ada_decode_exception_location): Delete.
1854 (create_ada_exception_catchpoint): Remove arguments "sal",
1855 "addr_string" and "ops". Add argument "ex_kind" instead.
1856 Adjust implementation accordingly, calling ada_exception_sal
1857 to get the entities it no longer gets passed as arguments.
1858 Document the function's arguments.
1859 (catch_ada_exception_command): Use catch_ada_exception_command_split
1860 instead of ada_decode_exception_location, and update call to
1861 create_ada_exception_catchpoint.
1862 (catch_ada_assert_command_split): Renames
1863 ada_decode_assert_location. Remove parameters "addr_string" and
1864 "ops", and now returns void. Adjust implementation accordingly.
1865 Update the function documentation.
1866 (catch_assert_command): Use catch_ada_assert_command_split
1867 instead of ada_decode_assert_location. Update call to
1868 create_ada_exception_catchpoint.
1870 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1872 * utils.h (perror_warning_with_name): Add declaration.
1873 * utils.c (perror_warning_with_name): New function.
1874 * cli/cli-cmds.c (source_script_with_search): Add call to
1875 perror_warning_with_name if from_tty is nul.
1877 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1879 * utils.c (perror_string): New function, extracted out of
1880 throw_perror_with_name.
1881 (throw_perror_with_name): Rework to use perror_string.
1883 2013-10-11 Yao Qi <yao@codesourcery.com>
1885 * remote.c (discard_pending_stop_replies_in_queue): Update
1887 (struct stop_reply) <rs>: New field.
1888 (remove_stop_reply_of_remote_state): New function.
1889 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1890 Callers update. Pass remove_stop_reply_of_remote_state to
1892 (remote_parse_stop_reply): Initialize field 'rs'.
1894 2013-10-10 Will Newton <will.newton@linaro.org>
1896 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1899 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1901 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1902 serial_baud_show_cmd.
1903 (_initialize_cli_cmds): Delete the code creating the
1904 "set/show remotebaud" commands.
1905 * serial.c (baud_rate): Move here from top.c.
1906 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1907 (_initialize_serial): Create "set/show serial baud" commands.
1908 Add "set/show remotebaud" command aliases.
1909 * top.c (baud_rate): Moved to serial.c.
1910 * NEWS: Document the new "set/show serial baud" commands,
1911 replacing "set/show remotebaud".
1913 2013-10-09 Pedro Alves <palves@redhat.com>
1915 * breakpoint.c (insert_bp_location): Use memory_error_message to
1916 build the memory error string.
1917 * c-lang.c: Include "gdbcore.h".
1918 (c_get_string): Use memory_error to throw error.
1919 (target_xfer_memory_error): Delete.
1920 (memory_error_message): New, factored out from
1921 target_xfer_memory_error.
1922 (memory_error): Change parameter type to target_xfer_error.
1924 (read_memory): Use memory_error instead of
1925 target_xfer_memory_error.
1926 * gdbcore.h: Include "target.h".
1927 (memory_error): Change parameter type to target_xfer_error.
1928 (memory_error_message): Declare function.
1929 * target.c (target_read_memory, target_read_stack)
1930 (target_write_memory, target_write_raw_memory): Return
1931 TARGET_XFER_E_IO on error. Adjust comments.
1932 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1934 * target.h (target_read, target_insert_breakpoint)
1935 (target_remove_breakpoint): Adjust comments.
1936 * valprint.c (partial_memory_read): Rename parameter, and adjust
1938 (val_print_string): Use memory_error_message to build the memory
1941 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1943 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1944 result variable. Rename variable fopen_e_ever_failed to
1945 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1947 2013-10-09 Pedro Alves <palves@redhat.com>
1949 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1950 (monitor_write_memory_longlongs, monitor_write_memory_block):
1951 Constify 'myaddr' parameter.
1952 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1954 (monitor_xfer_partial): New function.
1955 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1956 hook. Install a to_xfer_partial hook.
1958 2013-10-09 Tom Tromey <tromey@redhat.com>
1960 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1961 bfd_get_alt_debug_link_info.
1963 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1965 New flag OBJF_NOT_FILENAME.
1966 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1967 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1969 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1970 symbol_file_add_from_bfd.
1971 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1973 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1975 * objfiles.h (OBJF_NOT_FILENAME): New.
1977 2013-10-08 Tom Tromey <tromey@redhat.com>
1979 * Makefile.in (SFILES): Add build-id.c.
1980 (HFILES_NO_SRCDIR): Add build-id.h.
1981 * build-id.c: New file, largely from elfread.c. Modified
1983 * build-id.h: New file.
1984 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1985 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1986 Search for dwz file using build-id.
1987 * elfread.c (build_id_bfd_get, build_id_verify)
1988 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1990 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1992 * ada-lang.c (compare_names_with_case): Renamed from
1993 compare_names, adding a new parameter "casing" and its handling.
1994 New function documentation.
1995 (compare_names): New function, implemented using
1996 compare_names_with_case.
1998 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2000 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2002 2013-10-07 Tom Tromey <tromey@redhat.com>
2004 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2005 demangled_names_hash.
2006 (free_objfile): Don't delete the demangled_names_hash.
2007 * objfiles.h (struct objfile_per_bfd_storage)
2008 <demangled_names_hash>: New field.
2009 (struct objfile) <demangled_names_hash>: Move to
2010 objfile_per_bfd_storage.
2011 * symfile.c (reread_symbols): Don't delete the
2012 demangled_names_hash.
2013 * symtab.c (create_demangled_names_hash): Update.
2014 (symbol_set_names): Update.
2016 2013-10-07 Tom Tromey <tromey@redhat.com>
2018 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2019 needs_relocations>: New fields.
2020 (gdb_bfd_requires_relocations): New function.
2021 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2022 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2023 the BFD needs relocations applied.
2025 2013-10-07 Pedro Alves <palves@redhat.com>
2027 PR breakpoints/11568
2028 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2029 the thread list" instead of "gone".
2031 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2033 * NEWS: Mention new convenience variable $_exitsignal.
2034 * corelow.c (core_open): Reset exit convenience variables. Set
2035 $_exitsignal to the uncaught signal which generated the corefile.
2036 * infrun.c (handle_inferior_event): Reset exit convenience
2037 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2038 (clear_exit_convenience_vars): New function.
2039 * inferior.h (clear_exit_convenience_vars): New prototype.
2041 2013-10-06 Yao Qi <yao@codesourcery.com>
2043 * varobj.h: Add comments to enum varobj_languages.
2045 2013-10-04 Doug Evans <dje@google.com>
2047 Add support for DWP file format version 2.
2048 * NEWS: Mention support for DWP file format version 2.
2049 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2050 union of asection, containing_section. New fields virtual_offset
2051 and is_virtual. Change type of readin filed from int to char.
2052 (dwo_sections, dwo_file): Tweak comments.
2053 (dwp_v2_section_ids): New enum.
2054 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2056 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2058 (virtual_v2_dwo_sections): New struct.
2059 (dwp_hash_table): New fields version, nr_columns. Change type of
2060 section_pool field to a union.
2061 (dwp_file): New field version.
2062 (dwarf2_has_info): Check for virtual sections.
2063 (get_containing_section): New function.
2064 (get_section_bfd_owner, get_section_bfd_section): Call it.
2065 (dwarf2_locate_sections): Update.
2066 (dwarf2_section_empty_p): Update.
2067 (dwarf2_read_section): Handle virtual sections.
2068 (locate_dwz_sections): Update.
2069 (create_dwp_hash_table): Document and handle V2 format.
2070 (locate_v1_virtual_dwo_sections): Renamed from
2071 locate_virtual_dwo_sections and update. All callers updated.
2072 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2073 Delete arg htab. Rename arg section_index to unit_index.
2074 All callers updated.
2075 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2077 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2078 (lookup_dwo_unit_in_dwp): Add V2 support.
2079 (dwarf2_locate_dwo_sections): Update.
2080 (dwarf2_locate_common_dwp_sections): Renamed from
2081 dwarf2_locate_dwp_sections and update. All callers updated.
2082 (dwarf2_locate_v2_dwp_sections): New function.
2083 (open_and_init_dwp_file): Add V2 support.
2084 (read_str_index): New locals str_section, str_offsets_section.
2086 2013-10-04 Pedro Alves <palves@redhat.com>
2088 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2089 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2090 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2091 describing comments with references to ptid.h.
2092 * common/ptid.h: Remove intro description of constructors,
2093 accessors and predicates.
2094 (struct ptid): Reformat.
2095 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2096 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2097 describing comments.
2099 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2101 * aix-thread.c (sync_threadlists): Add missing ')' in call
2104 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2106 * procfs.c (procfs_init_inferior): Fix typo causing the build
2109 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2111 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2113 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2115 * mi/mi-main.c (run_one_inferior): Add function description.
2116 Make ARG a pointer to an integer whose value determines whether
2117 we should "run" or "start" the program.
2118 (mi_cmd_exec_run): Add handling of the "--start" option.
2119 Reject all other command-line options.
2120 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2122 2013-10-04 Yao Qi <yao@codesourcery.com>
2124 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2125 (struct notif_client) <pending_event>: Moved
2126 to struct remote_notif_state.
2128 (struct remote_notif_state) <pending_event>: New field.
2129 (notif_event_xfree): Declare.
2130 * remote-notif.c (handle_notification): Adjust.
2131 (notif_event_xfree): New function.
2132 (do_notif_event_xfree): Call notif_event_xfree.
2133 (remote_notif_state_xfree): Call notif_event_xfree to free
2134 each element in field pending_event.
2135 * remote.c (discard_pending_stop_replies): Remove declaration.
2136 (discard_pending_stop_replies_in_queue): Declare.
2137 (remote_close): Call discard_pending_stop_replies_in_queue
2138 instead of discard_pending_stop_replies.
2139 (remote_start_remote): Adjust.
2140 (stop_reply_xfree): Call notif_event_xfree.
2141 (notif_client_stop): Adjust initialization.
2142 (remote_notif_remove_all): Rename it to ...
2143 (remove_stop_reply_for_inferior): ... this. Update comments.
2144 Don't check INF is NULL.
2145 (discard_pending_stop_replies): Return early if notif_state is
2146 NULL. Adjust. Don't check INF is NULL.
2147 (remote_notif_get_pending_events): Adjust.
2148 (discard_pending_stop_replies_in_queue): New function.
2149 (remote_wait_ns): Likewise.
2151 2013-10-04 Yao Qi <yao@codesourcery.com>
2153 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2154 (notif_queue): Remove.
2155 (remote_notif_process): Add one parameter 'notif_queue'.
2156 Update comments. Callers update.
2157 (remote_async_get_pending_events_token): Remove.
2158 (remote_notif_register_async_event_handler): Remove.
2159 (remote_notif_unregister_async_event_handler): Remove.
2160 (handle_notification): Add parameter 'notif_queue'. Update
2161 comments. Callers update.
2162 (notif_xfree): Remove.
2163 (remote_notif_state_allocate): New function.
2164 (remote_notif_state_xfree): New function.
2165 (_initialize_notif): Remove code to allocate queue.
2166 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2167 (struct remote_notif_state): New.
2168 (handle_notification): Update declaration.
2169 (remote_notif_process): Likewise.
2170 (remote_notif_register_async_event_handler): Remove.
2171 (remote_notif_unregister_async_event_handler): Remove.
2172 (remote_notif_state_allocate): Declare.
2173 (remote_notif_state_xfree): Declare.
2174 * remote.c (struct remote_state) <notif_state>: New field.
2175 (remote_close): Don't call
2176 remote_notif_unregister_async_event_handler. Call
2177 remote_notif_state_xfree.
2178 (remote_open_1): Don't call
2179 remote_notif_register_async_event_handler. Call
2180 remote_notif_state_allocate.
2182 2013-10-04 Yao Qi <yao@codesourcery.com>
2184 * varobj.c (create_child_with_value): Remove 'const' from the
2185 type of parameter 'name'.
2186 (varobj_add_child): Likewise.
2187 (install_dynamic_child): Remove 'const' from the type of
2189 (varobj_add_child): Likewise.
2190 (create_child_with_value): Likewise. Update comments. Don't
2192 (update_dynamic_varobj_children): Duplicate 'name'
2193 and pass it to install_dynamic_child.
2195 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2197 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2198 conversion logic to occur after PyLong_Check. Comment on order
2199 change significance.
2200 * python/py-arch.c (archpy_disassemble): Comment on order of
2201 conversion for integers and longs.
2203 2013-10-03 Pedro Alves <palves@redhat.com>
2205 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2206 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2207 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2208 PTRACE_O_TRACEFORK is not supported.
2209 (linux_test_for_tracesysgood): New function.
2210 (linux_test_for_tracefork): New function, factored out from
2211 linux_check_ptrace_features, and also don't kill child_pid here.
2213 2013-10-03 Tristan Gingold <gingold@adacore.com>
2215 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2216 Remove verbose error reporting. Use detected state to
2217 thread_set_state call.
2218 (i386_darwin_dr_get): Fix return type. Remove verbose error
2220 Remove trailing spaces.
2222 2013-10-02 Pedro Alves <palves@redhat.com>
2224 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2225 val_print_optimized_out.
2226 * jv-valprint.c (java_print_value_fields): Likewise.
2227 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2228 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2229 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2230 new optimized out value.
2231 * findvar.c (address_from_register): Likewise.
2232 * frame.c (put_frame_register): Tweak error string to say the
2233 register was not saved, rather than optimized out.
2234 * infcmd.c (default_print_one_register_info): Adjust call to
2235 val_print_optimized_out. Use value_of_register instead of
2236 get_frame_register_value.
2237 * mi/mi-main.c (output_register): Use value_of_register instead of
2238 get_frame_register_value.
2239 * valprint.c (valprint_check_validity): Likewise.
2240 (val_print_optimized_out): New value parameter. If the value is
2241 lval_register, print <not saved> instead.
2242 (value_check_printable, val_print_scalar_formatted): Adjust calls
2243 to val_print_optimized_out.
2244 * valprint.h (val_print_optimized_out): New value parameter.
2245 * value.c (struct value) <optimized_out>: Extend comment.
2246 (error_value_optimized_out): New function.
2247 (require_not_optimized_out): Use it. Use a different string for
2248 lval_register values.
2249 * value.h (error_value_optimized_out): New declaration.
2250 * NEWS: Mention <not saved>.
2252 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2254 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2255 strcmp to compare two symtab filenames.
2257 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2259 * symtab.c (search_symbols_equal): Delete.
2260 (sort_search_symbols_remove_dups): Replace call to
2261 search_symbols_equal by call to compare_search_syms,
2262 adjusting as necessary.
2264 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2267 * python/python.c: Document gdb.execute command in Python help.
2269 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2271 * python/py-frame.c (frame_info_to_frame_object): Use
2272 gdbpy_convert_exception. Clean up Python object on failure.
2274 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2276 * python/lib/gdb/command/frame_filters.py
2277 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2278 (ShowFrameFilterPriority.invoke): Ditto.
2280 2013-10-01 Keith Seitz <keiths@redhat.com>
2282 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2283 (parse_linespec): Make 'argptr' const.
2284 Remove temporary cast of 'argptr' to const char **.
2285 (decode_line_full): Pass const pointer to parse_linespec.
2286 (decode_line_1): Likewise.
2287 (decode_objc): Make local variable 'new_argptr' const.
2288 (find_function_symbols): Remove temporary cast to char *
2290 * objc-lang.c (find_imps): Make argument 'method' const.
2292 * objc-lang.h (find_imps): Likewise.
2294 2013-10-01 Keith Seitz <keiths@redhat.com>
2296 * completer.c (skip_quoted_chars): Make all arguments const.
2298 (skip_quoted): Likewise.
2299 * completer.h (skip_quoted_chars): Likewise.
2300 (skip_quoted): Likewise.
2301 * defs.h (skip_quoted): Remove duplicate declaration.
2302 * jv-exp.y: Include completer.h.
2303 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2304 * p-exp.y: Include completer.h.
2306 2013-10-01 Keith Seitz <keiths@redhat.com>
2308 * c-exp.y (parse_number): Make first argument const.
2309 Make a copy of the input to manipulate.
2310 (c_parse_escape): Make first argument const.
2311 Make local variable 'tokptr' const.
2312 (parse_string_or_char): Make first two arguments const.
2313 (macro_original_text): Make const.
2314 (lex_one_token): Make local variable 'tokstart' const.
2315 Likewise for local variables named 'p'.
2316 Cast away const for struct stoken (temporary).
2317 * c-lang.h (c_parse_escpae): Make first argument const.
2318 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2320 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2322 * f-exp.y (parse_number): Make first argument const.
2323 (match_string_literal): Make local variable 'tokstart'
2325 (yylex): Make local variable 'p' const.
2326 Cast away const for struct stoken (temporary).
2327 * go-exp.y (parse_number): Make first argument const.
2328 (parse_string_or_char): Likewise.
2329 Make local variable 'tokstart' const.
2330 (lex_one_token): Likewise for numerous locals called 'p'.
2331 Cast away const for struct stoken (temporary).
2332 * jv-exp.y (parse_number): Make first argument const.
2333 Make local variables 'tokstart' and 'tokptr' const.
2334 Cast away const for call to skip_quoted (temporary).
2335 (yylex): Make local variable 'p' const.
2336 Cast away const for struct stoken (temporary).
2337 * m2-exp.y (parse_number): Make local variable 'p' const.
2338 (yylex): Likewise for 'tokstart'.
2339 Cast away const for struct stoken (temporary).
2340 Make local variable 'p' const.
2341 * macroexp.c (get_character_constant): Pass a const string
2343 (get_string_literal): Likewise.
2344 (macro_expand_next): Make first argument const.
2345 Cast away const for init_shared_buffer.
2346 * macroexp.h (macro_expand_next): Make first argument const.
2347 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2348 Pass a const string to c_parse_escape.
2349 Make local variables 'p' and 'namestart' const.
2350 * parse.c (lexptr): Make const.
2351 (prev_lexptr): Likewise.
2352 (find_template_name_end): Return const.
2353 Make argument const, too.
2354 (parse_exp_in_context): Make first argument const.
2355 Remove the entire const_hack.
2356 (parse_exp_in_context_1): Make first argument const.
2357 * parser-defs.h (find_template_name_end): Return const.
2358 Make argument const, too.
2359 (lexptr): Make const.
2360 (prev_lexptr): Likewise.
2361 * utils.c (parse_escape): Make second argument const.
2362 * utils.h (parse_escape): Likewise.
2364 2013-10-01 Keith Seitz <keiths@redhat.com>
2366 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2368 (block_lookup): Make 'raw_name' and 'name' const.
2369 * ada-lex.l (processString): Update for struct stoken.ptr.
2370 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2371 (operator_stoken): Likewise.
2372 (lex_one_token): Remove temporary cast to char * for
2374 * f-exp.y (yylex): Likewise.
2375 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2376 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2377 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2379 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2380 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2381 * linespec.c (struct ls_parser): Make 'stream' const.
2382 (find_parameter_list_end): Make argument 'input' and local
2384 (linespec_lexer_lex_string): Make local variables 'start' and
2386 Use skip_spaces_const instead of skip_spaces.
2387 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2389 (parse_linespec): Temporarily cast 'argptr' to const for
2390 'parser->lexer.stream'.
2391 * m2-exp.y (yylex): Remove temporary cast to char * for
2393 * objc-lang.c (add_msglist): Make local variable 'p' const.
2394 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2395 (exp : STRING): Make 'sp' const.
2396 (parse_number): Make argument 'p' const.
2397 * parser-defs.h (struct stoken): Make 'ptr' const.
2399 2013-10-01 Doug Evans <dje@google.com>
2401 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2403 2013-10-01 Yao Qi <yao@codesourcery.com>
2405 * varobj.c (c_value_of_root): Remove declaration.
2406 (cplus_value_of_root, java_value_of_root): Likewise.
2407 (ada_value_of_root): Likewise.
2408 (struct language_specific) <value_of_root>: Remove.
2409 (languages): Update initialization.
2410 (check_scope): Move earlier.
2411 (c_value_of_root): Move earlier and rename to ...
2412 (value_of_root_1): ... this.
2413 (value_of_root): Caller update.
2414 (cplus_value_of_root, java_value_of_root): Remove.
2415 (ada_value_of_root): Remove.
2417 2013-10-01 Yao Qi <yao@codesourcery.com>
2419 * varobj.c (varobj_format_string): Remove "unknown".
2420 (languages): Remove the first element.
2421 * varobj.h (enum varobj_languages): Remove vlang_c.
2423 2013-10-01 Yao Qi <yao@codesourcery.com>
2425 * varobj.c (struct language_specific) <language>: Remove.
2426 (languages): Update the initialization.
2428 2013-10-01 Yao Qi <yao@codesourcery.com>
2430 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2431 "solib-target.h". Include "windows-tdep.h".
2432 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2433 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2434 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2435 windows-tdep.o to gdb_target_obs.
2437 2013-10-01 Yao Qi <yao@codesourcery.com>
2439 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2441 (amd64_windows_init_abi): Don't call set_solib_ops and
2442 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2443 windows_init_abi instead.
2444 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2446 (i386_cygwin_init_abi): Don't call set_solib_ops,
2447 set_gdbarch_has_dos_based_file_system and
2448 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2449 windows_init_abi instead.
2450 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2451 (windows_init_abi): New function.
2452 (windows_iterate_over_objfiles_in_search_order): Make it
2454 * windows-tdep.h (windows_init_abi): Declare.
2455 (windows_iterate_over_objfiles_in_search_order): Remove
2458 2013-10-01 Jerome Guitton <guitton@adacore.com>
2460 Checked in by Joel Brobecker <brobecker@adacore.com>
2461 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2462 incomplete dictionnary instead of None in case of missing
2463 environment variables.
2464 (elinos_init): in case of an incomplete environment, best
2465 effort to load system libraries instead of abort.
2467 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2469 * ada-lang.c (ada_has_this_exception_support): Ignore
2470 mst_solib_trampoline minimal symbols.
2472 2013-09-30 Tristan Gingold <gingold@adacore.com>
2474 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2475 hardware watchpoint.
2476 (i386_darwin_dr_set): Support 32 and 64 bit states.
2477 (i386_darwin_dr_get): Likewise.
2478 (i386_darwin_dr_set_control): Make static.
2479 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2480 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2482 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2484 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2485 Replace TIDGET with ptid_get_lwp.
2486 Replace GET_LWP with ptid_get_lwp.
2487 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2488 Replace BUILD_THREAD with ptid_build.
2489 Replace BUILD_LWP with ptid_build.
2490 Replace PIDGET with ptid_get_pid.
2491 Replace TIDGET with ptid_get_lwp.
2492 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2493 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2494 Replace TIDGET with ptid_get_lwp.
2495 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2496 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2497 Replace TIDGET with ptid_get_lwp.
2498 Replace GET_LWP with ptid_get_lwp.
2499 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2501 * breakpoint.c: Likewise.
2502 * common/ptid.c (ptid_is_pid): Condense check for
2503 null_ptid and minus_one_ptid.
2504 (ptid_lwp_p): New function.
2505 (ptid_tid_p): New function.
2506 * common/ptid.h: Update comments for accessors.
2507 (ptid_lwp_p): New prototype.
2508 (ptid_tid_p): New prototype.
2509 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2510 * gcore.c: Replace PIDGET with ptid_get_pid.
2511 * gdbthread.h: Likewise.
2512 * gnu-nat.c: Likewise.
2513 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2514 Replace TIDGET with ptid_get_lwp.
2515 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2516 * hppanbsd-nat.c: Likewise.
2517 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2518 Replace TIDGET with ptid_get_lwp.
2519 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2520 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2521 * infcmd.c: Likewise.
2522 * inferior.h: Likewise.
2523 * inflow.c: Likewise.
2524 * infrun.c: Likewise.
2525 * linux-fork.c: Likewise.
2526 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2527 Replace GET_PID with ptid_get_pid.
2528 Replace is_lwp with ptid_lwp_p.
2529 Replace GET_LWP with ptid_get_lwp.
2530 Replace BUILD_LWP with ptid_build.
2532 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2534 * common/linux-btrace.c: Move sys/syscall.h out of the
2535 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2536 Also check for SYS_perf_event_open before attempting to buid.
2538 2013-09-27 Doug Evans <dje@google.com>
2540 * dwarf2read.c (dwarf2_section_info): Add comment.
2541 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2543 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2544 (dwarf2_read_section): Delete unused local "header". Add section
2545 name to error message.
2546 (create_dwo_in_dwp): Tweak comment.
2547 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2549 * dwarf2read.c (die_reader_specs): Tweak comment.
2550 (get_section_bfd_owner, get_section_bfd_section): New functions.
2551 (get_section_name, get_section_file_name): New functions.
2552 (get_section_id, get_section_flags): New functions.
2553 (*): Use new functions to access section fields.
2555 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2556 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2557 arg "htab". All callers updated.
2558 (create_debug_types_hash_table): Remove redundant copy of
2560 (create_dwo_in_dwp): Tweak comments.
2561 (read_str_index): Tweak comment. Record dwarf form name in static
2564 2013-09-27 Pedro Alves <palves@redhat.com>
2566 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2567 (remote_filename_p): Add comment.
2568 * remote.c (remote_filename_p): Adjust to use
2569 REMOTE_SYSROOT_PREFIX.
2570 * solib.c (solib_find): When deciding whether we need to add a
2571 directory separator, check whether the sysroot is "remote:"
2572 instead of checking whether the patch has a drive spec. Add
2575 2013-09-27 Pedro Alves <palves@redhat.com>
2577 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2579 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2582 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2584 Fix set debug frame output.
2585 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2586 SENTINEL_FRAME entry lower to match enum frame_type order.
2588 2013-09-26 Pierre Muller <muller@sourceware.org>
2590 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2591 AMD64_R15_REGNUM when a register index is expected.
2592 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2593 Substitute in array.
2594 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2595 (amd64_push_arguments): Substitute in integer_regnum array.
2597 2013-09-25 Doug Evans <dje@google.com>
2599 * objfiles.c (allocate_objfile): Move comment to better place.
2601 New option "set debug symfile on".
2602 * NEWS: Mention "set debug symfile".
2603 * Makefile.in (SFILES): Add symfile-debug.c.
2604 (COMMON_OBS): Add symfile-debug.o.
2605 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2606 objfile's symbol functions.
2607 * objfiles.h (objfile_set_sym_fns): Declare.
2608 * symfile-debug.c: New file.
2609 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2610 objfile's symbol functions.
2611 (reread_symbols): Ditto.
2613 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2615 (add_symtab_fns): Update prototype.
2616 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2617 (registered_sym_fns): ... this.
2618 (symtab_fns): Update.
2619 (add_symtab_fns): New arg "flavour". All callers updated.
2620 (find_sym_fns): Rewrite to use new sym_fns registry.
2622 * symfile.h (struct sym_fns): Add "objfile" argument to
2623 sym_read_linetable. All uses updated.
2625 * symtab.c (domain_name, search_domain_name): New functions.
2626 * symtab.h (domain_name, search_domain_name): Declare.
2628 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2629 map_matching_symbols so objfile is first. All uses updated.
2630 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2631 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2633 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2636 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2639 2013-09-24 Doug Evans <dje@google.com>
2641 * objfiles.c (free_objfile): Move comment.
2643 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2645 * ada-exp.y (string_to_operator): Delete.
2646 (dummy_string_to_ada_operator): Delete.
2648 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2651 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2653 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2654 call_dummy_integer_regs, and classify.
2655 * amd64-tdep.h (amd64_classify): Add declaration.
2656 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2657 (amd64_reg_class): Delete, moved to i386-tdep.h.
2658 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2659 Replace call to amd64_classify by call to tdep->classify.
2660 (amd64_push_arguments): Get the list of registers to use for
2661 passing integer parameters from the gdbarch tdep structure,
2662 rather than using a hardcoded one. Replace calls to amd64_classify
2663 by calls to tdep->classify.
2664 (amd64_push_dummy_call): Get the register number used for
2665 the "hidden" argument from tdep->call_dummy_integer_regs.
2666 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2667 and tdep->call_dummy_integer_regs. Set tdep->classify.
2669 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2672 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2673 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2674 where tdep->memory_args_by_pointer is non-zero.
2676 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2679 * i386-tdep.h (struct gdbarch_tdep): Add new field
2680 integer_param_regs_saved_in_caller_frame.
2681 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2682 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2684 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2686 * amd64-windows-tdep.c: #include "value.h"
2687 (amd64_windows_classify): Delete.
2688 (amd64_windows_passed_by_integer_register)
2689 (amd64_windows_passed_by_xmm_register)
2690 (amd64_windows_passed_by_pointer)
2691 (amd64_windows_adjust_args_passed_by_pointer)
2692 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2693 (amd64_windows_push_dummy_call): New functions.
2694 (amd64_windows_init_abi): Remove setting of
2695 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2696 tdep->classify, tdep->memory_args_by_pointer and
2697 tdep->integer_param_regs_saved_in_caller_frame.
2698 Add call to set_gdbarch_push_dummy_call.
2700 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2702 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2703 objfile->original_name.
2705 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2707 Pass down original filename for objfile.
2708 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2709 * elfread.c (elf_symfile_read): Likewise.
2710 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2711 longer set ORIGINAL_NAME.
2712 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2713 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2714 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2715 symbol_file_add_from_bfd call.
2716 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2717 (macho_check_dsym): Add parameter filenamep. Change function comment.
2719 (macho_symfile_read): New variable dsym_filename. Update
2720 macho_check_dsym call. Use it for symbol_file_add_separate.
2721 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2722 it. Use it for objfile->original_name.
2723 (objfile_name): Return OBFD's filename, if available.
2724 * objfiles.h (allocate_objfile): Add new parameter name.
2725 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2726 * symfile-mem.c (symbol_file_add_from_memory): Update
2727 symbol_file_add_from_bfd call.
2728 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2730 (symbol_file_add_with_addrs): New parameter name, add function comment
2731 for it. Remove variable name. Update allocate_objfile call.
2732 (symbol_file_add_separate): New parameter name, add function comment
2733 for it. Update symbol_file_add_with_addrs call.
2734 (symbol_file_add_from_bfd): New parameter name. Update
2735 symbol_file_add_with_addrs call.
2736 (symbol_file_add): Update symbol_file_add_from_bfd call.
2737 (reread_symbols): New variable original_name. Save
2738 objfile->original_name by it.
2739 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2742 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2744 Code cleanup: Add objfile_name accessor function.
2745 * ada-lang.c (is_known_support_routine): Use objfile_name.
2746 * auto-load.c (source_gdb_script_for_objfile)
2747 (auto_load_objfile_script): Likewise.
2748 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2749 * dbxread.c (dbx_symfile_read): Likewise.
2750 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2751 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2752 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2753 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2754 (lookup_dwp_signatured_type, lookup_dwo_unit)
2755 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2756 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2757 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2758 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2759 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2760 (read_subrange_type, load_partial_dies, read_partial_die)
2761 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2762 (die_containing_type, build_error_marker_type, lookup_die_type)
2763 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2764 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2765 (get_DW_AT_signature_type, write_psymtabs_to_index)
2766 (save_gdb_index_command): Likewise.
2767 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2769 * expprint.c (dump_subexp_body_standard): Likewise.
2770 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2771 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2773 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2774 obj_name, use objfile_name for it, use the variable.
2775 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2777 * machoread.c (macho_symtab_read, macho_check_dsym)
2778 (macho_symfile_relocate): Likewise.
2779 * maint.c (maintenance_translate_address): Likewise.
2780 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2781 * minsyms.c (install_minimal_symbols): Likewise.
2782 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2784 (filter_overlapping_sections): Use objfile_name.
2785 (objfile_name): New function.
2786 * objfiles.h (struct objfile): Rename field name to original_name.
2787 (objfile_name): New prototype.
2788 * printcmd.c (sym_info, address_info): Use objfile_name.
2789 * probe.c (parse_probes, collect_probes, compare_probes)
2790 (info_probes_for_ops): Likewise.
2791 * progspace.c (clone_program_space): Likewise.
2792 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2793 (maintenance_info_psymtabs): Likewise.
2794 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2795 (source_section_scripts): Likewise.
2796 * python/py-objfile.c (objfpy_get_filename): Likewise.
2797 * python/py-progspace.c (pspy_get_filename): Likewise.
2798 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2799 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2800 * solib.c (solib_read_symbols): Likewise.
2801 * stabsread.c (scan_file_globals): Likewise.
2802 * stap-probe.c (handle_stap_probe): Likewise.
2803 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2804 (find_separate_debug_file_by_debuglink): Likewise.
2805 (reread_symbols): Likewise. Use the objfile field name renamed to
2807 (allocate_symtab): Use objfile_name.
2808 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2809 (dump_objfile, dump_msymbols, dump_symtab_1)
2810 (maintenance_print_msymbols, maintenance_print_objfiles)
2811 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2812 * target.c (target_translate_tls_address, target_info): Likewise.
2813 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2816 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2819 * probe.c (parse_probes): Rename variable objfile_name to
2822 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2824 Remove solib-sunos.c.
2825 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2826 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2827 * objfiles.c (rt_common_objfile): Remove.
2828 (free_objfile): Remove rt_common_objfile comparison.
2829 * objfiles.h (rt_common_objfile): Remove.
2830 * solib-sunos.c: Remove.
2831 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2833 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2835 Remove a.out NetBSD and OpenBSD hosts.
2836 * NEWS (Removed native configurations): New.
2837 * config/arm/nbsdaout.mh: Remove.
2838 * config/i386/nbsdaout.mh: Remove.
2839 * config/i386/obsdaout.mh: Remove.
2840 * config/m68k/nbsdaout.mh: Remove.
2841 * config/sparc/nbsdaout.mh: Remove.
2842 * config/vax/nbsdaout.mh: Remove.
2843 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2844 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2845 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2847 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2848 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2849 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2851 2013-09-23 Tom Tromey <tromey@redhat.com>
2853 * linespec.c (struct minsym_and_objfile): Remove.
2854 (minsym_and_objfile_d): Remove.
2855 (struct linespec, struct collect_info, linespec_parse_basic)
2856 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2857 (compare_msymbols, find_method, find_function_symbols)
2858 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2859 (add_minsym, search_minsyms_for_name): Update.
2861 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2863 * regcache.c: Add include of valprint.h.
2864 (dump_endian_bytes): Delete.
2865 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2867 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2869 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2871 2013-09-19 Pedro Alves <palves@redhat.com>
2873 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2876 2013-09-19 Pedro Alves <palves@redhat.com>
2877 Thomas Schwinge <thomas@codesourcery.com>
2878 Yue Lu <hacklu.newborn@gmail.com>
2880 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2881 Take a gdb_byte pointer instead of a char pointer.
2883 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2884 gnu_xfer_partial helper.
2885 (gnu_xfer_partial): New function.
2886 (gnu_target): Don't install a deprecated_xfer_memory hook.
2887 Install a to_xfer_partial hook.
2889 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2892 * main.c (captured_main): Replace catch_command_errors by
2893 catch_command_errors_const. Twice.
2894 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2895 (symbol_file_add): Make name parameter const.
2896 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2897 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2898 variable name. Change their usage accordingly.
2899 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2901 (symbol_file_add_main): Make args parameter const.
2903 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2904 Ulrich Weigand <uweigand@de.ibm.com>
2906 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2908 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2910 2013-09-18 Pedro Alves <palves@redhat.com>
2911 Yue Lu <hacklu.newborn@gmail.com>
2913 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2914 (gnu_create_inferior)
2915 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2916 (set_sig_thread_cmd): Use the lwpid field of ptids to
2917 store/extract thread ids instead of the tid field.
2918 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2920 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2922 * infcmd.c (default_print_one_register_info): Add detection of
2923 optimized out values.
2924 (default_print_registers_info): Switch to using
2925 get_frame_register_value.
2927 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2929 * infrun.c (handle_inferior_event): Check if we know the
2930 function start address before setting a resume breakpoint.
2932 2013-09-18 Pedro Alves <palves@redhat.com>
2934 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2935 minus_one_ptid instead of looking at the ptid's tid field and
2936 comparing that to -1.
2938 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2940 * main.h (get_gdb_program_name): Remove extra whitespace.
2942 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2944 * main.h (get_gdb_program_name): Add declaration.
2945 * main.c (get_gdb_program_name): Add definition.
2947 2013-09-17 Doug Evans <dje@google.com>
2949 * dwarf2read.c: Move definitions of complaint functions to after
2950 forward declarations of local functions.
2952 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2953 Pedro Alves <palves@redhat.com>
2956 * breakpoint.c (remove_threaded_breakpoints): New function.
2957 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2958 as thread_exit observer.
2960 2013-09-17 Pedro Alves <palves@redhat.com>
2963 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2964 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2965 * corelow.c (core_open):
2966 * frame.h (print_stack_frame, print_frame_info): New
2967 'set_current_sal' parameter.
2968 * infcmd.c (finish_command, kill_command): Adjust call to
2970 * inferior.c (inferior_command): Likewise.
2971 * infrun.c (normal_stop): Likewise.
2972 * linux-fork.c (linux_fork_context): Likewise.
2973 * record-full.c (record_full_goto_entry, record_full_restore):
2975 * remote-mips.c (common_open): Likewise.
2976 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2978 (print_frame_info): New 'set_current_sal' parameter. Set the last
2979 displayed sal depending on the new paremeter instead of looking at
2981 (backtrace_command_1, select_and_print_frame, frame_command)
2982 (current_frame_command, up_command, down_command): Adjust call to
2984 * thread.c (print_thread_info, restore_selected_frame)
2985 (do_captured_thread_select): Adjust call to print_stack_frame.
2986 * tracepoint.c (tfind_1): Likewise.
2987 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2988 (mi_cmd_stack_info_frame): Likewise.
2989 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2990 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2992 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2994 * value.c (isvoid_internal_fn): Replace "parameter" with
2997 2013-09-16 Stan Shebs <stan@codesourcery.com>
2999 * README: Update references to writing code for GDB.
3000 * configure.ac (build_warnings): Remove obsolete comment.
3001 * configure: Regenerate.
3002 * gdbarch.sh: Remove references to gdbint.texinfo.
3003 * gdbarch.h: Regenerate.
3004 * gdbtypes.c (objfile_type): Remove comments referencing internals
3007 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3009 * NEWS: Mention new convenience function $_isvoid.
3010 * value.c (isvoid_internal_fn): New function.
3011 (_initialize_values): Add new convenience function $_isvoid.
3013 2013-09-16 Pierre Muller <muller@sourceware.org>
3015 * arm-linux-tdep.c: Add "elf/common.h" header.
3016 Remove AT_HWCAP macro definintion as it is provided in
3018 * s390-tdep.c: Remove system header <elf.h>
3019 Add "elf/common.h" header for AT_HWCAP definition.
3020 (s390_core_read_description): Use correct CORE_ADDR
3021 for hwcap local variable used as third parameter
3022 of function target_auxv_search.
3024 2013-09-14 Pierre Muller <muller@sourceware.org>
3025 Tom Tromey <tromey@redhat.com>
3026 Pedro Alves <palves@redhat.com>
3028 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3029 mode if operating system doesn't know O_CLOEXEC.
3031 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3034 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3037 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3039 * NEWS: Mention TDB support.
3040 * features/s390-tdb.xml: New file.
3041 * features/s390-te-linux64.xml: New file.
3042 * features/s390x-te-linux64.xml: New file.
3043 * features/Makefile (WHICH): Add new tdescs above.
3044 (s390-te-linux64-expedite): Set.
3045 (s390x-te-linux64-expedite): Set.
3046 * features/s390-te-linux64.c: New file (generated).
3047 * features/s390x-te-linux64.c: New file (generated).
3048 * regformats/s390-te-linux64.dat: New file (generated).
3049 * regformats/s390x-te-linux64.dat: New file (generated).
3050 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3051 (HWCAP_S390_TE): Likewise.
3052 (S390_TDB_DWORD0_REGNUM): Likewise.
3053 (S390_TDB_DWORD0_REGNUM): Likewise.
3054 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3055 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3056 (S390_TDB_ATIA_REGNUM): Likewise.
3057 (S390_TDB_R0_REGNUM): Likewise.
3058 (S390_TDB_R1_REGNUM): Likewise.
3059 (S390_TDB_R2_REGNUM): Likewise.
3060 (S390_TDB_R3_REGNUM): Likewise.
3061 (S390_TDB_R4_REGNUM): Likewise.
3062 (S390_TDB_R5_REGNUM): Likewise.
3063 (S390_TDB_R6_REGNUM): Likewise.
3064 (S390_TDB_R7_REGNUM): Likewise.
3065 (S390_TDB_R8_REGNUM): Likewise.
3066 (S390_TDB_R9_REGNUM): Likewise.
3067 (S390_TDB_R10_REGNUM): Likewise.
3068 (S390_TDB_R11_REGNUM): Likewise.
3069 (S390_TDB_R12_REGNUM): Likewise.
3070 (S390_TDB_R13_REGNUM): Likewise.
3071 (S390_TDB_R14_REGNUM): Likewise.
3072 (S390_TDB_R15_REGNUM): Likewise.
3073 (S390_NUM_REGS): Increase.
3074 (S390_IS_TDBREGSET_REGNUM): New macro.
3075 (s390_regmap_tdb): Declare.
3076 (s390_sizeof_tdbregset): Define.
3077 (tdesc_s390_te_linux64): Declare.
3078 (tdesc_s390x_te_linux64): Likewise.
3079 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3080 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3081 (s390_regmap_tdb): New regmap.
3082 (s390_supply_tdb_regset): New function.
3083 (s390_tdb_regset): New regset.
3084 (s390_linux64v2_regset_sections): Add TDB regset to list.
3085 (s390x_linux64v2_regset_sections): Likewise.
3086 (s390_regset_from_core_section): Recognize TDB core note section.
3087 (s390_core_read_description): If HWCAP indicates TE support,
3088 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3089 (s390_gdbarch_init): Handle TDB regset.
3090 (_initialize_s390_tdep): Initialize new tdescs.
3091 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3092 (have_regset_tdb): New variable.
3093 (s390_native_supply): Support register invalidation.
3094 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3095 (check_regset): Treat ENODATA as "regset exists".
3096 (s390_linux_fetch_inferior_registers): Add TDB.
3097 (s390_read_description): Check for TDB existence and select
3099 * gdbserver/Makefile.in (clean): Add removal of new makefile
3101 (s390-te-linux64.c): New makefile target.
3102 (s390x-te-linux64.c): Likewise.
3103 * gdbserver/configure.srv (srv_regobj): Append new objects
3104 s390-te-linux64.o and s390x-te-linux64.o.
3105 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3106 s390x-te-linux64.xml, and s390-tdb.xml.
3107 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3109 (tdesc_s390_te_linux64): Likewise.
3110 (init_registers_s390x_te_linux64): Likewise.
3111 (tdesc_s390x_te_linux64): Likewise.
3112 (s390_check_regset): Treat ENODATA as "regset exists".
3113 (s390_arch_setup): Add TDB regset support.
3114 (initialize_low_arch): Initialize registers for new tdescs.
3116 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3118 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3119 (S390_IS_FPREGSET_REGNUM): New macro.
3120 * s390-tdep.c (s390_dwarf_regmap): Make const.
3121 (regnum_is_gpr_full): New function for replacing repeated code.
3122 (s390_pseudo_register_name): Use it.
3123 (s390_pseudo_register_type): Likewise.
3124 (s390_pseudo_register_read): Likewise.
3125 (s390_pseudo_register_write): Likewise.
3126 (s390_unwind_pseudo_register): Likewise.
3127 (s390_regmap_gregset): New format for regmap.
3128 (s390x_regmap_gregset): Likewise.
3129 (s390_regmap_fpregset): Likewise.
3130 (s390_regmap_upper): Likewise.
3131 (s390_regmap_last_break): Likewise.
3132 (s390_regmap_system_call): Likewise.
3133 (s390_supply_regset): Adjust to new regmap format.
3134 (s390_collect_regset): Likewise.
3135 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3136 (s390_native_collect): Likewise.
3137 (supply_gregset): Likewise.
3138 (fill_gregset): Likewise.
3139 (supply_fpregset): Likewise.
3140 (fill_fpregset): Likewise.
3141 (fetch_regset): Likewise.
3142 (store_regset): Likewise.
3143 (s390_linux_fetch_inferior_registers): Likewise.
3144 (s390_linux_fetch_inferior_registers): Likewise.
3146 2013-09-12 Andrew Pinski <apinski@cavium.com>
3148 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3150 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3152 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3154 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3156 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3158 2013-09-06 Pedro Alves <palves@redhat.com>
3160 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3161 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3162 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3163 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3164 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3167 2013-09-06 Pedro Alves <palves@redhat.com>
3169 * remote-sim.c (dump_mem): Constify buf parameter.
3170 gdbsim_xfer_inferior_memory): Rename to ...
3171 (gdbsim_xfer_memory): ... this. Adjust interface as
3172 target_xfer_partial helper.
3173 (gdbsim_xfer_partial): New function.
3174 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3175 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3177 2013-09-06 Pedro Alves <palves@redhat.com>
3179 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3180 host_address_to_string, and send debug output to gdb_stdlog.
3182 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3184 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3185 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3186 gdb_target_obs for cris target.
3187 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3188 (cris_gdbarch_init): Move calls to
3189 set_gdbarch_fetch_tls_load_module_address and
3190 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3191 Add call to gdbarch_init_osabi.
3192 * cris-linux-tdep.c: New file.
3193 * cris-tdep.h: New file.
3195 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3197 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3198 to deprecated_init_ui_hook.
3200 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3202 * cli/cli-interp.c (_initialize_cli_interp): Add a
3203 command_loop_proc to interp_procs.
3204 * event-top.c (cli_command_loop): Change signature to match
3205 interp_command_loop_ftype.
3206 * event-top.h (cli_command_loop): Same.
3207 * interps.c (interp_new): Require every interpreter to have a
3209 (current_interp_command_loop): Just call the command_loop_proc on
3210 the current interpreter.
3211 * tui/tui-interp.c (_initialize_tui_interp): Add a
3212 command_loop_proc to interp_procs.
3214 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3216 * cris-tdep.c (cris_gdbarch_init): Add call to
3217 get_gdbarch_fetch_tls_load_module_address.
3219 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3221 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3222 (cris_elf_gregset_t): Rename from elf_gregset_t.
3223 (crisv32_elf_gregset_t): Adjust.
3224 (cris_supply_gregset, fetch_core_registers): Adjust.
3226 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3228 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3230 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3232 * defs.h (deprecated_command_loop_hook): Remove, including
3233 references in comments.
3234 * interps.c (current_interp_command_loop): No longer use
3235 deprecated_command_loop_hook.
3236 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3238 * top.c (deprecated_command_loop_hook): Remove.
3240 2013-09-05 Pedro Alves <palves@redhat.com>
3242 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3243 local is now int instead of ULONGEST. Print it with %d
3244 instead of paddress.
3246 2013-09-05 Tristan Gingold <gingold@adacore.com>
3248 * MAINTAINERS: Remove avr maintainership.
3250 2013-09-05 Pedro Alves <palves@redhat.com>
3252 * findvar.c (value_of_register): Rework in terms of
3253 value_of_register_lazy.
3255 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3257 * symfile.c (add_symbol_file_command): Remove trailing
3258 whitespaces and blank line after comment.
3260 2013-09-05 Pedro Alves <palves@redhat.com>
3262 * tui/tui-regs.c (tui_register_format): Don't look at the
3263 register's name here. Return string representing register
3264 value instead of storing it in the data element.
3265 (tui_get_register): Compare register string representations
3266 instead of register value states and contents.
3268 2013-09-05 Pedro Alves <palves@redhat.com>
3271 * tui/tui-regs.c (tui_show_registers): Show registers of the
3272 selected frame, not the current frame.
3274 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3276 * MAINTAINERS (Write After Approval): Add myself to the list.
3278 2013-09-04 Doug Evans <dje@google.com>
3280 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3281 (queue_and_load_dwo_tu): New function.
3282 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3283 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3284 Make dependent_cu optional.
3285 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3286 and an older .gdb_index is in use, queue and load all its TUs too.
3288 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3290 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3291 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3292 variable search_flags.
3293 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3294 (OPF_RETURN_REALPATH): ... here.
3295 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3296 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3298 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3300 * solib.c (solib_find): Likewise. Four times.
3301 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3302 in the function comment and for the realpath_fptr variable.
3303 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3304 (find_and_open_source): Likewise. Twice.
3305 * symfile.c (symfile_bfd_open): Likewise, also twice.
3307 2013-09-04 Doug Evans <dje@google.com>
3309 * progspace.c (save_current_space_and_thread): Remove unnecessary
3310 call to save_current_inferior.
3312 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3314 * sh64-tdep.c (sh64_do_register): Return after printing message
3315 about unavailable register contents.
3317 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3318 Pedro Alves <palves@redhat.com>
3320 * symfile.c (add_symbol_file_command): Error out on unknown
3321 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3322 options and collapse into single conditional branch.
3324 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3326 * inf-child.c (inf_child_follow_fork): New parameter
3328 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3329 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3330 * inferior.h (detach_fork): Remove.
3331 * infrun.c (detach_fork): Adjust comment and make it
3333 (follow_fork): Pass detach_fork parameter to
3335 * linux-nat.c (linux_child_follow_fork): New parameter
3337 * target.c (target_follow_fork): New parameter detach_fork.
3338 Pass detach_fork as parameter and print its value.
3339 * target.h (struct target_ops) <to_follow_fork>: New int
3341 (target_follow_fork): New parameter detach_fork.
3343 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3345 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3346 Replace sec->bfd by sec->the_bfd_section->owner.
3348 2013-09-03 Yao Qi <yao@codesourcery.com>
3350 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3351 from linux_has_shared_address_space.
3352 (linux_has_shared_address_space): Call linux_is_uclinux.
3353 * linux-tdep.h (linux_is_uclinux): Declare.
3354 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3357 2013-09-03 Yao Qi <yao@codesourcery.com>
3359 * config/djgpp/fnchange.lst: Remove entry of
3360 i386-interix-nat.c and i386-interix-tdep.c.
3361 * configure.ac: Remove '*-*-interix*'.
3362 * configure: Re-generated.
3363 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3364 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3366 * osabi.c (gdb_osabi_names): Remove "Interix".
3368 2013-09-03 Yao Qi <yao@codesourcery.com>
3370 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3372 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3374 * record.h (record_print_flag) <record_print_src_line,
3375 record_print_insn_range>: Rename into ...
3376 (record_print_flag) <record_print_src_line,
3377 record_print_insn_range>: ... this. Update all users.
3379 2013-09-02 Pierre Muller <muller@sourceware.org>
3381 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3384 2013-09-02 Pierre Muller <muller@sourceware.org>
3386 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3387 by use of plongest function.
3389 2013-09-02 Tristan Gingold <gingold@adacore.com>
3391 * NEWS: Add entry mentioning support for native Windows x64
3394 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3395 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3396 (struct amd64_windows_frame_cache): New struct.
3397 (amd64_windows_w2gdb_regnum): New global.
3398 (pc_in_range, amd64_windows_frame_decode_epilogue)
3399 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3400 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3401 (amd64_windows_frame_this_id): New functions.
3402 (amd64_windows_frame_unwind): New static global.
3403 (amd64_windows_skip_prologue): New function.
3404 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3405 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3406 with amd64_windows_skip_prologue.
3408 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3412 2013-08-30 Pedro Alves <palves@redhat.com>
3414 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3417 2013-08-30 Pedro Alves <palves@redhat.com>
3419 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3422 2013-08-30 Pedro Alves <palves@redhat.com>
3424 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3425 Adjust arguments to print_stack_frame.
3427 2013-08-30 Pedro Alves <palves@redhat.com>
3429 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3431 2013-08-30 Pedro Alves <palves@redhat.com>
3433 * frame.h (show_and_print_stack_frame): Delete declaration.
3435 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3438 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3439 (archpy_name): Check for valid architecture.
3440 (archpy_disassemble): Ditto.
3442 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3444 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3445 instead of "long long" in call to ptrace64.
3447 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3449 * mi/mi-interp.c (mi_command_loop): Change signature to match
3450 interp_command_loop_ftype.
3451 (mi1_command_loop): Remove.
3452 (mi2_command_loop): Remove.
3453 (mi3_command_loop): Remove.
3454 (mi_interpreter_resume): Remove setting of
3455 deprecated_command_loop_hook.
3456 (_initialize_mi_interp): Set mi_command_loop as the command loop
3459 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3461 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3464 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3466 * value.c (allocate_value_contents): Make static.
3467 * value.h (allocate_value_contents): Remove prototype.
3469 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3471 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3472 of assembling value via allocate_value_lazy and attribute setter.
3473 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3474 assembling value via allocate_value_lazy and attribute setter.
3475 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3476 assembling value via allocate_value_lazy and attribute setter.
3478 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3480 * value.c (value_from_contents_and_address): Replace allocate_value and
3481 memcpy with value_from_contents.
3483 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3485 * python/py-framefilter.c (py_print_frame): Remove usage of
3486 PyString_AsString. Use python_string_to_host_string instead.
3487 Refactor function to work with a string as a new allocation
3488 instead of a pointer.
3489 (py_print_frame): Ditto.
3490 * python/lib/gdb/frames.py (return_list): Cain iterators together
3491 instead of adding them as a list.
3492 (_sort_list): Call return_list, and remove duplicate code.
3493 (execute_frame_filters): Convert iterator to a list with list().
3494 * python/lib/gdb/command/frame_filters.py
3495 (SetFrameFilterPriority._set_filter_priority): Convert priority
3496 attribute to an integer.
3497 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3498 wrapper function __next__.
3499 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3502 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3505 * python/py-framefilter.c (apply_frame_filter): Check
3506 gdb_python_initialized. Exit if the Python frame-filter code
3507 cannot be initialized.
3509 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3512 * top.c (print_gdb_version): Remove erroneous newline after help
3515 2013-08-29 Yao Qi <yao@codesourcery.com>
3517 * varobj.c (install_dynamic_child): Remove trailing space.
3518 Add one blank line after variable declaration.
3520 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3523 * corefile.c (get_exec_file): Use exec_filename.
3524 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3525 * exec.c (exec_close): Free EXEC_FILENAME.
3526 (exec_file_attach): New variable canonical_pathname. Use
3527 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3529 * exec.h (exec_filename): New.
3530 * inferior.c (print_inferior, inferior_command): Use
3531 PSPACE_EXEC_FILENAME.
3532 * mi/mi-main.c (print_one_inferior): Likewise.
3533 * progspace.c (clone_program_space, print_program_space): Likewise.
3534 * progspace.h (struct program_space): New field pspace_exec_filename.
3535 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3536 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3538 2013-08-28 Will Newton <will.newton@linaro.org>
3540 * common/linux-ptrace.c: Include stdint.h unconditionally.
3542 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3545 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3547 2013-08-28 Yao Qi <yao@codesourcery.com>
3548 Pedro Alves <palves@redhat.com>
3550 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3551 instead of stdio_fileopen.
3552 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3553 .Call stderr_fileopen instead of stdio_fileopen.
3554 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3555 [__MINGW32__] (stderr_file_fputs): New function.
3556 (stderr_fileopen): New function.
3557 * ui-file.h (stderr_fileopen): Declare.
3559 2013-08-27 Doug Evans <dje@google.com>
3561 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3562 (struct dwarf2_per_cu_data): Ditto.
3563 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3564 (process_imported_unit_die): Ditto.
3565 (follow_die_sig_1): Simplify assert.
3567 2013-08-27 Pedro Alves <palves@redhat.com>
3569 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3570 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3571 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3572 windows_xfer_memory directly.
3573 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3575 2013-08-27 Pedro Alves <palves@redhat.com>
3577 * darwin-nat.c (darwin_xfer_memory): Delete.
3578 (_initialize_darwin_inferior): Don't install a
3579 deprecated_xfer_memory method.
3581 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3582 Yao Qi <yao@codesourcery.com>
3584 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3585 (parse_no_frames_option): Remove.
3586 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3587 (mi_cmd_stack_list_args): Adjust.
3588 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3589 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3590 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3592 (list_args_or_locals): New parameter 'skip_unavailable'.
3594 * valprint.c (scalar_type_p): Rename to ...
3595 (val_print_scalar_type_p): ... this. Make extern.
3596 (val_print, value_check_printable): Adjust.
3597 * valprint.h (val_print_scalar_type_p): Declare.
3598 * value.c (value_entirely_unavailable): New function.
3599 * value.h (value_entirely_unavailable): Declare.
3601 * NEWS: Mention the new option "--skip-unavailable" to MI
3602 commands '-stack-list-locals', '-stack-list-arguments' and
3603 '-stack-list-variables'.
3605 2013-08-27 Yao Qi <yao@codesourcery.com>
3607 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3608 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3610 * mi/mi-getopt.c (mi_getopt): Remove.
3611 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3613 (mi_getopt): Call mi_getopt_1.
3614 (mi_getopt_silent): New.
3615 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3617 2013-08-26 Doug Evans <dje@google.com>
3620 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3621 .gdb_index is in use.
3622 * symfile.c (reread_symbols): Reset objfile->sf.
3624 * NEWS: Document "mt print objfiles" now takes optional regexp.
3625 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3626 regexp of objfiles to print.
3627 (_initialize_symmisc): Update doc string for "mt print objfiles".
3629 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3630 missing debug info checks.
3632 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3633 Ulrich Weigand <uweigand@de.ibm.com>
3635 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3636 line tables generated by XLC compiled binaries.
3638 2013-08-23 Doug Evans <dje@google.com>
3640 * symmisc.c (dump_symtab): Delete prototype.
3641 (dump_msymbols, dump_objfile): Ditto.
3642 (maintenance_info_symtabs): Mark as dont_repeat.
3643 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3645 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3646 debugging printf to better location.
3648 2013-08-23 Pedro Alves <palves@redhat.com>
3650 * target.c (target_read_live_memory): Change type of 'ret' local
3653 2013-08-23 Pedro Alves <palves@redhat.com>
3655 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3656 (remote_read_bytes): Change return type to LONGEST, and adjust to
3657 return a target_xfer_error on error.
3658 (remote_xfer_memory): Delete.
3659 (remote_flash_write): Change type of 'ret' local to LONGEST.
3660 (remote_xfer_partial, remote_xfer_partial): Adjust.
3661 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3663 2013-08-23 Pierre Muller <muller@sourceware.org>
3665 ARI fix: Push # directives to start of line.
3666 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3668 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3671 * breakpoint.c (enable_command, disable_command): Iterate over
3672 all specified breakpoint locations.
3674 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3676 * common/linux-ptrace.c (linux_fork_to_function): Push #
3677 directives to the start of the line.
3678 (linux_check_ptrace_features): Fix warning message to use
3681 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3683 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3684 nat/linux-waitpid.h.
3685 (linux-waitpid.o): New object file rule.
3686 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3687 (current_ptrace_options): Moved from linux-nat.c.
3688 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3690 (linux_fork_to_function): New function.
3691 (linux_grandchild_function): Likewise.
3692 (linux_child_function): Likewise.
3693 (linux_check_ptrace_features): New function, heavily
3694 based on linux-nat.c:linux_test_for_tracefork.
3695 (linux_enable_event_reporting): New function.
3696 (ptrace_supports_feature): Likewise.
3697 (linux_supports_tracefork): Likewise.
3698 (linux_supports_traceclone): Likewise.
3699 (linux_supports_tracevforkdone): Likewise.
3700 (linux_supports_tracesysgood): Likewise.
3701 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3702 gdbserver/linux-low.c.
3703 (linux_enable_event_reporting): New declaration.
3704 (linux_supports_tracefork): Likewise.
3705 (linux_supports_traceclone): Likewise.
3706 (linux_supports_tracevforkdone): Likewise.
3707 (linux_supports_tracesysgood): Likewise.
3708 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3709 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3710 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3711 * config/arm/linux.mh (NATDEPFILES): Likewise.
3712 * config/i386/linux.mh (NATDEPFILES): Likewise.
3713 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3714 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3715 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3716 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3717 * config/mips/linux.mh (NATDEPFILES): Likewise.
3718 * config/pa/linux.mh (NATDEPFILES): Likewise..
3719 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3720 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3721 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3722 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3723 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3724 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3725 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3726 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3727 ptrace's 4th argument's types.
3728 Check the type of PTRACE_TYPE_ARG4.
3729 * configure: Regenerate.
3730 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3731 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3732 (linux_supports_tracefork_flag): Remove.
3733 (linux_supports_tracesysgood_flag): Likewise.
3734 (linux_supports_tracevforkdone_flag): Likewise.
3735 (current_ptrace_options): Moved to
3736 common/linux-ptrace.c.
3737 (linux_tracefork_child): Remove.
3738 (my_waitpid): Remove.
3739 (linux_test_for_tracefork): Renamed to
3740 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3741 (linux_test_for_tracesysgood): Remove.
3742 (linux_supports_tracesysgood): Remove.
3743 (linux_supports_tracefork): Remove.
3744 (linux_supports_tracevforkdone): Remove.
3745 (linux_enable_tracesysgood): Remove.
3746 (linux_enable_event_reporting): Remove.
3747 (linux_init_ptrace): New function.
3748 (linux_child_post_attach): Call linux_init_ptrace.
3749 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3750 (linux_child_follow_fork): Call linux_supports_tracefork
3751 and linux_supports_tracevforkdone.
3752 (linux_child_insert_fork_catchpoint): Call
3753 linux_supports_tracefork.
3754 (linux_child_insert_vfork_catchpoint): Likewise.
3755 (linux_child_set_syscall_catchpoint): Call
3756 linux_supports_tracesysgood.
3757 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3758 * nat/linux-nat.h: New file.
3759 * nat/linux-waitpid.c: New file.
3760 * nat/linux-waitpid.h: New file.
3762 2013-08-22 Samuel Bronson <naesten@gmail.com>
3764 ARM Linux support for `catch syscall'.
3765 * syscalls/arm-linux.py: New file.
3766 * syscalls/arm-linux.xml: Likewise.
3767 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3768 (arm_linux_init_abi): Register the new function and syscall xml file.
3769 * data-directory/Makefile.in: Install the new syscall xml file.
3770 * NEWS: Brag about this.
3772 2013-08-22 Pedro Alves <palves@redhat.com>
3775 * corefile.c (target_xfer_memory_error): New function.
3776 (memory_error): Defer EIO to target_memory_error.
3777 (read_memory): Use target_xfer_partial, and handle finer-grained
3779 * target.c (target_xfer_error_to_string): New function.
3780 (memory_xfer_partial_1): If memory is known to be
3781 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3782 (target_xfer_partial): Make extern.
3783 * target.h (enum target_xfer_error): New enum.
3784 (target_xfer_error_to_string): Declare function.
3785 (target_xfer_partial): Declare function.
3786 (struct target_ops) <xfer_partial>: Adjust describing comment.
3788 2013-08-22 Alan Modra <amodra@gmail.com>
3790 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3791 * configure.tgt: Likewise as targets.
3793 2013-08-20 Doug Evans <dje@google.com>
3795 * buildsym.c (subfile_stack): Move here from buildsym.h.
3796 (pending_macros): Ditto.
3797 (get_macro_table): New function.
3798 (buildsym_init): Initialize subfile_stack.
3799 * coffread.c (type_vector,type_vector_length): Moved here from
3801 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3802 (coff_symtab_read): Use it.
3803 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3804 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3805 with call to get_macro_table.
3806 * stabsread.c (type_vector,type_vector_length): Moved here from
3808 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3809 * buildsym.h (get_macro_table): Declare.
3811 2013-08-20 Tom Tromey <tromey@redhat.com>
3813 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3815 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3817 2013-08-20 Doug Evans <dje@google.com>
3819 * blockframe.c: Remove #include "psymtab.h".
3820 * cp-support.c: Ditto.
3824 2013-08-20 Tom Tromey <tromey@redhat.com>
3827 * exceptions.h (return_mask): Now an enum.
3828 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3831 2013-08-20 Tom Tromey <tromey@redhat.com>
3833 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3835 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3836 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3837 * jit.c (jit_object_close_impl): Update.
3838 * jv-lang.c (get_dynamics_objfile): Update.
3839 * linespec.c (add_minsym): Use get_dynamics_objfile.
3840 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3841 (allocate_objfile): Don't initialize 'gdbarch' field.
3842 (get_objfile_arch): Update.
3843 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3845 (struct objfile) <gdbarch>: ... here. Remove.
3846 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3848 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3850 2013-08-20 Alan Modra <amodra@gmail.com>
3852 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3853 for IBM long double nan and inf.
3854 (floatformat_is_negative, floatformat_classify,
3855 floatformat_mantissa): Similarly.
3856 (floatformat_ieee_single, floatformat_ieee_double,
3857 floatformat_ieee_quad, floatformat_arm_ext,
3858 floatformat_ia64_spill): Delete unused vars.
3859 (_initialize_doublest): Delete unused function.
3860 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3861 little-endian variants of floatformat_ibm_long_double.
3863 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3865 * Makefile.in (SFILES): Remove common/target-common.c and
3866 add target/waitstatus.c.
3867 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3868 target/resume.h, target/wait.h and target/waitstatus.h.
3869 (COMMON_OBS): Remove target-common.o and add
3871 (target-common.o): Remove.
3872 (waitstatus.o): New target object file.
3873 * common/target-common.c: Move contents to
3874 target/waitstatus.c and remove.
3875 * common/target-common.h: Move contents to other files and
3877 (enum resume_kind: Move to target/resume.h.
3878 (TARGET_WNOHANG): Move to target/wait.h.
3879 (enum target_waitkind): Move to target/waitstatus.h.
3880 (struct target_waitstatus): Likewise.
3881 * target.h: Do not include target-common.h and
3882 include target/resume.h, target/wait.h and
3883 target/waitstatus.h.
3884 * target/resume.h: New file.
3885 * target/wait.h: New file.
3886 * target/waitstatus.h: New file.
3887 * target/waitstatus.c: New file.
3889 2013-08-19 Pedro Alves <palves@redhat.com>
3891 * linux-nat.c (linux_test_for_tracefork)
3892 (linux_test_for_tracesysgood, linux_child_follow_fork)
3893 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3894 (linux_nat_wait_1): Extend comment.
3895 (linux_async_pipe): Add comment.
3897 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3899 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3900 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3901 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3902 Update to account for fact that PC is now a pseudo-register.
3903 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3904 cases for RL78_PC_REGNUM.
3906 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3909 * top.c (quit_force): Skip writing history file
3910 if input is not from terminal.
3912 2013-08-14 Tom Tromey <tromey@redhat.com>
3914 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3915 resultthreadlist>: New fields.
3916 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3917 (remote_get_threadlist, remote_threadlist_iterator): Use
3918 new fields. Remove static variables.
3920 2013-08-14 Tom Tromey <tromey@redhat.com>
3922 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3923 remote_watch_data_address>: New fields.
3924 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3925 (process_stop_reply, remote_wait_as)
3926 (remote_check_watch_resources, remote_stopped_data_address): Update.
3928 2013-08-14 Tom Tromey <tromey@redhat.com>
3930 * remote.c (struct remote_state) <async_client_callback,
3931 async_client_context>: New fields.
3932 (async_client_callback, async_client_context): Remove.
3933 (remote_async_serial_handler, remote_async): Update.
3935 2013-08-14 Tom Tromey <tromey@redhat.com>
3937 * remote.c (sizeof_pkt): Remove.
3938 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3940 2013-08-14 Tom Tromey <tromey@redhat.com>
3942 * remote.c (struct remote_state) <use_threadinfo_query,
3943 use_threadextra_query>: New fields.
3944 (remote_threads_info, remote_threads_extra_info)
3945 (remote_open_1): Update.
3947 2013-08-14 Tom Tromey <tromey@redhat.com>
3949 * remote.c (struct remote_state) <finished_object,
3950 finished_annex, finished_offset>: New fields.
3951 (remote_read_qxfer): Use remote_state fields; remove static
3954 2013-08-14 Tom Tromey <tromey@redhat.com>
3956 * remote.c (struct remote_state) <last_sent_step>:
3958 (last_sent_step): Remove.
3959 (remote_resume, remote_wait_as): Update.
3961 2013-08-14 Tom Tromey <tromey@redhat.com>
3963 * remote.c (struct remote_state) <last_sent_signal>:
3965 (last_sent_signal): Remove.
3966 (new_remote_state, remote_resume, remote_wait_as): Update.
3968 2013-08-14 Tom Tromey <tromey@redhat.com>
3970 * remote.c (struct remote_state) <last_program_signals_packet>:
3972 (last_program_signals_packet): Remove.
3973 (remote_program_signals, remote_open_1): Update.
3975 2013-08-14 Tom Tromey <tromey@redhat.com>
3977 * remote.c (struct remote_state) <last_pass_packet>:
3979 (last_pass_packet): Remove.
3980 (remote_pass_signals, remote_open_1): Update.
3982 2013-08-14 Tom Tromey <tromey@redhat.com>
3984 * remote.c (struct remote_state) <remote_traceframe_number>:
3986 (remote_traceframe_number): Remove.
3987 (new_remote_state, remote_open_1, set_remote_traceframe)
3988 (remote_trace_find): Update.
3990 2013-08-14 Tom Tromey <tromey@redhat.com>
3992 * remote.c (struct remote_state) <general_thread, continue_thread>:
3994 (general_thread, continue_thread): Remove.
3995 (record_currthread, set_thread, set_general_process)
3996 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3997 (extended_remote_mourn_1): Update.
3999 2013-08-14 Tom Tromey <tromey@redhat.com>
4001 * remote.c (struct remote_state) <remote_desc>: New field.
4002 (remote_desc): Remove.
4003 (remote_threads_info, remote_threads_extra_info, remote_close)
4004 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4005 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4006 (remote_hostio_send_command, remote_file_put, remote_file_get)
4007 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4008 (remote_async, remote_new_objfile, set_range_stepping): Update.
4010 2013-08-14 Tom Tromey <tromey@redhat.com>
4012 * remote.c (remote_state): Now a pointer.
4013 (get_remote_state_raw): Update.
4014 (new_remote_state): New function.
4015 (_initialize_remote): Use new_remote_state.
4017 2013-08-14 Tom Tromey <tromey@redhat.com>
4019 * remote.c (remote_protocol_features): Now const.
4021 2013-08-14 Tom Tromey <tromey@redhat.com>
4023 * remote.c (crc32_table, crc32): Remove.
4024 (remote_verify_memory): Use xcrc32.
4026 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4028 * value.h (create_internalvar_type_lazy): Adjust prototype
4031 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4033 * common/format.c (parse_format_string): Don't allow '#' flag for
4034 pointer arguments in format string.
4036 2013-08-13 Pierre Muller <muller@sourceware.org>
4038 * utils.c (init_page_info): Only call tgetnum function
4039 if rl_get_screen_size did not return useful values.
4041 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4043 PR breakpoints/15117
4044 * linespec.c (linespec_parse_basic): Check for convenience
4045 variable or history value while parsing.
4047 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4049 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4051 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4052 different signals between the generic Linux kernel implementation
4054 (avr_linux_gdb_signal_from_target): Delete.
4055 (avr_linux_gdb_signal_to_target): Delete.
4056 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4058 2013-08-09 Doug Evans <dje@google.com>
4060 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4063 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4065 * linux-tdep.c: Define enum with generic signal numbers.
4066 (linux_gdb_signal_from_target): New function.
4067 (linux_gdb_signal_to_target): Likewise.
4068 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4069 methods to the functions above.
4070 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4071 (linux_gdb_signal_to_target): Likewise.
4072 * alpha-linux-tdep.c: Define new enum with signals different
4073 from generic Linux kernel.
4074 (alpha_linux_gdb_signal_from_target): New function.
4075 (alpha_linux_gdb_signal_to_target): Likewise.
4076 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4077 with the functions mentioned above.
4078 * avr-tdep.c: Define enum with differences between Linux kernel
4080 (avr_linux_gdb_signal_from_target): New function.
4081 (avr_linux_gdb_signal_to_target): Likewise.
4082 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4083 the functions mentioned above.
4084 * sparc-linux-tdep.c: Define enum with differences between SPARC
4085 and generic Linux kernel signal numbers.
4086 (sparc32_linux_gdb_signal_from_target): New function.
4087 (sparc32_linux_gdb_signal_to_target): Likewise.
4088 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4089 to the functions defined above.
4090 * xtensa-linux-tdep.c: Define enum with differences between
4091 Xtensa and Linux kernel generic signals.
4092 (xtensa_linux_gdb_signal_from_target): New function.
4093 (xtensa_linux_gdb_signal_to_target): Likewise.
4094 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4095 to the functions defined above.
4096 * mips-linux-tdep.c: Define enum with differences between
4097 signals in MIPS and Linux kernel generic ones.
4098 (mips_gdb_signal_to_target): New function.
4099 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4100 only different signals from the Linux kernel generic.
4101 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4102 the functions defined above.
4103 * mips-linux-tdep.h (enum mips_signals): Remove.
4105 2013-08-09 Pedro Alves <palves@redhat.com>
4107 * avr-tdep.c (XMALLOC): Delete macro.
4108 * cli/cli-dump.c (XMALLOC): Delete macro.
4110 2013-08-09 Pedro Alves <palves@redhat.com>
4112 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4113 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4114 (fopen_with_cleanup, add_dump_command): Make static.
4115 * cli/cli-dump.h: Delete file.
4116 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4119 2013-08-09 Pedro Alves <palves@redhat.com>
4121 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4124 2013-08-09 Pedro Alves <palves@redhat.com>
4126 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4129 2013-08-09 Pedro Alves <palves@redhat.com>
4131 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4132 (gcore_command): Use tilde_expand here, and when showing the
4133 filename to the user, show the expanded version.
4135 2013-08-09 Yao Qi <yao@codesourcery.com>
4137 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4140 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4142 * gcore.c (create_gcore_bfd): Use tilde_expand.
4144 2013-08-08 Yao Qi <yao@codesourcery.com>
4146 * frame.h (read_frame_local): Declare.
4147 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4149 * stack.c (read_frame_local): New.
4151 2013-08-08 Yao Qi <yao@codesourcery.com>
4153 * mi/mi-cmd-stack.c: Update comments to function
4154 list_args_or_locals.
4156 2013-08-07 Tom Tromey <tromey@redhat.com>
4159 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4160 (process_psymtab_comp_unit_reader): Use it.
4161 (process_psymtab_comp_unit): Update. Add "pretend_language"
4163 (dwarf2_build_psymtabs_hard): Update.
4164 (scan_partial_symbols): Pass CU's language to
4165 process_psymtab_comp_unit.
4167 2013-08-07 Tom Tromey <tromey@redhat.com>
4169 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4170 (dwarf2_gdb_index_functions): Update.
4171 * psymtab.c (find_symbol_file_from_partial): Remove.
4172 (psym_functions): Update.
4173 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4176 2013-08-07 Tom Tromey <tromey@redhat.com>
4178 * symfile.c (set_initial_language): Look up "main" symbol
4179 and use its language.
4180 * symtab.c (find_main_filename): Remove.
4181 * symtab.h (find_main_filename): Remove.
4183 2013-08-07 Tom Tromey <tromey@redhat.com>
4185 * dwarf2read.c (recursively_compute_inclusions): Add
4186 "immediate_parent" argument. Set symtab's "user" field
4188 (compute_symtab_includes): Update.
4190 2013-08-07 Tom Tromey <tromey@redhat.com>
4192 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4193 when adding label symbols.
4195 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4196 Ulrich Weigand <uweigand@de.ibm.com>
4198 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4199 * configure.host (powerpc64-*-aix*): Likewise.
4201 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4202 Ulrich Weigand <uweigand@de.ibm.com>
4204 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4206 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4207 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4208 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4209 * configure.ac: Check for ptrace64.
4210 * configure, config.in: Regenerate.
4212 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4213 Ulrich Weigand <uweigand@de.ibm.com>
4215 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4216 Call ptrace64 instead of ptrace if defined.
4217 Add macro addr_ptr to take care of ptrace address argument.
4218 (pdc_read_regs): Likewise.
4219 (pdc_write_regs): Likewise.
4220 (aix_thread_resume): Likewise.
4221 (fetch_regs_kernel_thread): Likewise.
4222 (store_regs_kernel_thread): Likewise.
4224 2013-08-07 Anton Blanchard <anton@samba.org>
4226 * MAINTAINERS: Add myself to Write After Approval.
4228 2013-08-05 Tom Tromey <tromey@redhat.com>
4230 * aix-thread.c (_initialize_aix_thread): Use
4231 complete_target_initialization.
4232 * bsd-uthread.c (_initialize_bsd_uthread): Use
4233 complete_target_initialization.
4234 * dec-thread.c (_initialize_dec_thread): Use
4235 complete_target_initialization.
4236 * ravenscar-thread.c (_initialize_ravenscar): Use
4237 complete_target_initialization.
4238 * sol-thread.c (_initialize_sol_thread): Use
4239 complete_target_initialization.
4240 * spu-multiarch.c (_initialize_spu_multiarch): Use
4241 complete_target_initialization.
4243 2013-08-05 Tom Tromey <tromey@redhat.com>
4245 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4246 * ada-lang.c (ada_lookup_simple_minsym): Return
4247 bound_minimal_symbol.
4248 * ada-lang.h (ada_lookup_simple_minsym): Update.
4249 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4250 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4251 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4252 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4253 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4254 * minsyms.c (msymbol_objfile): Remove.
4255 (lookup_minimal_symbol_internal): New function, from
4256 lookup_minimal_symbol.
4257 (lookup_minimal_symbol): Rewrite using
4258 lookup_minimal_symbol_internal.
4259 (lookup_bound_minimal_symbol): New function.
4260 * minsyms.h (msymbol_objfile): Remove.
4261 (lookup_bound_minimal_symbol): Declare.
4262 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4263 * parse.c (write_exp_msymbol): Change parameter to a
4264 bound_minimal_symbol.
4265 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4266 * parser-defs.h (write_exp_msymbol): Update.
4267 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4268 * symfile.c (simple_read_overlay_table): Use
4269 lookup_bound_minimal_symbol.
4270 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4271 (search_symbols): Likewise.
4272 (print_msymbol_info): Take a bound_minimal_symbol argument.
4273 (symtab_symbol_info, rbreak_command): Update.
4274 * symtab.h (struct symbol_search) <msymbol>: Change type
4275 to bound_minimal_symbol.
4276 * valops.c (find_function_in_inferior): Use
4277 lookup_bound_minimal_symbol.
4278 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4280 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4283 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4285 (async_cleanup_sigint_signal_handler): ... this.
4286 (initialize_sigint_signal_handler): Remove declaration.
4287 (handle_remote_sigint): Rename the declaration to ...
4288 (async_handle_remote_sigint): ... this.
4289 (handle_remote_sigint_twice): Rename the declaration to ...
4290 (async_handle_remote_sigint_twice): ... this.
4291 (async_remote_interrupt, async_remote_interrupt_twice)
4292 (remote_interrupt): Remove the declarations.
4293 (remote_interrupt_twice): Rename the declaration ...
4294 (sync_remote_interrupt_twice): ... this.
4295 (sigint_remote_twice_token): Rename the variable to ...
4296 (async_sigint_remote_twice_token): ... this.
4297 (sigint_remote_token): Rename the variable to ...
4298 (async_sigint_remote_token): ... this.
4299 (initialize_sigint_signal_handler): Rename the function to ...
4300 (async_initialize_sigint_signal_handler): ... this. Update the name
4302 (handle_remote_sigint): Rename the function to ...
4303 (async_handle_remote_sigint): ... this. Update the names inside.
4304 (handle_remote_sigint_twice): Rename the function to ...
4305 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4306 (cleanup_sigint_signal_handler): Rename the function to ...
4307 (async_cleanup_sigint_signal_handler): ... this.
4308 (remote_interrupt): Rename the function to ...
4309 (sync_remote_interrupt): this. Update the names inside.
4310 (remote_interrupt_twice): Rename the function to ...
4311 (sync_remote_interrupt_twice): this. Update the names inside.
4312 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4313 (_initialize_remote): Update the names inside.
4315 2013-08-02 Tom Tromey <tromey@redhat.com>
4318 * breakpoint.c (update_watchpoint, watchpoint_check)
4319 (watch_command_1): Update.
4320 * eval.c (fetch_subexp_value): Add "preserve_errors"
4322 * ppc-linux-nat.c (check_condition): Update.
4323 * value.h (fetch_subexp_value): Update.
4325 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4327 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4330 2013-08-01 Doug Evans <dje@google.com>
4333 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4334 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4335 Add assert of sig_entry->dwo_unit == NULL.
4336 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4337 had already been read.
4338 (read_signatured_type): Set per_cu.tu_read.
4341 * valops.c (value_struct_elt): Add missing call to check_typedef.
4342 (value_find_oload_method_list): Ditto.
4344 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4345 effectively, struct symbol_search **.
4346 (make_cleanup_free_search_symbols): Change arg to struct
4347 symbol_search **. All callers updated.
4348 (compare_search_syms): Compare symtab file name and block as well.
4349 (search_symbols_equal): New function.
4350 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4351 New args new_head, new_tail. Result is now void. Remove dups after
4352 sorting the symbols.
4353 (search_symbols): Sort all found symbols once, after all have been
4354 found, and remove duplicates. Simplify cleanup tracking of result.
4355 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4357 Further workarounds for binutils/15021.
4358 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4359 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4360 Watch for duplicate symtabs coming from type units.
4361 (compute_symtab_includes): Update call to
4362 recursively_compute_inclusions. Build vector of included symtabs
4364 * symtab.h (symtab_ptr): New typedef.
4365 (DEF_VEC_P (symtab_ptr)): New VEC type.
4366 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4369 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4371 * cli/cli-script.c (script_from_file): Remove use of
4373 * main.c (captured_main): Remove use of error_pre_print and
4375 * utils.c (error_pre_print, quit_pre_print): Remove.
4376 * utils.h (error_pre_print, quit_pre_print): Likewise.
4378 2013-08-01 Yao Qi <yao@codesourcery.com>
4380 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4382 (mi_cmd_stack_list_variables): Likewise.
4384 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4386 * exceptions.c (deprecated_throw_reason): Remove.
4387 * exceptions.h (deprecated_throw_reason): Remove.
4389 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4391 * remote-mips.c (mips_error): Replace use of
4392 deprecated_throw_reason with throw_verror. Use the error message
4393 passed to mips_error as the error message for throw_verror.
4395 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4397 * monitor.c (monitor_interrupt_query): Replace use of
4398 deprecated_throw_reason with quit.
4399 * nto-procfs.c (interrupt_query): Likewise.
4400 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4401 * remote-mips.c (mips_kill): Likewise.
4402 * remote.c (interrupt_query): Likewise.
4404 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4406 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4409 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4410 Yao Qi <yao@codesourcery.com>
4412 * tracepoint.c (trace_dump_command): Select the current frame.
4414 2013-07-30 Doug Evans <dje@google.com>
4416 * dwarf2read.c (process_queue): Add type signature to debug output.
4418 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4420 * value.c (value_fetch_lazy): Mark optimized out values as such
4421 rather than raising an error.
4423 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4425 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4426 before checking which bits of the parent, not the child, value are
4429 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4432 * top.c: Include "filenames.h".
4433 (set_history_filename): New function.
4434 (init_main): Install it as set hook of the "set history filename"
4437 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4439 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4440 attribute parameter.
4441 (dwarf2_const_value_data): Constify struct attribute parameter.
4442 (dwarf2_const_value): Constify struct attribute parameter.
4443 (dwarf2_const_value_attr): Constify struct attribute parameter.
4444 (lookup_die_type): Constify struct attribute parameter.
4445 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4446 (follow_die_ref_or_sig): Constify struct attribute parameter.
4447 (follow_die_ref): Constify struct attribute parameter.
4448 (follow_die_sig): Constify struct attribute parameter.
4449 (get_DW_AT_signature_type): Constify struct attribute parameter.
4450 (get_type_unit_group): Constify struct attribute parameter.
4451 (fill_in_loclist_baton): Constify struct attribute parameter.
4452 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4453 (type_unit_group): Constify struct attribute parameter.
4455 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4457 * dwarf2read.c (attr_form_is_block): Make argument const.
4458 (attr_form_is_section_offset): Make argument const.
4459 (attr_form_is_constant): Make argument const.
4460 (attr_form_is_ref): Make argument const.
4462 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4464 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4466 (attr_form_is_ref): Moved below attr_form_is_constant.
4468 2013-07-29 Doug Evans <dje@google.com>
4470 * main.c (captured_command_loop): Tweak comment.
4472 * target.c (target_async_permitted_1): Fix comment.
4474 * symtab.c (iterate_over_some_symtabs): Add comment.
4476 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4478 2013-07-27 Yao Qi <yao@codesourcery.com>
4480 * NEWS: Mention that GDBserver now supports hardware
4481 watchpoints on the MIPS GNU/Linux target.
4483 2013-07-27 Yao Qi <yao@codesourcery.com>
4485 * Makefile.in (HFILES_NO_SRCDIR): Add
4486 common/mips-linux-watch.h.
4487 (mips-linux-watch.o): New rule.
4488 * common/mips-linux-watch.c: New.
4489 * common/mips-linux-watch.h: New.
4490 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4491 * mips-linux-nat.c: Include mips-linux-watch.h.
4492 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4493 to common/mips-linux-watch.h.
4494 (MAX_DEBUG_REGISTER): Likewise.
4495 (enum pt_watch_style): Likewise.
4496 (struct mips32_watch_regs): Likewise.
4497 (struct mips64_watch_regs): Likewise.
4498 (struct pt_watch_regs): Likewise.
4499 (struct mips_watchpoint): Likewise.
4500 (mips_linux_watch_get_irw_mask): Move to
4501 common/mips-linux-watch.c.
4502 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4503 (mips_linux_watch_get_watchlo): Likewise.
4504 (mips_linux_watch_set_watchlo): Likewise.
4505 (mips_linux_watch_get_watchhi): Likewise.
4506 (mips_linux_watch_set_watchhi): Likewise.
4507 (mips_linux_read_watch_registers): Likewise.
4508 (mips_linux_watch_type_to_irw): Likewise.
4509 (mips_linux_stopped_data_address, fill_mask): Likewise.
4510 (mips_linux_watch_try_one_watch): Likewise.
4511 (mips_linux_watch_populate_regs): Likewise.
4513 2013-07-27 Yao Qi <yao@codesourcery.com>
4515 * mips-linux-nat.c (get_irw_mask): Rename to ...
4516 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4517 'set' to 'n'. Update function comment. All callers changed.
4518 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4519 function comment. All callers changed.
4520 (get_num_valid): Rename to ...
4521 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4522 'set' to 'n'. Update function comment. All callers changed.
4523 (get_watchlo): Rename to ...
4524 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4525 'set' to 'n'. Update function comment. All callers changed.
4526 (set_watchlo): Rename to ...
4527 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4528 'set' to 'n'. Update function comment. All callers changed.
4529 (get_watchhi): Rename to ...
4530 (mips_linux_watch_get_watchhi): ... this. Update function
4531 comment. All callers changed.
4532 (set_watchhi): Rename to ...
4533 (mips_linux_watch_set_watchhi): ... this. Update function
4534 comment. All callers changed.
4535 (mips_linux_read_watch_registers): Update function comment.
4536 Add new parameters 'lwpid', 'watch_readback', and
4537 'watch_readback_valid'. Update.
4538 (type_to_irw): Rename to ...
4539 (mips_linux_watch_type_to_irw): ... this. Update function
4540 comment. All callers changed.
4541 (fill_mask): Update function comment.
4542 (try_one_watch): Rename to ...
4543 (mips_linux_watch_try_one_watch): ... this. Change the type
4544 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4545 (populate_regs_from_watches): Rename to ...
4546 (mips_linux_watch_populate_regs): ... this. Add parameter
4547 'current_watches'. All callers changed.
4549 2013-07-27 Yao Qi <yao@codesourcery.com>
4551 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4553 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4554 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4555 (struct pt_watch_regs): Likewise.
4556 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4557 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4558 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4559 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4560 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4562 2013-07-27 Yao Qi <yao@codesourcery.com>
4564 * breakpoint.h: Include break-common.h.
4565 (enum target_hw_bp_type): Move to ...
4566 * common/break-common.h: ... here. New.
4568 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4570 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4571 process group regardless of having tty on stdin.
4573 2013-07-25 Doug Evans <dje@google.com>
4575 * linux-fork.h (detach_fork): Delete.
4577 2013-07-25 Tom Tromey <tromey@redhat.com>
4579 PR remote/15256, PR remote/15266:
4580 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4581 * monitor.c (monitor_detach): Use unpush_target.
4582 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4583 * remote-mips.c (mips_detach): Use unpush_target. Don't
4585 * remote-sim.c (gdbsim_detach): Use unpush_target.
4586 * target.c (pop_target): Remove.
4587 (pop_all_targets_above): Don't call target_close.
4588 (target_close): Assert that the target is unpushed.
4589 * target.h (pop_target): Don't declare.
4590 * tracepoint.c (tfile_open): Use unpush_target.
4592 2013-07-25 Tom Tromey <tromey@redhat.com>
4594 * linux-thread-db.c (init_thread_db_ops): Call
4595 complete_target_initialization.
4596 (_initialize_thread_db): Don't call add_target.
4597 * target.c (complete_target_initialization): New function.
4598 (add_target_with_completer): Call it.
4599 * target.h (complete_target_initialization): Declare.
4601 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4603 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4604 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4605 (HPPANBSD_SIZEOF_GREGS): New define.
4606 (hppaobsd_supply_gregset): Handle additional registers.
4607 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4608 we provide more registers now.
4609 (hppabsd_supply_gregset): Supply additional registers.
4610 (hppabsd_collect_gregset): Collect additional registers.
4612 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4614 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4615 (hppabsd_dwarf2_frame_init_reg): New function.
4616 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4618 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4620 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4621 'z' format code. Remove error for optimized out values, standard
4622 code will handle these fine.
4624 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4626 * NEWS: Mention new 'z' formatter.
4627 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4628 (_initialize_printcmd): Mention 'z' formatter in help text of the
4631 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4633 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4636 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4638 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4639 interface can evaluate arguments. Fallback to the old mode if it
4641 (create_exception_master_breakpoint): Likewise.
4642 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4643 (struct sym_probe_fns elf_probe_fns): Export function above to the
4645 * probe.c (can_evaluate_probe_arguments): New function.
4646 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4648 (can_evaluate_probe_arguments): New function prototype.
4649 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4650 probe interface can evaluate arguments. Fallback to the old mode
4652 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4653 interface can evaluate arguments. Warning the user if it cannot.
4654 (stap_can_evaluate_probe_arguments): New function.
4655 (struct probe_ops stap_probe_ops): Export function above to the
4657 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4658 New function pointer.
4660 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4662 * Makefile.in (SFILES): Add common/target-common.c.
4663 Add common/target-common.h to headers.
4664 (COMMON_OBS): Add target-common.o.
4665 (target-common.o): New target.
4666 * linux-nat.h (resume_kind): Move to common/target-common.h.
4667 * target.c (target_waitstatus_to_string): Move to
4668 common/target-common.c.
4669 * target.h: Include target-common.h.
4670 (target_waitkind): Move to common/target-common.h.
4671 (target_waitstatus): Likewise.
4672 (TARGET_WNOHANG): Likewise.
4673 * common/target-common.c: New file.
4674 * common/target-common.h: New file.
4676 2013-07-24 Doug Evans <dje@google.com>
4678 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4681 2013-07-23 Yao Qi <yao@codesourcery.com>
4683 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4684 parameter 'gdbarch'.
4685 (i386_stack_tramp_frame_sniffer): Caller update.
4686 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4687 parameter 'gdbarch' and 'target'.
4688 (i386_linux_core_read_description): Caller update.
4689 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4691 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4694 2013-07-23 Tom Tromey <tromey@redhat.com>
4696 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4699 2013-07-22 Doug Evans <dje@google.com>
4701 * exec.h (remove_target_sections): Delete arg abfd.
4702 * exec.c (exec_close): Update call to remove_target_sections.
4703 (remove_target_sections): Delete arg abfd.
4704 * solib.c (update_solib_list): Ditto.
4705 (reload_shared_libraries_1): Ditto.
4706 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4707 * target.h (struct target_section): Rename key to owner.
4710 2013-07-22 Tom Tromey <tromey@redhat.com>
4712 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4714 2013-07-22 Tom Tromey <tromey@redhat.com>
4716 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4717 Simplify cleanup handling.
4719 2013-07-22 Tom Tromey <tromey@redhat.com>
4721 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4722 on all return paths.
4724 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4726 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4727 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4728 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4730 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4732 * top.c (print_gdb_version): Add help, apropos description and
4733 url to online documentation.
4735 2013-07-19 Hui Zhu <hui@codesourcery.com>
4738 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4740 2013-07-19 Yao Qi <yao@codesourcery.com>
4742 * target.c (update_current_target): Change the default action
4743 of 'to_traceframe_info' from tcomplain to return_zero.
4744 * target.h (struct target_ops) <to_traceframe_info>: Add more
4746 * valops.c (read_value_memory): Call
4747 traceframe_available_memory unconditionally.
4749 2013-07-18 Yao Qi <yao@codesourcery.com>
4751 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4752 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4753 symbol without prefix. If found, set its type to
4754 'mst_solib_trampoline'.
4756 2013-07-17 Doug Evans <dje@google.com>
4758 * NEWS: Mention "set print raw frame-arguments".
4759 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4760 * stack.c (print_raw_frame_arguments): New static global.
4761 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4762 (_initialize_stack): New command "set/show print raw frame-arguments".
4763 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4764 (set_print_raw, show_print_raw): New functions.
4765 (_initialize_valprint): New prefix command "set/show print raw".
4766 * valprint.h (value_print_options): Improve comments.
4768 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4769 of all *list variables.
4771 * gdbcmd.h (togglelist): Delete.
4772 * cli/cli-cmds.c (togglelist): Delete.
4773 (init_cmd_lists): Update.
4774 * cli/cli-cmds.h (togglelist): Delete.
4776 2013-07-17 Tom Tromey <tromey@redhat.com>
4778 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4781 2013-07-16 Doug Evans <dje@google.com>
4783 * nto-tdep.c (nto_relocate_section_addresses): Update,
4784 target_section.bfd deleted.
4785 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4786 * s390-tdep.c (s390_load): Ditto.
4787 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4789 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4791 * common/format.c (parse_format_string): Add checks for NULL
4792 character before calling strchr.
4794 2013-07-16 Doug Evans <dje@google.com>
4796 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4797 temp_pathname argument.
4798 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4799 when opening the file fails.
4801 * target.h (struct target_section): Delete member bfd.
4802 All users updated to use the_bfd_section->owner instead.
4803 * exec.c (add_to_section_table): Assert bfd is expected value.
4804 Remove initialization of target_section.bfd.
4805 (remove_target_sections): Update.
4806 (section_table_available_memory): Update.
4807 (section_table_xfer_memory_partial): Update.
4808 (print_section_info): Update.
4809 (exec_set_section_address): Update.
4810 * record-full.c (record_full_core_xfer_partial): Update.
4811 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4812 * solib-target.c (solib_target_relocate_section_addresses): Update.
4813 * symfile.c (build_section_addr_info_from_section_table): Update.
4814 * target.c (memory_xfer_live_readonly_partial): Update.
4815 (memory_xfer_partial_1): Update.
4817 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4819 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4820 now available for embedded (BookE) and server (BookS) processors,
4821 correct mentions of 'booke' and adjust comments accordingly in order to
4822 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4823 (have_ptrace_booke_interface): Rename function and variable
4824 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4825 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4826 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4827 'hwdebug_point_cmp'. Update all uses.
4828 (booke_find_thread_points_by_tid): Rename function
4829 'booke_find_thread_points_by_tid' to
4830 'hwdebug_find_thread_points_by_tid'. Update all uses.
4831 (booke_insert_point): Rename function 'booke_insert_point' to
4832 'hwdebug_insert_point'. Update all uses.
4833 (booke_remove_point): Rename function 'booke_remove_point' to
4834 'hwdebug_remove_point'. Update all uses.
4836 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4838 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4839 numbers with enum values.
4841 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4844 * thread.c (thread_apply_all_command): Check for valid threads
4846 (thread_array_cleanup): New struct.
4847 (set_thread_refcount): New function.
4849 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4851 * infcmd.c (default_print_one_register_info): Reuse function
4854 2013-07-10 Tom Tromey <tromey@redhat.com>
4856 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4857 (ada-exp.o): New target.
4859 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4861 * mt-tdep.c (mt_registers_info): Call
4862 get_no_prettyformat_print_options instead of
4863 get_raw_print_options (regression by last patch from Doug
4866 2013-07-09 Pedro Alves <palves@redhat.com>
4868 Checked in by Joel Brobecker <brobecker@adacore.com>.
4869 * ada-lang.c (coerce_unspec_val_to_type): Use
4870 value_optimized_out_const.
4871 * value.c (value_optimized_out_const): New function.
4872 * value.h (value_optimized_out_const): New declaration.
4874 2013-07-09 Doug Evans <dje@google.com>
4876 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4877 Enum values rename as well. All uses updated.
4878 * valprint.h (value_print_options): Rename member pretty to
4879 pretty format. Rename member prettyprint_arrays to
4880 prettyformat_arrays. Rename member prettyprint_structs to
4881 prettyformat_structs. All uses updated.
4882 (get_no_prettyformat_print_options): Renamed from
4883 get_raw_print_options.
4884 * valprint.c (get_no_prettyformat_print_options): Renamed from
4885 get_raw_print_options. All callers updated.
4886 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4887 All callers updated.
4888 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4889 All callers updated.
4890 (_initialize_valprint): Improve help text for "set print pretty" and
4893 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4895 * value.c (value_bits_valid): Revert previous change, and change
4896 by Pedro on 2013-07-04, due to regressions in
4897 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4899 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4900 Pedro Alves <palves@redhat.com>
4902 * value.c (value_bits_valid): If the value is not lval_computed
4903 or has no check validity handler then the answer is the
4904 optimized_out flag, otherwise defer to the handler.
4906 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4908 * top.c (print_gdb_configuration): Explain in output of
4909 --configuration what does "relocatable" mean.
4911 * main.c (print_gdb_help): Regroup options in the --help text.
4912 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4913 the relevant discussions.
4915 2013-07-06 Yao Qi <yao@codesourcery.com>
4917 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4918 Remove parameter 'lsal'.
4919 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4920 to inner block. Caller update.
4921 (base_breakpoint_create_breakpoints_sal): Update.
4922 (bkpt_create_breakpoints_sal): Likewise.
4923 (tracepoint_create_breakpoints_sal): Likewise.
4924 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4925 element 0 of vector 'canonical->sals'.
4927 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4929 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4930 register number instead of the pseudo register one.
4931 (rs6000_dwarf2_reg_to_regnum): Likewise.
4933 2013-07-04 Pedro Alves <palves@redhat.com>
4935 * findvar.c (value_of_register): Use allocate_optimized_out_value
4936 if the register has been optimized out, instead of
4937 set_value_optimized_out.
4938 * frame-unwind.c (frame_unwind_got_optimized): Use
4939 allocate_optimized_out_value.
4941 2013-07-04 Pedro Alves <palves@redhat.com>
4943 * value.c (value_bits_valid): If the value is not lval_computed,
4944 or doesn't have a check_validity hook, assume the value is entirely
4947 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4949 * stack.c (read_frame_arg): No longer fetch lazy values.
4950 * value.c (value_optimized_out): If the value is not already
4951 marked optimized out, and is lazy then fetch it.
4952 (value_primitive_field): Move optimized out check to later in the
4953 function, after we have loaded any lazy values.
4954 (value_fetch_lazy): Use optimized out flag directly rather than
4955 calling optimized_out method.
4957 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4959 * valops.c: Don't include "user-regs.h".
4960 (value_fetch_lazy): Moved to value.c.
4961 * value.c: Include "user-regs.h".
4962 (value_fetch_lazy): Moved from valops.c.
4964 2013-07-04 Yao Qi <yao@codesourcery.com>
4967 2013-06-27 Yao Qi <yao@codesourcery.com>
4969 * common/create-version.sh: Update comments. Handle the case
4970 that TARGET_ALIAS is empty.
4972 2013-07-03 Pedro Alves <palves@redhat.com>
4974 * Makefile.in (config.status): Depend on development.sh.
4975 (aclocal_m4_deps): Add libmcheck.m4.
4976 * acinclude.m4: Include libmcheck.m4.
4977 * configure.ac: Source development.sh instead of setting
4978 'development' here. --enable-libmcheck/--disable-libmcheck code
4979 factored out to GDB_AC_LIBMCHECK. Run it.
4980 * development.sh: New file.
4981 * libmcheck.m4: New file.
4982 * configure: Regenerate.
4984 2013-07-02 Tom Tromey <tromey@redhat.com>
4986 * contrib/ari/update-web-ari.sh: Update for version.in change.
4988 2013-07-02 Tom Tromey <tromey@redhat.com>
4990 * common/ptid.h: Comment fixes.
4992 2013-07-01 Tom Tromey <tromey@redhat.com>
4994 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4995 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4996 (dwarf2_read_index, create_all_comp_units): Update.
4998 2013-07-01 Tom Tromey <tromey@redhat.com>
5000 * configure.ac (build_warnings): Add -Wold-style-definition.
5001 * configure: Rebuild.
5002 * machoread.c (_initialize_machoread): Use "(void)".
5003 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5006 2013-07-01 Tom Tromey <tromey@redhat.com>
5008 * configure.ac (build_warnings): Add -Wold-style-declaration.
5009 * configure: Rebuild.
5010 * dsrec.c (make_srec): Use "static const", not "const static".
5011 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5013 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5014 Use "static const", not "const static".
5015 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5017 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5019 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5021 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5023 (v850_dbtrap_breakpoint_from_pc): Likewise.
5024 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5027 2013-07-01 Tom Tromey <tromey@redhat.com>
5029 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5030 * configure: Rebuild.
5032 2013-07-01 Pedro Alves <palves@redhat.com>
5034 * defs.h: Include "pathmax.h".
5035 * utils.c: Don't include sys/param.h.
5036 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5037 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5038 instead of MAXPATHLEN.
5039 * solib-sunos.c: Don't include sys/param.h.
5040 * xcoffread.c: Don't include sys/param.h.
5041 * bsd-kvm.c: Don't include sys/param.h.
5042 * darwin-nat.c: Don't include sys/param.h.
5043 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5044 * darwin-nat-info.c: Don't include sys/param.h.
5045 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5047 * i386obsd-nat.c: Don't include sys/param.h.
5048 * inf-child.c: Don't include sys/param.h.
5049 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5050 * linux-fork.c: Don't include sys/param.h.
5051 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5052 * linux-nat.c: Don't include sys/param.h.
5053 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5054 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5055 * m68klinux-nat.c: Don't include sys/param.h.
5056 * nbsd-nat.c: Don't include sys/param.h.
5057 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5058 * ppc-linux-nat.c: Don't include sys/param.h.
5059 * rs6000-nat.c: Don't include sys/param.h.
5060 * spu-linux-nat.c. Don't include sys/param.h.
5061 * windows-nat.c: Don't include sys/param.h.
5062 * xtensa-linux-nat.c: Don't include sys/param.h.
5063 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5065 2013-07-01 Pedro Alves <palves@redhat.com>
5067 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5068 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5069 * gnulib/aclocal.m4: Regenerate.
5070 * gnulib/config.in: Regenerate.
5071 * gnulib/configure: Regenerate.
5072 * gnulib/import/pathmax.h: New file.
5073 * gnulib/import/Makefile.am: Regenerate.
5074 * gnulib/import/Makefile.in: Regenerate.
5075 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5076 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5077 * gnulib/import/m4/pathmax.m4: New file.
5079 2013-07-01 Pedro Alves <palves@redhat.com>
5081 * configure.ac (GDBINIT): Define, depending on host.
5082 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5083 * top.c (PATH_MAX): Delete fallback definition.
5084 (GDBINIT_FILENAME): Delete.
5085 (gdbinit): Reimplement as const char array set to the GDBINIT
5087 * top.h (gdbinit): Make const.
5088 * configure, config.in: Regenerate.
5090 2013-07-01 Pedro Alves <palves@redhat.com>
5092 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5093 * cli/cli-cmds.h (source_script): Likewise.
5094 * exceptions.c (catch_command_errors_const): New function.
5095 * exceptions.h (catch_command_errors_const): Declare.
5096 * main.c (get_init_files): Make parameters const, and adjust.
5097 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5098 'local_gdbinit' locals const. Adjust to use
5099 catch_command_errors_const.
5100 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5101 'local_gdbinit' locals const.
5103 2013-07-01 Pedro Alves <palves@redhat.com>
5105 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5106 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5107 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5110 2013-07-01 Pedro Alves <palves@redhat.com>
5112 Import the "unistd" gnulib module.
5113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5114 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5115 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5116 import/m4/unistd_h.m4.
5117 * gnulib/aclocal.m4: Renenerate.
5118 * gnulib/config.in: Renenerate.
5119 * gnulib/configure: Renenerate.
5120 * gnulib/import/Makefile.am: Renenerate.
5121 * gnulib/import/Makefile.in: Renenerate.
5122 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5123 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5124 * gnulib/import/m4/off_t.m4: New file.
5125 * gnulib/import/m4/ssize_t.m4: New file.
5126 * gnulib/import/m4/sys_types_h.m4: New file.
5127 * gnulib/import/m4/unistd_h.m4: New file.
5128 * gnulib/import/sys_types.in.h: New file.
5129 * gnulib/import/unistd.c: New file.
5130 * gnulib/import/unistd.in.h: New file.
5132 2013-07-01 Pedro Alves <palves@redhat.com>
5134 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5135 defined instead of checking HAVE_UNISTD_H.
5137 2013-07-01 Pedro Alves <palves@redhat.com>
5139 Reimport gnulib from scratch.
5140 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5141 import/m4/onceonly.m4.
5142 * gnulib/aclocal.m4: Renegerate.
5143 * gnulib/config.in: Renegerate.
5144 * gnulib/configure: Renegerate.
5145 * gnulib/import/Makefile.in: Renegerate.
5146 * gnulib/import/extra/update-copyright: Renegerate.
5147 * gnulib/import/m4/onceonly.m4: Delete.
5149 2013-07-01 Pedro Alves <palves@redhat.com>
5151 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5153 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5156 * remote.c (async_remote_interrupt_twice): Make it static.
5157 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5159 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5161 * ia64-linux-tdep.c: Include <ctype.h>.
5162 (ia64_linux_stap_is_single_operand): New function.
5163 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5165 2013-06-28 Tom Tromey <tromey@redhat.com>
5167 * Makefile.in (version.c): Use version.in, not
5169 * common/create-version.sh: Likewise.
5170 * common/version.in: Move...
5171 * version.in: ...here.
5173 2013-06-28 Pedro Alves <palves@redhat.com>
5175 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5177 * utils.h (pagination_enabled): Declare.
5179 2013-06-28 Pedro Alves <palves@redhat.com>
5181 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5182 Move higher up in file.
5184 2013-06-28 Tom Tromey <tromey@redhat.com>
5186 * tracepoint.c (deprecated_readline_begin_hook)
5187 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5190 2013-06-28 Pedro Alves <palves@redhat.com>
5193 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5194 checking if they're available.
5195 * value.c (value_available_contents_eq): Change comment.
5196 * value.h (value_available_contents_eq): Expand comment.
5198 2013-06-27 Tom Tromey <tromey@redhat.com>
5200 * target.c (find_run_target): Remove.
5201 * target.h (find_run_target): Remove.
5203 2013-06-27 Tom Tromey <tromey@redhat.com>
5205 * corelow.c (core_gdbarch): Now static.
5207 2013-06-27 Tom Tromey <tromey@redhat.com>
5209 * target.c (target_struct_index): Remove.
5211 2013-06-27 Pedro Alves <palves@redhat.com>
5213 * infrun.c: Remove comment describing the 'stepping over runtime
5214 loader dynamic symbol resolution code' mechanism; moved to
5217 2013-06-27 Pedro Alves <palves@redhat.com>
5219 * exceptions.c (catch_command_errors): Remove spurious space.
5220 * exceptions.h (catch_command_errors): Second parameter is "arg",
5223 2013-06-27 Yao Qi <yao@codesourcery.com>
5225 * common/create-version.sh: Update comments. Handle the case
5226 that TARGET_ALIAS is empty.
5228 2013-06-26 Pedro Alves <palves@redhat.com>
5230 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5233 2013-06-26 Pedro Alves <palves@redhat.com>
5235 * infrun.c: Update comments on stepping over runtime loader
5236 dynamic symbol resolution code.
5238 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5240 * ax-gdb.h (union exp_element): Forward declare.
5241 * parser-defs.h: Include expression.h.
5243 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5245 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5247 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5249 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5251 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5253 Fix trace-status to output proper start-time and stop-time.
5254 * tracepoint.c (trace_status_command): Fix type of printf arg to
5255 prevent improper type conversion.
5256 (trace_status_mi): Likewise.
5258 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5260 * mips-tdep.c (mips_next_pc): Fix a typo.
5262 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5264 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5266 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5267 Yao Qi <yao@codesourcery.com>
5269 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5270 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5271 * mi/mi-main.c (print_variable_or_computed): New function.
5272 (mi_cmd_trace_frame_collected): New function.
5273 * tracepoint.c (find_trace_state_variable_by_number): New.
5274 (struct traceframe_info): Move to tracepoint.h
5275 (struct collection_list): Likewise.
5276 (do_collect_symbol): Include locals and arguments in the
5277 collected variables list.
5278 (clear_collection_list): Clear wholly collected variables list
5279 and computed variables list.
5280 (append_exp): New function.
5281 (encode_actions_1): Include variables in the wholly
5282 collected variables list. Include memory ranges and
5283 full-fledged expressions in the computed expressions list.
5284 (encode_actions): Move some code to ...
5285 Return the cleanup chain.
5286 (encode_actions_rsp): ... here. New function.
5287 (get_traceframe_location, get_traceframe_info): Remove static.
5288 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5289 (struct collection_list): Moved from tracepoint.c. Add two
5290 new fields 'wholly_collected' and 'computed'.
5291 (find_trace_state_variable_by_number): Declare.
5292 (encode_actions): Adjust declaration.
5293 (encode_actions_rsp): Declare.
5294 (get_traceframe_info, get_traceframe_location): Declare.
5296 * NEWS: Mention new MI command -trace-frame-collected.
5298 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5299 Yao Qi <yao@codesourcery.com>
5301 * ctf.c (ctf_traceframe_info): Push trace state variables
5302 present in the trace data into the traceframe info object.
5303 * breakpoint.c (DEF_VEC_I): Remove.
5304 * common/filestuff.c (DEF_VEC_I): Likewise.
5305 * dwarf2loc.c (DEF_VEC_I): Likewise.
5306 * mi/mi-main.c (DEF_VEC_I): Likewise.
5307 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5308 * features/traceframe-info.dtd: Add tvar element and its
5310 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5311 (build_traceframe_info): Push trace state variables present in
5312 the trace data into the traceframe info object.
5313 (traceframe_info_start_tvar): New function.
5314 (tvar_attributes): New.
5315 (traceframe_info_children): Add "tvar" element.
5316 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5318 * NEWS: Mention the change in GDB and GDBserver.
5320 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5321 Yao Qi <yao@codesourcery.com>
5323 * tracepoint.c (trace_dump_command): Move code to ...
5324 (get_traceframe_location): ... here. New.
5326 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5327 Yao Qi <yao@codesourcery.com>
5329 * tracepoint.c (trace_dump_command): GDB emits an error
5330 instead of a warning when a traceframe is not selected.
5332 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5333 Yao Qi <yao@codesourcery.com>
5335 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5336 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5338 (do_clear_collection_list, init_collection_list): New.
5339 (encode_actions): Add local variables 'tracepoint_list' and
5340 'stepping_list'. Call init_collection_list and make cleanup
5341 which calls do_clear_collection_list. Don't call
5342 clear_collection_list.
5343 (_initialize_tracepoint): Delete references to
5344 'tracepoint_list' and 'stepping_list'.
5346 2013-06-25 Tom Tromey <tromey@redhat.com>
5348 * common/create-version.sh (date): Use "$", not "$$" in sed
5351 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5353 * NEWS (New targets): Add entry for TI MSP430.
5355 2013-06-25 Yao Qi <yao@codesourcery.com>
5357 * remote.c (remote_start_remote): Move code to upload tsv
5360 2013-06-25 Yao Qi <yao@codesourcery.com>
5361 Hui Zhu <hui@codesourcery.com>
5362 Pedro Alves <palves@redhat.com>
5364 PR breakpoints/15075
5365 PR breakpoints/15434
5366 * breakpoint.c (bpstat_stop_status): Call
5367 b->ops->after_condition_true.
5368 (update_dprintf_command_list): Don't append "continue" command
5369 to the command list of dprintf breakpoint.
5370 (base_breakpoint_after_condition_true): New function.
5371 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5372 (dprintf_after_condition_true): New function.
5373 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5374 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5376 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5378 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5379 (ALLDEPFILES): Add msp430-tdep.c.
5380 * configure.tgt (msp430*-*-elf): New target.
5381 * msp430-tdep.c: New file.
5383 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5385 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5386 microMIPS synthetic symbols.
5388 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5390 * objfiles.h (pc_in_section): New prototype.
5391 (in_plt_section): Remove name argument, replace prototype with
5392 static inline function.
5393 * mips-tdep.h: Include "objfiles.h".
5394 (in_mips_stubs_section): New function.
5395 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5396 in_solib_call_trampoline member.
5397 (hppa_in_solib_call_trampoline): Remove name argument.
5398 * objfiles.c (pc_in_section): New function.
5399 (in_plt_section): Remove function.
5400 * mips-linux-tdep.c: Include "objfiles.h".
5401 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5402 name argument. Return 1 rather than the low 16-bit halfword of
5403 any instruction examined.
5404 (mips_linux_in_dynsym_resolve_code): Update
5405 mips_linux_in_dynsym_stub call accordingly.
5406 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5407 rather than an equivalent hand-coded sequence.
5408 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5409 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5410 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5411 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5413 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5414 on call to tdep->in_solib_call_trampoline.
5415 (hppa_in_solib_call_trampoline): Remove name argument, update
5416 according to in_plt_section change.
5417 (hppa_skip_trampoline_code): Update according to in_plt_section
5419 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5420 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5422 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5423 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5424 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5425 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5426 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5427 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5428 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5429 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5430 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5431 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5432 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5433 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5434 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5436 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5438 * common/create-version.sh: Fix expansion of $host_alias
5439 and $target_alias in generation of HOST_NAME and TARGET_NAME
5442 2013-06-24 Tom Tromey <tromey@redhat.com>
5444 * common/create-version.sh: New file.
5445 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5447 (HFILES_NO_SRCDIR): Use common/version.h.
5448 * version.in: Move to ...
5449 * common/version.in: ... here. Replace date with "DATE".
5450 * version.h: Move to ...
5451 * common/version.h: ... here.
5453 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5455 * gdb/gnulib/Makefile.in: Update date in copyright header.
5456 * gdb/gnulib/configure.ac: Ditto.
5457 * gdb/gnulib/update-gnulib.sh: Ditto.
5459 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5461 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5462 "gdb/gnulib/import".
5464 2013-06-21 Will Newton <will.newton@linaro.org>
5466 * doublest.c (ldfrexp): Remove function.
5467 (convert_doublest_to_floatformat): Call frexpl instead of
5470 2013-06-21 Will Newton <will.newton@linaro.org>
5472 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5473 * gnulib/aclocal.m4: Regenerate.
5474 * gnulib/config.in: Regenerate.
5475 * gnulib/configure: Regenerate.
5476 * gnulib/import/Makefile.am: Update.
5477 * gnulib/import/Makefile.in: Update.
5478 * gnulib/import/m4/gnulib-cache.m4: Update.
5479 * gnulib/import/m4/gnulib-comp.m4: Update.
5480 * gnulib/import/float+.h: Import.
5481 * gnulib/import/float.c: Import.
5482 * gnulib/import/float.in.h: Import.
5483 * gnulib/import/fpucw.h: Import.
5484 * gnulib/import/frexp.c: Import.
5485 * gnulib/import/frexpl.c: Import.
5486 * gnulib/import/isnan.c: Import.
5487 * gnulib/import/isnand-nolibm.h: Import.
5488 * gnulib/import/isnand.c: Import.
5489 * gnulib/import/isnanl-nolibm.h: Import.
5490 * gnulib/import/isnanl.c: Import.
5491 * gnulib/import/itold.c: Import.
5492 * gnulib/import/m4/exponentd.m4: Import.
5493 * gnulib/import/m4/exponentl.m4: Import.
5494 * gnulib/import/m4/float_h.m4: Import.
5495 * gnulib/import/m4/fpieee.m4: Import.
5496 * gnulib/import/m4/frexp.m4: Import.
5497 * gnulib/import/m4/frexpl.m4: Import.
5498 * gnulib/import/m4/isnand.m4: Import.
5499 * gnulib/import/m4/isnanl.m4: Import.
5500 * gnulib/import/m4/math_h.m4: Import.
5501 * gnulib/import/math.c: Import.
5502 * gnulib/import/math.in.h: Import.
5504 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5506 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5507 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5508 signature_INTEL_edx comparisons.
5510 2013-06-20 Doug Evans <dje@google.com>
5513 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5514 All callers updated.
5515 (open_dwp_file): If we can't find the dwp file, search the basename
5516 in debug-file-directory.
5518 * dwarf2read.c (struct dwp_file): Fix comment.
5519 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5521 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5524 2013-06-20 Yao Qi <yao@codesourcery.com>
5526 * breakpoint.c (create_breakpoint): Fix code indentation.
5528 2013-06-20 Yao Qi <yao@codesourcery.com>
5530 * breakpoint.c (create_breakpoints_sal_default): Remove
5531 parameter 'lsal'. Update declaration.
5532 (bkpt_create_breakpoints_sal): Caller update.
5533 (tracepoint_create_breakpoints_sal): Likewise.
5535 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5536 Yao Qi <yao@codesourcery.com>
5538 * NEWS: Mention the new option '--skip-unavailable' of command
5539 -data-list-register-values.
5540 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5541 --skip-unavailable option. Adjust to use output_register.
5542 (output_register): Add new 'skip_unavailable' parameter.
5545 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5547 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5548 common/i386-gcc-cpuid.h.
5549 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5550 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5551 Copy the latest version from upstream gcc.
5552 * common/linux-btrace.c: Include i386-cpuid.h.
5553 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5555 (cpu_supports_btrace): Likewise.
5556 * go32-nat.c: Include i386-cpuid.h.
5557 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5559 2013-06-19 Doug Evans <dje@google.com>
5561 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5562 (get_section_index): Ditto.
5564 2013-06-19 Tom Tromey <tromey@redhat.com>
5566 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5569 2013-06-18 Doug Evans <dje@google.com>
5571 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5573 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5574 Move test of cu_index closer to use. Print complaint if cu_index
5577 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5579 * machoread.c (oso_vector): Delete this global.
5580 (macho_register_oso): Add new parameter "oso_vector_ptr".
5581 Use it instead of the "oso_vector" global.
5582 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5583 (macho_symfile_read): Use a local oso_vector, to be free'ed
5584 at the end of this function, in place of the old "oso_vector"
5585 global. Update various function calls accordingly. Use one
5586 single cleanup chain for the entire function.
5588 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5590 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5591 DWARF2_PER_OBJFILE by uses of DATA instead.
5593 2013-06-18 Tom Tromey <tromey@redhat.com>
5595 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5597 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5598 Special case signals other than GDB_SIGNAL_TRAP.
5599 (explains_signal_watchpoint): New function.
5600 (base_breakpoint_explains_signal): Add 'sig' argument.
5601 (initialize_breakpoint_ops): Set 'explains_signal' method for
5603 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5605 (bpstat_explains_signal): Likewise.
5606 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5608 2013-06-18 Tom Tromey <tromey@redhat.com>
5610 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5612 2013-06-18 Tom Tromey <tromey@redhat.com>
5614 * python/python.c (finish_python_initialization): Decref
5615 'pythondir' on failure path as well.
5617 2013-06-18 Tom Tromey <tromey@redhat.com>
5620 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5621 after taking bits_to_skip into account. Sign extend byte_offset.
5622 * utils.h (gdb_sign_extend): Declare.
5623 * utils.c (gdb_sign_extend): New function.
5625 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5627 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5629 2013-06-17 Pierre Muller <muller@sourceware.org>
5631 * corelow.c (core_open): Print GDB signal name instead of target
5634 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5636 * .gitignore: Add /gcore.
5638 2013-06-13 Doug Evans <dje@google.com>
5640 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5641 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5643 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5645 * stack.c (backtrace_command_1): Fix indentation.
5647 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5649 * window-nat.c (thread_rec): Add missing empty line after
5650 local variable declaration.
5652 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5654 * windows-nat.c (thread_rec): Revert format used to print
5655 error code returned by SuspendThread from %d back to %u.
5657 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5659 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5661 (get_windows_debug_event): Likewise, for all debug traces.
5663 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5665 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5668 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5669 Yao Qi <yao@codesourcery.com>
5671 * mi/mi-main.c (get_register): Remove declaration.
5672 (output_register): Declare.
5673 (mi_cmd_data_list_register_values): Remove local variable
5674 'tuple_cleanup'. Move some code into output_register.
5675 (get_register): Renamed to ...
5676 (output_register): ... this. Output the register's
5677 "number" ui_out tuple here.
5679 2013-06-07 Pedro Alves <palves@redhat.com>
5681 * darwin-nat.c: Fix formating in copyright header.
5682 * darwin-nat.h: Likewise.
5683 * gnu-nat.c: Likewise.
5684 * machoread.c: Likewise.
5686 2013-06-07 Pedro Alves <palves@redhat.com>
5689 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5690 static. Output a global target description pointer.
5691 (init_registers_${name}): Adjust to initialize a
5692 target description structure.
5694 2013-06-07 Will Newton <will.newton@linaro.org>
5696 * printcmd.c (build_address_symbolic): Call
5697 gdbarch_addr_bits_remove for text minimal symbols.
5699 2013-06-07 Will Newton <will.newton@linaro.org>
5701 * MAINTAINERS: Add myself to Write After Approval.
5703 2013-06-07 Yao Qi <yao@codesourcery.com>
5705 * tracepoint.c (start_tracing): Move code to ...
5706 (trace_reset_local_state): ... here. New.
5707 (disconnect_tracing): Don't call set_current_traceframe,
5708 set_tracepoint_num, and set_traceframe_context. Call
5709 trace_reset_local_state instead.
5710 (tfile_close): Call trace_reset_local_state.
5711 * ctf.c (ctf_close): Likewise.
5712 * remote.c (remote_close): Likewise.
5713 * tracepoint.h (trace_reset_local_state): Declare.
5715 2013-06-06 Doug Evans <dje@google.com>
5717 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5718 and fix header docs.
5720 2013-06-05 Doug Evans <dje@google.com>
5721 Keith Seitz <keiths@redhat.com>
5724 * cp-namespace.c (find_symbol_in_baseclass): Call
5725 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5726 Check result of call to lookup_symbol_static.
5727 Call lookup_static_symbol_aux unconditionally.
5728 Call check_typedef on base types before accessing them.
5729 (cp_lookup_nested_symbol): Fix comment.
5731 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5733 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5734 minimal symbols pointing to function descriptors.
5736 2013-06-05 Tom Tromey <tromey@redhat.com>
5738 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5740 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5741 Pedro Alves <palves@redhat.com>
5743 * remote.c (remote_wait_as): Restore signal handler before returning
5744 when GDB gets a notification.
5746 2013-06-04 Gary Benson <gbenson@redhat.com>
5749 * breakpoint.h (handle_solib_event): Moved function declaration
5751 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5752 (bpstat_stop_status): Pass new argument to handle_solib_event.
5753 * solib.h (update_solib_breakpoints): New function declaration.
5754 (handle_solib_event): Moved function declaration from
5756 * solib.c (update_solib_breakpoints): New function.
5757 (handle_solib_event): Moved function from breakpoint.c.
5758 Updated to call solib_ops->handle_event if not NULL.
5759 * solist.h (target_so_ops): New fields "update_breakpoints" and
5761 * infrun.c (set_stop_on_solib_events): New function.
5762 (_initialize_infrun): Use the above for "set
5763 stop-on-solib-events".
5764 (handle_inferior_event): Pass new argument to handle_solib_event.
5765 * solib-svr4.c (probe.h): New include.
5766 (svr4_free_library_list): New forward declaration.
5767 (probe_action): New enum.
5768 (probe_info): New struct.
5769 (probe_info): New static variable.
5770 (NUM_PROBES): New definition.
5771 (svr4_info): New fields "using_xfer", "probes_table" and
5773 (free_probes_table): New function.
5774 (free_solib_list): New function.
5775 (svr4_pspace_data_cleanup): Free probes table and solib list.
5776 (svr4_copy_library_list): New function.
5777 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5778 (svr4_read_so_list): New parameter "prev_lm".
5779 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5780 (svr4_current_sos): New function.
5781 (probe_and_action): New struct.
5782 (hash_probe_and_action): New function.
5783 (equal_probe_and_action): Likewise.
5784 (register_solib_event_probe): Likewise.
5785 (solib_event_probe_at): Likewise.
5786 (solib_event_probe_action): Likewise.
5787 (solist_update_full): Likewise.
5788 (solist_update_incremental): Likewise.
5789 (disable_probes_interface_cleanup): Likewise.
5790 (svr4_handle_solib_event): Likewise.
5791 (svr4_update_solib_event_breakpoint): Likewise.
5792 (svr4_update_solib_event_breakpoints): Likewise.
5793 (svr4_create_solib_event_breakpoints): Likewise.
5794 (enable_break): Free probes table before creating breakpoints.
5795 Use svr4_create_solib_event_breakpoints to create breakpoints.
5796 (svr4_solib_create_inferior_hook): Free the solib list.
5797 (_initialize_svr4_solib): Initialise
5798 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5800 2013-06-04 Gary Benson <gbenson@redhat.com>
5802 * target.h (target_ops): New field
5803 "to_augmented_libraries_svr4_read".
5804 (target_augmented_libraries_svr4_read): New macro.
5805 * target.c (update_current_target): Handle
5806 to_augmented_libraries_svr4_read.
5807 * remote.c (remote_state): New field
5808 "augmented_libraries_svr4_read".
5809 (remote_augmented_libraries_svr4_read_feature): New function.
5810 (remote_protocol_features): Add entry for
5811 "augmented-libraries-svr4-read".
5812 (remote_augmented_libraries_svr4_read): New function.
5813 (init_remote_ops): Initialize
5814 remote_ops.to_augmented_libraries_svr4_read.
5816 2013-06-04 Gary Benson <gbenson@redhat.com>
5820 2013-06-04 Gary Benson <gbenson@redhat.com>
5822 * objfiles.h (inhibit_section_map_updates): New function
5824 (resume_section_map_updates): Likewise.
5825 (resume_section_map_updates_cleanup): Likewise.
5826 * objfiles.c (objfile_pspace_info): Removed field
5827 "objfiles_changed_p". New fields "new_objfiles_available",
5828 "section_map_dirty" and "inhibit_updates".
5829 (allocate_objfile): Set new_objfiles_available.
5830 (free_objfile): Set section_map_dirty.
5831 (objfile_relocate1): Likewise.
5832 (in_plt_section): Likewise.
5833 (find_pc_section): Update the conditions under which the
5834 section map will be updated.
5835 (inhibit_section_map_updates): New function.
5836 (resume_section_map_updates): Likewise.
5837 (resume_section_map_updates_cleanup): Likewise.
5839 2013-06-04 Gary Benson <gbenson@redhat.com>
5841 * probe.h (get_probe_argument_count): New declaration.
5842 (evaluate_probe_argument): Likewise.
5843 * probe.c (get_probe_argument_count): New function.
5844 (evaluate_probe_argument): Likewise.
5845 (probe_safe_evaluate_at_pc): Use the above new functions.
5847 2013-06-04 Alan Modra <amodra@gmail.com>
5849 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5850 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5851 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5852 target mem reads on optional insns.
5853 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5854 ppc_insns_match_pattern calls.
5855 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5856 Add match for power7 thread safety insns, and new order of
5857 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5858 invocation in comment, and update rest of comment.
5859 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5860 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5861 (ppc64_standard_linkage2_target): Update insn offsets.
5862 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5863 stubs first. Update calls.
5865 2013-06-04 Yao Qi <yao@codesourcery.com>
5867 * solib.c (solib_find): Don't need dir separator if path has
5870 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5872 Revert (indirectly causes a SIGSEGV):
5873 * machoread.c (macho_symfile_read): Assign first cleanup to
5876 2013-06-03 Yao Qi <yao@codesourcery.com>
5878 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5879 mi-parse.c. Make them static.
5880 (mi_all_values): Likewise.
5881 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5882 mi_parse_print_values. Make it external.
5883 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5884 Remove the declarations.
5885 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5886 * mi/mi-parse.h (mi_parse_print_values): Declare.
5887 * mi/mi-cmd-stack.c: Include mi-parse.h.
5888 (parse_print_values): Remove
5889 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5890 of parse_print_values.
5891 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5893 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5894 Yao Qi <yao@codesourcery.com>
5896 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5897 (encode_actions): Move code to ...
5898 (all_tracepoint_actions_and_cleanup): ... here. New.
5899 (trace_dump_command): Likewise.
5901 2013-05-30 Tom Tromey <tromey@redhat.com>
5903 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5905 2013-05-30 Tom Tromey <tromey@redhat.com>
5907 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5908 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5909 'old_chain' argument. Add 'parser_result' argument.
5910 (gdb_xml_create_parser_and_cleanup): Remove old version.
5911 (gdb_xml_parse_quick): Update.
5912 (xml_process_xincludes): Update.
5913 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5916 2013-05-30 Tom Tromey <tromey@redhat.com>
5918 * probe.c (collect_probes): Check arguments for NULL before
5919 calling compile_rx_or_error.
5920 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5923 2013-05-30 Tom Tromey <tromey@redhat.com>
5925 * infrun.c (adjust_pc_after_break): Introduce an outer null
5928 2013-05-30 Tom Tromey <tromey@redhat.com>
5930 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5932 2013-05-30 Tom Tromey <tromey@redhat.com>
5934 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5935 for 'old_chain'. Do not check 'head' before processing
5938 2013-05-30 Tom Tromey <tromey@redhat.com>
5940 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5943 2013-05-30 Tom Tromey <tromey@redhat.com>
5945 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5946 inner scope. Unconditionally call do_cleanups.
5948 2013-05-30 Tom Tromey <tromey@redhat.com>
5950 * source.c (find_and_open_source): Call do_cleanups.
5952 2013-05-30 Tom Tromey <tromey@redhat.com>
5954 * linux-thread-db.c (thread_db_load_search): Unconditionally
5957 2013-05-30 Tom Tromey <tromey@redhat.com>
5959 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5960 for 'cleanup'; instead use a later one.
5962 2013-05-30 Tom Tromey <tromey@redhat.com>
5964 * python/py-breakpoint.c (bppy_get_commands): Use
5965 explicit, unconditional return.
5966 * python/py-frame.c (frapy_read_var): Likewise.
5967 * python/python.c (gdbpy_decode_line): Likewise.
5969 2013-05-30 Tom Tromey <tromey@redhat.com>
5971 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5972 do_cleanups on all return paths.
5974 2013-05-30 Tom Tromey <tromey@redhat.com>
5976 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5978 2013-05-30 Tom Tromey <tromey@redhat.com>
5980 * stabsread.c (read_struct_type): Call do_cleanups along
5983 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5985 * mips-linux-tdep.c: Adjust formatting throughout.
5987 2013-05-30 Tom Tromey <tromey@redhat.com>
5989 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5990 along all return paths.
5992 2013-05-30 Tom Tromey <tromey@redhat.com>
5994 * symfile.c (find_separate_debug_file): Call do_cleanups
5995 along all return paths.
5997 2013-05-30 Tom Tromey <tromey@redhat.com>
5999 * symtab.c (search_symbols): Introduce a null cleanup for
6002 2013-05-30 Tom Tromey <tromey@redhat.com>
6004 * python/py-value.c (valpy_binop): Call do_cleanups before
6007 2013-05-30 Tom Tromey <tromey@redhat.com>
6009 * python/py-prettyprint.c (print_children): Remove extra
6012 2013-05-30 Tom Tromey <tromey@redhat.com>
6014 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6017 2013-05-30 Tom Tromey <tromey@redhat.com>
6019 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6020 along all return paths.
6022 2013-05-30 Tom Tromey <tromey@redhat.com>
6024 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6027 2013-05-30 Tom Tromey <tromey@redhat.com>
6029 * varobj.c (c_value_of_root): Call do_cleanups along all
6032 2013-05-30 Tom Tromey <tromey@redhat.com>
6034 * tracepoint.c (trace_dump_command): Unconditionally call
6037 2013-05-30 Tom Tromey <tromey@redhat.com>
6039 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6040 do_cleanups earlier.
6042 2013-05-30 Tom Tromey <tromey@redhat.com>
6044 * machoread.c (macho_symfile_read): Assign first cleanup to
6047 2013-05-30 Tom Tromey <tromey@redhat.com>
6049 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6051 2013-05-30 Tom Tromey <tromey@redhat.com>
6053 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6055 2013-05-30 Tom Tromey <tromey@redhat.com>
6057 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6058 call discard_cleanups.
6059 (inf_ptrace_attach): Likewise.
6061 2013-05-30 Tom Tromey <tromey@redhat.com>
6063 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6065 (mips_initialize): Likewise.
6066 (common_open): Call do_cleanups.
6068 2013-05-30 Tom Tromey <tromey@redhat.com>
6070 * utils.c (internal_vproblem): Call do_cleanups.
6072 2013-05-30 Tom Tromey <tromey@redhat.com>
6074 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6076 2013-05-30 Tom Tromey <tromey@redhat.com>
6078 * cli/cli-script.c (setup_user_args): Don't return after error.
6080 2013-05-30 Tom Tromey <tromey@redhat.com>
6082 * somread.c (som_symtab_read): Call do_cleanups.
6084 2013-05-30 Tom Tromey <tromey@redhat.com>
6086 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6088 2013-05-30 Tom Tromey <tromey@redhat.com>
6090 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6091 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6092 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6093 * source.c (show_substitute_path_command): Call do_cleanups.
6094 (unset_substitute_path_command, set_substitute_path_command):
6096 * symfile.c (load_command): Call do_cleanups.
6098 2013-05-30 Tom Tromey <tromey@redhat.com>
6100 * contrib/cleanup_check.py: New file.
6101 * contrib/gcc-with-excheck: Add option parsing.
6103 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6105 * windows-nat.c (windows_delete_thread): Add missing space
6108 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6110 * inferior.c (top level): Include tilde.h.
6111 (add_inferior_command): Call tilde_expand on the value of 'exec'
6114 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6115 Yao Qi <yao@codesourcery.com>
6117 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6119 (encode_actions): Likewise.
6120 * remote.c (remote_download_tracepoint): Caller update.
6121 * tracepoint.h (encode_actions): Update declaration.
6123 2013-05-30 Pedro Alves <palves@redhat.com>
6125 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6128 2013-05-30 Yao Qi <yao@codesourcery.com>
6130 * remote.c (remote_check_symbols): Remove unused parameter
6133 (remote_start_remote, remote_new_objfile): Caller update.
6135 2013-05-30 Yao Qi <yao@codesourcery.com>
6137 * mi/mi-cmds.c (mi_cmds): Define MI command
6138 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6141 2013-05-29 Pedro Alves <palves@redhat.com>
6143 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6144 (remote_insert_watchpoint, remote_remove_watchpoint)
6145 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6146 (remote_verify_memory, compare_sections_command)
6147 (remote_search_memory): Set the general process/thread on the
6150 2013-05-29 Pedro Alves <palves@redhat.com>
6152 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6153 (_initialize_aarch64_tdep): Don't call
6154 initialize_tdesc_aarch64_without_fpu.
6155 * features/Makefile (WHICH): Remove reference to
6156 aarch64-without-fpu.
6157 * features/aarch64-without-fpu.c: Delete file.
6158 * regformats/aarch64-without-fpu.dat: Delete file.
6160 2013-05-28 Yao Qi <yao@codesourcery.com>
6162 * tracepoint.c (stringify_collection_list): Remove parameter
6164 (encode_actions): Caller update. Remove local variables.
6166 2013-05-24 Yao Qi <yao@codesourcery.com>
6168 * tracepoint.c (TFILE_PID): Remove.
6169 (tfile_open): Don't add thread and inferior.
6170 (tfile_close): Don't set 'inferior_ptid'. Don't call
6171 exit_inferior_silent.
6172 (tfile_thread_alive): Remove.
6173 (init_tfile_ops): Don't set field 'to_thread_alive' of
6176 2013-05-23 Doug Evans <dje@google.com>
6178 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6180 2013-05-23 Pedro Alves <palves@redhat.com>
6182 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6183 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6184 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6185 Only define if HAVE_SOCKETS is defined.
6186 * configure.ac: Check for sys/socket.h.
6187 * config.in, configure: Regenerate.
6189 2013-05-23 Pedro Alves <palves@redhat.com>
6191 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6192 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6193 printing uint32_t variables.
6195 2013-05-23 Pedro Alves <palves@redhat.com>
6197 * NEWS: Mention GDBserver range stepping support.
6199 2013-05-23 Yao Qi <yao@codesourcery.com>
6200 Pedro Alves <palves@redhat.com>
6202 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6204 * infcmd.c (step_once, until_next_command): Enable range stepping.
6205 * infrun.c (displaced_step_prepare): Disable range stepping.
6206 (resume): Disable range stepping if stepping over a breakpoint or
6207 we have software watchpoints. If range stepping is enabled,
6208 assert the thread is in the stepping range.
6209 (clear_proceed_status_thread): Clear may_range_step.
6210 (handle_inferior_event): Disable range stepping as soon as we know
6211 the thread that hit the event. Re-enable it whenever we're going
6212 to step with a step range.
6213 * remote.c (struct vCont_action_support) <r>: New field.
6214 (use_range_stepping): New global.
6215 (remote_vcont_probe): Handle 'r' action.
6216 (append_resumption): Append an 'r' action if the thread may range
6218 (show_range_stepping): New function.
6219 (set_range_stepping): New function.
6220 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6221 'set range-stepping' and 'show range-stepping' commands.
6222 * NEWS: Mention range stepping, the new vCont;r action, and the
6223 new "set/show range-stepping" commands.
6225 2013-05-23 Yao Qi <yao@codesourcery.com>
6226 Pedro Alves <palves@redhat.com>
6228 * remote.c (struct vCont_action_support): New struct.
6229 (struct remote_state) <support_vCont_t>: Remove field.
6230 <vCont_actions_support>: New field.
6231 (remote_vcont_probe, remote_stop_ns): Update.
6233 2013-05-23 Yao Qi <yao@codesourcery.com>
6234 Pedro Alves <palves@redhat.com>
6236 * gdbthread.h (pc_in_thread_step_range): New declaration.
6237 * thread.c (pc_in_thread_step_range): New function.
6238 * infrun.c (handle_inferior_event): Use it.
6240 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6242 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6245 2013-05-22 Keith Seitz <keiths@redhat.com>
6247 * ada-lang.c (is_known_support_routine): Add explicit free of
6248 'func_name' from find_frame_funname.
6249 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6250 for func_name from find_frame_funname.
6251 * python/py-frame.c (frapy_name): Add explicit free of
6252 'name' from find_frame_funname.
6253 * stack.c (find_frame_funname): Add comment explaining that
6254 funcp must be freed by the caller.
6255 Return copy of symbol names instead of pointers.
6256 (print_frame): Add a cleanup for 'funname' from
6258 * stack.h (find_frame_funname): Remove "const" from
6259 'funname' parameter.
6261 2013-05-22 Tom Tromey <tromey@redhat.com>
6264 * c-valprint.c (c_value_print): Use value_addr for
6265 references. Convert back to reference type with value_ref.
6267 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6269 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6270 unloaded DLL, it will be done by handle_solib_event. See
6271 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6274 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6276 * ui-out.c: Create typedef ui_out_level_p and define vector
6277 operations for that type.
6278 (struct ui_out): Use a vector instead of an array.
6279 (current_level): Return level from a vector.
6280 (push_level): Create a level in a vector.
6281 (pop_level): Delete a level in a vector.
6282 (ui_out_new): Create initial level zero level, and store in a
6284 (ui_out_destroy): Add vector cleanup.
6286 2013-05-22 Pedro Alves <palves@redhat.com>
6288 * python/python-internal.h (gdb_Py_DECREF): Tag with
6289 "ARI: editCase function".
6291 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6293 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6295 2013-05-21 Pedro Alves <palves@redhat.com>
6297 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6298 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6299 * python/py-utils.c (py_decref): Don't check for NULL before
6302 2013-05-21 Pedro Alves <palves@redhat.com>
6304 * python/py-utils.c (py_decref): Remove extra braces.
6305 (gdb_pymodule_addobject): Remove extra braces.
6306 * python-internal.h (gdb_Py_DECREF): New static inline function.
6307 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6309 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6311 * breakpoints.c (detach_breakpoints): Do not
6312 detach breakpoints locations with loc_type bp_loc_other.
6314 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6316 Workaround Python 2.6.
6317 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6320 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6322 Code cleanup: constification.
6323 * solib.c (solib_ops): Make return type and ops variable type const.
6324 (set_solib_ops): Make the new_ops parameter and ops variable const.
6325 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6326 (solib_add, solib_keep_data_in_core, clear_solib)
6327 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6328 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6330 * solib.h (set_solib_ops): Make the new_ops parameter const.
6332 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6334 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6336 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6337 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6338 (SYSTEM_GDBINIT_FILES): New variables.
6339 (all): Add stamp-system-gdbinit.
6340 (stamp-system-gdbinit): New rule.
6341 (clean-system-gdbinit, install-system-gdbinit)
6342 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6343 (install-only): Add dependency on install-system-gdbinit.
6344 (uninstall): Add dependency on uninstall-system-gdbinit.
6345 (clean): Add dependency on clean-system-gdbinit.
6346 * system-gdbinit/elinos.py: New file.
6347 * system-gdbinit/wrs-linux.py: New file.
6349 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6351 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6353 2013-05-21 Hui Zhu <hui@codesourcery.com>
6355 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6356 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6357 * mi/mi-cmd-break.c (ctype.h): New include.
6358 (gdb_obstack.h): New include.
6359 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6360 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6361 (mi_cmd_dprintf_insert): New.
6362 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6363 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6365 2013-05-20 Tom Tromey <tromey@redhat.com>
6367 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6369 2013-05-20 Tom Tromey <tromey@redhat.com>
6371 * python/py-value.c (valpy_get_dynamic_type): Simplify
6372 dynamic_type assignment. Use Py_XINCREF.
6374 2013-05-20 Tom Tromey <tromey@redhat.com>
6376 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6378 2013-05-20 Tom Tromey <tromey@redhat.com>
6380 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6381 (gdbpy_selected_frame): Move object-construction code
6384 2013-05-20 Tom Tromey <tromey@redhat.com>
6386 * python/py-arch.c (gdbpy_initialize_arch): Use
6387 gdb_pymodule_addobject.
6388 * python/py-block.c (gdbpy_initialize_blocks): Use
6389 gdb_pymodule_addobject.
6390 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6391 gdb_pymodule_addobject.
6392 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6393 gdb_pymodule_addobject.
6394 * python/py-event.c (gdbpy_initialize_event_generic): Use
6395 gdb_pymodule_addobject.
6396 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6397 gdb_pymodule_addobject.
6398 * python/py-evts.c (add_new_registry): Use
6399 gdb_pymodule_addobject.
6400 (gdbpy_initialize_py_events): Likewise.
6401 * python/py-finishbreakpoint.c
6402 (gdbpy_initialize_finishbreakpoints): Use
6403 gdb_pymodule_addobject.
6404 * python/py-frame.c (gdbpy_initialize_frames): Use
6405 gdb_pymodule_addobject.
6406 * python/py-function.c (gdbpy_initialize_functions): Use
6407 gdb_pymodule_addobject.
6408 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6409 gdb_pymodule_addobject.
6410 * python/py-infthread.c (gdbpy_initialize_thread): Use
6411 gdb_pymodule_addobject.
6412 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6413 gdb_pymodule_addobject.
6414 * python/py-param.c (gdbpy_initialize_parameters): Use
6415 gdb_pymodule_addobject.
6416 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6417 gdb_pymodule_addobject.
6418 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6419 gdb_pymodule_addobject.
6420 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6421 gdb_pymodule_addobject.
6422 * python/py-type.c (gdbpy_initialize_types): Use
6423 gdb_pymodule_addobject.
6424 * python/py-utils.c (gdb_pymodule_addobject): New function.
6425 * python/py-value.c (gdbpy_initialize_values): Use
6426 gdb_pymodule_addobject.
6427 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6428 * python/python.c (_initialize_python): Use
6429 gdb_pymodule_addobject.
6431 2013-05-20 Tom Tromey <tromey@redhat.com>
6433 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6434 * python/py-param.c (get_set_value, get_show_value): Use
6436 * python/python.c (start_type_printers, apply_type_printers):
6437 Use explicit decrefs.
6439 2013-05-20 Tom Tromey <tromey@redhat.com>
6441 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6444 2013-05-20 Tom Tromey <tromey@redhat.com>
6446 * python/python.c (gdbpy_run_events): Decref the result
6447 of PyObject_CallObject.
6449 2013-05-20 Tom Tromey <tromey@redhat.com>
6451 * python/py-symtab.c (set_sal): Use
6452 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6453 (symtab_and_line_to_sal_object): Update.
6455 2013-05-20 Tom Tromey <tromey@redhat.com>
6457 * python/py-param.c (compute_enum_values): Decref 'item'.
6459 2013-05-20 Tom Tromey <tromey@redhat.com>
6461 * mi/mi-main.c: Include python-internal.h.
6462 (mi_cmd_list_features): Check gdb_python_initialized.
6463 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6464 (python_inferior_exit, python_new_objfile, add_thread_object)
6465 (delete_thread_object, py_free_inferior): Check
6466 gdb_python_initialized.
6467 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6468 gdb_python_initialized.
6469 * python/py-type.c (save_objfile_types): Check
6470 gdb_python_initialized.
6471 * python/python-internal.h (gdb_python_initialized): Declare.
6472 * python/python.c (ensure_python_env): Throw exception if
6473 Python not initialized.
6474 (before_prompt_hook, source_python_script_for_objfile)
6475 (start_type_printers, apply_type_printers,
6476 free_type_printers): Check gdb_python_initialized.
6477 * varobj.c (varobj_get_display_hint)
6478 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6479 (install_new_value_visualizer, varobj_set_visualizer)
6480 (value_get_print_value): Check gdb_python_initialized.
6482 2013-05-20 Tom Tromey <tromey@redhat.com>
6484 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6486 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6487 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6489 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6491 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6493 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6495 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6496 init function to return 'int'.
6497 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6498 Return 'int'. Check errors.
6499 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6501 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6502 Return 'int'. Check errors.
6503 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6505 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6507 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6509 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6511 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6513 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6515 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6517 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6519 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6521 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6523 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6525 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6527 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6529 * python/python-internal.h (gdbpy_initialize_auto_load,
6530 gdbpy_initialize_values, gdbpy_initialize_frames,
6531 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6532 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6533 gdbpy_initialize_blocks, gdbpy_initialize_types,
6534 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6535 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6536 gdbpy_initialize_finishbreakpoints,
6537 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6538 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6539 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6540 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6541 gdbpy_initialize_signal_event,
6542 gdbpy_initialize_breakpoint_event,
6543 gdbpy_initialize_continue_event,
6544 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6545 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6546 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6547 * python/python.c (gdb_python_initialized): New global.
6548 (gdbpy_initialize_events): Return 'int'. Check errors.
6549 (_initialize_python): Check errors. Set
6550 gdb_python_initialized.
6552 2013-05-20 Tom Tromey <tromey@redhat.com>
6554 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6555 Decref the reslut of PyObject_CallMethod.
6557 2013-05-20 Tom Tromey <tromey@redhat.com>
6559 * python/py-event.c (gdbpy_initialize_event_generic): Return
6560 early if PyType_Ready fails.
6562 2013-05-20 Tom Tromey <tromey@redhat.com>
6564 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6565 as 'default' in the switch.
6567 2013-05-20 Tom Tromey <tromey@redhat.com>
6569 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6570 get_addr_from_python calls out of TRY_CATCH.
6571 (infpy_write_memory, infpy_search_memory): Likewise.
6572 * python/py-utils.c (get_addr_from_python): Return negative
6573 value on error. Use TRY_CATCH.
6574 * python/python-internal.h (get_addr_from_python): Use
6575 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6577 2013-05-20 Tom Tromey <tromey@redhat.com>
6579 * python/py-event.c (evpy_emit_event): Decref the
6580 result of PyObject_CallFunctionObjArgs.
6582 2013-05-20 Tom Tromey <tromey@redhat.com>
6584 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6587 2013-05-20 Tom Tromey <tromey@redhat.com>
6589 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6591 2013-05-20 Tom Tromey <tromey@redhat.com>
6593 * python/py-event.h (gdbpy_initialize_event_generic): Use
6594 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6595 * python/py-evts.c (add_new_registry): Use
6596 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6597 * python/python-internal.h
6598 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6600 2013-05-20 Tom Tromey <tromey@redhat.com>
6602 * python/py-arch.c (archpy_disassemble): Update.
6603 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6604 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6605 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6606 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6608 (GDB_PY_HANDLE_EXCEPTION): Update.
6609 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6611 2013-05-20 Tom Tromey <tromey@redhat.com>
6613 * python/python-internal.h (events_object_type): Remove.
6615 2013-05-20 Tom Tromey <tromey@redhat.com>
6617 * python/py-event.h (evpy_emit_event): Use
6618 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6619 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6622 2013-05-20 Tom Tromey <tromey@redhat.com>
6624 * py-evtregistry.c (create_event_object): Decref
6625 eventregistry_object if PyList_New fails.
6627 2013-05-20 Tom Tromey <tromey@redhat.com>
6629 * py-cmd.c (gdbpy_string_to_argv): Check result of
6632 2013-05-20 Tom Tromey <tromey@redhat.com>
6634 * python/python.c (before_prompt_hook): Add cleanup to
6637 2013-05-20 Tom Tromey <tromey@redhat.com>
6639 * python/py-function.c (fnpy_init): Decref result of
6640 PyObject_GetAttrString.
6642 2013-05-20 Tom Tromey <tromey@redhat.com>
6644 * python/py-threadevent.c (get_event_thread): Use
6645 CPYCHECKER_RETURNS_BORROWED_REF.
6646 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6648 (pspace_to_pspace_object, objfile_to_objfile_object)
6649 (find_thread_object): Use it.
6651 2013-05-20 Tom Tromey <tromey@redhat.com>
6653 * python/py-arch.c (arch_object_type): Use
6654 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6655 * python/py-block.c (block_syms_iterator_object_type):
6656 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6657 * python/py-bpevent.c (breakpoint_event_object_type):
6658 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6659 * python/py-cmd.c (cmdpy_object_type): Use
6660 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6661 * python/py-continueevent.c (continue_event_object_type):
6662 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6663 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6664 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6665 * python/py-events.h (thread_event_object_type):
6666 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6667 * python/py-evtregistry.c (eventregistry_object_type): Use
6668 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6669 * python/py-exitedevent.c (exited_event_object_type):
6670 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6671 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6672 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6673 * python/py-function.c (fnpy_object_type): Use
6674 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6675 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6676 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6677 * python/py-infthread.c (thread_object_type): Use
6678 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6679 * python/py-lazy-string.c (lazy_string_object_type):
6680 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6681 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6682 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6683 * python/py-objfile.c (objfile_object_type): Use
6684 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6685 * python/py-param.c (parmpy_object_type):
6686 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6687 * python/py-progspace.c (pspace_object_type):
6688 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6689 * python/py-signalevent.c (signal_event_object_type):
6690 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6691 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6692 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6693 * python/py-type.c (type_object_type, field_object_type)
6694 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6695 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6697 (value_object_type, block_object_type, symbol_object_type)
6698 (event_object_type, stop_event_object_type, breakpoint_object_type)
6699 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6701 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6703 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6704 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6706 2013-05-20 Doug Evans <dje@google.com>
6708 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6710 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6711 reading_dwo_directly.
6712 (struct signatured_type): New member dwo_unit.
6713 (struct die_reader_specs): New member comp_dir.
6714 (create_signatured_type_table_from_index): Use malloc for
6715 all_type_units instead of objfile's obstack.
6716 (create_all_type_units): Ditto.
6717 (fill_in_sig_entry_from_dwo_entry): New function.
6718 (add_type_unit): New function.
6719 (lookup_dwo_signatured_type): New function.
6720 (lookup_dwp_signatured_type): New function.
6721 (lookup_signatured_type): New arg cu. All callers updated.
6722 (init_cu_die_reader): Initialize comp_dir.
6723 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6724 Change assert of matching type signatures to call error on mismatch.
6725 (lookup_dwo_unit): Add assert.
6726 (init_tu_and_read_dwo_dies): New function.
6727 (init_cutu_and_read_dies): Call it.
6728 (build_type_unit_groups): Handle case of no type unit groups created.
6729 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6730 (lookup_dwo_cutu): Tweak complaint.
6731 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6732 (dwarf2_per_objfile_free): Free all_type_units.
6734 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6736 * windows-nat.c (handle_unload_dll): Add missing empty line.
6738 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6740 * dwarf2read.c (prototyped_function_p): New function.
6741 (read_subroutine_type): Use it.
6743 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6745 * rs6000-aix-tdep.c: De-indent some example code provided
6748 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6750 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6751 region is ok for a hardware watchpoint using the new ptrace interface
6754 2013-05-17 Doug Evans <dje@google.com>
6756 * NEWS: Mention new maintenance commands check-symtabs, and
6757 expand-symtabs, and renamed check-psymtabs.
6758 * psymtab.c (maintenance_check_psymtabs): Renamed from
6759 maintenance_check_symtabs. Only process already-expanded symbol
6761 (_initialize_psymtab): Update.
6762 * symmisc.c (maintenance_check_symtabs): New function.
6763 (maintenance_expand_name_matcher): New function
6764 (maintenance_expand_file_matcher): New function
6765 (maintenance_expand_symtabs): New function.
6766 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6769 2013-05-17 Tom Tromey <tromey@redhat.com>
6771 * python/py-inferior.c (infpy_read_memory): Don't call
6772 PyErr_SetString if PyObject_New fails.
6773 * python/py-frame.c (frame_info_to_frame_object): Don't call
6774 PyErr_SetString if PyObject_New fails.
6776 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6778 * acinclude.m4: Add check for dlopen in libdl.
6779 * configure.ac: Ditto.
6780 * configure: Regenerate.
6782 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6784 * frame.c (frame_stash): Convert to htab.
6785 (frame_addr_hash): New function.
6786 (frame_addr_hash_eq): New function.
6787 (frame_stash_create): Convert function to create
6789 (frame_stash_add): Convert function to add an entry to a hash
6791 (frame_stash_find): Convert function to search the hash table.
6792 (frame_stash_invalidate): Convert function to empty the hash
6794 (get_frame_id): Only add to stash if a frame_id is created.
6795 (_initialize_frame): Call frame_stash_create.
6797 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6799 * configure.ac: Ensure MIG is available when building for GNU Hurd
6801 * configure: Regenerate.
6803 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6805 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6807 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6809 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6810 all cleanups are done before returning from this function.
6812 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6814 * utils.h: #include "exceptions.h".
6815 (enum errors): Remove partial declaration.
6817 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6819 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6820 * gdbarch.h, gdbarch.c: Regenerate.
6821 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6824 * rs6000-aix-tdep.h: New file.
6825 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6826 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6828 (struct field_info, struct ld_info_desc): New types.
6829 (ld_info32_desc, ld_info64_desc): New static constants.
6830 (struct ld_info): New type.
6831 (rs6000_aix_extract_ld_info): New function.
6832 (rs6000_aix_shared_library_to_xml): Likewise.
6833 (rs6000_aix_ld_info_to_xml): Likewise.
6834 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6835 (rs6000_aix_init_osabi): Add call to
6836 set_gdbarch_core_xfer_shared_libraries_aix.
6837 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6838 Remove "xml-utils.h" include.
6839 (LdInfo): Delete typedef.
6840 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6842 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6843 Adjust code accordingly.
6844 (rs6000_core_ldinfo): Delete, folded into
6845 rs6000_aix_core_xfer_shared_libraries_aix.
6846 (rs6000_xfer_shared_library): Delete.
6847 (rs6000_xfer_shared_libraries): Reimplement.
6849 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6851 * record.c (record_goto_cmdlist): New.
6852 (cmd_record_goto): Split into this ...
6853 (cmd_record_goto_begin): ... this
6854 (cmd_record_goto_end): ... and this.
6855 (_initialize_record): Change "record goto" to prefix command.
6856 Add commands for "record goto begin" and "record goto end".
6857 Add an alias for "record goto start" to "record goto begin".
6859 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6861 * linespec.c (convert_linespec_to_sals): New comment for
6862 SOURCE_FILENAME assignment.
6864 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6866 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6869 2013-05-14 Tom Tromey <tromey@redhat.com>
6871 * eval.c (parse_and_eval_long): Make 'exp' const.
6872 * value.h (parse_and_eval_long): Update.
6874 2013-05-14 Tom Tromey <tromey@redhat.com>
6876 * ui-file.c (gdb_fopen): Make arguments const.
6877 * ui-file.h (gdb_fopen): Make arguments const.
6879 2013-05-14 Tom Tromey <tromey@redhat.com>
6881 * remote.c (remote_set_trace_notes): Make arguments const.
6882 * target.c (update_current_target): Update cast.
6883 * target.h (to_set_trace_notes): Make arguments const.
6885 2013-05-14 Tom Tromey <tromey@redhat.com>
6887 * go32-nat.c (go32_terminal_info): Make 'args' const.
6888 * inferior.h (child_terminal_info): Update.
6889 * inflow.c (child_terminal_info): Make 'args' const.
6890 * target.c (default_terminal_info): Make 'args' const.
6891 (debug_to_terminal_save_ours): Likewise.
6892 * target.h (struct target_ops) <to_terminal_info>: Make argument
6895 2013-05-13 Tom Tromey <tromey@redhat.com>
6897 * gcore.c (create_gcore_bfd): Make 'filename' const.
6898 * gcore.h (create_gcore_bfd): Make 'filename' const.
6899 * record-full.c (record_full_save): Make 'recfilename' const.
6900 * target.c (target_save_record): Make 'filename' const.
6901 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6903 (target_save_record): Likewise.
6905 2013-05-13 Tom Tromey <tromey@redhat.com>
6908 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6909 ranges section has been read.
6911 2013-05-13 Tom Tromey <tromey@redhat.com>
6914 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6915 STRUCTOP_PTR>: Return a not_lval value for
6916 EVAL_AVOID_SIDE_EFFECTS.
6917 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6918 for EVAL_AVOID_SIDE_EFFECTS.
6920 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6922 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6923 floating point registers to register type before storing
6925 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6928 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6929 Tom Tromey <tromey@redhat.com>
6931 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6933 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6935 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6936 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6937 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6938 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6940 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6941 Tom Tromey <tromey@redhat.com>
6944 * configure: Rebuild.
6945 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6948 2013-05-10 Pedro Alves <palves@redhat.com>
6950 * remote.c (_initialize_remote): Fix spelling of
6951 qXfer:traceframe-info:read packet in packet config command.
6953 2013-05-10 David Taylor <dtaylor@emc.com>
6957 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6958 "QTro" at start of packet.
6960 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6962 * solib-aix.c (solib_aix_relocate_section_addresses):
6963 For the .bss section action, apply the same offset as
6966 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6968 * solib-aix.c (solib_aix_relocate_section_addresses):
6969 Remove FIXME comment.
6971 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6974 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6975 New functions, directly copied from sparc-sol-thread.c.
6976 * sparc-sol-thread.c: Delete.
6977 * configure.ac: Remove code handling sparc-solaris-thread.c.
6978 * configure: Regenerate.
6980 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6982 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6984 (backtrace_command): Add "no-filters" option parsing.
6985 (_initialize_stack): Alter help to reflect "no-filters" option.
6986 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6987 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6988 (py-frame.o): Add target
6989 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6991 * python/python.h: Add new frame filter constants, and flag enum.
6992 (apply_frame_filter): Add definition.
6993 * python/python.c (apply_frame_filter): New non-Python
6995 * python/py-utils.c (py_xdecref): New function.
6996 (make_cleanup_py_xdecref): Ditto.
6997 * python/py-objfile.c: Declare frame_filters dictionary.
6998 (objfpy_dealloc): Add frame_filters dealloc.
6999 (objfpy_new): Initialize frame_filters attribute.
7000 (objfile_to_objfile_object): Ditto.
7001 (objfpy_get_frame_filters): New function.
7002 (objfpy_set_frame_filters): New function.
7003 * python/py-progspace.c: Declare frame_filters dictionary.
7004 (pspy_dealloc): Add frame_filters dealloc.
7005 (pspy_new): Initialize frame_filters attribute.
7006 (pspacee_to_pspace_object): Ditto.
7007 (pspy_get_frame_filters): New function.
7008 (pspy_set_frame_filters): New function.
7009 * python/py-framefilter.c: New file.
7010 * python/lib/gdb/command/frame_filters.py: New file.
7011 * python/lib/gdb/frames.py: New file.
7012 * python/lib/gdb/__init__.py: Initialize global frame_filters
7014 * python/lib/gdb/FrameDecorator.py: New file.
7015 * python/lib/gdb/FrameIterator.py: New file.
7016 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7017 * mi/mi-cmds.h: Declare.
7018 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7019 --no-frame-filter logic, and Python frame filter logic.
7020 (stack_enable_frame_filters): New function.
7021 (parse_no_frame_option): Ditto.
7022 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7024 (mi_cmd_stack_list_locals): Ditto.
7025 (mi_cmd_stack_list_args): Ditto.
7026 (mi_cmd_stack_list_variables): Ditto.
7027 * NEWS: Add frame filter note.
7029 2013-05-09 Doug Evans <dje@google.com>
7031 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7032 All callers updated.
7033 (syms_from_objfile): Ditto. Make static.
7034 (symbol_file_add_with_addrs): Renamed from
7035 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7036 num_offsets. All callers updated.
7037 * symfile.h (syms_from_objfile): Delete.
7039 * symfile.c (decrement_reading_symtab): Add assert.
7040 (increment_reading_symtab): Ditto.
7042 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7044 * source.c (forward_search_command): Replace call to getc
7046 (reverse_search_command): Likewise.
7048 2013-05-08 Doug Evans <dje@google.com>
7050 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7053 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7055 * sol-thread.c (info_cb): Factorize the code a little.
7057 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7059 * sol-thread.c (info_cb): Rework the output of the "maintenance
7060 info sol-threads" command a bit.
7062 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7064 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7065 Replace ti.ti_startfunc by ti.ti_pc.
7067 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7069 * solib-aix.c (solib_aix_free_library_list): New function
7070 for the case where HAVE_LIBEXPAT is not defined.
7072 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7074 PR breakpoints/15413:
7075 * breakpoint.c (condition_completer): Simplify the code to
7076 disconsider multiple locations of breakpoints when completing the
7077 "condition" command.
7079 2013-05-07 Pierre Muller <muller@sourceware.org>
7081 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7082 instead of <sys/wait.h>.
7084 2013-05-07 Pierre Muller <muller@sourceware.org>
7086 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7087 trailing new line from warning message.
7089 2013-05-07 Pierre Muller <muller@sourceware.org>
7091 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7092 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7094 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7096 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7097 error message (ARI fix).
7099 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7101 * features/library-list-aix.dtd: Replace library-list by
7103 * rs6000-nat.c: Replace library-list by library-list-aix
7105 * solib-aix.c: Likewise.
7107 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7109 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7110 Renames TARGET_OBJECT_AIX_LIBRARIES.
7111 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7112 TARGET_OBJECT_LIBRARIES_AIX throughout.
7113 * solib-aix.c: Likwise.
7115 2013-05-07 Yao Qi <yao@codesourcery.com>
7117 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7118 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7120 2013-05-07 Yao Qi <yao@codesourcery.com>
7122 * solib-dsbt.c (enable_break): Declare.
7123 (dsbt_current_sos): Remove call to enable_break2.
7124 (enable_break2): Rename to enable_break. Set solib breakpoint
7125 on '_dl_debug_state'.
7126 (enable_break): Remove.
7128 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7130 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7131 debug state prior to replicating existing hardware watchpoints or
7134 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7136 * gcore.c (gcore_create_callback): Ignore sections with
7137 separate_debug_objfile_backlink != NULL.
7139 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7140 Andrew Jenner <andrew@codesourcery.com>
7141 Chung-Lin Tang <cltang@codesourcery.com>
7142 Julian Brown <julian@codesourcery.com>
7144 Based on the nios2-elf port from Altera Corporation.
7146 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7148 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7149 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7150 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7151 * nios2-tdep.h: New.
7152 * nios2-tdep.c: New.
7153 * nios2-linux-tdep.c: New.
7154 * features/Makefile (WHICH): Add nios2-linux.
7155 (nios2-linux-expedite): Set.
7156 * features/nios2-cpu.xml: New.
7157 * features/nios2.xml: New.
7158 * features/nios2-linux.xml: New.
7159 * features/nios2.c: New (autogenerated).
7160 * features/nios2-linux.c: New (autogenerated).
7161 * regformats/nios2-linux.dat: New (autogenerated).
7162 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7165 2013-05-06 Doug Evans <dje@google.com>
7167 * symfile.c: Whitespace cleanup.
7169 * solist.h (struct target_so_ops): New member clear_so.
7170 * solib-svr4.c (svr4_clear_so): New function.
7171 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7172 * solib.c (clear_so): Renamed from free_so_symbols.
7173 All callers updated. Call target clear_so if it exists.
7175 2013-05-06 Tom Tromey <tromey@redhat.com>
7177 * ada-lang.c (ada_value_primitive_packed_val): Don't
7179 * value.c (set_value_parent): Incref the new parent and decref
7181 (value_copy, value_primitive_field): Use set_value_parent.
7183 2013-05-06 Tom Tromey <tromey@redhat.com>
7185 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7186 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7188 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7189 * dwarf2read.c (write_constant_as_bytes)
7190 (dwarf2_fetch_constant_bytes): New functions.
7192 2013-05-06 Tom Tromey <tromey@redhat.com>
7194 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7196 (dwarf2_const_value_attr): Update.
7198 2013-05-06 Tom Tromey <tromey@redhat.com>
7200 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7201 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7202 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7205 2013-05-06 Tom Tromey <tromey@redhat.com>
7207 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7210 2013-05-06 Doug Evans <dje@google.com>
7212 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7213 * stabsread.h (process_one_symbol): Update declaration.
7214 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7215 * elfread.c (elf_symfile_relocate_probe): Ditto.
7216 * psymtab.c (relocate_psymtabs): Ditto.
7217 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7218 (objfile_relocate): Ditto.
7219 * objfiles.h (objfile_relocate): Update declaration.
7220 * symfile.c (relative_addr_info_to_section_offsets): Constify
7222 (default_symfile_offsets): Ditto.
7223 (syms_from_objfile_1): Constify offsets parameter.
7224 (syms_from_objfile): Ditto.
7225 (symbol_file_add_with_addrs_or_offsets): Ditto.
7226 (symfile_map_offsets_to_segments): Constify data parameter.
7227 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7228 delta parameters of member relocate.
7229 (struct sym_probe_fns): Constify new_offsets,
7230 delta parameters of member sym_relocate_probe.
7231 (struct sym_fns): Constify section_addr_info parameter of member
7233 (relative_addr_info_to_section_offsets): Update declaration.
7234 (default_symfile_offsets): Ditto.
7235 (syms_from_objfile): Ditto.
7236 (symfile_map_offsets_to_segments): Ditto.
7238 * symfile.c (syms_from_objfile_1): Use correct section count when
7239 objfile->sf == NULL.
7241 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7243 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7245 2013-05-06 Doug Evans <dje@google.com>
7247 * psympriv.h (struct partial_symtab): Augment comment for member
7250 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7252 Reimplement shared library support on ppc-aix...
7253 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7254 * features/library-list-aix.dtd: New file.
7255 * solib-aix.h, solib-aix.c: New file.
7256 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7257 (rs6000_find_toc_address_hook): Delete.
7258 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7259 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7260 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7262 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7263 (vmap_symtab, fixup_breakpoints): Delete.
7264 (rs6000_xfer_shared_libraries): New function.
7265 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7266 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7267 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7268 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7269 (rs6000_xfer_shared_library): New function.
7270 (find_toc_address): Delete.
7271 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7272 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7273 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7274 before creating minimal symbol. Adjust function description
7276 (scan_xcoff_symtab): Replace call to
7277 prim_record_minimal_symbol_and_info by call to
7278 record_minimal_symbol.
7279 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7280 around default_symfile_offsets.
7281 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7282 powerpc-aix targets.
7283 * config/rs6000/nm-rs6000.h: Delete.
7284 * config/powerpc/aix.mh (NAT_FILE): Delete.
7285 (NATDEPFILES): Remove xcoffsolib.o.
7286 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7287 (ALL_TARGET_OBS): Add solib-aix.o.
7288 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7289 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7290 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7291 * xcoffsolib.h, xcoffsolib.c: Delete.
7293 * solib.c (reload_shared_libraries): Remove reference to
7294 SOLIB_CREATE_INFERIOR_HOOK.
7295 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7296 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7297 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7299 * corelow.c (deprecated_core_resize_section_table): Delete.
7300 * exec.c: Remove include of xcoffsolib.h".
7301 (map_vmap, vmap): Delete.
7302 (exec_close_1): Remove references to vmap.
7303 (exec_file_attach): Remove vmap handling code, and reference
7304 to DEPRECATED_IBM6000_TARGET.
7305 (bfdsec_to_vmap): Delete.
7306 (exec_files_info): Remove block of code handling VMAP.
7307 * infcmd.c (post_create_inferior): Remove reference to
7308 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7309 * infrun.c (follow_exec): Remove reference to
7310 SOLIB_CREATE_INFERIOR_HOOK.
7311 * stack.c (print_frame): Remove reference to PC_SOLIB.
7312 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7313 (dsbt_relocate_main_executable): Likewise.
7314 * solib-frv.c (frv_current_sos): Likewise.
7316 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7318 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7319 to target_write_memory and target_read_memory.
7321 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7323 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7324 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7326 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7328 * darwin-nat.c: Replace all "%x" instances in format strings
7329 into "0x%x" throughout.
7331 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7333 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7334 gdb_assert by call to MACH_CHECK_ERROR.
7335 (darwin_attach_pid): Raise an error rather than a failed
7336 assertion when various system calls failed. Report a warning
7337 instead of raising a failed assertion when PREV_NOT is not NULL
7338 after call to mach_port_request_notification.
7339 (darwin_ptrace_me): Raise an error rather than a failed
7340 assertion when read returns nonzero.
7342 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7344 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7346 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7348 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7350 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7352 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7353 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7354 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7355 a stale cleanup. Fix double free of NAME.
7357 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7359 * windows-nat.c (windows_delete_thread): Accept an additional
7360 argument, the thread's exit code, and announce thread death when
7361 print_thread_events is non-zero and we are deleting a thread that
7362 is not the main thread.
7363 (get_windows_debug_event): Pass thread exit code to
7364 windows_delete_thread.
7366 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7368 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7369 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7370 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7371 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7372 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7373 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7374 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7375 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7376 (gdbarch_tdep): New struct.
7377 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7379 (v850e3v5_register_name): New function.
7380 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7381 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7382 code handling the struct return conventions for the RH850 ABI.
7384 (v850_eight_byte_align_p): New function.
7385 (v850_push_call_dummy): Push structs by value, not by reference
7386 for the RH850 ABI. Add support for eight byte alignment.
7387 (v850_dbtrap_breakpoint_from_pc): New function.
7388 (v850_gdbarch_init): Add ABI detection code. Register
7389 v850e3v5_register_name for the v850e3v5 architecture. Set the
7390 number of registers for v850e3v5. Register
7391 v850_dbtrap_breakpoint_from_pc as appropriate.
7392 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7394 2013-05-03 Doug Evans <dje@google.com>
7396 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7397 of bfd_count_sections.
7398 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7399 * symfile.c (default_symfile_offsets): Ditto.
7400 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7401 one entry, not bfd_count_sections entries.
7403 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7405 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7406 `save' and `restore' register groups. Don't include SPL
7407 or SPH in these groups.
7408 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7409 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7410 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7411 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7412 dwarf2_append_unwinders().
7414 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7416 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7417 ignore SIGINT and SIGTRAP in case these internal signals are
7420 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7422 * darwin-nat.c (darwin_read_write_inferior): Change types
7423 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7424 of copy_count to "mach_msg_type_number_t".
7425 (darwin_read_dyld_info): Change type of parameter
7426 rdaddr to "gdb_byte *".
7428 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7430 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7431 of &info->load_map from "char *" to "gdb_byte *".
7433 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7435 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7436 from "char *" to "gdb_byte *".
7437 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7439 2013-04-30 Doug Evans <dje@google.com>
7441 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7442 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7443 DWO stub. If DWO isn't found, just use stub.
7444 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7446 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7447 calling init_cutu_and_read_dies.
7449 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7451 * target-descriptions.c (maint_print_c_tdesc_cmd):
7452 Add case to parse structures as register types and
7455 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7457 * MAINTAINERS (Write After Approval): Add myself to the list.
7459 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7461 * sol-thread.c (rw_common): Change type of parameter "buf"
7463 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7464 rw_common to "gdb_byte *" instead of "char *".
7466 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7468 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7469 of local variable msym to const struct bound_minimal_symbol.
7470 Adjust use accordingly.
7471 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7473 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7475 * i386gnu-nat.c (CREG_OFFSET): New macro.
7476 (creg_offset): New array.
7477 (CREG_ADDR): Use creg_offset instead of reg_offset.
7479 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7481 * mep-tdep.c (mep_write_pc): Delete.
7482 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7483 Add call to set_gdbarch_pc_regnum.
7485 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7487 * common/filestuff.c: Replace #include <dirent.h> by
7488 #include "gdb_dirent.h".
7490 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7492 * common/filestuff.c: Replace #include <sys/stat.h> by
7493 #include "gdb_stat.h".
7495 2013-04-29 Pierre Muller <muller@sourceware.org>
7497 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7498 editCase function rule.
7499 (get_DW_AT_signature_type): Likewise.
7501 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7503 * m32r-tdep.c (m32r_write_pc): Delete.
7504 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7505 Add call to set_gdbarch_pc_regnum.
7507 2013-04-29 Pierre Muller <muller@sourceware.org>
7509 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7511 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7513 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7515 2013-04-28 Yao Qi <yao@codesourcery.com>
7517 * solib-dsbt.c (fetch_loadmap): Re-indent.
7518 (displacement_from_map, enable_break2): Likewise.
7519 (dsbt_relocate_section_addresses): Likewise.
7521 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7525 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7528 * dwarf2read.c (process_full_comp_unit): Always create a static
7531 2013-04-25 Hui Zhu <hui@codesourcery.com>
7533 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7534 to loc->cmd_bytecode.
7536 2013-04-24 Doug Evans <dje@google.com>
7538 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7540 2013-04-22 Keith Seitz <keiths@redhat.com>
7542 * tracepoint.c (trace_save): Call the writer's start method.
7544 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7547 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7550 2013-04-23 Tom Tromey <tromey@redhat.com>
7552 * common/filestuff.c: Check USE_WIN32API before including
7554 (HAVE_F_GETFD): New define.
7555 (mark_cloexec): Check HAVE_F_GETFD.
7556 (gdb_open_cloexec): Change 'mode' to unsigned long.
7557 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7558 (gdb_pipe_cloexec): Check HAVE_PIPE.
7559 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7562 2013-04-23 Hui Zhu <hui@codesourcery.com>
7565 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7567 2013-04-23 Hui Zhu <hui@codesourcery.com>
7570 * breakpoint.c (dprintf_print_recreate): New.
7571 (save_breakpoints): Let it not save dprintf commands.
7572 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7574 2013-04-22 Tom Tromey <tromey@redhat.com>
7577 * Makefile.in (SFILES): Add filestuff.c
7578 (COMMON_OBS): Add filestuff.o.
7579 (filestuff.o): New target.
7580 * auto-load.c (auto_load_objfile_script_1): Use
7582 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7583 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7584 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7585 * common/agent.c (gdb_connect_sync_socket): Use
7587 * common/filestuff.c: New file.
7588 * common/filestuff.h: New file.
7589 * common/linux-osdata.c (linux_common_core_of_thread)
7590 (command_from_pid, commandline_from_pid, print_source_lines)
7591 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7592 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7594 * common/linux-procfs.c (linux_proc_get_int)
7595 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7596 * config.in, configure: Rebuild.
7597 * configure.ac: Don't check for sys/socket.h. Check for
7599 * corelow.c (core_open): Use gdb_open_cloexec.
7600 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7601 * fork-child.c (fork_inferior): Call close_most_fds.
7602 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7603 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7604 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7605 Use gdb_fopen_cloexec.
7606 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7608 (linux_async_pipe): Use gdb_pipe_cloexec.
7609 * remote-fileio.c (remote_fileio_func_open): Use
7611 * remote.c (remote_file_put, remote_file_get): Use
7613 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7615 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7616 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7617 * solib.c (solib_find): Use gdb_open_cloexec.
7618 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7619 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7620 (tfile_open): Use gdb_open_cloexec.
7621 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7622 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7623 * xml-support.c (xml_fetch_content_from_file): Use
7625 * main.c (captured_main): Call notice_open_fds.
7627 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7629 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7630 'char *' to 'gdb_byte *'.
7631 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7634 2013-04-22 Yao Qi <yao@codesourcery.com>
7636 * infrun.c: Fix typo in comment.
7638 2013-04-22 Andrew Haley <aph@redhat.com>
7640 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7643 2013-04-20 Yao Qi <yao@codesourcery.com>
7645 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7646 'char *' to 'gdb_byte *'. Cast the return value of
7647 'bt_ctf_get_char_array' to 'gdb_byte *'.
7649 2013-04-19 Pedro Alves <palves@redhat.com>
7651 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7653 * configure: Regenerate.
7655 2013-04-19 Pedro Alves <palves@redhat.com>
7657 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7660 2013-04-19 Pedro Alves <palves@redhat.com>
7662 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7663 Change type of 'myaddr' parameter to gdb_byte pointer.
7664 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7665 to 'long long' pointer instead of to 'unsigned long long'.
7666 (monitor_write_memory_block, monitor_read_memory_single)
7667 (monitor_read_memory): Change type of 'myaddr' parameter to
7670 2013-04-19 Pedro Alves <palves@redhat.com>
7672 * record.c (validate_history_size): Make parameter 'setting'
7675 2013-04-19 Pedro Alves <palves@redhat.com>
7677 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7680 2013-04-19 Pedro Alves <palves@redhat.com>
7682 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7685 2013-04-19 Pedro Alves <palves@redhat.com>
7687 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7688 * ada-tasks.c (read_fat_string_value): Likewise.
7690 2013-04-19 Pedro Alves <palves@redhat.com>
7692 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7693 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7694 'offset', and adjust.
7696 2013-04-19 Pedro Alves <palves@redhat.com>
7698 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7699 (read_index_from_section): Add cast to 'char *'.
7701 2013-04-19 Pedro Alves <palves@redhat.com>
7703 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7705 2013-04-19 Pedro Alves <palves@redhat.com>
7707 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7709 2013-04-19 Pedro Alves <palves@redhat.com>
7711 * record-full.c (record_full_get_bookmark): Change local 'ret'
7712 type to char * and add cast to gdb_byte *.
7713 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7715 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7717 2013-04-19 Pedro Alves <palves@redhat.com>
7719 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7720 * python/py-prettyprint.c (print_string_repr): Change type of
7721 'output' local to char *. Add cast to gdb_byte * in
7722 LA_PRINT_STRING call.
7723 (print_children): Change type of 'output' local to char *.
7724 * python/py-value.c (valpy_string): Add cast to const char * in
7725 PyUnicode_Decode call.
7727 2013-04-19 Pedro Alves <palves@redhat.com>
7729 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7730 and change its type to 'const char *'. Adjust.
7731 (mips_send_packet): Add cast to 'char *', and remove cast to
7733 (mips_receive_packet): Remove cast to 'unsigned char *'.
7734 (mips_load_srec): Use bfd_byte.
7735 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7736 (pmon_checkset): Make 'value' parameter unsigned.
7738 2013-04-19 Pedro Alves <palves@redhat.com>
7740 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7742 2013-04-19 Pedro Alves <palves@redhat.com>
7744 * remote.c (remote_write_bytes_aux, compare_sections_command)
7746 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7747 (remote_hostio_readlink, remote_bfd_iovec_pread)
7748 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7749 binary buffer, and char when buffer is used as string.
7750 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7751 (trace_save, tfile_open, traceframe_walk_blocks)
7752 (tfile_fetch_registers): Likewise.
7754 2013-04-19 Pedro Alves <palves@redhat.com>
7756 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7757 buffer and size_t size. Adjust.
7758 * ser-base.h (ser_base_write): Adjust.
7759 * ser-go32.c (cnts): Change type to size_t.
7760 (dos_write): Change prototype -- take 'void *'
7761 buffer and size_t size. Adjust.
7762 (dos_info): Print elements of 'cnts' as unsigned long.
7763 * serial.c (serial_write): Likewise.
7764 * serial.h (serial_write): Adjust.
7765 (struct serial_ops) <write>: Change prototype -- take 'void *'
7766 buffer and size_t size. Adjust.
7768 2013-04-19 Pedro Alves <palves@redhat.com>
7770 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7772 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7774 2013-04-19 Pedro Alves <palves@redhat.com>
7776 * alpha-tdep.c (alpha_extract_return_value): Use
7777 regcache_cooked_read_unsigned to read 'v0'.
7779 2013-04-19 Pedro Alves <palves@redhat.com>
7781 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7782 parameters 'at', 'as' and 'offset' to uint32_t.
7784 2013-04-19 Pedro Alves <palves@redhat.com>
7786 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7787 'is64' to signed 'int'.
7789 2013-04-19 Pedro Alves <palves@redhat.com>
7791 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7794 2013-04-19 Pedro Alves <palves@redhat.com>
7796 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7797 'insnbuf' buffer type to unsigned int[].
7799 2013-04-19 Pedro Alves <palves@redhat.com>
7801 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7803 2013-04-19 Pedro Alves <palves@redhat.com>
7805 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7808 2013-04-19 Pedro Alves <palves@redhat.com>
7810 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7811 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7813 * mips-tdep.c (heuristic_fence_post): Change type to int.
7814 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7816 2013-04-19 Pedro Alves <palves@redhat.com>
7818 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7819 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7820 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7822 2013-04-19 Pedro Alves <palves@redhat.com>
7824 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7825 it to get a string view of the byte buffer.
7826 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7827 type to gdb_byte *. Adjust.
7828 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7829 Change local to char *.
7830 * solib-darwin.c (find_program_interpreter): Change return type to
7832 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7833 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7834 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7835 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7836 * solib-svr4.c (find_program_interpreter): Change return type to
7838 (enable_break): Change local 'interp_name' to char *.
7839 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7840 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7841 (spu_pseudo_register_write_spu): Use char for string buffer.
7843 (info_spu_event_command, info_spu_signal_command): Add casts to
7846 2013-04-19 Pedro Alves <palves@redhat.com>
7848 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7850 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7851 * ada-lang.c (ada_value_assign): Use gdb_byte.
7852 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7853 (alphanbsd_sigtramp_offset): Use gdb_byte.
7854 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7855 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7856 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7857 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7858 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7859 * arm-tdep.c (arm_stub_unwind_sniffer)
7860 (arm_displaced_init_closure): Use gdb_byte.
7861 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7862 (arm_default_thumb_le_breakpoint)
7863 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7864 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7865 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7866 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7867 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7868 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7869 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7870 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7871 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7872 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7873 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7874 (cris_store_return_value, cris_extract_return_value): Use
7876 (constraint): Change type of parameter to char * from signed
7877 char*. Use gdb_byte.
7878 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7879 of local buffer to gdb_byte *.
7880 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7881 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7882 (add_address_entry): Change type of local buffer to gdb_byte[].
7883 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7884 (frv_push_dummy_call): Use gdb_byte.
7885 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7886 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7887 (hppa_hpux_supply_save_state): Use gdb_byte.
7888 * hppa-tdep.c (hppa32_push_dummy_call)
7889 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7890 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7891 (slotN_contents, replace_slotN_contents): Change type of parameter
7893 (fetch_instruction, ia64_pseudo_register_write)
7894 (ia64_register_to_value, ia64_value_to_register)
7895 (ia64_extract_return_value, ia64_store_return_value)
7896 (ia64_push_dummy_call): Use gdb_byte.
7897 * m32c-tdep.c (m32c_return_value): Remove cast.
7898 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7899 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7901 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7902 * mn10300-tdep.c (mn10300_store_return_value)
7903 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7905 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7906 (moxie_process_record): Remove casts.
7907 * ppc-ravenscar-thread.c (supply_register_at_address)
7908 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7909 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7910 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7911 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7912 * remote.c (compare_sections_command): Use gdb_byte.
7913 * score-tdep.c (score7_free_memblock): Change type of parameter to
7915 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7916 gdb_byte *. Use gdb_byte.
7917 (sh_push_dummy_call_fpu): Use gdb_byte.
7918 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7919 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7920 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7921 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7922 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7923 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7924 (sh64_store_return_value, sh64_register_convert_to_virtual):
7925 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7926 (sh64_pseudo_register_write): Use gdb_byte.
7927 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7928 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7930 (irix_current_sos): Use gdb_byte.
7931 * solib-som.c (som_current_sos): Use gdb_byte.
7932 * sparc-ravenscar-thread.c (supply_register_at_address)
7933 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7934 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7935 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7936 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7938 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7940 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7941 * xstormy16-tdep.c (xstormy16_extract_return_value)
7942 (xstormy16_store_return_value): Change parameter type to
7943 'gdb_byte *'. Adjust.
7944 (xstormy16_push_dummy_call): Use gdb_byte.
7945 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7946 (call0_analyze_prologue, execute_code): Use gdb_byte.
7948 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7949 Pedro Alves <palves@redhat.com>
7951 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7954 2013-04-17 Doug Evans <dje@google.com>
7956 * dwarf2read.c (struct signatured_type): New member type.
7957 (struct attribute): Replace member signatured_type with signature.
7958 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7959 (read_call_site_scope): Call follow_die_ref instead of
7960 follow_die_ref_or_sig.
7961 (read_structure_type): Rewrite handling of signatured types.
7962 (read_enumeration_type): Ditto.
7963 (read_attribute_value): Update.
7964 (build_error_marker_type): New function.
7965 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7966 Don't call error for bad types, just build an error marker type.
7967 (dump_die_shallow): Update.
7968 (follow_die_sig_1): Renamed from follow_die_sig.
7969 Don't call error for bad types, instead return NULL.
7970 (follow_die_sig): New function.
7971 (get_signatured_type, get_DW_AT_signature_type): New functions.
7973 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7975 * aarch64-tdep.c (aarch64_write_pc): Removed.
7976 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7979 2013-04-17 Yao Qi <yao@codesourcery.com>
7981 * top.c (print_gdb_configuration): Print configure-time
7982 parameter on using libbabeltrace or not.
7984 2013-04-16 Pedro Alves <palves@redhat.com>
7986 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7988 2013-04-16 Pedro Alves <palves@redhat.com>
7990 * common/glibc_thread_db.h: Update from upstream glibc
7991 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7993 2013-04-16 Pedro Alves <palves@redhat.com>
7995 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7996 * common/glibc_thread_db.h: ... this new file ...
7997 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7999 2013-04-16 Will Newton <will.newton@gmail.com>
8000 Pedro Alves <palves@redhat.com>
8004 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8005 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8008 2013-04-16 Pedro Alves <palves@redhat.com>
8009 Eli Zaretskii <eliz@gnu.org>
8011 * NEWS: Mention "set foo unlimited".
8013 2013-04-15 Doug Evans <dje@google.com>
8015 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8016 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8017 (create_dwo_cu_reader): Renamed from
8018 create_dwo_debug_info_hash_table_reader.
8019 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8020 Remove support for multiple CUs in a DWO file.
8021 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8023 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8025 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8026 (create_dwo_in_dwp): Ditto.
8028 2013-04-15 Tom Tromey <tromey@redhat.com>
8030 * NEWS: Move recent entries into "since 7.6" section.
8032 2013-04-15 Tom Tromey <tromey@redhat.com>
8036 * break-catch-throw.c (struct exception_catchpoint)
8037 <exception_rx, pattern>: New fields.
8038 (fetch_probe_arguments, dtor_exception_catchpoint)
8039 (check_status_exception_catchpoint)
8040 (print_one_detail_exception_catchpoint): New functions.
8041 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8042 Compile regular expression if needed.
8043 (extract_exception_regexp): New function.
8044 (catch_exception_command_1): Use extract_exception_regexp.
8045 (compute_exception): Use fetch_probe_arguments.
8046 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8047 and check_status fields.
8048 * cp-abi.c (cplus_typename_from_type_info): New function.
8049 * cp-abi.h (cplus_typename_from_type_info): Declare.
8050 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8051 * gdb_regex.h (compile_rx_or_error): Declare.
8052 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8054 (init_gnuv3_ops): Set get_type_from_type_info field.
8055 * probe.c (compile_rx_or_error): Move...
8056 * utils.c (compile_rx_or_error): ... here.
8058 2013-04-15 Tom Tromey <tromey@redhat.com>
8062 * break-catch-throw.c (compute_exception): New function.
8063 (exception_funcs): New global.
8064 (_initialize_break_catch_throw): Create $_exception.
8065 * cp-abi.c (cplus_type_from_type_info): New function.
8066 * cp-abi.h (cplus_type_from_type_info): Declare.
8067 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8068 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8069 (gnuv3_get_type_from_type_info): New functions.
8070 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8072 2013-04-15 Tom Tromey <tromey@redhat.com>
8074 * break-catch-throw.c (struct exception_names): New.
8075 (exception_functions): Change type.
8076 (re_set_exception_catchpoint): Look for SDT probes.
8078 2013-04-15 Tom Tromey <tromey@redhat.com>
8081 * break-catch-throw.c (exception_functions): New global.
8082 (gnu_v3_exception_catchpoint_ops): Move earlier.
8083 (struct exception_catchpoint): New.
8084 (classify_exception_breakpoint): Rewrite.
8085 (re_set_exception_catchpoint): New function.
8086 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8087 Allocate a struct exception_catchpoint.
8088 (catch_exception_command_1): Update.
8089 (initialize_throw_catchpoint_ops): Set 're_set' method.
8091 2013-04-15 Tom Tromey <tromey@redhat.com>
8093 * Makefile.in (SFILES): Add break-catch-throw.c
8094 (COMMON_OBS): Add break-catch-throw.o.
8095 * break-catch-throw.c: New file.
8096 * breakpoint.c: Move exception-catching code to new file.
8097 (ep_parse_optional_if_clause): No longer static.
8098 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8100 2013-04-15 Tom Tromey <tromey@redhat.com>
8104 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8105 * c-exp.y (TYPEID): New token.
8106 (exp): Add new TYPEID productions.
8107 (ident_tokens): Add "typeid".
8108 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8109 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8110 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8111 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8112 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8114 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8115 (build_std_type_info_type, gnuv3_get_typeid_type)
8116 (gnuv3_get_typeid): New functions.
8117 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8118 new fields on ABI object.
8119 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8120 * std-operator.def (OP_TYPEID): New.
8122 2013-04-15 Tom Tromey <tromey@redhat.com>
8124 * elfread.c (elf_symtab_read): Install versioned symbol under
8125 unversioned name as well.
8127 2013-04-15 Tom Tromey <tromey@redhat.com>
8130 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8131 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8132 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8133 (gdb_demangle): New function.
8134 * cp-support.h (gdb_demangle): Declare.
8135 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8136 (dwarf2_name): Use gdb_demangle.
8137 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8138 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8140 (gnuv3_print_method_ptr): Use gdb_demangle.
8141 * jv-lang.c (java_demangle): Use gdb_demangle.
8142 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8143 * language.c (unk_lang_demangle): Use gdb_demangle.
8144 * symtab.c (symbol_find_demangled_name)
8145 (demangle_for_lookup): Use gdb_demangle.
8147 2013-04-15 Tom Tromey <tromey@redhat.com>
8151 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8153 (classify_exception_breakpoint): New function.
8154 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8155 (print_mention_exception_catchpoint)
8156 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8157 (catch_exception_command_1): Handle "rethrow" catchpoint.
8158 (catch_rethrow_command): New function.
8159 (_initialize_breakpoint): Add "catch rethrow" command.
8161 2013-04-15 Pierre Muller <muller@sourceware.org>
8163 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8164 set_gdbarch_write_pc as deprecated anymore.
8166 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8168 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8171 2013-04-13 Yao Qi <yao@codesourcery.com>
8173 * ctf.c (_initialize_ctf): Include "completer.h".
8174 Call add_target_with_completer instead of add_target.
8176 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8178 Fix GDB regression related to PR binutils/14813.
8179 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8180 * minidebug.c (lzma_close): Add return value comment.
8181 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8182 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8183 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8185 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8187 * config.in: Regenerate.
8189 2013-04-12 Tom Tromey <tromey@redhat.com>
8191 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8193 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8194 (struct die_reader_specs) <buffer>: Likewise.
8195 (die_reader_func_ftype): Make 'info_ptr' const.
8196 (struct line_header) <include_dirs, statement_program_start,
8197 statement_program_end>: Now const.
8198 (struct file_entry) <name>: Likewise.
8199 (struct partial_die_info) <sibling>: Likewise.
8200 (struct dwarf_block) <data>: Likewise.
8201 (dwarf2_read_section): Remove cast.
8202 (dwarf2_get_section_info): Make 'bufp' const.
8203 (read_index_from_section): Constify.
8204 (dw2_get_file_names_reader): Make 'info_ptr' const.
8205 (dw2_get_primary_filename_reader): Likewise.
8206 (read_comp_unit_head): Make 'info_ptr' and return type const.
8207 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8209 (read_abbrev_offset): Constify.
8210 (dwarf2_create_include_psymtab): Make 'name' const.
8211 (create_debug_types_hash_table): Update.
8212 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8213 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8215 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8216 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8217 (read_comp_units_from_section): Constify.
8218 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8219 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8221 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8222 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8223 (create_dwp_hash_table, dwarf2_ranges_read)
8224 (dwarf2_record_block_ranges): Constify.
8225 (read_die_and_children, read_die_and_siblings_1)
8226 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8228 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8229 (abbrev_table_read_table): Constify.
8230 (load_partial_dies): Make 'info_ptr' const.
8231 (read_partial_die, read_attribute_value, read_attribute): Make
8232 'info_ptr' and return type const.
8233 (read_address, read_initial_length)
8234 (read_checked_initial_length_and_offset, read_offset)
8235 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8237 (read_direct_string): Make 'buf' and return type const.
8238 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8239 (read_indirect_string): Make return type const.
8240 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8241 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8243 (read_str_index): Make return type const.
8244 (add_include_dir): Make 'include_dir' const.
8245 (add_file_name): Make 'name' const.
8246 (dwarf_decode_line_header): Constify.
8247 (psymtab_include_file_name): Make return type const.
8248 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8249 (dwarf2_start_subfile): Make 'filename' const.
8250 (dwarf2_const_value_attr): Make 'bytes' const.
8251 (read_signatured_type_reader): Make 'info_ptr' const.
8252 (decode_locdesc): Constify.
8253 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8255 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8256 'mac_end', and return type const.
8257 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8258 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8260 (per_cu_header_read_in): Constify.
8261 * symfile.h (dwarf2_get_section_info): Update.
8263 2013-04-12 Tom Tromey <tromey@redhat.com>
8265 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8267 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8269 * NEWS: Mention "show configuration", --configuration.
8270 * top.c (print_gdb_configuration): New function, displays the
8271 details about GDB configure-time parameters.
8272 (print_gdb_version): Mention "show configuration".
8273 * cli/cli-cmds.c (show_configuration): New function.
8274 (_initialize_cli_cmds): Add the "show configuration" command.
8275 * main.c (captured_main) <print_configuration>: New static var.
8276 <long_options>: Use it.
8277 If --configuration was given, call print_gdb_configuration.
8279 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8280 Pedro Alves <palves@redhat.com>
8282 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8283 (generated_files): Add gcore.
8284 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8285 HAVE_NATIVE_GCORE_HOST.
8287 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8288 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8289 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8290 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8291 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8292 Add HAVE_NATIVE_GCORE_HOST.
8293 * configure: Regenerate.
8294 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8295 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8296 AC_CONFIG_FILES for gcore.
8297 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8299 * gdb_gcore.sh: Rename to ...
8300 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8301 and GCORE_TRANSFORM_NAME substitutions.
8303 Fix parsing tabs in ${gdb_target_obs}.
8304 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8306 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8308 * remote.c (unpush_and_perror): Add output message final dot.
8310 2013-04-11 Yao Qi <yao@codesourcery.com>
8312 * tracepoint.c (tfile_interp_line): Fit parameters line and
8315 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8317 * solib.c (solib_map_sections): Remove code overwriting
8318 SO->SO_NAME with the bfd's filename.
8320 2013-04-10 Pedro Alves <palves@redhat.com>
8322 * cli/cli-decode.c (integer_unlimited_completer): New function.
8323 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8324 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8326 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8327 (is_unlimited_literal): New function.
8328 (do_set_command): Handle literal "unlimited" arguments.
8329 * frame.c (_initialize_frame) <set backtrace limit>: Document
8331 * printcmd.c (_initialize_printcmd) <set print
8332 max-symbolic-offset>: Add help text.
8333 * record-full.c (_initialize_record_full) <set record full
8334 insn-number-max>: Likewise.
8335 * record.c (_initialize_record) <set record
8336 instruction-history-size, set record function-call-history-size>:
8338 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8340 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8342 * source.c (_initialize_source) <set listsize>: Add help text.
8343 * utils.c (initialize_utils) <set height, set width>: Likewise.
8344 <set pagination>: Mention "set height unlimited".
8345 * valprint.c (_initialize_valprint) <set print elements, set print
8346 repeats>: Document "unlimited".
8348 2013-04-10 Pedro Alves <palves@redhat.com>
8350 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8351 instead of disconnect_tracing.
8352 * infcmd.c (detach_command, disconnect_command): Call
8353 query_if_trace_running. Adjust.
8354 * top.c: Include "tracepoint.h".
8355 (quit_target): Delete. Contents moved ...
8356 (quit_force): ... here. Wrap each stage of teardown in
8357 TRY_CATCH. Call disconnect_tracing before detaching.
8359 2013-04-10 Hui Zhu <hui@codesourcery.com>
8360 Yao Qi <yao@codesourcery.com>
8362 * configure.ac: Check libbabeltrace is installed.
8363 * config.in: Regenerate.
8364 * configure: Regenerate.
8365 * Makefile.in (LIBBABELTRACE): New.
8366 (CLIBS): Add LIBBABELTRACE.
8367 * ctf.c: Include "exec.h".
8368 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8369 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8370 (ctf_save_metadata_header): Define new type aliases in
8372 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8373 in metadata. Start a new faked packet for trace status.
8374 (ctf_write_status): Write trace status to CTF.
8375 (ctf_write_uploaded_tsv): Write TSV to CTF.
8376 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8377 (ctf_write_definition_end): End the faked packet.
8379 (ctx, ctf_iter, trace_dirname): New.
8380 (start_pos): New variable.
8381 (ctf_destroy, ctf_open_dir, ctf_open): New.
8382 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8384 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8385 (ctf_fetch_registers, ctf_xfer_partial): New.
8386 (ctf_get_trace_state_variable_value): New.
8387 (ctf_get_tpnum_from_frame_event): New.
8388 (ctf_get_traceframe_address): New.
8389 (ctf_trace_find, ctf_has_stack): New.
8390 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8391 (ctf_get_trace_status, ctf_read_status): New.
8392 (_initialize_ctf): New.
8393 * tracepoint.c (get_tracepoint_number): New
8394 (get_uploaded_tsv): Remove 'static'.
8395 (struct traceframe_info, trace_regblock_size): Move it to ...
8396 * tracepoint.h: ... here.
8397 (get_tracepoint_number): Declare it.
8398 (get_uploaded_tsv): Declare it.
8400 * NEWS: Mention new configure option.
8402 2013-04-10 Pedro Alves <palves@redhat.com>
8403 Hui Zhu <hui@codesourcery.com>
8405 * breakpoint.c (dprintf_re_set): New.
8406 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8409 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8411 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8412 Remove solib-svr4.o from the list.
8414 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8416 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8417 Use gdb_assert_not_reached instead of invalid boolean expression.
8419 2013-04-09 Pedro Alves <palves@redhat.com>
8421 * remote.c (unpush_and_perror): New function.
8422 (readchar, remote_serial_write): Use it.
8424 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8426 * NEWS: Mention new btrace RSP packets.
8428 2013-04-08 Tom Tromey <tromey@redhat.com>
8430 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8433 2013-04-08 Tom Tromey <tromey@redhat.com>
8435 * maint.c (print_bfd_section_info): Print the section index.
8436 * symmisc.c (dump_msymbols): Print the section index.
8438 2013-04-08 Tom Tromey <tromey@redhat.com>
8441 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8442 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8443 * breakpoint.c (resolve_sal_pc): Update.
8444 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8445 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8446 (minsym_lookup_iterator_cb): Use it.
8447 (default_read_var_value): Update.
8448 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8450 * infcmd.c (jump_command): Update.
8451 * linespec.c (minsym_found): Update.
8452 * maint.c (maintenance_translate_address): Update.
8453 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8454 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8455 * parse.c (write_exp_msymbol): Update.
8456 * printcmd.c (address_info): Update.
8457 * psymtab.c (find_pc_sect_psymbol): Update.
8458 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8460 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8461 Don't initialize SYMBOL_OBJ_SECTION.
8462 * spu-tdep.c (spu_catch_start): Update.
8463 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8464 * symmisc.c (dump_msymbols, print_symbol): Update.
8465 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8466 how fallback section is computed.
8467 (fixup_symbol_section): Update.
8468 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8470 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8471 Initialize SYMBOL_SECTION.
8472 * symtab.h (struct general_symbol_info) <section>: Update comment.
8473 <obj_section>: Remove.
8474 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8475 (SYMBOL_OBJFILE): New macro.
8477 2013-04-08 Tom Tromey <tromey@redhat.com>
8479 * coffread.c (record_minimal_symbol): Update.
8480 * dbxread.c (record_minimal_symbol): Update.
8481 * elfread.c (record_minimal_symbol): Update.
8482 * machoread.c (macho_symtab_add_minsym): Update.
8483 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8485 * minsyms.c (prim_record_minimal_symbol): Update.
8486 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8488 (prim_record_minimal_symbol_and_info): Likewise.
8489 * minsyms.h (prim_record_minimal_symbol_full)
8490 (prim_record_minimal_symbol_and_info): Update.
8491 * symtab.c (allocate_symbol, initialize_symbol)
8492 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8493 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8496 2013-04-08 Tom Tromey <tromey@redhat.com>
8499 * solib-som.c (som_solib_section_offsets): Use BFD section
8500 indices. Set offsets for all sections.
8501 * somread.c (som_symtab_read): Compute BFD section for
8502 symbol. Use prim_record_minimal_symbol_and_info.
8503 (som_symfile_read): Fix comment.
8504 (struct find_section_offset_arg): New.
8505 (find_section_offset, set_section_index): New functions.
8506 (som_symfile_offsets): Use set_section_index to compute
8509 2013-04-08 Tom Tromey <tromey@redhat.com>
8511 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8512 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8513 gdb_bfd_section_index.
8514 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8516 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8518 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8520 * objfiles.c (add_to_objfile_sections_full): New function.
8521 (add_to_objfile_sections): Use it.
8522 (build_section_table): Rewrite.
8523 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8524 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8525 (struct objfile) <sections>: Update comment.
8526 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8528 (ALL_OBJSECTIONS): Use it.
8529 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8530 * solib-frv.c (frv_relocate_main_executable): Update.
8531 * solib-target.c (solib_target_relocate_section_addresses):
8532 Use gdb_bfd_section_index.
8533 * symfile.c (build_section_addr_info_from_section_table):
8534 Use gdb_bfd_section_index.
8535 (build_section_addr_info_from_bfd, place_section): Likewise.
8536 * symtab.c (fixup_section): Update.
8537 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8539 2013-04-08 Tom Tromey <tromey@redhat.com>
8541 * minsyms.h (struct bound_minimal_symbol): New.
8542 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8543 Remove objfile argument.
8544 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8545 Return bound_minimal_symbol.
8546 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8547 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8548 Return bound_minimal_symbol.
8549 (in_gnu_ifunc_stub): Update.
8550 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8551 Remove 'objfile_p' argument.
8552 (lookup_solib_trampoline_symbol_by_pc): Update.
8553 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8554 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8555 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8556 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8557 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8558 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8559 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8560 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8561 stack.c, symtab.c, tui/tui-disasm.c: Update.
8563 2013-04-08 Tom Tromey <tromey@redhat.com>
8565 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8566 Use symbol's obstack, not an objfile.
8567 * coffread.c (process_coff_symbol): Update.
8568 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8569 * jv-lang.c (add_class_symbol): Update.
8570 * mdebugread.c (new_symbol): Update.
8571 * minsyms.c (prim_record_minimal_symbol_full)
8572 (terminate_minimal_symbol_table): Update.
8573 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8574 * stabsread.c (define_symbol, read_enum_type): Update.
8575 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8576 Handle Ada specially.
8577 (symbol_set_language): Add 'obstack' argument.
8578 (symbol_set_names): Update.
8579 (symbol_natural_name, symbol_demangled_name): Always use
8581 * symtab.h (struct general_symbol_info)
8582 <language_specific::obstack>: New field.
8583 <ada_mangled>: New field.
8584 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8585 (symbol_set_language): Update.
8587 2013-04-08 Tom Tromey <tromey@redhat.com>
8589 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8590 Take an obstack, not an objfile.
8591 (symbol_set_names): Update.
8592 * symtab.h (symbol_set_demangled_name): Update.
8594 2013-04-08 Tom Tromey <tromey@redhat.com>
8596 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8598 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8599 (read_func_scope): Call allocate_template_symbol.
8600 (new_symbol_full): Call allocate_symbol.
8601 * jit.c (finalize_symtab): Call allocate_symbol.
8602 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8603 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8604 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8605 (common_block_end): Call allocate_symbol.
8606 * symtab.c (allocate_symbol, initialize_symbol)
8607 (allocate_template_symbol): New functions.
8608 * symtab.c (allocate_symbol, initialize_symbol)
8609 (allocate_template_symbol): Declare.
8610 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8612 2013-04-08 Pedro Alves <palves@redhat.com>
8613 Keith Seitz <keiths@redhat.com>
8615 * breakpoint.c (create_breakpoint): Rename
8616 "parse_condition_and_thread" parameter to "parse_arg". Update
8617 describing comment. If !PARSE_ARG, then error out if ARG is not
8618 the empty string after extracting the location.
8619 * breakpoint.h (create_breakpoint): Rename
8620 "parse_condition_and_thread" parameter to "parse_arg".
8622 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8624 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8626 2013-04-07 Yao Qi <yao@codesourcery.com>
8628 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8629 and 'addr2' to CORE_ADDR.
8630 * target.c (update_current_target): Update.
8631 * target.h (struct target_ops) <to_trace_find>: Change parameter
8633 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8634 'addr2' to CORE_ADDR.
8635 (tfile_trace_find): Likewise.
8636 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8637 Change local variable 'addr' to type CORE_ADDR.
8638 * tracepoint.h (tfind_1): Update declaration.
8640 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8642 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8643 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8646 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8648 * main.h (windows_get_absolute_argv0): ...to here.
8650 2013-04-05 Doug Evans <dje@google.com>
8652 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8653 (read_cutu_die_from_dwo): Add comments.
8654 (read_structure_type): Update comment.
8655 (read_enumeration_type, read_namespace_type): Update comment.
8656 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8658 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8660 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8661 * Makefile.in (gdb.z): Remove.
8662 (install-only): Remove $(man1dir) and gdb.1 installation.
8665 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8667 Fix compatibility with Linux kernel 3.8.3.
8668 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8669 to more inner block. Remove parsing of NUMBER from outer block.
8670 Parse NUMBER only if KEYWORD has been identified.
8672 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8674 Fix variable name shadowing.
8675 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8676 filename to mapsfilename and update its uses.
8678 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8680 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8681 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8682 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8683 details of the problem.
8685 2013-04-04 Pedro Alves <palves@redhat.com>
8686 Hui Zhu <hui@codesourcery.com>
8688 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8689 tracepoint, reset its STEP_COUNT and call validate_actionline.
8691 2013-04-03 Doug Evans <dje@google.com>
8693 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8694 read_die_and_siblings.
8695 (read_die_and_siblings): New function.
8696 (read_cutu_die_from_dwo): Dump die if requested.
8697 (read_die_and_children): Call read_full_die_1 and
8698 read_die_and_siblings_1.
8699 (read_full_die): Dump die if requested.
8701 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8703 * dwarf2read.c (struct dwo_file): New member comp_dir.
8704 Rename member name to dwo_name. All uses updated.
8705 (hash_dwo_file): Include comp_dir in computation.
8706 (eq_dwo_file): Ditto.
8707 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8708 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8710 * psymtab.c (read_psymtabs_with_fullname): Don't call
8711 psymtab_to_fullname if the basenames are different.
8713 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8715 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8716 New entry about "fullname" presence.
8718 2013-04-03 Pedro Alves <palves@redhat.com>
8720 * NEWS: Mention x86_64/Cygwin as new native configuration.
8722 2013-04-02 Doug Evans <dje@google.com>
8724 * dwarf2read.c (read_structure_type): Fix typo in comment.
8726 2013-04-02 Pedro Alves <palves@redhat.com>
8728 * NEWS: Mention "set/show debug aarch64", "set/show debug
8729 coff-pe-read" and "set/show debug mach-o".
8731 2013-04-02 Pedro Alves <palves@redhat.com>
8733 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8735 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8737 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8738 gdb_string.h is now in common/.
8740 2013-04-02 Pedro Alves <palves@redhat.com>
8742 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8743 under "New options".
8745 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8749 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8751 2013-04-02 Pedro Alves <palves@redhat.com>
8755 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8756 (remote_serial_write): New function.
8757 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8759 2013-04-01 Jiong Wang <jiwang@tilera.com>
8761 * NEWS: Mention TILE-Gx in "New native configurations" and
8762 "New targets" sections.
8764 2013-04-01 Doug Evans <dje@google.com>
8766 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8767 (process_enumeration_scope): Simplify.
8769 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8771 (struct signatured_type): ... to here.
8772 (sig_type_ptr): New typedef.
8773 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8774 out of union 't'. All uses updated.
8775 (dw2_get_file_names_reader): Assert not called for a type unit.
8776 (dw2_get_file_names): Assert not called for a type unit or type
8778 (build_type_psymtabs_reader): Assert called for a type unit.
8779 (build_type_psymtab_dependencies): Assert called for a type unit group.
8781 * dwarf2read.c (free_dwo_file): Add comment.
8782 (dwarf2_per_objfile_free): Unref dwp bfd.
8784 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8786 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8787 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8788 (read_pe_exported_syms): Remove unused 'exportix'.
8789 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8790 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8791 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8793 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8795 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8796 (print_it_watchpoint): Remove unused 'bl'.
8797 (say_where): Remove unused 'uiout'.
8798 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8799 (bkpt_breakpoint_hit): Remove unused 'b'.
8800 (internal_bkpt_print_it): Remove unused 'uiout'.
8801 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8803 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8806 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8808 2013-03-29 Doug Evans <dje@google.com>
8810 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8811 Delete arg is_dwp. All callers updated.
8812 (open_dwp_file): New function.
8813 (open_and_init_dwp_file): Call it.
8814 (get_dwp_file): New function.
8815 (lookup_dwo_cutu): Call it.
8817 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8818 unnecessary, cleanup.
8820 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8822 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8823 (lookup_dwo_unit): New function.
8824 (init_cutu_and_read_dies): Move DWO handling to new functions.
8826 * dwarf2read.c (struct signatured_type): Tweak comment.
8827 (struct dwo_unit): Tweak comment.
8828 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8829 (create_dwo_debug_info_hash_table): Tweak comment.
8830 (dwarf2_per_cu_offset_and_type): Tweak comment.
8832 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8833 missing .debug_types section.
8835 2013-03-29 Yao Qi <yao@codesourcery.com>
8837 * corelow.c: Include "completer.h".
8838 (_initialize_corelow): Call add_target_with_completer with
8839 argument 'filename_completer'.
8840 * tracepoint.c: Likewise.
8841 * exec.c (_initialize_exec): Likewise.
8842 * target.c (add_target): Rename to ...
8843 (add_target_with_completer): ... this. Call set_cmd_completer
8844 if parameter completer is not NULL.
8846 * target.h: Include "command.h".
8847 (add_target_with_completer): Declare it.
8849 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8851 * coffread.c (is_import_fixup_symbol): New function.
8852 (record_minimal_symbol): Use is_import_fixup_symbol to
8853 detect import fixup symbols, and discard them.
8855 2013-03-28 Doug Evans <dje@google.com>
8857 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8858 types hash table until we know we need it.
8860 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8863 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8864 All callers updated.
8865 (dw2_print_stats): Print #read CUs too.
8866 (dump_die_shallow): Print signatured types better.
8868 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8869 info_or_types_section to section. All uses updated.
8870 (struct dwo_unit): Ditto.
8872 2013-03-28 Pedro Alves <palves@redhat.com>
8874 * NEWS (New options): New section.
8875 (New options): Mention set/show remote trace-status-packet.
8876 * remote.c (PACKET_qTStatus): New enumeration value.
8877 (remote_get_trace_status): Skip sending qTStatus if the packet is
8878 disabled. Use packet_ok.
8879 (_initialize_remote): Register a configuration command for
8882 2013-03-28 Doug Evans <dje@google.com>
8884 * symfile.c (find_separate_debug_file): Add comment.
8885 (terminate_after_last_dir_separator): Tweak comment.
8887 * dwarf2read.c (create_partial_symtab): Add forward decl.
8888 (create_partial_symtab): Move to be closer to other psymtab functions.
8889 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8891 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8892 (compute_symtab_includes): Remove unnecessary forward declaration.
8893 (die_needs_namespace): Add comment marking group of functions for
8894 dwarf2 name computation.
8896 * typeprint.c (_initialize_typeprint): Improve type help text.
8898 * python/python.c (finish_python_initialization): Provide suggestion
8899 for how to tell gdb to find its python files.
8901 2013-03-28 Pedro Alves <palves@redhat.com>
8905 * source.c (_initialize_source): Change back "set listsize" to an
8908 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8911 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8913 2013-03-27 Pedro Alves <palves@redhat.com>
8915 * top.c (history_size): Rename to ...
8916 (history_size_setshow_var): ... this. Add comment.
8917 (show_commands): Use readline's 'history_length' instead of
8918 computing the history length by calling history_get in a loop.
8919 (set_history_size_command): Error out for sizes over INT_MAX.
8920 Restore previous history size on invalid size.
8921 (init_history): If HISTSIZE is negative, leave the history size as
8923 (init_main): Adjust.
8925 2013-03-27 Pedro Alves <palves@redhat.com>
8927 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8928 coff_pe_read" command to "set debug coff-pe-read".
8930 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8932 * record.c (command_size_to_target_size): Fix size comparison.
8933 Change parameter type from pointer to integer to integer.
8936 2013-03-27 Pierre Muller <muller@sourceware.org>
8938 * windows-nat.c (handle_output_debug_string): Avoid typecast
8939 from integer of different size warning.
8941 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8943 * windows-nat.c (handle_output_debug_string): Add empty line
8944 after local block variable definition.
8946 2013-03-26 Pedro Alves <palves@redhat.com>
8948 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8949 (net_open): Make 'polls' local unsigned.
8951 2013-03-26 Pedro Alves <palves@redhat.com>
8953 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8954 a zuinteger command instead of uinteger.
8956 2013-03-26 Pedro Alves <palves@redhat.com>
8958 * record-full.c (record_full_insn_num): Make it unsigned.
8959 (record_full_check_insn_num, record_full_message)
8960 (record_full_registers_change, record_full_xfer_partial): Remove
8961 record_full_insn_max_num check (it's always != 0).
8962 (record_full_info, record_full_restore): Use %u as format string.
8963 (): Use %u as format string.
8964 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8965 check (it's always != 0).
8967 2013-03-26 Pedro Alves <palves@redhat.com>
8969 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8970 and "set dcache size" commands zuinteger instead of uinteger.
8972 2013-03-26 Pedro Alves <palves@redhat.com>
8974 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8975 command zuinteger instead of uinteger.
8977 2013-03-26 Pedro Alves <palves@redhat.com>
8979 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8980 zuinteger instead of uinteger.
8982 2013-03-26 Pedro Alves <palves@redhat.com>
8984 * record.c (record_insn_history_size_setshow_var)
8985 (record_call_history_size_setshow_var): New globals.
8986 (command_size_to_target_size): New function.
8987 (cmd_record_insn_history, cmd_record_call_history): Use
8988 command_size_to_target_size instead of cast.
8989 (validate_history_size, set_record_insn_history_size)
8990 (set_record_call_history_size): New functions.
8991 (_initialize_record): Install set_record_insn_history_size and
8992 set_record_call_history_size as "set" hooks of "set record
8993 instruction-history-size" and "set record
8994 function-call-history-size".
8996 2013-03-26 Pedro Alves <palves@redhat.com>
8998 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8999 use with history_max_entries use. Remove FIXME note.
9001 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9003 * record-btrace.c (record_btrace_close): Call
9004 record_btrace_auto_disable.
9006 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9008 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9010 2013-03-25 Doug Evans <dje@google.com>
9012 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9014 2013-03-25 Tom Tromey <tromey@redhat.com>
9017 * c-exp.y (exp): Add new productions for destructors after '.' and
9019 (write_destructor_name): New function.
9021 2013-03-25 Tom Tromey <tromey@redhat.com>
9024 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9025 value_struct_elt, not lookup_struct_elt_type.
9026 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9027 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9028 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9030 2013-03-25 Yao Qi <yao@codesourcery.com>
9032 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9033 instead of '_mkdir'.
9035 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9037 * windows-nat.c (windows_get_absolute_argv0): New function.
9038 * windows-nat.h: Add its prototype.
9040 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9041 Use IS_DIR_SEPARATOR instead of looking for a character inside
9042 SLASH_STRING. Include filenames.h.
9043 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9044 relocate_gdb_directory works when passed gdb_program_name.
9045 Include windows-nat.h.
9047 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9049 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9050 * remote.c (trace_error): Remove the special handling of '2'.
9051 (readchar) <SERIAL_EOF>
9052 (readchar) <SERIAL_ERROR>
9053 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9054 (remote_get_trace_status): Call throw_exception if EX is
9056 * utils.c (perror_with_name): Rename to ...
9057 (throw_perror_with_name): ... here. New parameter errcode, describe it
9058 in the function comment.
9059 (perror_with_name): New function wrapper.
9060 * utils.h (enum errors): New stub declaration.
9061 (throw_perror_with_name): New declaration.
9063 2013-03-22 Pedro Alves <palves@redhat.com>
9064 Yao Qi <yao@codesourcery.com>
9065 Mark Kettenis <kettenis@gnu.org>
9067 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9068 Don't let the user set the value to UINT_MAX directly.
9069 <var_integer>: Don't let the user set the value to INT_MAX
9072 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9074 * remote.c (remote_unpush_target): New function.
9075 (remote_open_1): Remove two pop_target calls, update one comment, add
9076 comment to target_preopen call. Replace pop_target call by
9077 remote_unpush_target call.
9078 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9079 pop_target calls by remote_unpush_target calls.
9081 2013-03-22 Pedro Alves <palves@redhat.com>
9083 * linux-nat.c (linux_child_follow_fork): Don't call
9084 linux_enable_event_reporting.
9085 (linux_handle_extended_wait): Don't call
9086 linux_enable_event_reporting.
9088 2013-03-22 Pedro Alves <palves@redhat.com>
9090 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9091 use it to rewrite the trampoline buffers with type gdb_byte[], and
9092 undefine the macro. Remove char* cast.
9094 2013-03-21 Doug Evans <dje@google.com>
9096 New commands "mt set per-command {space,time,symtab} {on,off}".
9098 * event-top.c: #include "maint.h".
9099 * main.c: #include "maint.h".
9100 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9101 timeval-utils.h, maint.h, cli/cli-setshow.h.
9102 (per_command_time, per_command_space): New static globals.
9103 (per_command_symtab): New static global.
9104 (per_command_setlist, per_command_showlist): New static globals.
9105 (struct cmd_stats): Move here from utils.c.
9106 (set_per_command_time): Renamed from set_display_time in utils.c
9107 and moved here. All callers updated.
9108 (set_per_command_space): Renamed from set_display_space in utils.c
9109 and moved here. All callers updated.
9110 (count_symtabs_and_blocks): New function.
9111 (report_command_stats): Moved here from utils.c. Add support for
9112 printing symtab stats. Only print data if enabled before command
9114 (make_command_stats_cleanup): Ditto.
9115 (sert_per_command_cmd, show_per_command_cmd): New functions.
9116 (_initialize_maint_cmds): Add new commands
9117 mt set per-command {space,time,symtab} {on,off}.
9118 * maint.h: New file.
9119 * top.c: #include "maint.h".
9120 * utils.c (reset_prompt_for_continue_wait_time): New function.
9121 (get_prompt_for_continue_wait_time): New function.
9122 * utils.h (reset_prompt_for_continue_wait_time): Declare
9123 (get_prompt_for_continue_wait_time): Declare.
9124 (make_command_stats_cleanup): Moved to maint.h.
9125 (set_display_time, set_display_space): Moved to maint.h and renamed
9126 to set_per_command_time, set_per_command_space.
9127 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9128 parse_binary_operation and made non-static. Don't call error,
9129 just return an error marker. All callers updated.
9130 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9132 2013-03-21 Tom Tromey <tromey@redhat.com>
9134 * symfile.c (alloc_section_addr_info): Update header. Don't set
9135 'num_sections' field.
9136 (build_section_addr_info_from_section_table): Set 'num_sections'.
9137 (build_section_addr_info_from_bfd): Likewise.
9138 (build_section_addr_info_from_objfile): Remove dead loop
9140 (free_section_addr_info): Unconditionally call xfree.
9141 (relative_addr_info_to_section_offsets, addrs_section_sort)
9142 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9144 (syms_from_objfile_1): Remove dead 'if' condition. Check
9146 (add_symbol_file_command): Set 'num_sections'.
9147 * symfile-mem.c (symbol_file_add_from_memory): Set
9149 * somread.c (som_symfile_offsets): Remove dead loop condition.
9150 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9151 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9153 2013-03-21 Tom Tromey <tromey@redhat.com>
9155 * tracepoint.h (decode_agent_options): Add 'trace_string'
9157 * tracepoint.c (decode_agent_options): Add 'trace_string'
9159 (validate_actionline): Update.
9160 (collect_symbol): Add 'trace_string' argument.
9161 (struct add_local_symbols_data) <trace_string>: New field.
9162 (do_collect_symbol): Update.
9163 (add_local_symbols): Add 'trace_string' argument.
9164 (encode_actions_1): Update.
9165 (trace_dump_actions): Update.
9166 * dwarf2loc.c (access_memory): Update.
9167 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9168 * ax-general.c (new_agent_expr): Update.
9169 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9170 (gen_trace_for_return_address): Add argument.
9171 (trace_kludge, trace_string_kludge): Remove.
9172 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9173 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9174 (gen_trace_for_var): Add 'trace_string' argument.
9175 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9176 (gen_printf, agent_eval_command_one): Update.
9178 2013-03-21 Tom Tromey <tromey@redhat.com>
9181 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9182 Handle FILENAME token.
9184 2013-03-21 Tom Tromey <tromey@redhat.com>
9186 * c-exp.y (YYPRINT): Define.
9187 (c_print_token): New function.
9189 2013-03-21 Tom Tromey <tromey@redhat.com>
9191 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9193 2013-03-21 Yao Qi <yao@codesourcery.com>
9195 * ctf.c: Include "gdb_stat.h".
9196 [USE_WIN32API]: New macro 'mkdir'.
9197 (ctf_start): Use permission bits macros if they are defined.
9199 2013-03-20 Keith Seitz <keiths@redhat.com>
9201 * breakpoint.h (struct breakpoint): Add comment to
9202 extra_string indicating that this member is mallod'd.
9203 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9205 2013-03-20 Pedro Alves <palves@redhat.com>
9209 * cli/cli-setshow.c (do_set_command)
9210 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9211 the result of parsing the command argument. Throw error if the
9212 value is greater than UINT_MAX. Print the invalid value with
9214 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9215 result of parsing the command argument. Throw error if the value
9216 is greater than INT_MAX, not greater or equal. Also throw error
9217 if the value is less than INT_MIN. Print the invalid value with
9219 <var_zuinteger_unlimited>: Throw error if the value is greater
9220 than INT_MAX, not greater or equal.
9221 (do_show_command) <var_integer, var_zinteger,
9222 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9224 2013-03-20 Tom Tromey <tromey@redhat.com>
9226 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9228 * dwarf2read.c (read_func_scope): Remove old FIXME.
9229 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9231 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9232 Unconditionally call via computed ops, if possible.
9233 * printcmd.c (address_info): Unconditionally call via computed ops,
9235 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9237 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9238 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9241 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9242 Tom Tromey <tromey@redhat.com>
9245 * coffread.c (coff_register_index): New global.
9246 (process_coff_symbol, coff_read_enum_type): Set
9247 SYMBOL_ACLASS_INDEX.
9248 (_initialize_coffread): Initialize new global.
9249 * dwarf2loc.c (locexpr_find_frame_base_location)
9250 (dwarf2_block_frame_base_locexpr_funcs)
9251 (loclist_find_frame_base_location)
9252 (dwarf2_block_frame_base_loclist_funcs): New.
9253 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9254 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9255 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9256 (dwarf2_block_frame_base_loclist_funcs): New.
9257 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9258 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9260 (read_func_scope): Update.
9261 (fixup_go_packaging, mark_common_block_symbol_computed)
9262 (var_decode_location, new_symbol_full, dwarf2_const_value):
9263 Set SYMBOL_ACLASS_INDEX.
9264 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9265 (_initialize_dwarf2_read): Initialize new globals.
9266 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9267 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9268 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9270 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9271 (_initialize_mdebugread): Initialize new globals.
9272 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9273 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9274 (stab_register_index, stab_regparm_index): New globals.
9275 (define_symbol, read_enum_type, common_block_end): Set
9276 SYMBOL_ACLASS_INDEX.
9277 (_initialize_stabsread): Initialize new globals.
9278 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9280 (MAX_SYMBOL_IMPLS): New define.
9281 (register_symbol_computed_impl, register_symbol_block_impl)
9282 (register_symbol_register_impl)
9283 (initialize_ordinary_address_classes): New functions.
9284 (_initialize_symtab): Call initialize_ordinary_address_classes.
9285 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9286 (struct symbol_impl): New.
9287 (SYMBOL_ACLASS_BITS): New define.
9288 (struct symbol) <aclass, ops>: Remove fields.
9289 <aclass_index>: New field.
9290 (symbol_impls): Declare.
9291 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9292 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9293 (register_symbol_computed_impl, register_symbol_block_impl)
9294 (register_symbol_register_impl): Declare.
9295 (struct symbol_computed_ops): Add location_has_loclist.
9296 (struct symbol_block_ops): New.
9297 (SYMBOL_BLOCK_OPS): New.
9298 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9300 2013-03-20 Tom Tromey <tromey@redhat.com>
9302 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9303 (print_partial_symbols, recursively_search_psymtabs): Use
9306 2013-03-20 Pierre Muller <muller@sourceware.org>
9308 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9309 addtion, subtraction, multiplication and division binary operator.
9311 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9314 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9315 * bsd-kvm.c (bsd_kvm_close): Likewise.
9316 * bsd-uthread.c (bsd_uthread_close): Likewise.
9317 * corelow.c (core_close): Likewise.
9318 (core_close_cleanup): Remove parameter quitting from a caller.
9319 * event-top.c (async_disconnect): Likewise.
9320 * exec.c (exec_close_1): Remove parameter quitting.
9321 * go32-nat.c (go32_close): Likewise.
9322 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9323 parameter quitting from a caller.
9324 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9326 (mips_linux_close): Remove parameter quitting. Remove parameter
9327 quitting from a caller.
9328 * monitor.c (monitor_close): Remove parameter quitting.
9329 * monitor.h (monitor_close): Likewise.
9330 * record-btrace.c (record_btrace_close): Likewise.
9331 * record-full.c (record_full_close): Likewise.
9332 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9333 it also from fprintf_unfiltered.
9334 * remote-mips.c (mips_close): Remove parameter quitting.
9335 (mips_detach): Remove parameter quitting from a caller.
9336 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9337 (gdbsim_close): Remove duplicate function comment. Remove parameter
9338 quitting and remove it also from printf_filtered.
9339 * remote.c (remote_close): Remove parameter quitting.
9340 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9341 * target.c (update_current_target): Remove parameter int from to_close
9343 (push_target, unpush_target, pop_target): Remove parameter quitting from
9345 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9346 Remove parameter quitting from a caller.
9347 (target_preopen): Remove parameter quitting from a caller.
9348 (target_close): Remove parameter quitting. Remove parameter quitting
9349 from a caller two times. Remove parameter quitting also from
9351 * target.h (struct target_ops): Remove parameter quitting and as int
9352 from fields to_xclose and to_close.
9353 (extern struct target_ops current_target):
9354 (target_close, pop_all_targets): Remove parameter quitting. Update the
9356 (pop_all_targets_above): Remove parameter quitting.
9357 * top.c (quit_target): Remove parameter quitting from a caller.
9358 * tracepoint.c (tfile_close): Remove parameter quitting.
9359 * windows-nat.c (windows_close): Remove parameter quitting.
9361 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9363 * windows-nat.c (handle_output_debug_string): Replace call
9364 to string_to_core_addr with call to strtoull.
9366 2013-03-20 Yao Qi <yao@codesourcery.com>
9368 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9369 and write it to CTF metadata.
9371 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9373 * windows-nat.c (handle_output_debug_string): Change type of n to
9374 SIZE_T to avoid crash on 64 bit systems.
9376 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9378 * python/python-internal.h (HAVE_SNPRINTF)
9379 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9380 about redefinition of snprintf by pyerrors.h.
9382 2013-03-15 Steve Ellcey <sellcey@mips.com>
9384 * remote-sim.c (sim_command_completer): Make char arguments const.
9386 2013-03-15 Tom Tromey <tromey@redhat.com>
9389 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9391 2013-03-14 Tom Tromey <tromey@redhat.com>
9393 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9395 (get_file_crc): Move from symfile.c.
9396 (gdb_bfd_crc): New function.
9397 * gdb_bfd.h (gdb_bfd_crc): Declare.
9398 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9399 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9400 (separate_debug_file_exists): Use gdb_bfd_crc.
9402 2013-03-14 Tom Tromey <tromey@redhat.com>
9404 * symfile.c (get_debug_link_info): Remove.
9405 (find_separate_debug_file_by_debuglink): Use
9406 bfd_get_debug_link_info.
9408 2013-03-14 Tom Tromey <tromey@redhat.com>
9410 * symtab.c (error_in_psymtab_expansion): New function.
9411 (lookup_symbol_aux_quick)
9412 (basic_lookup_transparent_type_quick): Remove "last resort"
9413 code. Use error_in_psymtab_expansion.
9415 2013-03-14 Doug Evans <dje@google.com>
9416 Jan Kratochvil <jan.kratochvil@redhat.com>
9418 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9419 any successful compare_filenames_for_search or FILENAME_CMP.
9420 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9421 * symtab.c (iterate_over_some_symtabs): Likewise.
9423 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9425 * source.c (print_source_lines_base): Make a local copy of
9428 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9429 Jan Kratochvil <jan.kratochvil@redhat.com>
9431 * source.c (print_source_lines_base): Suppress "file" for TUI.
9433 2013-03-14 Keith Seitz <keiths@redhat.com>
9434 Alan Matsuoka <alanm@redhat.com>
9438 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9440 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9443 2013-03-14 Yao Qi <yao@codesourcery.com>
9445 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9446 status to tfile if trace is stopped by command 'tstop'.
9448 2013-03-14 Yao Qi <yao@codesourcery.com>
9450 * tracepoint.c (tfile_write_status): Write trace notes and user
9451 name into tfile if they are not NULL.
9453 2013-03-14 Hui Zhu <hui@codesourcery.com>
9454 Yao Qi <yao@codesourcery.com>
9456 * Makefile.in (REMOTE_OBS): Add ctf.o.
9457 (SFILES): Add ctf.c.
9458 (HFILES_NO_SRCDIR): Add ctf.h.
9459 * ctf.c, ctf.h: New files.
9460 * tracepoint.c: Include 'ctf.h'.
9461 (collect_pseudocommand): Remove static.
9462 (trace_save_command): Parse option "-ctf".
9463 Produce different trace file writers per option.
9464 Adjust output message.
9465 (trace_save_tfile, trace_save_ctf): New.
9466 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9467 * mi/mi-main.c: Include 'ctf.h'.
9468 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9469 trace_save_tfile or trace_save_ctf.
9470 * NEWS: Mention these changes.
9472 2013-03-14 Yao Qi <yao@codesourcery.com>
9474 * tracepoint.c (trace_file_writer_xfree): New.
9475 (struct tfile_writer_data): New.
9476 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9477 (tfile_write_header, tfile_write_regblock_type): New.
9478 (tfile_write_status, tfile_write_uploaded_tsv): New.
9479 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9480 (tfile_write_raw_data, (tfile_end): New.
9481 (tfile_write_ops): New global variable.
9482 (TRACE_WRITE_R_BLOCK): New macro.
9483 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9484 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9485 (TRACE_WRITE_V_BLOCK): New macro.
9486 (trace_save): Add extra one parameter WRITER. Make it static.
9487 Use WRITER to writer trace.
9488 (tfile_trace_file_writer_new): New.
9489 (trace_save_command): Caller update.
9490 (trace_save_tfile): Write trace data in TFILE format.
9491 * tracepoint.h (struct trace_frame_write_ops): New.
9492 (struct trace_file_write_ops): New.
9493 (struct trace_file_writer): New.
9494 (trace_save): Remove its declaration.
9495 (trace_save_tfile): Declare it.
9496 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9497 instead of trace_save.
9499 2013-03-13 Pedro Alves <palves@redhat.com>
9501 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9503 2013-03-13 Pedro Alves <palves@redhat.com>
9505 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9507 * demangle.c (current_demangling_style_string): Make it const.
9508 (set_demangling_command): Assert the demangling style is known.
9509 Remove all handling of unknown styles. Set
9510 'current_demangling_style_string' to an element of the
9511 demangling_style_names array.
9512 (set_demangling_style): Delete.
9513 (_initialize_demangler): Set current_demangling_style_string to the
9514 element of the demangling_style_names array that corresponds to
9515 the default demangling style. Remove FIXME note. Don't call
9516 set_demangling_style.
9517 * gdb-demangle.h (set_demangling_style): Remove declaration.
9519 2013-03-13 Pedro Alves <palves@redhat.com>
9521 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9523 (ada_make_symbol_completion_list): Make "text0" parameter const.
9524 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9525 * breakpoint.c (condition_completer): Make "text" and "word"
9526 parameters const. Adjust.
9527 (check_tracepoint_command): Adjust to validate_actionline
9529 (catch_syscall_completer): Make "text" and "word" parameters
9531 * cli/cli-cmds.c (show_user): Make "comname" local const.
9532 (valid_command_p): Make "command" parameter const.
9533 (alias_command): Make "alias_prefix" and "command_prefix" locals
9535 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9536 (add_alias_cmd): Make "name" and "oldname" parameters const.
9537 Adjust. No longer make copy of OLDNAME.
9538 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9539 (add_setshow_cmd_full, add_setshow_enum_cmd)
9540 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9541 (add_setshow_filename_cmd, add_setshow_string_cmd)
9542 (add_setshow_string_noescape_cmd)
9543 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9544 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9545 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9546 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9547 Make "name" parameter const.
9548 (help_cmd): Rename "command" parameter to "arg". New const local
9550 (find_cmd): Make "command" parameter const.
9551 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9552 deprecated_cmd_warning prototype change.
9553 (undef_cmd_error): Make "cmdtype" parameter const.
9554 (lookup_cmd): Make "line" parameter const.
9555 (deprecated_cmd_warning): Change type of "text" parameter to
9556 pointer to const char, from pointer to pointer to char. Adjust.
9557 (lookup_cmd_composition): Make "text" parameter const.
9558 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9560 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9562 * cli/cli-script.c (validate_comname): Make "tem" local const.
9563 (define_command): New const local "tem_c". Use it in calls to
9565 (document_command): Make "tem" and "comfull" locals const.
9566 (show_user_1): Make "prefix" and "name" parameters const.
9567 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9569 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9570 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9571 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9572 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9573 (complete_on_enum, add_setshow_enum_cmd)
9574 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9575 (add_setshow_filename_cmd, add_setshow_string_cmd)
9576 (add_setshow_string_noescape_cmd)
9577 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9578 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9579 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9580 Change prototypes, constifying strings.
9581 * completer.c (noop_completer, filename_completer): Make "text"
9582 and "prefix" parameters const.
9583 (location_completer, expression_completer)
9584 (complete_line_internal): Make "text" and "prefix" parameters
9586 (command_completer, signal_completer): Make "text" and "prefix"
9588 * completer.h (noop_completer, filename_completer)
9589 (expression_completer, location_completer, command_completer)
9590 (signal_completer): Change prototypes.
9591 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9593 * cp-abi.c (cp_abi_completer): Likewise.
9594 * expression.h (parse_expression_for_completion): Change
9596 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9598 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9599 * infrun.c (handle_completer): Make "text" and "word" parameters
9601 * interps.c (interpreter_completer): Make "text" and "word"
9603 * language.h (struct language_defn)
9604 <la_make_symbol_completion_list>: Make "text" and "word"
9606 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9607 (parse_exp_in_context): Rename to ...
9608 (parse_exp_in_context_1): ... this.
9609 (parse_exp_in_context): Reimplement, with const hack from
9611 (parse_expression_for_completion): Make "string" parameter const.
9612 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9613 to pointer to const char. Adjust.
9614 (print_command_1): Make "exp" parameter const.
9615 (output_command): Rename to ...
9616 (output_command_const): ... this. Make "exp" parameter const.
9617 (output_command): Reimplement.
9618 (x_command): Adjust.
9619 (display_command): Rename "exp" parameter to "arg". New "exp"
9620 local, const version of "arg".
9621 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9622 "cmd_name" local const.
9623 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9625 (cmdpy_completer): Make "text" and "word" parameters const.
9626 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9627 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9629 * remote.c (_initialize_remote): Make "cmd_name" local const.
9630 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9631 parameters const. Adjust.
9632 (completion_list_add_fields): Make "sym_text", "text" and "word"
9634 (struct add_name_data) <sym_text, text, word>: Make fields const.
9635 (default_make_symbol_completion_list_break_on): Make "text" and
9636 "word" parameters const. Adjust locals.
9637 (default_make_symbol_completion_list)
9638 (make_symbol_completion_list, make_symbol_completion_type)
9639 (make_symbol_completion_list_fn): Make "text" and "word"
9641 (make_file_symbol_completion_list): Make "text", "word" and
9642 "srcfile" parameters const. Adjust locals.
9643 (add_filename_to_list): Make "text" and "word" parameters const.
9644 (struct add_partial_filename_data) <text, word>: Make fields
9646 (make_source_files_completion_list): Make "text" and "word"
9648 * symtab.h (default_make_symbol_completion_list_break_on)
9649 (default_make_symbol_completion_list, make_symbol_completion_list)
9650 (make_symbol_completion_type enum type_code)
9651 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9652 (make_source_files_completion_list): Change prototype.
9653 * top.c (execute_command): Adjust to pass pointer to pointer to
9654 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9656 (set_verbose): Make "cmdname" local const.
9657 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9659 (validate_actionline): Make "line" parameter a pointer to const
9661 (encode_actions_1): Make "action_exp" local const, and adjust.
9662 (encode_actions): Adjust.
9663 (replace_comma): Delete.
9664 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9665 const, and adjust. Don't frob the action string while splitting
9666 it at commas. Instead, make a copy of each split substring in
9668 (trace_dump_command): Adjust to validate_actionline prototype
9670 * tracepoint.h (decode_agent_options, decode_agent_options)
9671 (encode_actions, validate_actionline): Change prototypes.
9672 * valprint.h (output_command): Delete declaration.
9673 (output_command_const): Declare.
9674 * value.c (function_destroyer): Cast const away in xfree call.
9676 2013-03-13 Pedro Alves <palves@redhat.com>
9678 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9679 rather than casting 'const char * const *' to 'const char **'.
9680 * ada-lex.l (processInt): Make "trailer" local const. Remove
9681 'const char **' cast.
9682 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9683 locals, and use those as strtol output pointer, instead than doing
9684 invalid casts to from 'const char **' to 'char **'.
9685 (_initialize_demangle): Remove cast.
9686 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9687 locals, and use those as strtol output pointer, instead than doing
9688 invalid casts to from 'const char **' to 'char **'.
9689 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9691 * stap-probe.c (stap_parse_register_operand)
9692 (stap_parse_single_operand): Likewise.
9694 2013-03-13 Yao Qi <yao@codesourcery.com>
9696 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9697 the last matched 'V' blcok in trace frame.
9699 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9701 * NEWS: Create a new section for the next release branch.
9702 Rename the section of the current branch, now that it has
9705 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9707 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9708 * version.in: Bump version to 7.6.50.20130312-cvs.
9710 2013-03-12 Keith Seitz <keiths@redhat.com>
9712 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9713 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9714 Remove temporary copy of input string.
9715 (mi_execute_command_wrapper): Make "cmd" const.
9716 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9717 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9719 (mi_parse): Make "cmd" const.
9721 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9723 2013-03-12 Keith Seitz <keiths@redhat.com>
9725 * ada-lang.c (ada_read_renaming_var_value): Pass const
9726 pointer to expression string to parse_exp_1.
9727 (create_excep_cond_exprs): Likewise.
9728 * ax-gdb.c (agent_eval_command_one): Likewise.
9729 (maint_agent_printf_command): Likewise.
9730 Constify much of the string handling/parsing.
9731 * breakpoint.c (set_breakpoint_condition): Pass const
9732 pointer to expression string to parse_exp_1.
9733 (update_watchpoint): Likewise.
9734 (parse_cmd_to_aexpr): Constify string handling.
9735 Pass const pointer to parse_exp_1.
9736 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9737 (find_condition_and_thread): Likewise.
9739 (watch_command_1): Make "arg" const.
9740 Constify string handling.
9741 Copy the expression string instead of changing the input
9743 (update_breakpoint_location): Pass const pointer to
9745 * eval.c (parse_and_eval_address): Make "exp" const.
9746 (parse_to_comma_and_eval): Make "expp" const.
9747 (parse_and_eval): Make "exp" const.
9748 * expression.h (parse_expression): Make argument const.
9749 (parse_exp_1): Make first argument const.
9750 * findcmd.c (parse_find_args): Treat "args" as const.
9751 * linespec.c (parse_linespec): Pass const pointer to
9752 linespec_expression_to_pc.
9753 (linespec_expression_to_pc): Make "exp_ptr" const.
9754 * parse.c (parse_exp_1): Make "stringptr" const.
9755 Make a copy of the expression to pass to parse_exp_in_context until
9756 this whole interface can be constified.
9757 (parse_expression): Make "string" const.
9758 * printcmd.c (ui_printf): Treat "arg" as const.
9759 Handle const strings.
9760 * tracepoint.c (validate_actionline): Pass const pointer to
9761 all calls to parse_exp_1.
9762 (encode_actions_1): Likewise.
9763 * value.h (parse_to_comma_and_eval): Make argument const.
9764 (parse_and_eval_address): Likewise.
9765 (parse_and_eval): Likewise.
9766 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9767 (varobj_set_value): Likewise.
9768 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9769 constify string handling.
9770 Pass const pointers to parse_and_eval_address and
9771 parse_to_comman_and_eval.
9772 * cli/cli-utils.c (skip_to_space): Rename to ...
9773 (skip_to_space_const): ... this. Handle const strings.
9774 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9775 skip_to_space_const.
9776 (skip_to_space_const): Declare.
9777 * common/format.c (parse_format_string): Make "arg" const.
9778 Handle const strings.
9779 * common/format.h (parse_format_string): Make "arg" const.
9780 * gdbserver/ax.c (ax_printf): Make "format" const.
9781 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9782 of the expression string.
9784 2013-03-12 Hui Zhu <hui@codesourcery.com>
9786 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9788 2013-03-12 Yao Qi <yao@codesourcery.com>
9789 Hui Zhu <hui@codesourcery.com>
9791 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9792 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9795 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9797 * ada-lex.l (rules): Only recognize 'thread' as a
9798 delimiter when followed by numerals, as for c-exp.y.
9799 Use new rewind_to_char function to rewind the input for
9800 expression-delimiting tokens.
9801 (rewind_to_char): New function.
9803 2013-03-11 Pedro Alves <palves@redhat.com>
9804 Jan Kratochvil <jan.kratochvil@redhat.com>
9806 * configure: Regenerate.
9807 * configure.ac (check dynamic export flag): Link python test with
9810 2013-03-11 Doug Evans <dje@google.com>
9811 Keith Seitz <keiths@redhat.com>
9813 * linespec.c (find_linespec_symbols): Call find_function_symbols
9814 first, and then call lookup_prefix_sym/find_method.
9816 2013-03-11 Pedro Alves <palves@redhat.com>
9818 * charset.c (convert_between_encodings): Don't cast between
9819 different pointer to pointer types. Instead, make the 'inp' local
9820 be of the type iconv expects.
9821 (wchar_iterate): Don't cast between different pointer to pointer
9822 types. Instead, use new pointer local of the type iconv expects.
9823 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9824 Add new local of type char pointer, and use it to get a
9825 char/string view of the byte buffer, instead of casting between
9826 pointer to pointer types.
9828 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9830 * remote.c (remote_set_trace_buffer_size): Move != operator
9831 to the start of next line to fix an ARI warning.
9833 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9835 * NEWS: Add record changes.
9837 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9839 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9840 the instruction history disassembly.
9841 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9842 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9844 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9846 * Makefile.in (SFILES): Add record-btrace.c
9847 (COMMON_OBS): Add record-btrace.o
9848 * record-btrace.c: New.
9849 * objfiles.c: Include btrace.h.
9850 (free_objfile): call btrace_free_objfile.
9852 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9854 * target.c (target_call_history, target_call_history_from,
9855 target_call_history_range): New.
9856 * target.h (target_ops) <to_call_history, to_call_history_from,
9857 to_call_history_range>: New fields.
9858 (target_call_history, target_call_history_from,
9859 target_call_history_range): New declaration.
9860 * record.c (get_call_history_modifiers, cmd_record_call_history,
9861 record_call_history_size): New.
9862 (_initialize_record): Add the "record function-call-history" command.
9863 Add "set/show record function-call-history-size" commands.
9864 * record.h (record_print_flag): New.
9866 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9868 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9869 to_insn_history_range>: New fields.
9870 (target_insn_history): New.
9871 (target_insn_history_from): New.
9872 (target_insn_history_range): New.
9873 * target.c (target_insn_history): New.
9874 (target_insn_history_from): New.
9875 (target_insn_history_range): New.
9876 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9877 (record_insn_history_size): New.
9878 (get_insn_number): New.
9879 (get_context_size): New.
9881 (get_insn_history_modifiers): New.
9882 (cmd_record_insn_history): New.
9883 (_initialize_record): Add "set/show record instruction-history-size"
9884 command. Add "record instruction-history" command.
9886 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9888 * record.h (record_disconnect): New.
9889 (record_detach): New.
9890 (record_mourn_inferior): New.
9892 * record-full.c (record_disconnect, record_detach,
9893 record_mourn_inferior, record_kill): Move to...
9894 * record.c: ...here.
9897 (record_unpush): New.
9898 (cmd_record_stop): Call record_stop. Replace unpush_target
9899 call with record_unpush call.
9900 (record_disconnect, record_detach): Assert that the target
9901 is of record stratum. Call record_unpush, record_stop, and
9903 (record_mourn_inferior, record_kill): Assert that the target
9904 is of record stratum. Call record_unpush and DEBUG.
9906 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9908 * record-full.h, record-full.c (record_memory_query): Rename
9910 (record_full_memory_query): ...this. Update all users.
9911 (record_arch_list_add_reg): Rename to ...
9912 (record_full_arch_list_add_reg): ...this. Update all users.
9913 (record_arch_list_add_mem): Rename to ...
9914 (record_full_arch_list_add_mem): ...this. Update all users.
9915 (record_arch_list_add_end): Rename to ...
9916 (record_full_arch_list_add_end): ...this. Update all users.
9917 (record_gdb_operation_disable_set): Rename to ...
9918 (record_full_gdb_operation_disable_set): ...this.
9921 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9923 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9924 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9925 (RECORD_IS_REPLAY): Renamed to ...
9926 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9927 (RECORD_FILE_MAGIC): Renamed to ...
9928 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9929 (record_mem_entry): Renamed to ...
9930 (record_full_mem_entry): ... this. Updated all users.
9931 (record_reg_entry): Renamed to ...
9932 (record_full_reg_entry): ... this. Updated all users.
9933 (record_end_entry): Renamed to ...
9934 (record_full_end_entry): ... this. Updated all users.
9935 (record_type) <record_end, record_reg, record_mem>: Renamed
9937 (record_full_type) <record_full_end, record_full_reg,
9938 record_full_mem>: ... this. Updated all users.
9939 (record_entry): Renamed to ...
9940 (record_full_entry): ... this. Updated all users.
9941 (record_core_buf_entry): Renamed to ...
9942 (record_full_core_buf_entry): ... this. Updated all users.
9943 (record_core_regbuf): Renamed to ...
9944 (record_full_core_regbuf): ... this. Updated all users.
9945 (record_core_start): Renamed to ...
9946 (record_full_core_start): ... this. Updated all users.
9947 (record_core_end): Renamed to ...
9948 (record_full_core_end): ... this. Updated all users.
9949 (record_core_buf_list): Renamed to ...
9950 (record_full_core_buf_list): ... this. Updated all users.
9951 (record_first): Renamed to ...
9952 (record_full_first): ... this. Updated all users.
9953 (record_list): Renamed to ...
9954 (record_full_list): ... this. Updated all users.
9955 (record_arch_list_head): Renamed to ...
9956 (record_full_arch_list_head): ... this. Updated all users.
9957 (record_arch_list_tail): Renamed to ...
9958 (record_full_arch_list_tail): ... this. Updated all users.
9959 (record_stop_at_limit): Renamed to ...
9960 (record_full_stop_at_limit): ... this. Updated all users.
9961 (record_insn_max_num): Renamed to ...
9962 (record_full_insn_max_num): ... this. Updated all users.
9963 (record_insn_num): Renamed to ...
9964 (record_full_insn_num): ... this. Updated all users.
9965 (record_insn_count): Renamed to ...
9966 (record_full_insn_count): ... this. Updated all users.
9967 (record_ops): Renamed to ...
9968 (record_full_ops): ... this. Updated all users.
9969 (record_core_ops): Renamed to ...
9970 (record_full_core_ops): ... this. Updated all users.
9971 (set_record_cmdlist): Renamed to ...
9972 (set_record_full_cmdlist): ... this. Updated all users.
9973 (show_record_cmdlist): Renamed to ...
9974 (show_record_full_cmdlist): ... this. Updated all users.
9975 (record_cmdlist): Renamed to ...
9976 (record_full_cmdlist): ... this. Updated all users.
9977 (record_beneath_to_resume_ops): Renamed to ...
9978 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9979 (record_beneath_to_resume): Renamed to ...
9980 (record_full_beneath_to_resume): ... this. Updated all users.
9981 (record_beneath_to_wait_ops): Renamed to ...
9982 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9983 (record_beneath_to_wait): Renamed to ...
9984 (record_full_beneath_to_wait): ... this. Updated all users.
9985 (record_beneath_to_store_registers_ops): Renamed to ...
9986 (record_full_beneath_to_store_registers_ops): ... this.
9988 (record_beneath_to_store_registers): Renamed to ...
9989 (record_full_beneath_to_store_registers): ... this.
9991 (record_beneath_to_xfer_partial_ops): Renamed to ...
9992 (record_full_beneath_to_xfer_partial_ops): ... this.
9994 (record_beneath_to_xfer_partial): Renamed to ...
9995 (record_full_beneath_to_xfer_partial): ... this.
9997 (record_beneath_to_insert_breakpoint): Renamed to ...
9998 (record_full_beneath_to_insert_breakpoint): ... this.
10000 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10001 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10003 (record_beneath_to_stopped_data_address): Renamed to ...
10004 (record_full_beneath_to_stopped_data_address): ... this.
10006 (record_beneath_to_async): Renamed to ...
10007 (record_full_beneath_to_async): ... this. Updated all users.
10008 (record_goto_insn): Renamed to ...
10009 (record_full_goto_insn): ... this. Updated all users.
10010 (record_save): Renamed to ...
10011 (record_full_save): ... this. Updated all users.
10012 (record_reg_alloc): Renamed to ...
10013 (record_full_reg_alloc): ... this. Updated all users.
10014 (record_reg_release): Renamed to ...
10015 (record_full_reg_release): ... this. Updated all users.
10016 (record_mem_alloc): Renamed to ...
10017 (record_full_mem_alloc): ... this. Updated all users.
10018 (record_mem_release): Renamed to ...
10019 (record_full_mem_release): ... this. Updated all users.
10020 (record_end_alloc): Renamed to ...
10021 (record_full_end_alloc): ... this. Updated all users.
10022 (record_end_release): Renamed to ...
10023 (record_full_end_release): ... this. Updated all users.
10024 (record_entry_release): Renamed to ...
10025 (record_full_entry_release): ... this. Updated all users.
10026 (record_list_release): Renamed to ...
10027 (record_full_list_release): ... this. Updated all users.
10028 (record_list_release_following): Renamed to ...
10029 (record_full_list_release_following): ... this.
10031 (record_list_release_first): Renamed to ...
10032 (record_full_list_release_first): ... this. Updated all users.
10033 (record_arch_list_add): Renamed to ...
10034 (record_full_arch_list_add): ... this. Updated all users.
10035 (record_get_loc): Renamed to ...
10036 (record_full_get_loc): ... this. Updated all users.
10037 (record_check_insn_num): Renamed to ...
10038 (record_full_check_insn_num): ... this. Updated all users.
10039 (record_arch_list_cleanups): Renamed to ...
10040 (record_full_arch_list_cleanups): ... this. Updated all users.
10041 (record_message): Renamed to ...
10042 (record_full_message): ... this. Updated all users.
10043 (record_message_wrapper): Renamed to ...
10044 (record_full_message_wrapper): ... this. Updated all users.
10045 (record_message_wrapper_safe): Renamed to ...
10046 (record_full_message_wrapper_safe): ... this. Updated all users.
10047 (record_gdb_operation_disable): Renamed to ...
10048 (record_full_gdb_operation_disable): ... this. Updated all users.
10049 (record_hw_watchpoint): Renamed to ...
10050 (record_full_hw_watchpoint): ... this. Updated all users.
10051 (record_exec_insn): Renamed to ...
10052 (record_full_exec_insn): ... this. Updated all users.
10053 (record_restore): Renamed to ...
10054 (record_full_restore): ... this. Updated all users.
10055 (record_async_inferior_event_token): Renamed to ...
10056 (record_full_async_inferior_event_token): ... this.
10058 (record_async_inferior_event_handler): Renamed to ...
10059 (record_full_async_inferior_event_handler): ... this.
10061 (record_core_open_1): Renamed to ...
10062 (record_full_core_open_1): ... this. Updated all users.
10063 (record_open_1): Renamed to ...
10064 (record_full_open_1): ... this. Updated all users.
10065 (record_open): Renamed to ...
10066 (record_full_open): ... this. Updated all users.
10067 (record_close): Renamed to ...
10068 (record_full_close): ... this. Updated all users.
10069 (record_resume_step): Renamed to ...
10070 (record_full_resume_step): ... this. Updated all users.
10071 (record_resumed): Renamed to ...
10072 (record_full_resumed): ... this. Updated all users.
10073 (record_execution_dir): Renamed to ...
10074 (record_full_execution_dir): ... this. Updated all users.
10075 (record_resume): Renamed to ...
10076 (record_full_resume): ... this. Updated all users.
10077 (record_get_sig): Renamed to ...
10078 (record_full_get_sig): ... this. Updated all users.
10079 (record_sig_handler): Renamed to ...
10080 (record_full_sig_handler): ... this. Updated all users.
10081 (record_wait_cleanups): Renamed to ...
10082 (record_full_wait_cleanups): ... this. Updated all users.
10083 (record_wait_1): Renamed to ...
10084 (record_full_wait_1): ... this. Updated all users.
10085 (record_wait): Renamed to ...
10086 (record_full_wait): ... this. Updated all users.
10087 (record_stopped_by_watchpoint): Renamed to ...
10088 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10089 (record_disconnect): Renamed to ...
10090 (record_full_disconnect): ... this. Updated all users.
10091 (record_detach): Renamed to ...
10092 (record_full_detach): ... this. Updated all users.
10093 (record_mourn_inferior): Renamed to ...
10094 (record_full_mourn_inferior): ... this. Updated all users.
10095 (record_kill): Renamed to ...
10096 (record_full_kill): ... this. Updated all users.
10097 (record_stopped_data_address): Renamed to ...
10098 (record_full_stopped_data_address): ... this. Updated all users.
10099 (record_registers_change): Renamed to ...
10100 (record_full_registers_change): ... this. Updated all users.
10101 (record_store_registers): Renamed to ...
10102 (record_full_store_registers): ... this. Updated all users.
10103 (record_xfer_partial): Renamed to ...
10104 (record_full_xfer_partial): ... this. Updated all users.
10105 (record_breakpoint): Renamed to ...
10106 (record_full_breakpoint): ... this. Updated all users.
10107 (record_breakpoint_p): Renamed to ...
10108 (record_full_breakpoint_p): ... this. Updated all users.
10109 (record_breakpoints): Renamed to ...
10110 (record_full_breakpoints): ... this. Updated all users.
10111 (record_sync_record_breakpoints): Renamed to ...
10112 (record_full_sync_record_breakpoints): ... this.
10114 (record_init_record_breakpoints): Renamed to ...
10115 (record_full_init_record_breakpoints): ... this.
10117 (record_insert_breakpoint): Renamed to ...
10118 (record_full_insert_breakpoint): ... this. Updated all users.
10119 (record_remove_breakpoint): Renamed to ...
10120 (record_full_remove_breakpoint): ... this. Updated all users.
10121 (record_can_execute_reverse): Renamed to ...
10122 (record_full_can_execute_reverse): ... this. Updated all users.
10123 (record_get_bookmark): Renamed to ...
10124 (record_full_get_bookmark): ... this. Updated all users.
10125 (record_goto_bookmark): Renamed to ...
10126 (record_full_goto_bookmark): ... this. Updated all users.
10127 (record_async): Renamed to ...
10128 (record_full_async): ... this. Updated all users.
10129 (record_can_async_p): Renamed to ...
10130 (record_full_can_async_p): ... this. Updated all users.
10131 (record_is_async_p): Renamed to ...
10132 (record_full_is_async_p): ... this. Updated all users.
10133 (record_execution_direction): Renamed to ...
10134 (record_full_execution_direction): ... this. Updated all users.
10135 (record_info): Renamed to ...
10136 (record_full_info): ... this. Updated all users.
10137 (record_delete): Renamed to ...
10138 (record_full_delete): ... this. Updated all users.
10139 (record_is_replaying): Renamed to ...
10140 (record_full_is_replaying): ... this. Updated all users.
10141 (record_goto_entry): Renamed to ...
10142 (record_full_goto_entry): ... this. Updated all users.
10143 (record_goto_begin): Renamed to ...
10144 (record_full_goto_begin): ... this. Updated all users.
10145 (record_goto_end): Renamed to ...
10146 (record_full_goto_end): ... this. Updated all users.
10147 (record_goto): Renamed to ...
10148 (record_full_goto): ... this. Updated all users.
10149 (init_record_ops): Renamed to ...
10150 (init_record_full_ops): ... this. Updated all users.
10151 (record_core_resume): Renamed to ...
10152 (record_full_core_resume): ... this. Updated all users.
10153 (record_core_kill): Renamed to ...
10154 (record_full_core_kill): ... this. Updated all users.
10155 (record_core_fetch_registers): Renamed to ...
10156 (record_full_core_fetch_registers): ... this. Updated all users.
10157 (record_core_prepare_to_store): Renamed to ...
10158 (record_full_core_prepare_to_store): ... this. Updated all users.
10159 (record_core_store_registers): Renamed to ...
10160 (record_full_core_store_registers): ... this. Updated all users.
10161 (record_core_xfer_partial): Renamed to ...
10162 (record_full_core_xfer_partial): ... this. Updated all users.
10163 (record_core_insert_breakpoint): Renamed to ...
10164 (record_full_core_insert_breakpoint): ... this. Updated all users.
10165 (record_core_remove_breakpoint): Renamed to ...
10166 (record_full_core_remove_breakpoint): ... this. Updated all users.
10167 (record_core_has_execution): Renamed to ...
10168 (record_full_core_has_execution): ... this. Updated all users.
10169 (init_record_core_ops): Renamed to ...
10170 (init_record_full_core_ops): ... this. Updated all users.
10171 (cmd_record_restore): Renamed to ...
10172 (cmd_record_full_restore): ... this. Updated all users.
10173 (record_save_cleanups): Renamed to ...
10174 (record_full_save_cleanups): ... this. Updated all users.
10175 (cmd_record_start): Renamed to ...
10176 (cmd_record_full_start): ... this. Updated all users.
10177 (set_record_insn_max_num): Renamed to ...
10178 (set_record_full_insn_max_num): ... this. Updated all users.
10179 (set_record_command): Renamed to ...
10180 (set_record_full_command): ... this. Updated all users.
10181 (show_record_command): Renamed to ...
10182 (show_record_full_command): ... this. Updated all users.
10183 (_initialize_record): Renamed to ...
10184 (_initialize_record_full): ... this. Updated all users.
10186 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10188 * record.h: Split into this and ...
10189 * record-full.h: ... this.
10190 * record.c: Split into this and ...
10191 * record-full.c: ... this.
10192 * target.h (target_ops): Add new fields to_info_record,
10193 to_save_record, to_delete_record, to_record_is_replaying,
10194 to_goto_record_begin, to_goto_record_end, to_goto_record.
10195 (target_info_record): New.
10196 (target_save_record): New.
10197 (target_supports_delete_record): New.
10198 (target_delete_record): New.
10199 (target_record_is_replaying): New.
10200 (target_goto_record_begin): New.
10201 (target_goto_record_end): New.
10202 (target_goto_record): New.
10203 * target.c (target_info_record): New.
10204 (target_save_record): New.
10205 (target_supports_delete_record): New.
10206 (target_delete_record): New.
10207 (target_record_is_replaying): New.
10208 (target_goto_record_begin): New.
10209 (target_goto_record_end): New.
10210 (target_goto_record): New.
10211 * record.h: Declare struct cmd_list_element.
10212 (record_cmdlist): New declaration.
10213 (set_record_cmdlist): New declaration.
10214 (show_record_cmdlist): New declaration.
10215 (info_record_cmdlist): New declaration.
10216 (cmd_record_goto): New declaration.
10217 * record.c: Remove unnecessary includes.
10218 Include inferior.h.
10219 (cmd_record_goto): Remove declaration.
10220 (record_cmdlist): Now extern. Initialize.
10221 (set_record_cmdlist): Now extern. Initialize.
10222 (show_record_cmdlist): Now extern. Initialize.
10223 (info_record_cmdlist): Now extern. Initialize.
10224 (find_record_target): New.
10225 (require_record_target): New.
10226 (cmd_record_start): Update.
10227 (cmd_record_delete): Remove target-specific code.
10228 Call target_delete_record.
10229 (cmd_record_stop): Unpush any record target.
10230 (set_record_insn_max_num): Move to record-full.c
10231 (set_record_command): Add comment.
10232 (show_record_command): Add comment.
10233 (info_record_command): Update comment.
10234 Remove target-specific code.
10235 Call the record target's to_info_record.
10236 (cmd_record_start): New.
10237 (cmd_record_goto): Now extern.
10238 Remove target-specific code.
10239 Call target_goto_begin, target_goto_end, or target_goto.
10240 (_initialize_record): Move record target ops initialization to
10242 Change "record" command help text.
10243 Move "record restore", "record set", and "record show" commands to
10245 * Makefile.in (SFILES): Add record-full.c.
10246 (HFILES_NO_SRCDIR): Add record-full.h.
10247 (COMMON_OBS): Add record-full.o.
10248 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10249 * arm-tdep.c: Include record-full.h.
10250 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10251 * i386-tdep.c: Include record-full.h.
10252 * infrun.c: Include record-full.h.
10253 * linux-record.c: Include record-full.h.
10254 * moxie-tdep.c: Include record-full.h.
10255 * record-full.c: Include record-full.h.
10256 Change module comment.
10257 (set_record_full_cmdlist): New.
10258 (show_record_full_cmdlist): New.
10259 (record_full_cmdlist): New.
10260 (record_goto_insn): New declaration.
10261 (record_save): New declaration.
10262 (record_check_insn_num): Change query string.
10263 (record_info): New.
10264 (record_delete): New.
10265 (record_is_replaying): New.
10266 (record_goto_entry): New.
10267 (record_goto_begin): New.
10268 (record_goto_end): New.
10269 (record_goto): New.
10270 (init_record_ops): Update.
10271 (init_record_core_ops): Update.
10272 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10273 (cmd_record_start): New.
10274 (set_record_insn_max_num): Moved from record.c
10275 (set_record_full_command): New.
10276 (show_record_full_command): New.
10277 (_initialize_record_full): New.
10279 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10281 * target.h (add_deprecated_target_alias): New.
10282 * target.c (add_deprecated_target_alias): New.
10284 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10286 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10288 (linux_supports_btrace): Add kernel and
10290 (kernel_supports_btrace): New function.
10291 (cpu_supports_btrace): New function.
10292 (intel_supports_btrace): New function.
10294 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10296 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10297 * remote.c: Include btrace.h.
10298 (struct btrace_target_info): New struct.
10299 (remote_supports_btrace): New function.
10300 (send_Qbtrace): New function.
10301 (remote_enable_btrace): New function.
10302 (remote_disable_btrace): New function.
10303 (remote_teardown_btrace): New function.
10304 (remote_read_btrace): New function.
10305 (init_remote_ops): Add btrace ops.
10306 (enum <unnamed>): Add btrace packets.
10307 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10308 (_initialize_remote): Add packet configuration for branch tracing.
10310 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10312 * features/btrace.dtd: New file.
10313 * Makefile.in (XMLFILES): Add btrace.dtd.
10314 * btrace.h (parse_xml_btrace): New declaration.
10315 * btrace.c: Include xml-support.h.
10316 (parse_xml_btrace): New function.
10317 (parse_xml_btrace_block): New function.
10318 (block_attributes): New struct.
10319 (btrace_attributes): New struct.
10320 (btrace_children): New struct.
10321 (btrace_elements): New struct.
10323 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10325 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10326 (amd64_linux_enable_btrace): New.
10327 (amd64_linux_disable_btrace): New.
10328 (amd64_linux_teardown_btrace): New.
10329 (_initialize_amd64_linux_nat): Initialize btrace ops.
10330 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10331 (i386_linux_enable_btrace): New.
10332 (i386_linux_disable_btrace): New.
10333 (i386_linux_teardown_btrace): New.
10334 (_initialize_i386_linux_nat): Initialize btrace ops.
10335 * config/i386/linux.mh: Add linux-btrace.o.
10336 * config/i386/linux64.mh: Add linux-btrace.o.
10338 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10340 * common/linux_btrace.h: New file.
10341 * common/linux_btrace.c: New file.
10342 * Makefile.in (SFILES): Add btrace.c.
10343 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10344 (COMMON_OBS): Add btrace.o.
10345 (linux-btrace.o): New rule.
10347 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10349 * target.h: Include btrace.h.
10350 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10351 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10352 * target.c (target_supports_btrace): New function.
10353 (target_enable_btrace): New function.
10354 (target_disable_btrace): New function.
10355 (target_teardown_btrace): New function.
10356 (target_read_btrace): New function.
10357 * btrace.h: New file.
10358 * btrace.c: New file.
10359 * Makefile.in: Add btrace.c.
10360 * gdbthread.h: Include btrace.h.
10361 (struct thread_info): Add btrace field.
10362 * thread.c: Include btrace.h.
10363 (clear_thread_inferior_resources): Call target_teardown_btrace.
10364 * common/btrace-common.h: New file.
10366 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10368 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10369 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10370 kill_status to outer block.
10372 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10374 Fix entry-values if the callee called a noreturn function.
10375 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10376 get_frame_address_in_block. Add new comment.
10378 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10380 Fix entry-values in C++ across CUs.
10381 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10382 lookup_minimal_symbol. Add a comment.
10384 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10385 DW_AT_linkage_name.
10387 2013-03-08 Yao Qi <yao@codesourcery.com>
10389 * tracepoint.c (_initialize_tracepoint): Indent the code.
10391 2013-03-08 Pedro Alves <palves@redhat.com>
10393 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10394 (parse_find_args, find_command): Change type of pattern buffer
10395 locals to 'gdb_byte *'.
10397 2013-03-08 Stan Shebs <stan@codesourcery.com>
10398 Hafiz Abid Qadeer <abidh@codesourcery.com>
10400 * NEWS: Mention set and show trace-buffer-size commands.
10401 Mention new packet.
10402 * target.h (struct target_ops): New method
10403 to_set_trace_buffer_size.
10404 (target_set_trace_buffer_size): New macro.
10405 * target.c (update_current_target): Set up new method.
10406 * tracepoint.c (trace_buffer_size): New global.
10407 (start_tracing): Send it to the target.
10408 (set_trace_buffer_size): New function.
10409 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10410 * remote.c (remote_set_trace_buffer_size): New function.
10411 (_initialize_remote): Use it.
10412 (QTBuffer:size) New remote command.
10413 (PACKET_QTBuffer_size): New enum.
10414 (remote_protocol_features): Add an entry for
10415 PACKET_QTBuffer_size.
10417 2013-03-08 Tom Tromey <tromey@redhat.com>
10419 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10422 2013-03-07 Pedro Alves <palves@redhat.com>
10424 * target.c (target_read_stralloc, target_fileio_read_alloc):
10425 *Cast pointer to 'gdb_byte *' in target call.
10427 2013-03-07 Pedro Alves <palves@redhat.com>
10429 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10432 2013-03-07 Keith Seitz <keiths@redhat.com>
10434 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10435 (trace_pass_command): Likewise.
10436 * cli/cli-cmds.c: Include cli/cli-utils.h.
10437 (source_command): Use skip-spaces.
10438 (disassemble_command): Likewise.
10439 * findcmd.c: Include cli/cli-utils.h.
10440 (parse_find_args): Use skip_spaces.
10441 * go32-nat.c: Include cli/cli-utils.h.
10442 (go32_sldt): Use skip_spaces.
10443 (go32_sgdt): Likewise.
10444 (go32_sidt): Likewise.
10445 (go32_pde): Likewise.
10446 (go32_pte): Likewise.
10447 (go32_pte_for_address): Likewise.
10448 * infcmd.c: Include cli/cli-utils.h.
10449 (registers_info): Use skip_spaces.
10450 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10451 (linux_info_proc): Likewise.
10452 * linux-thread-db.c: Include cli/cli-utils.h.
10453 (info_auto_load_libthread_db): Use skip_spaces_const.
10454 * m32r-rom.c: Include cli/cli-utils.h.
10455 (m32r_upload_command): Use skip_spaces.
10456 * maint.c: Include cli/cli-utils.h.
10457 (maintenance_translate_address): Use skip_spaces.
10458 * mi/mi-parse.c: Include cli/cli-utils.h.
10459 (mi_parse_argv): Use skip_spaces.
10460 (mi_parse): Likewise.
10461 * minsyms.c: Include cli/cli-utils.h.
10462 (msymbol_hash_iw): Use skip_spaces_const.
10463 * objc-lang.c: Include cli/cli-utils.h.
10464 (parse_selector): Use skip_spaces.
10465 (parse_method): Likewise.
10466 * python/python.c: Include cli/cli-utils.h.
10467 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10468 (python_command)[HAVE_PYTHON]: Likewise.
10469 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10470 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10471 (m32r_load): Use skip_spaces.
10472 * serial.c: Include cli/cli-utils.h.
10473 (serial_open): Use skip_spaces_const.
10474 * stack.c: Include cli/cli-utils.h.
10475 (parse_frame_specification_1): Use skip_spaces_const.
10476 * symfile.c: Include cli/cli-utils.h.
10477 (set_ext_lang_command): Use skip_spaces.
10478 * symtab.c: Include cli/cli-utils.h.
10479 (rbreak_command): Use skip_spaces.
10480 * thread.c (thread_name_command): Use skip_spaces.
10481 * tracepoint.c (validate_actionline): Use skip_spaces.
10482 (encode_actions_1): Likewise.
10483 (trace_find_range_command): Likewise.
10484 (trace_find_outside_command): Likewise.
10485 (trace_dump_actions): Likewise.
10487 2013-03-07 Pedro Alves <palves@redhat.com>
10489 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10490 * expprint.c (print_subexp_standard): Likewise.
10491 * utils.c (host_char_to_target): Likewise.
10492 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10493 * varobj.c (value_get_print_value): Change type of local to char*.
10494 Cast it gdb_byte * in call to language printer.
10496 2013-03-07 Pedro Alves <palves@redhat.com>
10498 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10500 (make_wchar_iterator): Remove cast to char*.
10501 (wchar_iterate): Change type of local.
10503 2013-03-07 Pedro Alves <palves@redhat.com>
10505 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10506 for 'regcache->register_status'.
10508 2013-03-07 Pedro Alves <palves@redhat.com>
10510 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10513 2013-03-07 Pedro Alves <palves@redhat.com>
10515 * stap-probe.c (handle_stap_probe): Add cast to char*.
10517 2013-03-07 Pedro Alves <palves@redhat.com>
10519 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10520 RECORD_MSGRCV>: Pass a signed variable to
10521 regcache_raw_read_signed, instead of an unsigned one.
10523 2013-03-07 Pedro Alves <palves@redhat.com>
10525 * remote-notif.c (notif_debug): Change type to int.
10526 * remote-notif.h (notif_debug): Likewise.
10528 2013-03-07 Pedro Alves <palves@redhat.com>
10530 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10532 2013-03-07 Pedro Alves <palves@redhat.com>
10534 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10535 * remote.h (hex2bin, bin2hex): ... here.
10536 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10538 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10540 * utils.c (initialize_utils): Improve doc strings of "set/show
10541 width", "set/show height", and "set/show pagination".
10543 2013-03-06 Keith Seitz <keiths@redhat.com>
10545 * ax-gdb.c (gen_printf): Make FORMAT const.
10546 * ax-gdb.h (gen_printf): Likewise.
10547 * ax-general.c (ax_string): Make STR const.
10548 * ax.h (ax_string): Likewise.
10550 2013-03-06 Doug Evans <dje@google.com>
10552 * elfread.c (elf_symfile_read): Move debugging printf to more
10555 2013-03-06 Pedro Alves <palves@redhat.com>
10557 * python/py-utils.c (target_string_to_unicode): Delete function.
10558 * python/python-internal.h (target_string_to_unicode): Delete
10561 2013-03-06 Pierre Muller <muller@sourceware.org>
10563 * linespec.c (get_current_search_block): ARI fix, use (void)
10564 for empty parameter list.
10566 2013-03-05 Doug Evans <dje@google.com>
10568 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10569 of old ada_lookup_symbol_list. In !full_search case, don't
10570 search superblocks.
10571 (ada_lookup_symbol_list): Delete arg full_search, all callers
10572 updated. Call ada_lookup_symbol_list_worker.
10573 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10574 * ada-lang.h (ada_lookup_symbol_list): Update.
10575 * language.h (language_defn): Update comment for
10576 la_iterate_over_symbols.
10577 * linespec.c (iterate_over_file_blocks): New function.
10578 (iterate_over_all_matching_symtabs): Call it.
10579 (lookup_prefix_sym): Ditto.
10580 (get_current_search_block): New function.
10581 (get_search_block): Delete.
10582 (find_label_symbols): Call get_current_search_block.
10583 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10584 * symtab.c (iterate_over_symbols): Don't search superblocks.
10586 2013-03-05 Yao Qi <yao@codesourcery.com>
10588 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10589 parameter VAR's type from "unsigned int" to "int".
10590 * command.h (var_zuinteger_unlimited): Update its comments.
10591 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10593 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10595 * NEWS: Mention new target x86_64-*-cygwin*.
10597 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10599 * configure.host: Add x86_64-*-cygwin* as host.
10600 * configure.tgt: Add x86_64-*-cygwin* as target.
10601 * config/i386/cygwin64.mh: New file.
10603 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10605 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10607 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10609 * linespec.c (struct linespec_canonical_name): New.
10610 (struct linespec_state): Change canonical_names type to it.
10611 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10612 xrealloc element size. Initialize the different CANONICAL fields.
10613 (canonical_to_fullform): New.
10614 (filter_results): Use it. Add variables canonical, fullform and
10616 (struct decode_line_2_item, decode_line_2_compare_items): New.
10617 (decode_line_2): Remove variables iter and item_names, add variables
10618 items and items_count. Modify the code for these new variables.
10620 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10622 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10623 calling do_cleanup.
10625 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10627 * tracepoint.c (build_traceframe_info): Add code for byte order.
10629 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10631 * v850-tdep.c: (v850e2_register_name): Revise system register
10632 names to match current V850E2M architecture specifications.
10633 Update register number enum comments too.
10635 2013-03-01 Jiong Wang <jiwang@tilera.com>
10636 Pedro Alves <palves@redhat.com>
10638 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10640 (tilegx_skip_prologue): Limit prologue analysis to section end.
10642 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10644 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10647 2013-03-01 Pedro Alves <palves@redhat.com>
10649 Use gdb_byte for bytes from the program being debugged.
10651 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10652 Change type of local 'buf' to gdb_byte.
10653 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10654 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10655 * cris-tdep.c (cris_sigcontext_addr)
10656 (cris_sigtramp_frame_unwind_cache): Likewise.
10657 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10658 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10660 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10661 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10662 (hppa32_hpux_search_dummy_call_sequence)
10663 (hppa_hpux_supply_save_state): Likewise.
10664 * hppa-linux-tdep.c (insns_match_pattern)
10665 (hppa_linux_find_global_pointer): Likewise.
10666 * hppa-tdep.c (hppa_in_function_epilogue_p)
10667 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10668 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10669 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10670 (i386fbsd_collect_uthread): Likewise.
10671 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10672 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10673 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10674 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10675 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10676 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10677 (ia64_libunwind_frame_prev_register)
10678 (ia64_libunwind_sigtramp_frame_this_id)
10679 (ia64_find_global_pointer_from_dynamic_section)
10680 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10681 (ia64_unwind_pc): Likewise.
10682 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10683 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10684 (m68hc11_extract_return_value): Likewise.
10685 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10686 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10687 (mep_get_insn, mep_push_dummy_call): Likewise.
10688 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10689 (mips_linux_in_dynsym_stub): Likewise.
10690 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10691 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10692 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10694 * remote-mips.c (mips_set_register): Likewise.
10695 * remote-sim.c (gdbsim_fetch_register): Likewise.
10696 * score-tdep.c (score7_fetch_inst): Change type of parameter
10697 'memblock' and local 'buf' to gdb_byte.
10698 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10699 Change type of local 'buf' to gdb_byte. Adjust.
10700 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10702 (score7_analyze_prologue): Change type of 'memblock' and
10703 'memblock_ptr' locals to gdb_byte*.
10704 * sh64-tdep.c (sh64_extract_return_value)
10705 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10706 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10707 * solib-pa64.c (pa64_solib_create_inferior_hook)
10708 (pa64_open_symbol_file_object): Remove local 'buf'.
10709 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10710 (som_open_symbol_file_object): Likewise.
10711 * solib-spu.c (spu_current_sos): Likewise.
10712 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10713 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10714 (spu_store_registers): Likewise.
10715 * target.c (debug_print_register): Likewise.
10716 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10717 * xstormy16-tdep.c (xstormy16_store_return_value)
10718 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10719 (xstormy16_find_jmp_table_entry): Likewise.
10721 2013-03-01 Jiong Wang <jiwang@tilera.com>
10723 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10724 (tilegx_gdbarch_init): Install it.
10726 2013-02-28 Tom Tromey <tromey@redhat.com>
10728 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10731 2013-02-28 Doug Evans <dje@google.com>
10733 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10734 * python/python.c (gdbpy_find_pc_line): Ditto.
10736 2013-02-28 Tom Tromey <tromey@redhat.com>
10738 * contrib/excheck.py: New file.
10739 * contrib/exsummary.py: New file.
10740 * contrib/gcc-with-excheck: New file.
10742 2013-02-28 Tom Tromey <tromey@redhat.com>
10744 * python/python.c (gdbpy_print_stack): Call begin_line and
10745 fprintf_filtered inside TRY_CATCH.
10747 2013-02-28 Tom Tromey <tromey@redhat.com>
10749 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10752 2013-02-28 Tom Tromey <tromey@redhat.com>
10754 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10755 frame_object_to_frame_info inside TRY_CATCH.
10757 2013-02-28 Tom Tromey <tromey@redhat.com>
10759 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10762 2013-02-28 Tom Tromey <tromey@redhat.com>
10764 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10766 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10768 * windows-nat.c: Throughout, fix format strings and casts of
10769 printf-like functions to avoid type related warnings on all
10771 (handle_output_debug_string): Fetch context information address
10772 from debug string using string_to_core_addr.
10774 2013-02-27 Jiong Wang <jiwang@tilera.com>
10776 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10777 * regformats/reg-tilegx32.dat: New.
10779 2013-02-27 Jiong Wang <jiwang@tilera.com>
10781 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10783 2013-02-27 Jiong Wang <jiwang@tilera.com>
10785 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10787 2013-02-27 Yao Qi <yao@codesourcery.com>
10788 Pedro Alves <palves@redhat.com>
10790 * tracepoint.c (tfile_trace_find): For tfind
10791 pc/tp/range/outside, look for the next trace frame instead of
10792 always starting from frame 0.
10794 2013-02-26 Anthony Green <green@moxielogic.com>
10796 * configure.tgt: Add support for moxie-*-rtems* target.
10798 2013-02-25 Pedro Alves <palves@redhat.com>
10800 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10803 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10805 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10806 if $fp is used as the virtual frame pointer.
10808 2013-02-23 Alan Modra <amodra@gmail.com>
10810 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10812 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10813 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10814 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10815 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10817 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10820 * elfread.c (build_id_bfd_get): Make the return type const.
10821 (build_id_verify): Make the check parameter const.
10822 (build_id_to_debug_filename): Make the build_id parameter and variable
10824 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10826 2013-02-21 Alan Modra <amodra@gmail.com>
10828 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10830 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10832 Add a new method 'disassemble' to gdb.Architecture class.
10833 * python/py-arch.c (archpy_disassmble): Implementation of the
10834 new method gdb.Architecture.disassemble.
10835 (arch_object_methods): Add entry for the new method.
10837 2013-02-20 Jiong Wang <jiwang@tilera.com>
10839 * MAINTAINERS (Write After Approval): Add myself to the list.
10841 2013-02-19 Pedro Alves <palves@redhat.com>
10843 Garbage collect 'struct monitor_ops'::load_routine.
10845 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10846 * monitor.c (monitor_load): No longer call
10847 current_monitor->load_routine.
10848 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10849 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10850 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10852 2013-02-19 Pedro Alves <palves@redhat.com>
10856 Harmonize with generic_load.
10858 * monitor.c: Include "readline/readline.h".
10859 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10860 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10861 long/strtol for the 'load_offset' local. Error out if no argument
10862 is given or if too many arguments are given. Tilde expand the
10863 passed in file name.
10865 2013-02-19 Kai Tietz <ktietz@redhat.com>
10868 * symfile.c (load_section_data): Change type of load_offset
10870 (generic_load): User strtoulst instead of strtoul for conversion
10873 2013-02-19 Jiong Wang <jiwang@tilera.com>
10875 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10876 for return address, "lr" register, saved on stack.
10877 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10878 after we invoke tilegx_analyze_prologue.
10880 2013-02-19 Jiong Wang <jiwang@tilera.com>
10882 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10884 2013-02-19 Jiong Wang <jiwang@tilera.com>
10886 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10888 2013-02-19 Jiong Wang <jiwang@tilera.com>
10890 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10891 (tilegx_write_pc): New function.
10892 (tilegx_cannot_reference_register): Return zero if REGNO
10893 is TILEGX_FAULTNUM_REGNUM.
10894 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10895 (tilegx_register_name): Add handling of "faultnum" register.
10896 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10897 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10898 handling of TILEGX_FAULTNUM_REGNUM.
10899 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10901 2013-02-19 Jiong Wang <jiwang@tilera.com>
10903 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10904 should be aligned to 64bit.
10906 2013-02-19 Kai Tietz <ktietz@redhat.com>
10908 * windows-nat.c (windows_xfer_memory): Fix debug-output
10911 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10913 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10914 Don't check DSP register number if HAVE_DSP is not set.
10916 2013-02-19 Alan Modra <amodra@gmail.com>
10918 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10919 throughout file instead.
10920 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10921 Don't xmalloc return value.
10922 (build_id_verify): Similarly. Don't xfree.
10923 (build_id_to_debug_filename): Update.
10924 (find_separate_debug_file_by_buildid): Update, don't xfree.
10926 2013-02-18 Tom Tromey <tromey@redhat.com>
10929 * dwarf2read.c (read_subrange_type): Use result of
10932 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10934 * frame.c: Remove one extra white space after #include
10937 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10939 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10941 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10943 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10944 and dir commands into an if block.
10946 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10948 * python/py-breakpoint (struct pybp_code): Use int instead of
10951 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10952 Hafiz Abid Qadeer <abidh@codesourcery.com>
10954 * NEWS: Mention new field "trace-file".
10955 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10956 (tfile_open): Record the trace file's filename in the trace
10958 (tfile_files_info): Mention the name of the trace file.
10959 Check the "filename" field explicitely.
10960 (trace_status_command): Explicitely check "filename" field.
10961 (trace_find_command): Ditto.
10962 (trace_find_pc_command): Ditto.
10963 (trace_find_tracepoint_command): Ditto.
10964 (trace_find_line_command): Ditto.
10965 (trace_find_range_command): Ditto.
10966 (trace_find_outside_command): Ditto.
10967 * tracepoint.h (struct trace_status) <from_file>: Rename it
10968 to "filename" and make it hold the trace file's filename
10969 instead of a boolean.
10970 * remote.c (remote_get_trace_status): Initialize "filename"
10971 field with NULL instead of 0.
10973 2013-02-15 Yao Qi <yao@codesourcery.com>
10975 * remote.c: Fix a typo.
10977 2013-02-14 Pierre Muller <muller@sourceware.org>
10979 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10981 2013-02-14 Pedro Alves <palves@redhat.com>
10983 * utils.c (savestring): Don't #undef it. Move function to
10984 common/common-utils.c.
10985 * common/common-utils.c: Include gdb_string.h.
10986 (savestring): Move here from utils.c.
10987 * common/common-utils.h (savestring): Declare.
10989 2013-02-14 Pedro Alves <palves@redhat.com>
10991 * utils.c (savestring): Rename parameter 'size' to 'len'.
10993 2013-02-14 Pedro Alves <palves@redhat.com>
10994 Yufeng Zhang <yufeng.zhang@arm.com>
10996 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10997 (aarch64_inferior_data, struct aarch64_inferior_data):
10999 (struct aarch64_process_info): New.
11000 (aarch64_process_list): New global.
11001 (aarch64_find_process_pid, aarch64_add_process)
11002 (aarch64_process_info_get): New functions.
11003 (aarch64_inferior_data_get): Delete.
11004 (aarch64_process_info_get): New function.
11005 (aarch64_forget_process): New function.
11006 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11007 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11008 aarch64_get_debug_reg_state.
11009 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11010 instead of linux_nat_iterate_watchpoint_lwps.
11011 (aarch64_linux_new_fork): New function.
11012 (aarch64_linux_child_post_startup_inferior): Use
11013 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11014 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11015 (aarch64_linux_remove_hw_breakpoint)
11016 (aarch64_handle_aligned_watchpoint)
11017 (aarch64_handle_unaligned_watchpoint)
11018 (aarch64_linux_insert_watchpoint)
11019 (aarch64_linux_remove_watchpoint)
11020 (aarch64_linux_stopped_data_address): Adjust to pass the current
11021 process id to aarch64_debug_reg_state.
11022 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11023 linux_nat_new_fork hook, and aarch64_forget_process as
11024 linux_nat_forget_process hook; remove the call to
11025 register_inferior_data_with_cleanup.
11027 2013-02-14 Pedro Alves <palves@redhat.com>
11029 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11030 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11033 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11034 Hafiz Abid Qadeer <abidh@codesourcery.com>
11036 * tracepoint.h (validate_trace_state_variable_name): Declare.
11037 * tracepoint.c (validate_trace_state_variable_name): New.
11038 (trace_variable_command): Parse the trace state variable's name
11039 without using parse_expression. Do several validations.
11040 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11041 trace state variable's name with parse_expression. Validate it.
11043 2013-02-14 Yao Qi <yao@codesourcery.com>
11045 * infcmd.c (breakpoint_proceeded): Remove it.
11047 2013-02-14 Yao Qi <yao@codesourcery.com>
11049 * tracepoint.c (end_actions_pseudocommand): Make it static.
11050 (while_stepping_pseudocommand): Likewise.
11051 * tracepoint.h (end_actions_pseudocommand): Remove the
11053 (while_stepping_pseudocommand): Likewise.
11055 2013-02-14 Yao Qi <yao@codesourcery.com>
11057 * cli/cli-decode.c (help_cmd): Remove the declaration of
11059 (help_all): Likewise.
11061 2013-02-13 Pedro Alves <palves@redhat.com>
11063 * amd64-linux-nat.c (update_debug_registers_callback):
11065 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11067 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11068 i386_debug_reg_state.
11069 (amd64_linux_new_fork): New function.
11070 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11071 linux_nat_new_fork hook, and i386_forget_process as
11072 linux_nat_forget_process hook.
11073 * i386-linux-nat.c (update_debug_registers_callback):
11075 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11077 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11078 i386_debug_reg_state.
11079 (i386_linux_new_fork): New function.
11080 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11081 linux_nat_new_fork hook, and i386_forget_process as
11082 linux_nat_forget_process hook.
11083 * i386-nat.c (i386_init_dregs): Delete.
11084 (i386_inferior_data, struct i386_inferior_data):
11086 (struct i386_process_info): New.
11087 (i386_process_list): New global.
11088 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11090 (i386_inferior_data_get): Delete.
11091 (i386_process_info_get): New function.
11092 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11093 (i386_forget_process): New function.
11094 (i386_cleanup_dregs): Rewrite.
11095 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11096 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11097 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11098 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11099 to i386_debug_reg_state.
11100 (i386_use_watchpoints): Don't register inferior data.
11101 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11103 (i386_forget_process): Declare.
11104 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11105 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11106 New static globals.
11107 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11108 (add_initial_lwp): New, factored out from ...
11109 (add_lwp): ... this. Don't check the number of lwps before
11110 calling linux_nat_new_thread.
11111 (linux_nat_iterate_watchpoint_lwps): Delete.
11112 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11113 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11115 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11117 (linux_nat_kill, linux_nat_mourn_inferior): Call
11118 linux_nat_forget_process.
11119 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11120 (linux_nat_forget_process): New functions.
11121 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11123 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11124 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11126 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11127 (linux_nat_forget_process): New declarations.
11129 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11130 (amd64fbsd_mourn_inferior): New function.
11131 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11132 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11134 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11136 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11139 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11141 * aarch64-linux-nat.c (debug_reg_change_callback)
11142 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11145 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11147 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11150 2013-02-13 Pedro Alves <palves@redhat.com>
11151 Hafiz Abid Qadeer <abidh@codesourcery.com>
11153 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11155 2013-02-12 Tom Tromey <tromey@redhat.com>
11158 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11160 (classify_inner_name): Remove 'first_name' argument, add
11161 'context'. Remove unused variable.
11162 (yylex): Explicitly maintain the context type. Exit loop earlier
11163 if NAME result is seen.
11165 2013-02-12 Pedro Alves <palves@redhat.com>
11167 * amd64-darwin-tdep.c: Add (C) after Copyright.
11168 * cli/cli-cmds.h: Ditto.
11169 * cli/cli-decode.c: Ditto.
11170 * cli/cli-decode.h: Ditto.
11171 * cli/cli-dump.c: Ditto.
11172 * cli/cli-dump.h: Ditto.
11173 * cli/cli-interp.c: Ditto.
11174 * cli/cli-logging.c: Ditto.
11175 * cli/cli-script.c: Ditto.
11176 * cli/cli-script.h: Ditto.
11177 * cli/cli-setshow.c: Ditto.
11178 * cli/cli-setshow.h: Ditto.
11179 * cli/cli-utils.c: Ditto.
11180 * cli/cli-utils.h: Ditto.
11181 * config/alpha/nm-osf3.h: Ditto.
11182 * config/djgpp/djconfig.sh: Ditto.
11183 * config/i386/nm-fbsd.h: Ditto.
11184 * config/i386/nm-i386gnu.h: Ditto.
11185 * config/nm-linux.h: Ditto.
11186 * config/nm-nto.h: Ditto.
11187 * config/rs6000/nm-rs6000.h: Ditto.
11188 * config/sparc/nm-sol2.h: Ditto.
11189 * darwin-nat-info.c: Ditto.
11192 * gdb-demangle.h: Ditto.
11193 * i386-darwin-nat.c: Ditto.
11194 * i386-darwin-tdep.c: Ditto.
11195 * linux-fork.h: Ditto.
11196 * m32c-tdep.c: Ditto.
11197 * microblaze-linux-tdep.c: Ditto.
11198 * microblaze-rom.c: Ditto.
11199 * microblaze-tdep.c: Ditto.
11200 * microblaze-tdep.h: Ditto.
11201 * mips-linux-tdep.h: Ditto.
11202 * ppc-ravenscar-thread.c: Ditto.
11203 * ppc-ravenscar-thread.h: Ditto.
11204 * prologue-value.c: Ditto.
11205 * prologue-value.h: Ditto.
11206 * ravenscar-thread.c: Ditto.
11207 * ravenscar-thread.h: Ditto.
11208 * sparc-ravenscar-thread.c: Ditto.
11209 * sparc-ravenscar-thread.h: Ditto.
11210 * tilegx-linux-tdep.c: Ditto.
11211 * unwind_stop_reasons.def: Ditto.
11212 * windows-nat.h: Ditto.
11213 * xtensa-linux-tdep.c: Ditto.
11214 * xtensa-xtregs.c: Ditto.
11215 * regformats/regdat.sh: Ditto.
11216 * regformats/regdef.h: Ditto.
11218 2013-02-12 Pedro Alves <palves@redhat.com>
11220 * break-catch-sig.c: Update copyright years.
11222 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11224 Add support for a destructor for ui_out data and use it to
11225 provide a ui_out destructor.
11226 * ui-out.h: Declare the new ui_out destructor.
11227 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11228 * ui-out.c (default_data_destroy): Add a default data destructor
11229 which does nothing.
11230 (default_ui_out_impl): Set the new data_destroy field to
11231 default_data_destroy
11232 (uo_data_destroy): Local function which invokes the data
11233 destructor if present.
11234 (clear_table): Local function which clears the table data of a
11236 (ui_out_destroy): Public function which frees a ui_out object.
11237 (ui_out_table_end): Use the new clear_table function.
11238 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11240 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11243 2013-02-11 Doug Evans <dje@google.com>
11245 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11246 (printf_decfloat): New function. Broken out from ui_printf.
11247 Remove unnecessary code to shift the entire format string down.
11248 (printf_pointer): New function.
11249 (ui_printf): Code to print C strings, wide C strings, decfloats,
11250 and pointers moved to separate functions.
11252 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11254 * valops.c (value_assign): Handling bitfield offset in
11255 `lval_internalvar_component' case.
11257 2013-02-08 Doug Evans <dje@google.com>
11259 * common/format.c (parse_format_string): Fix whitespace.
11261 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11263 * stack.c (return_command): Work around uninitialized variable
11266 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11268 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11269 number of the registers from 36 to 34.
11271 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11273 * NEWS: Mention new AArch64 native and target support.
11275 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11277 * MAINTAINERS (Write After Approval): Add myself.
11279 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11280 Marcus Shawcroft <marcus.shawcroft@arm.com>
11281 Nigel Stephens <nigel.stephens@arm.com>
11282 Yufeng Zhang <yufeng.zhang@arm.com>
11284 * aarch64-linux-nat.c: New file.
11285 * config/aarch64/linux.mh: New file.
11286 * configure.host: Add AArch64.
11287 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11289 2013-02-07 Doug Evans <dje@google.com>
11291 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11292 disassemble command.
11294 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11296 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11297 set_gdbarch_fetch_tls_load_module_address.
11299 2013-02-06 David S. Miller <davem@davemloft.net>
11301 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11302 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11303 * value.c (struct_return_convention): New function.
11304 (using_struct_return): Implement in terms of struct_return_convention.
11305 * value.h (struct_return_convention): Declare.
11306 * stack.c (return_command): Allow successful overriding of the return
11307 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11309 2013-02-06 Tom Tromey <tromey@redhat.com>
11311 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11312 outside of TRY_CATCH.
11314 2013-02-06 Yao Qi <yao@codesourcery.com>
11316 * mi/mi-interp.c: Include "tracepoint.h".
11317 (mi_tsv_modified): Declare.
11318 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11319 (mi_interpreter_init): Call observer_attach_tsv_modified.
11320 (mi_tsv_modified): New.
11321 (mi_tsv_created, mi_tsv_deleted): Update.
11322 * tracepoint.c (trace_variable_command): Call
11323 observer_notify_tsv_modified if the initial value of tsv is
11325 (delete_trace_state_variable): Call
11326 observer_notify_tsv_deleted earlier.
11327 (trace_variable_command): Caller update.
11328 (create_tsv_from_upload): Likewise.
11329 * observer.sh: Declare "struct trace_state_variable".
11331 * NEWS: Mention the new MI notification "=tsv-modified".
11333 2013-02-05 Doug Evans <dje@google.com>
11335 * completer.c (location_completer): Fix typo in comment.
11337 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11339 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11342 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11344 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11345 Refactor if statement to avoid trailing || operator.
11347 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11349 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11351 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11353 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11354 * configure.host: Add powerpc*-*-freebsd* target.
11355 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11356 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11357 * config/powerpc/fbsd.mh: New file.
11359 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11360 Denys Vlasenko <dvlasenk@redhat.com>
11361 Pedro Alves <palves@redhat.com>
11363 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11364 (struct elf_internal_linux_prpsinfo): Forward declare.
11365 * gdbarch.h, gdbarch.c: Regenerate.
11366 * linux-tdep.c: Include `cli/cli-utils.h'.
11367 (linux_fill_prpsinfo): New function.
11368 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11369 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11370 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11371 depending on gdbarch pointer bitness.
11372 * ppc-linux-tdep.c: Include elf-bfd.h.
11373 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11376 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11377 Marcus Shawcroft <marcus.shawcroft@arm.com>
11378 Nigel Stephens <nigel.stephens@arm.com>
11379 Yufeng Zhang <yufeng.zhang@arm.com>
11381 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11383 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11384 Marcus Shawcroft <marcus.shawcroft@arm.com>
11385 Nigel Stephens <nigel.stephens@arm.com>
11386 Yufeng Zhang <yufeng.zhang@arm.com>
11388 * aarch64-newlib-tdep.c: New file.
11389 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11391 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11392 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11393 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11394 * osabi.c (gdb_osabi_names): Add "Newlib".
11396 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11397 Marcus Shawcroft <marcus.shawcroft@arm.com>
11398 Nigel Stephens <nigel.stephens@arm.com>
11399 Yufeng Zhang <yufeng.zhang@arm.com>
11401 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11402 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11403 * aarch64-linux-tdep.c: New file.
11404 * aarch64-linux-tdep.h: New file.
11405 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11406 * configure.tgt: Add aarch64-none-linux-gnu.
11408 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11409 Marcus Shawcroft <marcus.shawcroft@arm.com>
11410 Nigel Stephens <nigel.stephens@arm.com>
11411 Yufeng Zhang <yufeng.zhang@arm.com>
11413 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11414 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11415 (ALLDEPFILES): Add aarch64-tdep.c.
11416 * aarch64-tdep.c: New file.
11417 * aarch64-tdep.h: New file.
11418 * configure.tgt: Add AArch64.
11419 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11420 (aarch64-expedite): New definition.
11421 * features/aarch64-core.xml: New file.
11422 * features/aarch64-fpu.xml: New file.
11423 * features/aarch64-without-fpu.c: New file (generated).
11424 * features/aarch64-without-fpu.xml: New file.
11425 * features/aarch64.c: New file (generated).
11426 * features/aarch64.xml: New file.
11427 * regformats/aarch64-without-fpu.dat: New file (generated).
11428 * regformats/aarch64.dat: New file (generated).
11430 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11432 * contrib/expect-read1.c: New file.
11433 * contrib/expect-read1.sh: New file.
11435 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11437 * dwarf2read.c (file_file_name): New function with code from
11439 (file_full_name): Move most of the code to file_file_name.
11440 (macro_start_file): Rename variable full_name to file_name and use
11441 file_file_name for it. Add comp_dir parameter to new_macro_table.
11442 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11443 macro_source_file->filename access by macro_source_fullname call.
11444 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11446 * macrotab.c (struct macro_table): New field comp_dir.
11447 (macro_include): New variables link_fullname and source_fullname.
11448 Replace any macro_source_file->filename access by macro_source_fullname
11450 (macro_lookup_inclusion): Remove the partial filenames checking code.
11451 (check_for_redefinition): New variables source_fullname and
11452 found_key_fullname. Replace any macro_source_file->filename access by
11453 macro_source_fullname call.
11454 (macro_undef): New variables source_fullname and key_fullname. Replace
11455 any macro_source_file->filename access by macro_source_fullname call.
11456 (macro_lookup_definition): New variables retval and source_fullname.
11457 Replace any macro_source_file->filename access by macro_source_fullname
11459 (foreach_macro): New variable key_fullname. Replace any
11460 macro_source_file->filename access by macro_source_fullname call.
11461 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11462 macro_source_file->filename access by macro_source_fullname call.
11463 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11464 (macro_source_fullname): New function.
11465 * macrotab.h (struct macro_source_file): Extent the filename field
11467 (new_macro_table): New parameter comp_dir, add a comment for it.
11468 (macro_source_fullname): new declaration.
11470 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11472 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11473 this_real_name to outer block. Use it also for
11474 compare_filenames_for_search.
11475 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11476 with dw2_get_real_path for file_matcher, considering also
11477 BASENAMES_MAY_DIFFER.
11478 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11480 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11482 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11483 to the file_matcher parameter. Pass 0 to it.
11484 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11485 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11486 NULL psymtab_to_fullname result.
11487 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11488 an expected filename instead.
11489 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11490 file_matcher parameter. Call also psymtab_to_fullname, after newly
11491 considering BASENAMES_MAY_DIFFER.
11492 * source.c (rewrite_source_path): Remove static.
11493 * source.h (rewrite_source_path): New declaration.
11494 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11495 the expand_symtabs_matching field. Comment it.
11496 * symtab.c (file_matches): New function comment. Add parameter
11497 basenames, implement it.
11498 (search_symbols_file_matches): Add basenames parameter. Update the
11499 file_matches caller.
11500 (search_symbols): Match FILES also against symtab_to_fullname.
11501 Optimize it for BASENAMES_MAY_DIFFER.
11503 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11505 * source.c (print_source_lines_base): Print for TUI also "fullname".
11506 * tui/tui-data.c (init_content_element): Change tui_locator_element
11507 field to full_name.
11508 * tui/tui-data.h (struct tui_locator_element): Likewise.
11509 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11510 tui_update_locator_filename calls to tui_update_locator_fullname.
11511 Replace symtab->filename refererence by symtab_to_fullname call.
11512 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11513 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11514 field to full_name. Replace symtab->filename refererence by
11515 symtab_to_fullname call.
11516 (tui_show_symtab_source): Rename parameter to fullname. Change
11517 tui_locator_element field to full_name.
11518 * tui/tui-stack.c: Include source.h.
11519 (tui_set_locator_filename): Rename the declaration to ...
11520 (tui_set_locator_fullname): ... here. Rename its parameter to
11521 fullname, updates its comment.
11522 (tui_set_locator_info): Rename its parameter to fullname.
11523 (tui_set_locator_filename): Rename the definition to ...
11524 (tui_set_locator_fullname): ... here. Rename its parameter to
11525 fullname, updates its comment. Change tui_locator_element field to
11527 (tui_set_locator_info): Rename its parameter to fullname.
11528 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11529 (tui_update_locator_filename): Rename to ...
11530 (tui_update_locator_fullname): ... here. Rename callee to
11531 tui_set_locator_fullname.
11532 (tui_show_frame_info): Replace symtab->filename refererence by
11533 symtab_to_fullname call.
11534 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11535 (tui_update_locator_fullname): ... here.
11536 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11537 tui_update_locator_fullname. Replace symtab->filename refererence by
11538 symtab_to_fullname call.
11539 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11540 Rename the callee to tui_update_locator_fullname.
11541 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11543 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11545 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11546 by symtab_to_filename_for_display calls.
11547 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11548 (clear_command): New variable sal_fullname, initialize it. Replace
11549 compare_filenames_for_search by filename_cmp with sal_fullname.
11550 (say_where, update_static_tracepoint): Replace symtab->filename
11551 refererences by symtab_to_filename_for_display calls.
11552 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11554 * dwarf2read.c: Include source.h.
11555 (fixup_go_packaging): Replace symtab->filename refererences by
11556 symtab_to_filename_for_display calls.
11557 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11558 Replace symtab->filename refererences by symtab_to_filename_for_display
11560 (create_sals_line_offset, convert_linespec_to_sals): New variable
11561 fullname, initialize it, replace symtab->filename reference by the
11563 * linux-fork.c: Include source.h.
11564 (info_checkpoints_command): Replace symtab->filename refererences by
11565 symtab_to_filename_for_display calls.
11566 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11567 by symtab_to_filename_for_display calls.
11568 * mdebugread.c: Include source.h.
11569 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11570 symtab_to_filename_for_display calls.
11571 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11572 (mi_cmd_file_list_exec_source_files): Likewise.
11573 * printcmd.c: Include source.h.
11574 (build_address_symbolic): Replace symtab->filename refererences by
11575 symtab_to_filename_for_display calls.
11576 * psymtab.c (partial_map_symtabs_matching_filename)
11577 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11578 with psymtab_to_fullname.
11579 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11580 by symtab_to_filename_for_display calls.
11581 (stpy_get_filename): New variable filename, initialize it, use instead
11582 of symtab->filename refererences.
11583 (salpy_str): Make variable filename const char *. Replace
11584 symtab->filename refererences by symtab_to_filename_for_display calls.
11585 * skip.c: Include source.h and filenames.h.
11586 (skip_file_command): Remove const from the symtab variable. Replace
11587 symtab->filename refererences by symtab_to_fullname call.
11588 (function_name_is_marked_for_skip): New variables searched_for_fullname
11589 and fullname. Use them to search also with symtab's fullname.
11590 * source.c (find_source_lines): Replace symtab->filename refererences
11591 by symtab_to_filename_for_display calls.
11592 (print_source_lines_base): New variable filename, use it instead of
11593 symtab->filename. Replace symtab->filename refererences by
11594 symtab_to_filename_for_display calls.
11595 (line_info, forward_search_command): Replace symtab->filename
11596 refererences by symtab_to_filename_for_display calls.
11597 (reverse_search_command): Replace symtab->filename refererences by
11598 symtab_to_filename_for_display calls. New variable filename for it.
11599 * stack.c (frame_info): Likewise.
11600 * symmisc.c: Include source.h.
11601 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11602 (maintenance_info_symtabs): Replace symtab->filename refererences by
11603 symtab_to_filename_for_display calls.
11604 * symtab.c (iterate_over_some_symtabs): Call
11605 compare_filenames_for_search also with symtab_to_fullname.
11606 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11607 symtab->filename refererences by symtab_to_filename_for_display calls.
11608 (find_line_symtab): Replace symtab->filename refererences by
11609 symtab_to_filename_for_display calls.
11610 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11611 (print_symbol_info): Make the last parameter const char *. New
11612 variable s_filename. Use it in the function.
11613 (symtab_symbol_info): Make the last_filename variable const char *.
11614 Replace symtab->filename refererences by symtab_to_filename_for_display
11616 (rbreak_command): New variable fullname. Use it. Replace
11617 symtab->filename refererence by symtab_to_filename_for_display call.
11618 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11619 (print_one_static_tracepoint_marker): Replace symtab->filename
11620 refererences by symtab_to_filename_for_display calls.
11621 * tui/tui-source.c (tui_set_source_content): New variables filename and
11622 s_filename. Replace symtab->filename refererences by this variable.
11623 Replace other symtab->filename refererences by
11624 symtab_to_filename_for_display calls.
11626 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11627 Jan Kratochvil <jan.kratochvil@redhat.com>
11629 Add a new variable that controls a way in which filenames are
11631 * NEWS (set filename-display): New entry.
11632 * source.c (filename_display_basename, filename_display_relative)
11633 (filename_display_absolute, filename_display_kind_names)
11634 (filename_display_string, show_filename_display_string)
11635 (symtab_to_filename_for_display): New.
11636 (_initialize_source): Added initialization of 'filename-display'
11638 * source.h (symtab_to_filename_for_display): Added declaration.
11639 * stack.c (print_frame): Added new variable and calling of a new
11640 function and condition with this variable. Changed third argument of
11641 calling of a function.
11643 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11645 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11646 Rename field reference filename to fullname.
11647 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11648 fullname. New comment for it.
11649 * tui/tui-source.c (tui_set_source_content): Rename field reference
11650 filename to fullname. Initialize field by symtab_to_fullname now.
11651 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11652 reference filename to fullname. Use symtab_to_fullname during
11655 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11658 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11659 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11660 filename to fullname. Rename variable this_name to this_fullname.
11661 Lowercase FILENAME_CMP call.
11662 (dw2_find_symbol_file): New comment for the returned string.
11663 (dwarf2_gdb_index_functions): Rename the function to
11664 dw2_expand_symtabs_with_fullname.
11665 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11666 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11668 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11669 * symfile.h (struct quick_symbol_functions): Rename field
11670 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11671 parameter filename to fullname. Document returned string meaning for
11673 * symtab.c (find_line_symtab): Rename the called function to
11674 expand_symtabs_with_fullname.
11676 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11679 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11680 call of filename_cmp with compare_filenames_for_search.
11681 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11682 is_abs, unify the call of FILENAME_CMP with
11683 compare_filenames_for_search. New gdb_asserts for real_path and name.
11684 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11685 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11686 * symfile.h (struct quick_symbol_functions): Extend the comment for
11687 map_symtabs_matching_filename.
11688 * symtab.c (compare_filenames_for_search): Remove the function comment
11689 relative path requirement. Handle absolute filenames, with a comment.
11690 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11691 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11692 real_path and name. Unify the call of compare_filenames_for_search
11694 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11696 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11699 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11700 source_file references by symtab field references. Remove variables
11702 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11703 (clear_command, say_where): Replace bp_location field source_file
11704 references by symtab field references.
11705 (bp_location_dtor): Remove the source_file reference.
11706 (update_static_tracepoint): Replace bp_location field source_file
11707 references by symtab field references.
11708 (breakpoint_free_objfile): New function.
11709 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11710 Replace the field source_file by field symtab, extend its comment.
11711 (breakpoint_free_objfile): New declaration.
11712 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11713 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11714 field source_file references by symtab field references.
11716 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11718 Replace xfullpath calls by gdb_realpath calls.
11719 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11721 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11722 Remove it from the iterate_over_some_symtabs call.
11723 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11724 Remove it from the dw2_map_expand_apply calls, remove a block handling
11726 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11727 Remove it from the iterate_over_some_symtabs call.
11728 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11729 Remove it from the partial_map_expand_apply calls, remove a block
11730 handling it. Drop gdb_realpath call and cleanups from the real_path
11732 * source.c (openp): Drop the comment part about xfullpath. Replace
11733 xfullpath calls by gdb_realpath calls.
11734 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11735 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11736 from method map_symtabs_matching_filename and its comment.
11737 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11739 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11740 remove it also from the function comment, remove a block handling it.
11741 Drop gdb_realpath call and cleanups from the real_path handling.
11742 (iterate_over_symtabs): Drop variable full_path and its use.
11743 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11744 * utils.c (xfullpath): Remove.
11745 * utils.h (xfullpath): Remove.
11747 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11749 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11750 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11751 (ALLDEPFILES): Add ppc64-tdep.c.
11752 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11753 ppc64-tdep.o to gdb_target_obs.
11754 * ppc64-tdep.h: New file.
11755 * ppc64-tdep.c: New file.
11756 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11757 ppc-linux-tdep.c to here.
11758 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11759 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11760 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11761 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11762 from ppc-linux-tdep.c to here.
11763 (ppc64_convert_from_func_ptr_addr): Rename from
11764 ppc64_linux_convert_from_func_ptr_addr to
11765 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11768 (read_insn): Move from ppc-linux-tdep.c to here.
11769 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11770 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11771 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11772 Removed above functions.
11773 (ppc_linux_init_abi): Adjust.
11775 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11777 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11779 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11781 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11783 2013-02-01 Pedro Alves <palves@redhat.com>
11785 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11786 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11788 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11790 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11791 files with no separate debug info.
11792 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11793 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11794 only for files with no separate debug info.
11796 2013-01-31 Tom Tromey <tromey@redhat.com>
11798 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11800 (struct jit_program_space_data): Rename from jit_inferior_data.
11802 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11803 Change return type. Attach data to program space.
11804 (jit_program_space_data_cleanup): Rename from
11805 jit_inferior_data_cleanup; change argument type.
11806 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11808 (jit_register_code): Update.
11809 (jit_update_inferior_cache): Remove.
11810 (jit_breakpoint_deleted): Get jit data from the location's program
11812 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11813 'ps_data', change type.
11814 (jit_inferior_init, jit_breakpoint_re_set_internal)
11815 (jit_event_handler): Update.
11816 (free_objfile_data): Get data from objfile's program space.
11817 (_initialize_jit): Update.
11819 2013-01-31 Tom Tromey <tromey@redhat.com>
11822 * jit.c (struct jit_inferior_data) <cached_code_address,
11823 jit_breakpoint>: New fields.
11824 (jit_breakpoint_re_set_internal): Fix logging. Only create
11825 breakpoint if cached address has changed.
11826 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11828 (_initialize_jit): Register breakpoint deleted observer.
11830 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11832 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11833 (save_infcall_suspend_state): Ifdef out unused inf.
11834 (restore_infcall_suspend_state): Ifdef out unused inf.
11835 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11836 (jit_frame_sniffer): Remove unused inf_data.
11838 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11840 * c-exp.y (classify_inner_name): Remove unused type.
11841 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11842 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11844 (c_get_string): Remove unused kind.
11845 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11847 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11849 * charset.c (intermediate_encoding): Remove unused i.
11850 * completer.c (signal_completer): Remove unused i.
11851 * continuations.c (discard_my_continuations_1): Remove unused
11853 * corelow.c (core_close): Remove unuseD name.
11854 (get_core_siginfo): Remove unused pid.
11855 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11857 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11858 (loclist_describe_location): Remove unused first.
11859 * event-top.c (command_line_handler): Remove unused got_eof.
11860 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11861 (resize_section_table): Remove unused old_value.
11862 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11863 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11864 * i386-tdep.c (i386_process_record): Remove unused rex.
11865 * infcmd.c (get_return_value): Remove unused uiout.
11866 * jv-lang.c (type_from_class): Remove unused is_array.
11867 * jv-valprint.c (java_val_print): Remove unused i.
11868 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11869 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11870 * m2-typeprint.c (m2_print_type): Remove unused code.
11871 * macroexp.c (get_character_constant): Remove unused body_start.
11872 (macro_stringify): Remove unused result.
11873 * objc-lang.c (find_methods): Remove unused gdbarch.
11874 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11875 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11876 * stack.c (print_frame_args): Remove unused summary.
11877 * thread.c (thread_apply_command): Remove unused p.
11878 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11879 * valops.c (search_struct_method): Remove unused skip.
11880 * valprint.c (generic_val_print): Remove unused byte_order.
11881 * varobj.c (varobj_update): Remove unused changed.
11882 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11883 (alias_command): Remove unused c.
11884 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11885 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11887 (mi_cmd_data_write_memory): Remove unused word_format.
11888 (mi_cmd_data_write_memory_bytes): Remove unused r.
11889 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11891 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11892 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11895 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11897 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11898 * symtab.c (iterate_over_symtabs): Remove unused s.
11899 (find_pc_sect_symtab): Remove unused pspAce.
11900 (find_pc_sect_line): Remove unused alt_symtab.
11901 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11902 (completion_list_add_name): Remove unused newsize.
11904 2013-01-31 Tom Tromey <tromey@redhat.com>
11907 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11910 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11912 * target.c (target_read_string): Remove unused origlen.
11914 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11916 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11917 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11918 * ax-general.c (ax_print): Remove unused is_float.
11919 * blockframe.c (block_innermost_frame): Remove unused start, end.
11920 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11922 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11924 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11925 (svr4_read_so_list): Remove unused lmo.
11926 * solib-target.c (solib_target_relocate_section_addresses): Remove
11929 2013-01-30 Tom Tromey <tromey@redhat.com>
11931 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11933 2013-01-30 Tom Tromey <tromey@redhat.com>
11935 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11936 * utils.c (gnu_debuglink_crc32): Remove.
11937 * utils.h (gnu_debuglink_crc32): Don't declare.
11939 2013-01-30 Tom Tromey <tromey@redhat.com>
11941 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11942 (read_structure_type, read_enumeration_type): Remove cast.
11944 2013-01-30 Tom Tromey <tromey@redhat.com>
11946 * dwarf2read.c (read_namespace_type): Remove cast.
11947 (read_typedef): Likewise.
11949 2013-01-29 Tom Tromey <tromey@redhat.com>
11951 * dwarf2read.c (free_dwo_file): Remove assert.
11953 2013-01-29 Tom Tromey <tromey@redhat.com>
11955 * value.c (deprecated_set_value_modifiable): Remove.
11956 * value.h (deprecated_set_value_modifiable): Remove.
11958 2013-01-28 Doug Evans <dje@google.com>
11960 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11961 to addresses from dwo files.
11963 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11965 * valops.c (find_overload_match): Remove unused argument 'lax'.
11966 * value.h: Remove unused argument 'lax' from the declaration of
11967 find_overload_match.
11968 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11969 to find_overload_match.
11970 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11971 argument to find_overload_match.
11973 2013-01-25 Tom Tromey <tromey@redhat.com>
11975 * dwarf2read.c (processing_has_namespace_info): Remove.
11976 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11977 (process_die, read_func_scope, dwarf2_start_symtab)
11978 (new_symbol_full): Update.
11980 2013-01-25 Tom Tromey <tromey@redhat.com>
11982 * cp-namespace.c (cp_set_block_scope): Remove.
11983 * cp-support.h (cp_set_block_scope): Remove.
11984 * dbxread.c: Include block.h.
11985 (cp_set_block_scope): New function.
11986 (process_one_symbol): Update.
11987 * dwarf2read.c (read_func_scope): Use block_set_scope.
11989 2013-01-25 Pedro Alves <palves@redhat.com>
11991 * remote.c (add_current_inferior_and_thread): Tweak comment.
11993 2013-01-25 Tom Tromey <tromey@redhat.com>
11995 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11996 (cp_add_using_directive): Add 'copy_names' argument.
11997 * cp-support.h (cp_add_using_directive): Update.
11998 (struct using_direct) <import_src, import_dest, alias,
11999 declaration>: Now const.
12000 * dwarf2read.c (read_import_statement): Use obconcat.
12001 Don't copy names passed to cp_add_using_directive.
12003 2013-01-25 Tom Tromey <tromey@redhat.com>
12005 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12007 2013-01-25 Pedro Alves <palves@redhat.com>
12009 * remote.c (stop_reply_extract_thread): New.
12010 (add_current_inferior_and_thread): New parameter 'wait_status'.
12012 (remote_start_remote): Pass wait status to
12013 add_current_inferior_and_thread.
12014 (extended_remote_run): Update comment.
12015 (extended_remote_create_inferior_1): Pass wait status to
12016 add_current_inferior_and_thread.
12018 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12019 Ulrich Weigand <uweigand@de.ibm.com>
12021 * valarith.c (value_vector_widen): New function for replicating a
12022 scalar into a vector.
12023 (value_binop): Use value_vector_widen to widen scalar to vector
12024 rather than casting, this better matches gcc C behaviour.
12025 * valops.c (value_casst): Update logic for casting between vector
12026 types, and for casting from scalar to vector, try to match gcc C
12028 * value.h (value_vector_widen): Declare.
12029 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12030 function, handle special case for casting scalar to vector.
12031 (opencl_relop): Use opencl_value_cast.
12032 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12033 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12034 in order to use opencl_value_cast.
12036 2013-01-25 Yao Qi <yao@codesourcery.com>
12038 * event-loop.c: Include "queue.h".
12039 (gdb_event_p): New typedef.
12040 (DECLARE_QUEUE_P): Use.
12041 (DEFINE_QUEUE_P): Use.
12042 (async_queue_event): Remove.
12043 (gdb_event_xfree): New.
12044 (initialize_event_loop): New.
12045 (process_event): Use QUEUE macros.
12046 (event_queue): Remove.
12047 (gdb_wait_for_event): Caller update.
12048 (check_async_event_handlers): Likewise.
12049 (poll_timers): Likewise.
12050 * event-loop.h (initialize_event_loop): Declare.
12051 * event-loop.c (gdb_event_xfree): New.
12052 * top.c (gdb_init): Call initialize_event_loop.
12054 2013-01-25 Yao Qi <yao@codesourcery.com>
12056 * event-loop.c (async_queue_event): Remove one parameter
12057 'position'. Remove code handling 'position' == TAIL.
12058 (gdb_wait_for_event): Caller update.
12059 (check_async_event_handlers): Caller update.
12060 (poll_timers): Caller update.
12061 * event-loop.h (enum queue_position): Remove.
12063 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12065 * MAINTAINERS: Update my email.
12067 2013-01-25 Yao Qi <yao@codesourcery.com>
12069 * main.c (print_gdb_help): Remove "--epoch" from the help
12072 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12074 * symtab.c (skip_prologue_using_sal): Consider a file
12075 change the same as an increased line number
12077 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12079 * MAINTAINERS (Write After Approval): Add myself to the list.
12081 2013-01-24 Tom Tromey <tromey@redhat.com>
12083 * ada-lang.h (ada_decode_symbol): Make return type const.
12084 * ada-lang.c (ada_decode_symbol): Likewise.
12086 2013-01-23 Doug Evans <dje@google.com>
12088 * linespec.c (find_linespec_symbols): Make static.
12090 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12092 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12093 type on float conversion for complex type.
12095 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12097 Add a new class gdb.Architecture which exposes GDB's
12098 internal representation of architecture via GDB Python API.
12099 * Makefile.in: Add entries corresponding to the new file
12101 * NEWS (Python Scripting): Add entries for the new class
12102 gdb.Architecture and the new method gdb.Frame.architecture.
12103 * python/py-arch.c: Implement gdb.Architecture class.
12104 * python/py-frame.c (frapy_arch): Implement the method
12105 gdb.Frame.architecture().
12106 (frame_object_methods): Add 'architecture' to the method table.
12107 * python/python-internal.h: Add declarations of new utility
12109 * python/python.c (_initialize_python): Initialize
12110 gdb.Architecture class.
12112 2013-01-23 Doug Evans <dje@google.com>
12114 Work around binutils/15021.
12115 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12116 type_unit_group out of union s. All uses updated.
12117 (read_index_from_section): Watch for index version 8.
12118 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12119 an imported symtab.
12120 (write_psymtabs_to_index): Increment version number to 8.
12122 2013-01-22 Pedro Alves <palves@redhat.com>
12124 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12127 2013-01-22 Pedro Alves <palves@redhat.com>
12129 * annotate.c (annotate_breakpoints_changed): Rename to ...
12130 (annotate_breakpoints_invalid): ... this. Make static.
12131 (breakpoint_changed): Adjust.
12132 (_initialize_annotate): Always install the observers. Install a
12133 "breakpoint_created" observer.
12134 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12135 * breakpoint.c (set_breakpoint_condition)
12136 (breakpoint_set_commands, do_map_commands_command)
12137 (init_raw_breakpoint, clear_command, set_ignore_count)
12138 (enable_breakpoint_disp): No longer call
12139 annotate_breakpoints_changed.
12141 2013-01-22 Pedro Alves <palves@redhat.com>
12143 * annotate.c: Include "inferior.h".
12144 (frames_invalid_emitted)
12145 (breakpoints_invalid_emitted): New globals.
12146 (async_background_execution_p): New function.
12147 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12148 emitting the annotation if it has already been emitted.
12149 (annotate_display_prompt): New function.
12150 * annotate.h (annotate_display_prompt): New declaration.
12151 * event-top.c: Include annotate.h.
12152 (display_gdb_prompt): Call annotate_display_prompt.
12154 2013-01-22 Pedro Alves <palves@redhat.com>
12156 * annotate.c (ignore_count_changed): Delete.
12157 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12158 (annotate_ignore_count_change): Delete.
12159 (annotate_stopped): Don't emit a delayed breakpoints-changed
12161 * annotate.h (annotate_ignore_count_change): Delete.
12162 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12163 annotate_ignore_count_change.
12165 2013-01-22 Tom Tromey <tromey@redhat.com>
12167 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12168 require_rvalue for a register location.
12170 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12172 * breakpoint.c (print_one_breakpoint_location): Add MI
12173 field 'thread-groups' when printing a breakpoint.
12174 (output_thread_groups): New function.
12176 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12178 * python/lib/gdb/commands/explore.py
12179 (CompoundExplorer.explore_expr): Correct the name of a method
12181 (ExploreTypeCommand.invoke): Add a missing 'return'.
12183 2013-01-21 Tom Tromey <tromey@redhat.com>
12185 * gdb_obstack.h (obconcat): Move declaration here, from...
12186 * symfile.h (obconcat): ... here.
12187 * gdb_obstack.c: New file.
12188 (obconcat): Move from...
12189 * symfile.c (obconcat): ... here.
12190 * Makefile.in (SFILES): Add gdb_obstack.c.
12191 (COMMON_OBS): Add gdb_obstack.o.
12193 2013-01-21 Tom Tromey <tromey@redhat.com>
12195 * symfile.h (obsavestring): Don't declare.
12196 * symfile.c (obsavestring): Remove.
12197 * ada-exp.y: Use obstack_copy0, not obsavestring.
12198 * ada-lang.c: Use obstack_copy0, not obsavestring.
12199 * coffread.c: Use obstack_copy0, not obsavestring.
12200 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12201 * dbxread.c: Use obstack_copy0, not obsavestring.
12202 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12203 * jit.c: Use obstack_copy0, not obsavestring.
12204 * mdebugread.c: Use obstack_copy0, not obsavestring.
12205 * psymtab.c: Use obstack_copy0, not obsavestring.
12206 * stabsread.c: Use obstack_copy0, not obsavestring.
12207 * xcoffread.c: Use obstack_copy0, not obsavestring.
12209 2013-01-21 Tom Tromey <tromey@redhat.com>
12211 * dwarf2read.c (fixup_go_packaging): Save package name
12212 on objfile obstack.
12213 * gdbtypes.c (init_type): Don't copy name.
12215 2013-01-21 Tom Tromey <tromey@redhat.com>
12217 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12219 (struct attribute) <u.str>: Now const.
12220 (struct fnfieldlist) <name>: Now const.
12221 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12222 (partial_die_parent_scope): Make return type const.
12223 (partial_die_full_name, add_partial_symbol): Update.
12224 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12226 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12227 (read_file_scope, read_func_scope, dwarf2_add_field)
12228 (dwarf2_add_member_fn, read_structure_type)
12229 (process_enumeration_scope, read_array_type, read_module_type)
12230 (read_base_type, read_subrange_type): Update.
12231 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12232 (new_symbol_full, guess_full_die_structure_name): Update.
12233 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12234 (dwarf2_name): Return const type.
12235 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12238 2013-01-21 Tom Tromey <tromey@redhat.com>
12240 * gdbtypes.c (init_type): Make 'name' const.
12241 * gdbtypes.h (init_type): Update.
12243 2013-01-21 Tom Tromey <tromey@redhat.com>
12245 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12246 (start_symtab): Make 'name' and 'dirname' const. Use
12247 set_last_source_file.
12248 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12249 (last_source_file): Define. Now static.
12250 (set_last_source_file, get_last_source_file): New functions.
12251 * buildsym.h (last_source_file): Don't declare.
12252 (start_symtab): Update.
12253 (set_last_source_file, get_last_source_file): Declare.
12254 * coffread.c (complete_symtab): Use set_last_source_file.
12255 (coff_end_symtab): Likewise.
12256 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12257 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12258 set_last_source_file.
12259 (process_one_symbol): Use get_last_source_file.
12260 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12261 (psymtab_to_symtab_1): Use get_last_source_file.
12262 * xcoffread.c (process_linenos): Use get_last_source_file.
12263 (complete_symtab): Use set_last_source_file.
12264 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12265 (scan_xcoff_symtab): Use set_last_source_file.
12267 2013-01-21 Tom Tromey <tromey@redhat.com>
12269 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12270 (symbol_set_names): Remove casts. Handle field const-ness.
12272 2013-01-21 Tom Tromey <tromey@redhat.com>
12274 * dwarf2read.c (new_symbol_full): Remove cast.
12275 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12276 * symtab.h (symbol_set_demangled_name): Update.
12278 2013-01-21 Tom Tromey <tromey@redhat.com>
12280 * main.c (captured_main): Call bfd_init.
12282 2013-01-21 Tom Tromey <tromey@redhat.com>
12284 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12285 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12286 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12289 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12291 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12293 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12295 Fix gdb.fortran/common-block.exp crash in PIE mode.
12296 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12298 * f-valprint.c (info_common_command_for_block): Expect
12299 LOC_COMMON_BLOCK in gdb_assert.
12300 * symtab.h (struct general_symbol_info): Update comment for the
12301 common_block member.
12302 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12303 (enum address_class): New member LOC_COMMON_BLOCK.
12305 2013-01-18 David Blaikie <dblaikie@gmail.com>
12307 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12309 2013-01-18 Tom Tromey <tromey@redhat.com>
12312 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12313 Call require_rvalue.
12315 2013-01-18 Yao Qi <yao@codesourcery.com>
12317 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12318 (dbx_read_symtab): New declaration.
12319 (dbx_psymtab_to_symtab): Delete.
12320 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12321 Rename parameter PST to SELF. Exchanged two parameters.
12322 (start_psymtab): Caller update.
12323 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12324 (dwarf2_read_symtab): New declaration.
12325 (dwarf2_psymtab_to_symtab): Delete.
12326 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12327 Rename parameter PST to SELF. Exchanged two parameters.
12328 (create_partial_symtab): Caller update.
12329 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12330 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12331 Rename parameter PST to SELF. Exchanged two parameters.
12332 (parse_partial_symbols, new_psymtab): Caller update.
12333 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12335 * psymtab.c (psymtab_to_symtab): Caller update.
12336 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12337 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12338 Rename parameter PST to SELF. Exchanged two parameters.
12339 (xcoff_start_psymtab): Caller update.
12341 2013-01-18 Yao Qi <yao@codesourcery.com>
12343 * infrun.c (proceed): Rename local variable 'oneproc' to
12346 2013-01-17 Doug Evans <dje@google.com>
12348 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12349 (dw2_build_type_unit_groups): Delete. All uses updated.
12351 * symtab.h (struct symbol_search): Add comment.
12353 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12355 * symtab.c (compare_filenames_for_search): New comment for
12358 2013-01-17 Tom Tromey <tromey@redhat.com>
12360 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12362 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12364 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12365 initialize it by existing make_cleanup. Call new do_cleanups.
12367 2013-01-17 Tom Tromey <tromey@redhat.com>
12369 * cp-abi.c (cp_abi_completer): New function.
12370 (_initialize_cp_abi): Set completer for "set cp-abi".
12372 2013-01-17 Tom Tromey <tromey@redhat.com>
12374 * mem-break.c: Remove obsolete comment.
12375 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12377 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12379 * jit.c (jit_reader_load_command): Interpret the jit reader name
12380 as an absolute path if it begins with a forward slash.
12382 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12386 * jit.c (finalize_symtab): Ensure that only the global block has a
12389 2013-01-17 Pedro Alves <palves@redhat.com>
12391 * acinclude.m4: Include ../config/plugins.m4,
12392 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12393 * Makefile.in (aclocal_m4_deps): Update.
12394 * aclocal.m4: Renegerate.
12396 2013-01-16 Doug Evans <dje@google.com>
12398 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12400 2013-01-16 Pedro Alves <palves@redhat.com>
12401 Tom Tromey <tromey@redhat.com>
12404 * NEWS: Add "catch signal".
12405 * breakpoint.c (base_breakpoint_ops): No longer static.
12406 (bpstat_explains_signal): New function.
12407 (init_catchpoint): No longer static.
12408 (base_breakpoint_explains_signal): New function.
12409 (base_breakpoint_ops): Initialize new field.
12410 * breakpoint.h (enum bpstat_signal_value): New.
12411 (struct breakpoint_ops) <explains_signal>: New field.
12412 (bpstat_explains_signal): Remove macro, declare as function.
12413 (base_breakpoint_ops, init_catchpoint): Declare.
12414 * break-catch-sig.c: New file.
12415 * inferior.h (signal_catch_update): Declare.
12416 * infrun.c (signal_catch): New global.
12417 (handle_syscall_event): Update for change to
12418 bpstat_explains_signal.
12419 (handle_inferior_event): Likewise. Always handle random signals
12421 (signal_cache_update): Check signal_catch.
12422 (signal_catch_update): New function.
12423 (_initialize_infrun): Initialize signal_catch.
12424 * Makefile.in (SFILES): Add break-catch-sig.c.
12425 (COMMON_OBS): Add break-catch-sig.o.
12427 2013-01-16 Tom Tromey <tromey@redhat.com>
12429 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12430 (print_one_catch_solib, print_one_catch_syscall)
12431 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12434 2013-01-16 Yao Qi <yao@codesourcery.com>
12436 * printcmd.c (current_display_number): Make it static.
12438 2013-01-16 Yao Qi <yao@codesourcery.com>
12440 * infcmd.c (step_once): Don't check '!single_inst' as it was
12443 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12445 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12447 2013-01-14 Tom Tromey <tromey@redhat.com>
12449 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12451 * command.h (add_setshow_string_noescape_cmd): Update.
12452 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12453 (complete_set_gnutarget): New function.
12454 (_initialize_core): Set the "set gnutarget" completer.
12456 2013-01-14 Tom Tromey <tromey@redhat.com>
12459 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12460 (c_type_print_modifier): Likewise.
12461 * dwarf2read.c (read_tag_restrict_type): New function.
12462 (read_type_die_1): Handle DW_TAG_restrict_type.
12463 * gdbtypes.c (make_restrict_type): New function.
12464 (recursive_dump_type): Handle TYPE_RESTRICT.
12465 * gdbtypes.h (enum type_flag_values): Renumber.
12466 (enum type_instance_flag_value): Add
12467 TYPE_INSTANCE_FLAG_RESTRICT.
12468 (TYPE_RESTRICT): New macro.
12469 (make_restrict_type): Declare.
12471 2013-01-14 Tom Tromey <tromey@redhat.com>
12474 * psymtab.c (struct psymtab_state): New.
12475 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12477 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12478 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12480 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12481 Pedro Alves <palves@redhat.com>
12485 * remote.c (remote_threads_info): Make a copy of the reply from
12486 qfThreadInfo and use that instead of rs->buf.
12488 2013-01-14 Yao Qi <yao@codesourcery.com>
12490 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12491 (dbx_psymtab_to_symtab): Likewise.
12492 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12493 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12496 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12498 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12499 make_cleanup_restore_current_language. Call set_language. Move
12500 OLD_CHAIN and INNER_CHAIN cleanups.
12501 * utils.c (do_restore_current_language)
12502 (make_cleanup_restore_current_language): New functions.
12503 * utils.h (make_cleanup_restore_current_language): New declaration.
12505 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12507 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12508 non-existing files.
12510 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12511 non-existing files if FILENAME is already absolute.
12513 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12515 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12516 fputs_filtered. Append trailing newline.
12518 2013-01-11 Yao Qi <yao@codesourcery.com>
12519 Stan Shebs <stan@codesourcery.com>
12521 * psymtab.c (init_psymbol_list): Clarify the comment.
12523 2013-01-11 Yao Qi <yao@codesourcery.com>
12525 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12526 (update_dprintf_command_list): Assert that 'printf_line' is
12527 non-null. Remove condition check.
12529 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12532 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12534 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12536 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12538 2013-01-09 Anthony Green <green@moxielogic.com>
12540 * cp-abi.c (cplus_print_vtable): Don't return value from void
12542 * ada-lang.c (re_set_catch_assert): Ditto.
12544 2013-01-09 Doug Evans <dje@google.com>
12546 * symfile.h (quick_symbol_functions): Delete member
12547 pre_expand_symtabs_matching. All uses removed.
12548 * dwarf2read.c (dw2_lookup_symbol): Implement.
12549 (dw2_do_expand_symtabs_matching): Delete.
12550 (dw2_pre_expand_symtabs_matching): Delete.
12551 (struct dw2_symtab_iterator): New type.
12552 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12553 (dw2_expand_symtabs_for_function): Rewrite.
12554 (dwarf2_gdb_index_functions): Update.
12555 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12556 (psym_functions): Update.
12558 2013-01-09 Tom Tromey <tromey@redhat.com>
12560 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12561 * configure: Rebuild.
12562 * configure.ac: Add somread.o to the build if BFD has SOM
12564 * somread.c: Include som/aout.h, not syms.h.
12565 (som_symtab_read): Use som_external_symbol_dictionary_record.
12566 Unpack records manually.
12567 (_initialize_somread): Declare.
12569 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12571 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12572 Cast return_address to 64bits.
12574 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12576 * printcmd.c: Remove define of function output_command.
12577 * tracepoint.c: Remove extern of function output_command.
12578 * valprint.h: (output_command): New extern.
12580 2013-01-07 Tom Tromey <tromey@redhat.com>
12582 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12584 (objc_language_defn): Use c_printchar, c_printstr,
12587 2013-01-07 Tom Tromey <tromey@redhat.com>
12591 * ada-valprint.c (printstr, print_field_values): Remove
12593 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12595 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12597 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12598 * main.c (captured_main): Remove "epoch" argument.
12599 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12600 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12601 * p-valprint.c (pascal_object_print_value_fields): Remove
12603 * printcmd.c (print_command_1): Remove 'inspect' argument.
12604 (print_command, call_command): Update.
12605 (inspect_command): Remove.
12606 (_initialize_printcmd): Make "inspect" an alias for "print".
12607 * top.c (epoch_interface): Remove.
12608 * top.h (epoch_interface): Remove.
12609 * valprint.c (user_print_options): Update.
12610 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12611 * valprint.h (struct value_print_options) <inspect_it>: Remove
12614 2013-01-04 Tom Tromey <tromey@redhat.com>
12616 * valprint.h (read_string): Add 'extern'.
12618 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12620 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12621 used to decide whether to define darwin_read_dyld_info or not.
12623 2013-01-03 Pierre Muller <muller@sourceware.org>
12625 * main.c (relocate_gdb_directory): Avoid calling stat function
12628 2013-01-03 Yao Qi <yao@codesourcery.com>
12630 * psymtab.c (fixup_psymbol_section): Update declaration.
12631 (fixup_psymbol_section): Remove code returning value.
12633 2013-01-03 Yao Qi <yao@codesourcery.com>
12635 * symtab.h: Remove some out of date comments.
12636 (enum exception_event_kind): Move it ...
12637 * breakpoint.c: ... here.
12639 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12642 * darwin-nat.c (darwin_read_dyld_info): Only build if
12643 TASK_DYLD_INFO_COUNT is defined.
12644 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12645 TASK_DYLD_INFO_COUNT is defined.
12647 2013-01-02 Tom Tromey <tromey@redhat.com>
12649 * symfile.h (struct ecoff_debug_hack): Remove.
12650 * objfiles.c: Don't include mdebugread.h.
12652 2013-01-02 Tom Tromey <tromey@redhat.com>
12654 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12655 * configure.ac: Check for Mach-O support in BFD. Update
12657 * configure: Rebuild.
12659 2013-01-02 Tom Tromey <tromey@redhat.com>
12661 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12662 * configure.ac: Use GDB_AC_CHECK_BFD.
12663 * configure: Rebuild.
12665 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12667 * MAINTAINERS: Update my email.
12669 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12671 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12673 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12675 * rs6000-nat.c (bss_data_overlap): New function.
12676 (vmap_symtab): Use it to adjust the .bss section's offset.
12678 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12680 Update year range in copyright notice of all files.
12682 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12684 * top.c (print_gdb_version): Update copyright year.
12686 For older changes see ChangeLog-2012.
12692 version-control: never