1 2013-11-24 Yao Qi <yao@codesourcery.com>
3 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
4 (stack_cache_enabled_1): ... this. New variable.
5 (stack_cache_enabled_p): Rename to ...
6 (stack_cache_enabled): ... this. New variable.
7 (set_stack_cache_enabled_p): Rename to ...
8 (set_stack_cache): ... this. Update caller.
9 (show_stack_cache_enabled_p): Rename to ...
10 (show_stack_cache): ... this. Update caller.
11 (stack_cache_enabled): Rename to ...
12 (stack_cache_enabled_p): ... this. Update caller.
13 (_initialize_target_dcache): Replace "data cache" with
14 "target memory cache".
15 * target-dcache.h (stack_cache_enabled): Remove declaration.
16 (stack_cache_enabled_p): Add declaration.
18 2013-11-23 Doug Evans <xdje42@gmail.com>
20 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
23 2013-11-23 Doug Evans <xdje42@gmail.com>
25 * python/py-frame.c (frapy_block): Fix error message text.
27 2013-11-23 Doug Evans <xdje42@gmail.com>
29 * cli/cli-script.c (multi_line_command_p): New function.
30 (recurse_read_control_structure, read_command_lines_1): Call it.
31 (execute_control_command): Consistently have a blank line between
34 2013-11-22 Sterling Augustine <saugustine@google.com>
37 * valprint.c (read_string): Set new variable fetchlen based on
38 fetchlimit and size. Use it in call to partial_memory_read.
41 2013-11-22 Tom Tromey <tromey@redhat.com>
44 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
45 the return address column is unspecified.
47 2013-11-22 Tom Tromey <tromey@redhat.com>
48 Pedro Alves <palves@redhat.com>
51 * value.c (value_fetch_lazy): Internal error if
52 get_frame_register_value returns the same register.
54 2013-11-22 Pedro Alves <palves@redhat.com>
55 Tom Tromey <tromey@redhat.com>
57 * frame.c (frame_stash_add): Now returns whether a frame with the
58 same ID was already known.
59 (compute_frame_id): New function, factored out from get_frame_id.
60 (get_frame_id): No longer lazilly compute the frame id here.
61 (get_prev_frame_if_no_cycle): New function. Detects wider stack
63 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
64 and checking for stack cycles here.
66 2013-11-22 Pedro Alves <palves@redhat.com>
69 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
70 this frame and the new previous frame, not between this frame and
73 2013-11-22 Pedro Alves <palves@redhat.com>
76 * dwarf2-frame.c (struct dwarf2_frame_cache)
77 <checked_tailcall_bottom, entry_cfa_sp_offset,
78 entry_cfa_sp_offset_p>: New fields.
79 (dwarf2_frame_cache): Adjust to use the new cache fields instead
80 of locals. Don't call dwarf2_tailcall_sniffer_first here.
81 (dwarf2_frame_prev_register): Call it here, but only once.
83 2013-11-21 Doug Evans <xdje42@gmail.com>
85 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
86 (type_equality_entry): Move here from python/py-type.c.
87 (type_equality_entry_d): Ditto.
88 (compare_maybe_null_strings, check_types_equal): Ditto.
89 (check_types_worklist, types_deeply_equal): Ditto.
90 * gdbtypes.h (types_deeply_equal): Declare.
91 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
92 (typy_richcompare): Update.
94 2013-11-20 Joel Brobecker <brobecker@adacore.com>
96 * python/py-value.c (is_intlike): Delete.
97 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
98 by use of is_integral_type.
99 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
100 by use of is_integral_type and check for TYPE_CODE_PTR.
102 2013-11-20 Tom Tromey <tromey@redhat.com>
104 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
106 * gnulib/aclocal.m4: Update.
107 * gnulib/config.in: Update.
108 * gnulib/configure: Update.
109 * gnulib/import/Makefile.am: Update.
110 * gnulib/import/Makefile.in: Update.
111 * gnulib/import/errno.in.h: Remove.
112 * gnulib/import/intprops.h: Remove.
113 * gnulib/import/m4/errno_h.m4: Remove.
114 * gnulib/import/m4/gnulib-cache.m4: Update.
115 * gnulib/import/m4/gnulib-comp.m4: Update.
116 * gnulib/import/m4/strerror.m4: Remove.
117 * gnulib/import/m4/sys_socket_h.m4: Remove.
118 * gnulib/import/strerror-override.c: Remove.
119 * gnulib/import/strerror-override.h: Remove.
120 * gnulib/import/strerror.c: Remove.
121 * gnulib/update-gnulib.sh: Update.
123 2013-11-20 Yao Qi <yao@codesourcery.com>
125 * target-dcache.c (target_dcache_get_or_init): Call
126 set_address_space_data if 'dcache' is NULL.
128 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
130 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
132 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
134 * python/lib/gdb/command/bound_register.py: New file.
135 * data-directory/Makefile.in: Copy bond_register.py to the right path
136 to be initialized at gdb startup.
138 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
140 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
142 (amd64_linux_read_description): Add initialization for MPX and
144 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
145 (amd64_linux_gregset_reg_offset): Add MPX registers.
146 (amd64_linux_core_read_description): Add initialization for MPX
148 (_initialize_amd64_linux_tdep): Initialize MPX targets.
149 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
150 register on the list.
151 (tdesc_amd64_mpx_linux) Add new target for MPX.
152 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
153 (amd64_mpx_names): MPX register names.
154 (amd64_init_abi): Add MPX register while initializing the ABI.
155 (_initialize_amd64_tdep): Initialize MPX targets.
156 * amd64-tdep.h (amd64_regnum): Add MPX registers.
157 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
159 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
161 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
162 registers on the range of registers to be read from
164 (i386_linux_read_description): Add case for MPX.
165 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
166 (i386_linux_gregset_reg_offset): Add MPX registers.
167 (i386_linux_core_read_description): Initialize also MPX.
168 (_initialize_i386_linux_tdep): Add mpx initialization.
169 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
171 (i386_regnum): Add MPX registers.
172 (I386_MPX_NUM_REGS): New macro.
173 (i386_bnd_regnum_p): New function.
174 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
175 number of registers to be the number of BNDSTATUS.
176 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
177 * i386-tdep.c: Include features/i386/i386-mpx.c.
178 (i386_mpx_names): Add MPX register names array.
179 (i386_bnd_names): Add bnd pseudo register names array.
180 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
182 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
183 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
185 (i386_bnd_type): New function.
186 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
188 (i386_pseudo_register_read_into_value): Add bnd case.
189 (i386_pseudo_register_write): Add bnd pseudo registers.
190 (i386_register_reggroup_p): Add MPX register to the group all.
191 (i386_validate_tdesc_p): Add MPX to the target description
193 (i386_pseudo_register_name): Add bnd pseudo registers.
194 (i386_gdbarch_init): Add MPX for architecture initialization.
195 (_initia_initialize_i386_tdep): Add mpx initialization.
196 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
198 (XSAVE_MPX_ADDR): New macro.
199 (i387_supply_xsave): Add MPX case.
200 (i387_collect_xsave): Add MPX case.
201 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
202 (I387_BNDCFGU_REGNUM): New macro.
203 (I387_NUM_MPX_REGS): New macro.
204 (I387_NUM_BND_REGS): New macro.
205 (I387_NUM_MPX_CTRL_REGS): New macro.
206 (I387_MPXEND_REGNUM): New macro.
207 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
208 (I386_XSTATE_BNDCFG): Likewise.
209 (I386_XSTATE_MPX_MASK): Likewise.
210 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
211 (I386_XSTATE_BNDREGS_SIZE): New macro.
212 (I386_XSTATE_BNDCFG_SIZE): Likewise.
213 (I386_XSTATE_SIZE): Adapt for MPX.
214 (I386_XSTATE_MAX_SIZE): Likewise.
216 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
218 * features/i386/Makefile: Adapts for using MPX registers.
219 * features/i386/32bit-mpx.xml: New file.
220 * features/i386/64bit-mpx.xml: Likewise.
221 * features/i386/amd64-mpx-linux.c: Likewise.
222 * features/i386/amd64-mpx-linux.xml: Likewise.
223 * features/i386/amd64-mpx.c: Likewise.
224 * features/i386/amd64-mpx.xml: Likewise.
225 * features/i386/i386-mpx-linux.c: Likewise.
226 * features/i386/i386-mpx-linux.xml: Likewise.
227 * features/i386/i386-mpx.c: Likewise.
228 * features/i386/i386-mpx.xml: Likewise.
229 * regformats/i386/amd64-mpx-linux.dat: New file.
230 * regformats/i386/amd64-mpx.dat: Likewise.
231 * regformats/i386/i386-mpx-linux.dat: Likewise.
232 * regformats/i386/i386-mpx.dat: Likewise.
234 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
236 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
237 Modified logic of creating a bitfield to be in sync with
240 2013-11-20 Will Newton <will.newton@linaro.org>
242 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
245 2013-11-20 Yao Qi <yao@codesourcery.com>
247 * progspace.h (struct address_space_data): Declare.
248 * target-dcache.c: Include "progspace.h".
249 (target_dache): Remove.
250 (target_dcache_aspace_key): New.
251 (target_dcache_cleanup): New function.
252 (target_dcache_init_p): Get data through
253 target_dcache_aspace_key.
254 (target_dcache_invalidate): Likewise.
255 (target_dcache_get): Likewise.
256 (target_dcache_get_or_init): Likewise.
257 (_initialize_target_dcache): Initialize
258 target_dcache_aspace_key.
260 2013-11-20 Yao Qi <yao@codesourcery.com>
262 * progspace.c (struct address_space): Update comments.
263 <REGISTRY_FIELDS>: New fields.
264 DEFINE_REGISTRY for address_space.
265 (new_address_space): Call address_space_alloc_data.
266 (free_address_space): Call address_space_free_data.
267 * progspace.h: Use DECLARE_REGISTRY.
269 2013-11-20 Yao Qi <yao@codesourcery.com>
271 * Makefile.in (SFILES):Add target-dcache.c.
272 (HFILES_NO_SRCDIR): Add target-dcache.h.
273 (COMMON_OBS): Add target-dcache.o.
274 * dcache.c: Remove inclusion to "target.h". Include
276 * memattr.c: Include "target-dcache.h".
278 * tracepoint.c: Likewise.
279 * target.c: (stack_cache_enabled_p_1): Move to
281 (stack_cache_enabled_p): Likewise.
282 (set_stack_cache_enabled_p): Likewise.
283 (show_stack_cache_enabled_p): Likewise.
284 (target_dcache, target_dcache_init_p): Likewise.
285 (target_dcache_invalidate): Likewise.
286 (target_dcache_get, target_dcache_get_or_init): Likewise.
287 (memory_xfer_partial_1): Call function stack_cache_enabled.
288 (initialize_target): Move code to target-dcache.c.
289 * target.h (target_dcache_invalidate): Move to
291 (target_dcache_get): Likewise.
292 * target-dcache.c: New.
293 * target-dcache.h: New.
295 2013-11-20 Yao Qi <yao@codesourcery.com>
297 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
300 2013-11-20 Yao Qi <yao@codesourcery.com>
302 * dcache.c (last_cache): Remove.
303 (dcache_free, dcache_init): Update.
305 (dcache_print_line): Add parameter 'dcache'. Replace
306 'target_dcache' with 'dcache'.
307 (dcache_info): Move code to dcache_info_1. Call
309 (dcache_info_1): New function.
310 (set_dcache_size): Call target_dcache_invalidate.
311 (set_dcache_line_size): Call target_dcache_invalidate.
312 * target.c (target_dcache_init_p): New function.
313 (target_dcache_invalidate): Check target_dcache_init_p first.
314 (target_dcache_get, target_dcache_get_or_init): New function.
315 (memory_xfer_partial_1): Adjust.
316 (initialize_target): Don't initialize 'target_dcache'.
317 * target.h (struct dcache_struct): Declare.
318 (target_dcache_get): Declare.
320 2013-11-19 Yao Qi <yao@codesourcery.com>
322 * varobj.c (varobj_get_type): Fix typo.
324 2013-11-19 Joel Brobecker <brobecker@adacore.com>
326 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
328 2013-11-19 Joel Brobecker <brobecker@adacore.com>
330 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
333 2013-11-18 Tom Tromey <tromey@redhat.com>
335 * common/gdb_stat.h: Remove.
336 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
337 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
338 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
339 * corefile.c: Use sys/stat.h, not gdb_stat.h.
340 * ctf.c: Use sys/stat.h, not gdb_stat.h.
341 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
342 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
343 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
344 * exec.c: Use sys/stat.h, not gdb_stat.h.
345 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
346 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
347 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
348 * jit.c: Use sys/stat.h, not gdb_stat.h.
349 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
350 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
351 * main.c: Use sys/stat.h, not gdb_stat.h.
352 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
353 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
354 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
355 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
356 * procfs.c: Use sys/stat.h, not gdb_stat.h.
357 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
358 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
359 * remote.c: Use sys/stat.h, not gdb_stat.h.
360 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
361 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
362 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
363 * source.c: Use sys/stat.h, not gdb_stat.h.
364 * symfile.c: Use sys/stat.h, not gdb_stat.h.
365 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
366 * symtab.c: Use sys/stat.h, not gdb_stat.h.
367 * top.c: Use sys/stat.h, not gdb_stat.h.
368 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
370 2013-11-18 Tom Tromey <tromey@redhat.com>
372 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
374 * gnulib/aclocal.m4: Update.
375 * gnulib/config.in: Update.
376 * gnulib/configure: Update.
377 * gnulib/import/Makefile.am: Update.
378 * gnulib/import/Makefile.in: Update.
379 * gnulib/import/m4/gnulib-cache.m4: Update.
380 * gnulib/import/m4/gnulib-comp.m4: Update.
381 * gnulib/import/m4/sys_stat_h.m4: New.
382 * gnulib/import/m4/time_h.m4: New.
383 * gnulib/import/sys_stat.in.h: New.
384 * gnulib/import/time.in.h: New.
386 2013-11-18 Tom Tromey <tromey@redhat.com>
388 * configure: Rebuild.
389 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
391 2013-11-18 Tom Tromey <tromey@redhat.com>
393 * configure: Rebuild.
394 * configure.ac: Don't check for unistd.h.
396 2013-11-18 Tom Tromey <tromey@redhat.com>
398 * configure: Rebuild.
399 * configure.ac: Don't check for stdlib.h
400 * defs.h: Include stdlib.h unconditionally.
402 2013-11-18 Tom Tromey <tromey@redhat.com>
404 * config.in: Rebuild.
405 * configure: Rebuild.
406 * configure.ac: Don't check for stddef.h.
407 * defs.h: Unconditionally include stddef.h. Remove duplicate
410 2013-11-18 Tom Tromey <tromey@redhat.com>
412 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
413 * common/gdb_dirent.h: Remove.
414 * common/filestuff.c: Use dirent.h.
415 * common/linux-osdata.c: Use dirent.h.
417 * config.in: Rebuild.
418 * configure: Rebuild.
419 * configure.ac: Don't use AC_HEADER_DIRENT.
420 * linux-fork.c: Use dirent.h
421 * linux-nat.c: Use dirent.h.
422 * nto-procfs.c: Use dirent.h.
423 * procfs.c: Use dirent.h.
425 2013-11-18 Tom Tromey <tromey@redhat.com>
427 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
428 * gnulib/aclocal.m4: Update.
429 * gnulib/config.in: Update.
430 * gnulib/configure: Update.
431 * gnulib/import/Makefile.am: Update.
432 * gnulib/import/Makefile.in: Update.
433 * gnulib/import/dirent.in.h: New.
434 * gnulib/import/m4/dirent_h.m4: New.
435 * gnulib/import/m4/gnulib-cache.m4: Update.
436 * gnulib/import/m4/gnulib-comp.m4: Update.
438 2013-11-18 Tom Tromey <tromey@redhat.com>
440 * configure: Rebuild.
441 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
444 2013-11-18 Tom Tromey <tromey@redhat.com>
446 * common/gdb_string.h: Remove.
447 * aarch64-tdep.c: Use string.h, not gdb_string.h.
448 * ada-exp.y: Use string.h, not gdb_string.h.
449 * ada-lang.c: Use string.h, not gdb_string.h.
450 * ada-lex.l: Use string.h, not gdb_string.h.
451 * ada-typeprint.c: Use string.h, not gdb_string.h.
452 * ada-valprint.c: Use string.h, not gdb_string.h.
453 * aix-thread.c: Use string.h, not gdb_string.h.
454 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
455 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
456 * alpha-nat.c: Use string.h, not gdb_string.h.
457 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
458 * alpha-tdep.c: Use string.h, not gdb_string.h.
459 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
460 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
461 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
462 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
463 * amd64-nat.c: Use string.h, not gdb_string.h.
464 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
465 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
466 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
467 * arch-utils.c: Use string.h, not gdb_string.h.
468 * arm-linux-nat.c: Use string.h, not gdb_string.h.
469 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
470 * arm-tdep.c: Use string.h, not gdb_string.h.
471 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
472 * armbsd-tdep.c: Use string.h, not gdb_string.h.
473 * armnbsd-nat.c: Use string.h, not gdb_string.h.
474 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
475 * armobsd-tdep.c: Use string.h, not gdb_string.h.
476 * avr-tdep.c: Use string.h, not gdb_string.h.
477 * ax-gdb.c: Use string.h, not gdb_string.h.
478 * ax-general.c: Use string.h, not gdb_string.h.
479 * bcache.c: Use string.h, not gdb_string.h.
480 * bfin-tdep.c: Use string.h, not gdb_string.h.
481 * breakpoint.c: Use string.h, not gdb_string.h.
482 * build-id.c: Use string.h, not gdb_string.h.
483 * buildsym.c: Use string.h, not gdb_string.h.
484 * c-exp.y: Use string.h, not gdb_string.h.
485 * c-lang.c: Use string.h, not gdb_string.h.
486 * c-typeprint.c: Use string.h, not gdb_string.h.
487 * c-valprint.c: Use string.h, not gdb_string.h.
488 * charset.c: Use string.h, not gdb_string.h.
489 * cli-out.c: Use string.h, not gdb_string.h.
490 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
491 * cli/cli-decode.c: Use string.h, not gdb_string.h.
492 * cli/cli-dump.c: Use string.h, not gdb_string.h.
493 * cli/cli-interp.c: Use string.h, not gdb_string.h.
494 * cli/cli-logging.c: Use string.h, not gdb_string.h.
495 * cli/cli-script.c: Use string.h, not gdb_string.h.
496 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
497 * cli/cli-utils.c: Use string.h, not gdb_string.h.
498 * coffread.c: Use string.h, not gdb_string.h.
499 * common/common-utils.c: Use string.h, not gdb_string.h.
500 * common/filestuff.c: Use string.h, not gdb_string.h.
501 * common/linux-procfs.c: Use string.h, not gdb_string.h.
502 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
503 * common/signals.c: Use string.h, not gdb_string.h.
504 * common/vec.h: Use string.h, not gdb_string.h.
505 * core-regset.c: Use string.h, not gdb_string.h.
506 * corefile.c: Use string.h, not gdb_string.h.
507 * corelow.c: Use string.h, not gdb_string.h.
508 * cp-abi.c: Use string.h, not gdb_string.h.
509 * cp-support.c: Use string.h, not gdb_string.h.
510 * cp-valprint.c: Use string.h, not gdb_string.h.
511 * cris-tdep.c: Use string.h, not gdb_string.h.
512 * d-lang.c: Use string.h, not gdb_string.h.
513 * dbxread.c: Use string.h, not gdb_string.h.
514 * dcache.c: Use string.h, not gdb_string.h.
515 * demangle.c: Use string.h, not gdb_string.h.
516 * dicos-tdep.c: Use string.h, not gdb_string.h.
517 * disasm.c: Use string.h, not gdb_string.h.
518 * doublest.c: Use string.h, not gdb_string.h.
519 * dsrec.c: Use string.h, not gdb_string.h.
520 * dummy-frame.c: Use string.h, not gdb_string.h.
521 * dwarf2-frame.c: Use string.h, not gdb_string.h.
522 * dwarf2loc.c: Use string.h, not gdb_string.h.
523 * dwarf2read.c: Use string.h, not gdb_string.h.
524 * elfread.c: Use string.h, not gdb_string.h.
525 * environ.c: Use string.h, not gdb_string.h.
526 * eval.c: Use string.h, not gdb_string.h.
527 * event-loop.c: Use string.h, not gdb_string.h.
528 * exceptions.c: Use string.h, not gdb_string.h.
529 * exec.c: Use string.h, not gdb_string.h.
530 * expprint.c: Use string.h, not gdb_string.h.
531 * f-exp.y: Use string.h, not gdb_string.h.
532 * f-lang.c: Use string.h, not gdb_string.h.
533 * f-typeprint.c: Use string.h, not gdb_string.h.
534 * f-valprint.c: Use string.h, not gdb_string.h.
535 * fbsd-nat.c: Use string.h, not gdb_string.h.
536 * findcmd.c: Use string.h, not gdb_string.h.
537 * findvar.c: Use string.h, not gdb_string.h.
538 * fork-child.c: Use string.h, not gdb_string.h.
539 * frame.c: Use string.h, not gdb_string.h.
540 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
541 * frv-tdep.c: Use string.h, not gdb_string.h.
542 * gdb.c: Use string.h, not gdb_string.h.
543 * gdb_bfd.c: Use string.h, not gdb_string.h.
544 * gdbarch.c: Use string.h, not gdb_string.h.
545 * gdbtypes.c: Use string.h, not gdb_string.h.
546 * gnu-nat.c: Use string.h, not gdb_string.h.
547 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
548 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
549 * go-exp.y: Use string.h, not gdb_string.h.
550 * go-lang.c: Use string.h, not gdb_string.h.
551 * go32-nat.c: Use string.h, not gdb_string.h.
552 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
553 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
554 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
555 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
556 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
557 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
558 * i386-linux-nat.c: Use string.h, not gdb_string.h.
559 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
560 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
561 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
562 * i386-tdep.c: Use string.h, not gdb_string.h.
563 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
564 * i386gnu-nat.c: Use string.h, not gdb_string.h.
565 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
566 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
567 * i387-tdep.c: Use string.h, not gdb_string.h.
568 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
569 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
570 * inf-child.c: Use string.h, not gdb_string.h.
571 * inf-ptrace.c: Use string.h, not gdb_string.h.
572 * inf-ttrace.c: Use string.h, not gdb_string.h.
573 * infcall.c: Use string.h, not gdb_string.h.
574 * infcmd.c: Use string.h, not gdb_string.h.
575 * inflow.c: Use string.h, not gdb_string.h.
576 * infrun.c: Use string.h, not gdb_string.h.
577 * interps.c: Use string.h, not gdb_string.h.
578 * iq2000-tdep.c: Use string.h, not gdb_string.h.
579 * irix5-nat.c: Use string.h, not gdb_string.h.
580 * jv-exp.y: Use string.h, not gdb_string.h.
581 * jv-lang.c: Use string.h, not gdb_string.h.
582 * jv-typeprint.c: Use string.h, not gdb_string.h.
583 * jv-valprint.c: Use string.h, not gdb_string.h.
584 * language.c: Use string.h, not gdb_string.h.
585 * linux-fork.c: Use string.h, not gdb_string.h.
586 * linux-nat.c: Use string.h, not gdb_string.h.
587 * lm32-tdep.c: Use string.h, not gdb_string.h.
588 * m2-exp.y: Use string.h, not gdb_string.h.
589 * m2-typeprint.c: Use string.h, not gdb_string.h.
590 * m32c-tdep.c: Use string.h, not gdb_string.h.
591 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
592 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
593 * m32r-rom.c: Use string.h, not gdb_string.h.
594 * m32r-tdep.c: Use string.h, not gdb_string.h.
595 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
596 * m68k-tdep.c: Use string.h, not gdb_string.h.
597 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
598 * m68klinux-nat.c: Use string.h, not gdb_string.h.
599 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
600 * m88k-tdep.c: Use string.h, not gdb_string.h.
601 * macrocmd.c: Use string.h, not gdb_string.h.
602 * main.c: Use string.h, not gdb_string.h.
603 * mdebugread.c: Use string.h, not gdb_string.h.
604 * mem-break.c: Use string.h, not gdb_string.h.
605 * memattr.c: Use string.h, not gdb_string.h.
606 * memory-map.c: Use string.h, not gdb_string.h.
607 * mep-tdep.c: Use string.h, not gdb_string.h.
608 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
609 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
610 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
611 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
612 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
613 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
614 * mi/mi-console.c: Use string.h, not gdb_string.h.
615 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
616 * mi/mi-interp.c: Use string.h, not gdb_string.h.
617 * mi/mi-main.c: Use string.h, not gdb_string.h.
618 * mi/mi-parse.c: Use string.h, not gdb_string.h.
619 * microblaze-rom.c: Use string.h, not gdb_string.h.
620 * microblaze-tdep.c: Use string.h, not gdb_string.h.
621 * mingw-hdep.c: Use string.h, not gdb_string.h.
622 * minidebug.c: Use string.h, not gdb_string.h.
623 * minsyms.c: Use string.h, not gdb_string.h.
624 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
625 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
626 * mips-tdep.c: Use string.h, not gdb_string.h.
627 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
628 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
629 * mipsread.c: Use string.h, not gdb_string.h.
630 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
631 * mn10300-tdep.c: Use string.h, not gdb_string.h.
632 * monitor.c: Use string.h, not gdb_string.h.
633 * moxie-tdep.c: Use string.h, not gdb_string.h.
634 * mt-tdep.c: Use string.h, not gdb_string.h.
635 * nbsd-tdep.c: Use string.h, not gdb_string.h.
636 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
637 * nto-procfs.c: Use string.h, not gdb_string.h.
638 * nto-tdep.c: Use string.h, not gdb_string.h.
639 * objc-lang.c: Use string.h, not gdb_string.h.
640 * objfiles.c: Use string.h, not gdb_string.h.
641 * opencl-lang.c: Use string.h, not gdb_string.h.
642 * osabi.c: Use string.h, not gdb_string.h.
643 * osdata.c: Use string.h, not gdb_string.h.
644 * p-exp.y: Use string.h, not gdb_string.h.
645 * p-lang.c: Use string.h, not gdb_string.h.
646 * p-typeprint.c: Use string.h, not gdb_string.h.
647 * parse.c: Use string.h, not gdb_string.h.
648 * posix-hdep.c: Use string.h, not gdb_string.h.
649 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
650 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
651 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
652 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
653 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
654 * printcmd.c: Use string.h, not gdb_string.h.
655 * procfs.c: Use string.h, not gdb_string.h.
656 * prologue-value.c: Use string.h, not gdb_string.h.
657 * python/py-auto-load.c: Use string.h, not gdb_string.h.
658 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
659 * ravenscar-thread.c: Use string.h, not gdb_string.h.
660 * regcache.c: Use string.h, not gdb_string.h.
661 * registry.c: Use string.h, not gdb_string.h.
662 * remote-fileio.c: Use string.h, not gdb_string.h.
663 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
664 * remote-mips.c: Use string.h, not gdb_string.h.
665 * remote-sim.c: Use string.h, not gdb_string.h.
666 * remote.c: Use string.h, not gdb_string.h.
667 * reverse.c: Use string.h, not gdb_string.h.
668 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
669 * ser-base.c: Use string.h, not gdb_string.h.
670 * ser-go32.c: Use string.h, not gdb_string.h.
671 * ser-mingw.c: Use string.h, not gdb_string.h.
672 * ser-pipe.c: Use string.h, not gdb_string.h.
673 * ser-tcp.c: Use string.h, not gdb_string.h.
674 * ser-unix.c: Use string.h, not gdb_string.h.
675 * serial.c: Use string.h, not gdb_string.h.
676 * sh-tdep.c: Use string.h, not gdb_string.h.
677 * sh64-tdep.c: Use string.h, not gdb_string.h.
678 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
679 * skip.c: Use string.h, not gdb_string.h.
680 * sol-thread.c: Use string.h, not gdb_string.h.
681 * solib-dsbt.c: Use string.h, not gdb_string.h.
682 * solib-frv.c: Use string.h, not gdb_string.h.
683 * solib-osf.c: Use string.h, not gdb_string.h.
684 * solib-spu.c: Use string.h, not gdb_string.h.
685 * solib-target.c: Use string.h, not gdb_string.h.
686 * solib.c: Use string.h, not gdb_string.h.
687 * somread.c: Use string.h, not gdb_string.h.
688 * source.c: Use string.h, not gdb_string.h.
689 * sparc-nat.c: Use string.h, not gdb_string.h.
690 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
691 * sparc-tdep.c: Use string.h, not gdb_string.h.
692 * sparc64-tdep.c: Use string.h, not gdb_string.h.
693 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
694 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
695 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
696 * spu-linux-nat.c: Use string.h, not gdb_string.h.
697 * spu-multiarch.c: Use string.h, not gdb_string.h.
698 * spu-tdep.c: Use string.h, not gdb_string.h.
699 * stabsread.c: Use string.h, not gdb_string.h.
700 * stack.c: Use string.h, not gdb_string.h.
701 * std-regs.c: Use string.h, not gdb_string.h.
702 * symfile.c: Use string.h, not gdb_string.h.
703 * symmisc.c: Use string.h, not gdb_string.h.
704 * symtab.c: Use string.h, not gdb_string.h.
705 * target.c: Use string.h, not gdb_string.h.
706 * thread.c: Use string.h, not gdb_string.h.
707 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
708 * tilegx-tdep.c: Use string.h, not gdb_string.h.
709 * top.c: Use string.h, not gdb_string.h.
710 * tracepoint.c: Use string.h, not gdb_string.h.
711 * tui/tui-command.c: Use string.h, not gdb_string.h.
712 * tui/tui-data.c: Use string.h, not gdb_string.h.
713 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
714 * tui/tui-file.c: Use string.h, not gdb_string.h.
715 * tui/tui-layout.c: Use string.h, not gdb_string.h.
716 * tui/tui-out.c: Use string.h, not gdb_string.h.
717 * tui/tui-regs.c: Use string.h, not gdb_string.h.
718 * tui/tui-source.c: Use string.h, not gdb_string.h.
719 * tui/tui-stack.c: Use string.h, not gdb_string.h.
720 * tui/tui-win.c: Use string.h, not gdb_string.h.
721 * tui/tui-windata.c: Use string.h, not gdb_string.h.
722 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
723 * typeprint.c: Use string.h, not gdb_string.h.
724 * ui-file.c: Use string.h, not gdb_string.h.
725 * ui-out.c: Use string.h, not gdb_string.h.
726 * user-regs.c: Use string.h, not gdb_string.h.
727 * utils.c: Use string.h, not gdb_string.h.
728 * v850-tdep.c: Use string.h, not gdb_string.h.
729 * valarith.c: Use string.h, not gdb_string.h.
730 * valops.c: Use string.h, not gdb_string.h.
731 * valprint.c: Use string.h, not gdb_string.h.
732 * value.c: Use string.h, not gdb_string.h.
733 * varobj.c: Use string.h, not gdb_string.h.
734 * vax-tdep.c: Use string.h, not gdb_string.h.
735 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
736 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
737 * windows-nat.c: Use string.h, not gdb_string.h.
738 * xcoffread.c: Use string.h, not gdb_string.h.
739 * xml-support.c: Use string.h, not gdb_string.h.
740 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
741 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
743 2013-11-18 Tom Tromey <tromey@redhat.com>
745 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
747 * gnulib/aclocal.m4: Update.
748 * gnulib/config.in: Update.
749 * gnulib/configure: Update.
750 * gnulib/import/Makefile.am: Update.
751 * gnulib/import/Makefile.in: Update.
752 * gnulib/import/errno.in.h: New.
753 * gnulib/import/intprops.h: New.
754 * gnulib/import/m4/errno_h.m4: New.
755 * gnulib/import/m4/gnulib-cache.m4: Update.
756 * gnulib/import/m4/gnulib-comp.m4: Update.
757 * gnulib/import/m4/strerror.m4: New.
758 * gnulib/import/m4/strstr.m4: New.
759 * gnulib/import/m4/sys_socket_h.m4: New.
760 * gnulib/import/strerror-override.c: New.
761 * gnulib/import/strerror-override.h: New.
762 * gnulib/import/strerror.c: New.
763 * gnulib/import/strstr.c: New.
765 2013-11-18 Tom Tromey <tromey@redhat.com>
767 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
770 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
772 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
773 * sparc-tdep.h: And its prototype.
775 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
777 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
779 2013-11-18 Pedro Alves <palves@redhat.com>
781 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
784 2013-11-18 Joel Brobecker <brobecker@adacore.com>
786 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
787 to -list-features output.
789 2013-11-17 Joel Brobecker <brobecker@adacore.com>
791 * dwarf2expr.h (struct dwarf_expr_context_funcs)
792 <read_addr_from_reg>: Renames "read_reg".
793 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
795 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
796 Use read_addr_from_reg in place of read_reg.
797 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
798 in place of read_reg.
799 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
801 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
802 with dwarf_expr_read_addr_from_reg.
803 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
804 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
805 needs_frame_read_addr_from_reg.
807 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
809 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
811 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
813 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
816 2013-11-15 Tom Tromey <tromey@redhat.com>
819 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
820 (classify_name): Likewise. Prefer a field of "this" over a
822 (classify_inner_name, yylex): Update.
824 2013-11-15 Joel Brobecker <brobecker@adacore.com>
826 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
827 Extend the documentation a bit.
828 <get_reg_value>: New field.
829 * dwarf2loc.c (dwarf_expr_get_reg_value)
830 (needs_frame_get_reg_value): New functions.
831 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
833 * dwarf2-frame.c (get_reg_value): New function.
834 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
835 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
836 Use new callback to compute result_val.
838 2013-11-15 Alan Modra <amodra@gmail.com>
840 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
841 (ppc64_desc_entry_point): ..this. Update comments here and at
843 (ppc64_standard_linkage1, ppc64_standard_linkage2,
844 ppc64_standard_linkage3): Update comments.
845 (ppc64_standard_linkage4, ppc64_standard_linkage5,
846 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
848 (ppc64_standard_linkage4_target): New function.
849 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
850 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
851 nop match. Fix comment wrap.
853 2013-11-14 Pedro Alves <palves@redhat.com>
855 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
856 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
858 2013-11-14 Pedro Alves <palves@redhat.com>
860 * infrun.c (struct execution_control_state)
861 <stepped_after_stopped_by_watchpoint>: New field.
862 (get_inferior_stop_soon): New function.
863 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
864 moved to struct execution_control_state -- adjust. Use
865 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
867 (handle_signal_stop): New function, factored out from
868 handle_inferior_event.
870 2013-11-14 Pedro Alves <palves@redhat.com>
872 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
874 * breakpoint.c (bpstat_explains_signal): Adjust to return a
876 (explains_signal_watchpoint, base_breakpoint_explains_signal):
877 Adjust to return a boolean.
878 * breakpoint.h (enum bpstat_signal_value): Delete.
879 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
880 (bpstat_explains_signal): Likewise.
881 * infrun.c (handle_inferior_event) <random signal checks>:
882 bpstat_explains_signal now returns a boolean - adjust. No longer
883 consider hiding signals.
885 2013-11-14 Pedro Alves <palves@redhat.com>
887 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
888 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
889 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
891 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
892 instead of BPSTAT_SIGNAL_HIDE.
893 * infrun.c (handle_inferior_event): Rework random signal checks.
895 2013-11-14 Pedro Alves <palves@redhat.com>
897 * infrun.c (struct execution_control_state): Remove
898 'random_signal' field.
899 (handle_syscall_event): Use bpstat_causes_stop instead of
900 bpstat_explains_signal. Don't set ecs->random_signal.
901 (handle_inferior_event): New 'random_signal' local.
902 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
903 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
904 bpstat_explains_signal. Don't set ecs->random_signal.
905 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
908 2013-11-14 Pedro Alves <palves@redhat.com>
910 * infrun.c (handle_inferior_event): Move comment from the
911 function's body to the function's description, adjusted.
913 2013-11-14 Pedro Alves <palves@redhat.com>
915 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
916 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
917 Assert we never fall through out of the TARGET_WAITKIND_LOADED
920 2013-11-14 Tom Tromey <tromey@redhat.com>
922 * python/py-linetable.c (ltpy_has_line)
923 (ltpy_get_all_source_lines): Fix loop termination condition.
925 2013-11-14 Joel Brobecker <brobecker@adacore.com>
927 * mi/mi-parse.h (struct mi_parse) <language>: New field.
928 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
929 PARSE->LANGUAGE during command execution, if set.
930 * mi/mi-parse.c: Add "language.h" #include.
931 (mi_parse): Add parsing of "--language" command option.
933 * NEWS: Add entry mentioning the new "--language" command option.
935 2013-11-14 Pedro Alves <palves@redhat.com>
936 Joel Brobecker <brobecker@adacore.com>
938 * cli/cli-utils.h (extract_arg_const): Add declaration.
939 * cli/cli-utils.c (extract_arg_const): New function.
940 (extract_arg): Reimplement using extract_arg_const.
942 2013-11-14 Joel Brobecker <brobecker@adacore.com>
944 * language.h: Add "symtab.h" #include.
946 2013-11-13 Doug Evans <xdje42@gmail.com>
948 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
949 specific breakpoints, don't evaluate breakpoint condition if
952 2013-11-13 Keith Seitz <keiths@redhat.com>
956 * cp-support.c (insepct_type): Add support for substituting
957 namespace aliases, too.
958 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
959 for DW_TAG_imported_declaration.
960 (add_partial_symbol): Likewise.
961 (process_die): Handle namespace aliases with
962 read_namespace_alias.
963 (die_needs_namespace): Add DW_TAG_imported_declaration.
964 (read_namespace_alias): New function.
965 (load_partial_dies): Load DW_TAG_imported_declaration, too.
966 (new_symbol_full): Handle DW_TAG_imported_declaration.
968 2013-11-13 Keith Seitz <keiths@redhat.com>
970 * p-exp.y (uptok): Make first parameter const.
971 (yylex): Make `tokstart' and `tokptr' const.
972 Don't copy the lexer input to a temporary buffer.
974 Remove const workaround for parse_escape.
975 Create a temporary buffer for a convenience variable instead
976 of doing in-place modification of the input.
977 If a match is found with a different case from the input,
978 do not change the input at all.
979 Use `tmp' to construct the resultant stoken instead of
982 2013-11-13 Doug Evans <xdje42@gmail.com>
984 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
986 2013-11-13 Joel Brobecker <brobecker@adacore.com>
988 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
989 entry with "ada-exceptions".
991 2013-11-13 Joel Brobecker <brobecker@adacore.com>
993 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
994 after re-initialization of OBJFILE's obstack.
996 2013-11-12 Doug Evans <xdje42@gmail.com>
998 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
999 bs->stop != 0 on entry. Update function comment. Simplify early
1000 exit for frame mismatch. Reindent rest of function.
1002 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1004 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1007 2013-11-12 Doug Evans <dje@google.com>
1009 Work around gold/15646.
1010 * dwarf2read.c (read_index_from_section): Update comment.
1011 (struct dw2_symtab_iterator): New member global_seen.
1012 (dw2_symtab_iter_init): Initialize it.
1013 (dw2_symtab_iter_next): Skip duplicate global symbols.
1014 (dw2_expand_symtabs_matching): Ditto.
1016 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1018 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1019 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1021 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1022 (mi_cmd_info_ada_exceptions): New function.
1023 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1025 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1027 * ada-lang.h: #include "vec.h".
1028 (struct ada_exc_info): New.
1029 (ada_exc_info): New typedef.
1030 (DEF_VEC_O(ada_exc_info)): New vector.
1031 (ada_exceptions_list): Add declaration.
1032 * ada-lang.c (ada_is_exception_sym)
1033 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1034 (sort_remove_dups_ada_exceptions_list)
1035 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1036 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1037 (ada_exceptions_list_1, ada_exceptions_list)
1038 (info_exceptions_command): New function.
1039 (_initialize_ada_language): Add "info exception" command.
1041 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1044 * NEWS: Add linetable feature.
1045 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1046 * python/py-linetable.c: New file.
1047 * python/py-symtab.c (stpy_get_linetable): New function.
1048 * python/python-internal.h (symtab_to_linetable_object): Declare.
1049 (gdbpy_initialize_linetable): Ditto.
1050 * python/python.c (_initialize_python): Call
1051 gdbpy_initialize_linetable.
1053 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1055 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1056 the documentation of fields "except_string" and "condition".
1057 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1058 CONDITION on the heap before passing it to
1059 create_ada_exception_catchpoint.
1060 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1063 2013-11-11 Tom Tromey <tromey@redhat.com>
1065 * config.in, configure: Rebuild.
1066 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1068 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1070 * remote-sim.c (gdbsim_detach): Break declaration into
1071 shorter lines. No code change.
1073 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1075 * remote-sim.c (gdbsim_detach): Fix prototype.
1077 2013-11-08 Doug Evans <dje@google.com>
1079 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1080 (create_debug_types_hash_table): Only print debugging messages for
1081 each TU if dwarf2-read >= 2.
1082 (process_queue): Ditto.
1083 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1086 2013-11-08 Tom Tromey <tromey@redhat.com>
1088 * configure: Rebuild.
1089 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1091 2013-11-08 Tom Tromey <tromey@redhat.com>
1093 * configure, config.in: Rebuild.
1094 * configure.ac: Remove unused configury.
1096 2013-11-08 Tom Tromey <tromey@redhat.com>
1098 * m32c-tdep.c: Use gdb_string.h.
1100 2013-11-08 Tom Tromey <tromey@redhat.com>
1102 * configure, config.in: Rebuild.
1103 * configure.ac: Remove all link.h-related checks.
1105 2013-11-08 Tom Tromey <tromey@redhat.com>
1107 * acinclude.m4: Include common.m4.
1108 * common/common.m4: New file.
1109 * configure, config.in: Rebuild.
1110 * configure.ac: Use GDB_AC_COMMON.
1112 2013-11-08 Doug Evans <dje@google.com>
1114 * NEWS: Mention that "set debug symtab-create" now accepts a
1116 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1117 to set the symtab's primary flag.
1118 * jit.c (finalize_symtab): Ditto.
1119 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1120 * symfile.c (allocate_symtab): Only print debugging messages for
1121 symtab_create_debug levels 2 and higher.
1122 * symtab.c (symtab_create_debug): Change type to unsigned int.
1123 (set_symtab_primary): New function.
1124 (_initialize_symtab): Change "set debug symtab-create" to a
1126 * symtab.h (set_symtab_primary): Declare.
1127 (symtab_create_debug): Update decl.
1129 2013-11-08 Tom Tromey <tromey@redhat.com>
1131 * aix-thread.c (aix_thread_detach): Update.
1132 * corelow.c (core_detach): Update.
1133 * darwin-nat.c (darwin_detach): Update.
1134 * dec-thread.c (dec_thread_detach): Update.
1135 * gnu-nat.c (gnu_detach): Update.
1136 * go32-nat.c (go32_detach): Update.
1137 * inf-ptrace.c (inf_ptrace_detach): Update.
1138 * inf-ttrace.c (inf_ttrace_detach): Update.
1139 * linux-fork.c (linux_fork_detach): Update.
1140 * linux-fork.h (linux_fork_detach): Update.
1141 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1142 local for const-correctness.
1143 * linux-thread-db.c (thread_db_detach): Update.
1144 * monitor.c (monitor_detach): Update.
1145 * nto-procfs.c (procfs_detach): Update.
1146 * procfs.c (procfs_detach): Update.
1147 * record.c (record_detach): Update.
1148 * record.h (record_detach): Update.
1149 * remote-m32r-sdi.c (m32r_detach): Update.
1150 * remote-mips.c (mips_detach): Update.
1151 * remote-sim.c (gdbsim_detach): Update.
1152 * remote.c (remote_detach_1, remote_detach)
1153 (extended_remote_detach): Update.
1154 * sol-thread.c (sol_thread_detach): Update.
1155 * target.c (target_detach): Make "args" const.
1156 (init_dummy_target): Update.
1157 * target.h (struct target_ops) <to_detach>: Make argument const.
1158 (target_detach): Likewise.
1159 * windows-nat.c (windows_detach): Update.
1161 2013-11-07 Doug Evans <dje@google.com>
1164 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1165 and align fields for PT_GNU_RELRO segments.
1167 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1170 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1172 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1174 * NEWS: Document Python temporary breakpoint support.
1175 * python/py-breakpoint.c (bppy_get_temporary): New function.
1176 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1177 to temporary if True.
1179 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1181 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1182 removed to allow analyzing unconditional branch instructions
1183 with PC-relative offsets of zero.
1185 2013-11-07 Yao Qi <yao@codesourcery.com>
1187 * mi/mi-cmd-var.c: Include "language.h".
1188 (mi_cmd_var_info_expression): Get language name from
1190 * varobj.c (varobj_language_string): Remove.
1191 (variable_language): Remove declaration.
1192 (languages): Remove.
1193 (varobj_get_language): Change the type of return value.
1194 (variable_language): Remove.
1195 * varobj.h (enum varobj_languages): Remove.
1196 (varobj_language_string): Remove declaration.
1197 (varobj_get_language): Update declaration.
1199 2013-11-07 Yao Qi <yao@codesourcery.com>
1201 * language.h (struct language_defn) <la_natural_name>: New
1203 * ada-lang.c (ada_language_defn): Initialize field
1205 * c-lang.c (c_language_defn): Likewise.
1206 (cplus_language_defn, asm_language_defn): Likewise.
1207 * d-lang.c (d_language_defn): Likewise.
1208 * f-lang.c (f_language_defn): Likewise.
1209 * go-lang.c (go_language_defn): Likewise.
1210 * jv-lang.c (java_language_defn): Likewise.
1211 * language.c (unknown_language_defn ): Likewise.
1212 (auto_language_defn): Likewise.
1213 * m2-lang.c (m2_language_defn): Likewise.
1214 * objc-lang.c (objc_language_defn): Likewise.
1215 * opencl-lang.c (opencl_language_defn): Likewise.
1216 * p-lang.c (pascal_language_defn): Likewise.
1218 2013-11-07 Yao Qi <yao@codesourcery.com>
1220 * language.c (language_str): Return const char *.
1221 (add_language): Add const to 'language_names'
1222 * language.h (struct language_defn) <la_name>: Add const.
1223 (language_str: Update declaration.
1225 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1227 * s390-linux-nat.c (s390_read_description): Consider the TE field
1228 in the HWCAP for determining 'have_regset_tdb'.
1230 2013-11-06 Will Newton <will.newton@linaro.org>
1233 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1234 values. (read_partial_die): Likewise.
1236 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1239 * top.c (command_line_input): Unify interactivity tests to use
1240 input_from_terminal_p.
1241 * event-top.c (command_line_handler): Likewise.
1243 2013-11-06 Yao Qi <yao@codesourcery.com>
1245 * Makefile.in (check-perf): New target.
1247 2013-11-05 Will Newton <will.newton@linaro.org>
1250 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1251 (arm_print_float_info): Likewise.
1253 2013-11-04 Anton Blanchard <anton@samba.org>
1255 * target.c (memory_xfer_partial): Cap write to 4KB.
1257 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1259 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1260 probe scan even when the arch provides no get_longjmp_target.
1262 2013-10-31 Pedro Alves <palves@redhat.com>
1264 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1265 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1266 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1267 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1268 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1269 <bpstat handling>: If the bpstat chain wants the signal to be
1270 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1273 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1275 * breakpoint.c (update_watchpoint): Update error message and add
1276 an additional error message.
1278 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1280 * s390-tdep.h: Rename to...
1281 * s390-linux-tdep.h: ...here.
1282 * s390-tdep.c: Rename to...
1283 * s390-linux-tdep.c: ...here. Adjust #include.
1284 * s390-nat.c: Rename to...
1285 * s390-linux-nat.c: ...here. Adjust #include.
1286 * config/s390/s390.mh: Rename to...
1287 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1289 * configure.host: Reflect host rename "s390" -> "linux".
1290 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1291 * Makefile.in (ALL_TARGET_OBS): Likewise.
1292 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1294 (ALLDEPFILES): Reflect rename of .c files.
1296 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298 * s390-nat.c: Whitespace cleanup.
1299 * s390-tdep.c: Likewise.
1300 * s390-tdep.h: Remove empty line at end of file.
1302 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1304 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1307 2013-10-29 Tom Tromey <tromey@redhat.com>
1309 * utils.c (reg): Move undefinition...
1310 * gdb_curses.h: ... here. Update comment to mention AIX.
1312 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1314 * exec.h (add_target_sections_of_objfile): New declaration.
1315 * exec.c (add_target_sections_of_objfile): New function.
1316 * symfile.c (add_symbol_file_command): Update current target sections.
1317 (remove_symbol_file_command): New command.
1318 (symfile_free_objfile): New function.
1319 (_initialize_symfile): Register observer for free_objfile events.
1320 * NEWS: Add description of the remove-symbol-file command.
1321 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1322 * objfiles.c (free_objfile): Notify free_objfile.
1323 (is_addr_in_objfile): New function.
1324 * objfiles.h (is_addr_in_objfile): New declaration.
1325 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1326 events instead of solib_unloaded events.
1327 (_initialize_printcmd): Register observer for free_objfile instead
1328 of solib_unloaded notifications.
1329 * solib.c (remove_user_added_objfile): New function.
1330 (_initialize_symfile): Add remove-symbol-file.
1332 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1334 * infcmd.c (default_print_one_register_info): Use val_print to
1335 print all values even optimized out or unavailable ones. Don't
1336 try to print a raw form of optimized out or unavailable values.
1338 2013-10-29 Yao Qi <yao@codesourcery.com>
1340 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1341 parameter 'arg' instead of from program_space_data.
1342 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1343 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1344 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1345 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1346 * inflow.c (inflow_inferior_data_cleanup): Get data from
1347 parameter 'arg' instead of inferior_data.
1348 * registry.h: Add comments.
1350 2013-10-28 Pedro Alves <palves@redhat.com>
1352 * breakpoint.c (watchpoints_triggered)
1353 <!target_stopped_data_address>: Hardcode return 1.
1355 2013-10-28 Pedro Alves <palves@redhat.com>
1357 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1360 2013-10-28 Pedro Alves <palves@redhat.com>
1362 * infrun.c (process_event_stop_test): New function, factored out
1363 from handle_inferior_event.
1364 (handle_inferior_event): 'process_event_stop_test' is now a
1365 function instead of a goto label -- adjust.
1367 2013-10-28 Pedro Alves <palves@redhat.com>
1369 * infrun.c (handle_inferior_event): Move process_event_stop_test
1370 goto label to the else branch of the ecs->random_signal check,
1371 along with FRAME and GDBARCH re-fetching.
1373 2013-10-28 Pedro Alves <palves@redhat.com>
1375 * infrun.c (switch_back_to_stepped_thread): New function, factored
1376 out from handle_inferior_event.
1377 (handle_inferior_event): Adjust to call
1378 switch_back_to_stepped_thread. Call it also at the tail of the
1379 random signal handling, and return, instead of also handling
1380 random signals just before the stepping tests.
1382 2013-10-28 Pedro Alves <palves@redhat.com>
1384 * infrun.c (clear_stop_func): Delete.
1385 (handle_inferior_event): Don't call clear_stop_func and don't
1386 clear 'ecs->random_signal'.
1388 2013-10-27 Yao Qi <yao@codesourcery.com>
1390 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1391 (varobj_create, varobj_get_path_expr): Update.
1392 (varobj_value_has_mutated, varobj_update): Likewise.
1393 (create_child_with_value, new_root_variable): Likewise.
1394 (number_of_children, name_of_variable): Likewise.
1395 (value_of_child, my_value_of_variable): Likewise.
1396 (varobj_value_is_changeable_p): Likewise.
1398 2013-10-25 Yao Qi <yao@codesourcery.com>
1400 * language.h (struct lang_varobj_ops): Declare.
1401 (struct language_defn) <la_varobj_ops>: New field.
1402 * ada-lang.c: Include "varobj.h"
1403 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1405 * c-lang.c: Include "varobj.h"
1406 (c_language_defn): Initialize field 'la_varobj_ops' with
1408 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1410 (asm_language_defn): Initialize field 'la_varobj_ops' with
1412 (minimal_language_defn): Likewise.
1413 * d-lang.c (d_language_defn): Likewise.
1414 * f-lang.c (f_language_defn): Likewise.
1415 * go-lang.c (go_language_defn): Likewise.
1416 * m2-lang.c (m2_language_defn): Likewise.
1417 * objc-lang.c (objc_language_defn): Likewise.
1418 * opencl-lang.c (opencl_language_defn): Likewise.
1419 * p-lang.c (pascal_language_defn): Likewise.
1420 * language.c (unknown_language_defn): Likewise.
1421 (auto_language_defn): Likewise.
1422 (local_language_defn): Likewise.
1423 * jv-lang.c (java_language_defn): Initialize field
1424 'la_varobj_ops' with java_varobj_ops.
1425 * varobj.c (varobj_create): Update.
1426 * varobj.h (default_varobj_ops): Define macro.
1428 2013-10-25 Pedro Alves <palves@redhat.com>
1430 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1432 (cp_print_static_field): If the value is entirely optimized out,
1433 print <optimized out> here.
1434 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1436 * p-valprint.c (pascal_object_print_static_field): If the value is
1437 entirely optimized out, print <optimized out> here.
1438 * valops.c (do_search_struct_field)
1439 (value_struct_elt_for_reference): No longer handle a NULL static
1441 * value.c (value_static_field): Return an optimized out value
1444 2013-10-25 Yao Qi <yao@codesourcery.com>
1446 * remote.c (remote_traceframe_info): Return early if
1447 traceframe is not selected.
1449 2013-10-25 Yao Qi <yao@codesourcery.com>
1451 * tracepoint.c (traceframe_fun): Remove.
1452 (traceframe_sal): Remove.
1453 (set_traceframe_context): Add local variables.
1455 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1457 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1460 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1462 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1463 failure from register information collection.
1465 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1467 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1469 (linux_corefile_thread_callback): Update accordingly.
1470 (linux_make_corefile_notes): Likewise.
1472 2013-10-24 Pedro Alves <palves@redhat.com>
1474 * NEWS (New options): Mention set/show startup-with-shell.
1475 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1477 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1478 startup-with-shell'.
1479 (show_startup_with_shell): New function.
1480 (_initialize_fork_child): Register the set/show startup-with-shell
1482 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1483 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1484 * procfs.c (procfs_init_inferior): Remove comment.
1485 * infcmd.c (startup_with_shell): New global.
1486 * inferior.h (startup_with_shell): Declare global.
1487 (STARTUP_WITH_SHELL): Delete.
1488 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1490 2013-10-23 Pedro Alves <palves@redhat.com>
1492 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1493 * common/signals.c: Include "gdb_assert.h".
1494 (signals): New field 'symbol'.
1495 (SET): Use the 'symbol' parameter.
1496 (gdb_signal_to_symbol_string): New function.
1497 * infrun.c (handle_inferior_event) <random signal>: In debug
1498 output, print the random signal enum as string in addition to its
1500 * target/waitstatus.c (target_waitstatus_to_string): Print the
1501 signal's enum value as string instead of the (POSIX) signal name.
1503 2013-10-23 Gary Benson <gbenson@redhat.com>
1506 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1507 from 32 to 18. Adjusted fscanf format string accordingly.
1508 (Avoids leaving cmd unterminated.)
1509 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1510 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1511 that local_address and remote_address will not overflow.
1512 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1513 leaving dependencies unterminated. Parse size as "%u" to match
1516 2013-10-22 Pedro Alves <palves@redhat.com>
1518 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1519 set ecs->random signal.
1521 2013-10-22 Pedro Alves <palves@redhat.com>
1523 * infrun.c (keep_going): Update comments.
1525 2013-10-22 Pedro Alves <palves@redhat.com>
1527 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1528 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1530 2013-10-22 Pedro Alves <palves@redhat.com>
1532 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1534 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1535 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1536 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1537 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1538 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1539 (GDB_SIGNAL_LAST): Change description string.
1540 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1541 Adjust to signal renaming.
1542 * darwin-nat.c (darwin_decode_message): Likewise.
1544 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1546 * MAINTAINERS (Write After Approval): Add myself to the list.
1548 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1550 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1551 forced off, downgrade them to software watchpoints if possible,
1552 and error out if not possible.
1553 (watch_command_1): Move watchpoint type selection closer to
1554 watchpoint creation, and extend the comments.
1556 2013-10-18 Pedro Alves <palves@redhat.com>
1559 * infrun.c (handle_inferior_event): Keep going if we got a random
1560 signal we should not stop for, instead of falling through to the
1563 2013-10-18 Yao Qi <yao@codesourcery.com>
1565 * c-varobj.c (cplus_number_of_children): Fix indentation.
1567 2013-10-17 Tom Tromey <tromey@redhat.com>
1570 * printcmd.c (printcmd): Call gdb_flush.
1572 2013-10-17 Tom Tromey <tromey@redhat.com>
1574 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1575 (elf_locate_sections): Update.
1577 2013-10-17 Yao Qi <yao@codesourcery.com>
1579 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1580 * ada-varobj.c: Remove the include of ada-varobj.h.
1581 (ada_varobj_get_number_of_children): Declare.
1582 (ada_varobj_get_name_of_child): Make it static.
1583 (ada_varobj_get_path_expr_of_child): Likewise.
1584 (ada_varobj_get_value_of_child): Likewise.
1585 (ada_varobj_get_type_of_child): Likewise.
1586 (ada_varobj_get_value_of_array_variable): Likewise.
1587 * ada-varobj.h: Remove.
1589 2013-10-17 Yao Qi <yao@codesourcery.com>
1591 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1592 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1593 * ada-varobj.c: Include "varobj.h".
1594 (ada_number_of_children): New. Moved from varobj.c.
1595 (ada_name_of_variable, ada_name_of_child): Likewise.
1596 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1597 (ada_type_of_child, ada_value_of_variable): Likewise.
1598 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1599 (ada_varobj_ops): New.
1600 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1601 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1602 * gdbtypes.h (get_target_type): Declare.
1603 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1605 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1606 (ANONYMOUS_UNION_NAME): Likewise.
1607 (get_type, get_value_type, get_target_type): Remove declarations.
1608 (value_get_print_value, varobj_value_get_print_value): Likewise.
1609 (c_number_of_children, c_name_of_variable): Likewise.
1610 (c_name_of_child, c_path_expr_of_child): Likewise.
1611 (c_value_of_child, c_type_of_child): Likewise.
1612 (c_value_of_variable, cplus_number_of_children): Likewise.
1613 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1614 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1615 (cplus_value_of_child, cplus_type_of_child): Likewise.
1616 (cplus_value_of_variable, java_number_of_children): Likewise.
1617 (java_name_of_variable, java_name_of_child): Likewise.
1618 (java_path_expr_of_child, java_value_of_child): Likewise.
1619 (java_type_of_child, java_value_of_variable): Likewise.
1620 (ada_number_of_children, ada_name_of_variable): Likewise.
1621 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1622 (ada_value_of_child, ada_type_of_child): Likewise.
1623 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1624 (ada_value_has_mutated): Likewise.
1625 (struct language_specific): Move it to varobj.h.
1626 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1627 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1629 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1631 (is_anonymous_child): Move it to c-varobj.c and rename to
1632 varobj_is_anonymous_child. Caller update.
1633 (get_type): Move it to c-varobj.c.
1634 (get_value_type): Rename it varobj_get_value_type. Make it
1636 (get_target_type): Move it gdbtypes.c.
1637 (varobj_formatted_print_options): New function.
1638 (value_get_print_value): Rename it to
1639 varobj_value_get_print_value and make it extern.
1640 (varobj_value_is_changeable_p): Make it extern.
1641 (adjust_value_for_child_access): Move it to c-varobj.c.
1642 (default_value_is_changeable_p): Rename it to
1643 varobj_default_value_is_changeable_p. Make it extern.
1644 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1645 (c_name_of_child, c_path_expr_of_child): Likewise.
1646 (c_value_of_child, c_type_of_child): Likewise.
1647 (c_value_of_variable, cplus_number_of_children): Likewise.
1648 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1649 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1650 (cplus_value_of_child, cplus_type_of_child): Likewise.
1651 (cplus_value_of_variable): Likewise.
1652 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1653 (java_name_of_child, java_path_expr_of_child): Likewise.
1654 (java_value_of_child, java_type_of_child): Likewise.
1655 (java_value_of_variable): Likewise.
1656 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1657 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1658 (ada_value_of_child, ada_type_of_child): Likewise.
1659 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1660 (ada_value_has_mutated): Likewise.
1661 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1662 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1663 (c_varobj_ops, cplus_varobj_ops): Declare.
1664 (java_varobj_ops, ada_varobj_ops): Declare.
1665 (varobj_default_value_is_changeable_p): Declare.
1666 (varobj_value_is_changeable_p): Declare.
1667 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1668 (varobj_get_path_expr_parent): Declare.
1669 (varobj_value_get_print_value): Declare.
1670 (varobj_formatted_print_options): Declare.
1671 (varobj_restrict_range): Declare.
1673 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1675 * target/waitstatus.h (target_waitkind): Remove spurious
1676 character from the comments.
1678 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1680 * gdbarch.sh (get_longjmp_target): Add method documentation.
1681 * gdbarch.h: Regenerate.
1683 2013-10-16 Tom Tromey <tromey@redhat.com>
1685 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1688 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1690 * gcore.in: Call GDB using the full path to the gcore script.
1691 Error out if the GDB binary is not found.
1693 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1696 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1699 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1702 * target.c (target_disable_btrace): Fix invalid return value for
1704 (target_teardown_btrace): Likewise.
1706 2013-10-14 Yao Qi <yao@codesourcery.com>
1708 * varobj.c (struct varobj): Move most of the fields to
1710 (struct varobj_dynamic): New struct.
1711 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1712 (varobj_has_more): Likewise.
1713 (dynamic_varobj_has_child_method): Likewise.
1714 (update_dynamic_varobj_children): Likewise.
1715 (varobj_get_num_children): Likewise.
1716 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1717 (install_new_value_visualizer): Likewise.
1718 (install_new_value_visualizer, install_new_value): Likewise.
1719 (varobj_update, new_variable, free_variable): Likewise.
1720 (my_value_of_variable, value_get_print_value): Likewise.
1721 (install_visualizer): Change the type of parameter 'var' to
1722 'struct varobjd_dynamic *'. Callers update.
1723 * varobj.h (struct varobj): Moved from varobj.c.
1724 (struct varobj) <dynamic>: New field.
1726 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1728 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1729 as the preferred name of r30.
1730 * nios2-linux-tdep.c (reg_offsets): Likewise.
1731 * features/nios2-cpu.xml: Likewise.
1732 * features/nios2-linux.c: Regenerated.
1733 * features/nios2.c: Regenerated.
1734 * regformats/nios2-linux.dat: Regenerated.
1736 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1738 Canonicalize directories for EXEC_FILENAME.
1739 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1741 * utils.c (gdb_realpath_keepfile): New function.
1742 * utils.h (gdb_realpath_keepfile): New declaration.
1744 2013-10-11 Doug Evans <dje@google.com>
1746 * Makefile.in (GDBFLAGS): New variable.
1749 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1751 * NEWS: Add entry documenting the new "-catch-assert" and
1752 "-catch-exception" GDB/MI commands.
1754 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1756 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1758 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1759 "enabled". Set B->ENABLE_STATE accordingly.
1760 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1762 (create_ada_exception_catchpoint): Add declaration.
1763 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1764 (create_ada_exception_catchpoint): Make non-static. Add new
1765 parameter "disabled". Use it in call to
1766 init_ada_exception_breakpoint.
1767 (catch_ada_exception_command): Add parameter "enabled" in call
1768 to create_ada_exception_catchpoint.
1769 (catch_assert_command): Likewise.
1771 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1773 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1774 "catch-exception" commands.
1775 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1776 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1778 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1780 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1781 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1782 of all its enumerates with "ada_". Update the rest of this
1785 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1787 * ada-lang.c (ada_decode_exception_location): Delete.
1788 (create_ada_exception_catchpoint): Remove arguments "sal",
1789 "addr_string" and "ops". Add argument "ex_kind" instead.
1790 Adjust implementation accordingly, calling ada_exception_sal
1791 to get the entities it no longer gets passed as arguments.
1792 Document the function's arguments.
1793 (catch_ada_exception_command): Use catch_ada_exception_command_split
1794 instead of ada_decode_exception_location, and update call to
1795 create_ada_exception_catchpoint.
1796 (catch_ada_assert_command_split): Renames
1797 ada_decode_assert_location. Remove parameters "addr_string" and
1798 "ops", and now returns void. Adjust implementation accordingly.
1799 Update the function documentation.
1800 (catch_assert_command): Use catch_ada_assert_command_split
1801 instead of ada_decode_assert_location. Update call to
1802 create_ada_exception_catchpoint.
1804 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1806 * utils.h (perror_warning_with_name): Add declaration.
1807 * utils.c (perror_warning_with_name): New function.
1808 * cli/cli-cmds.c (source_script_with_search): Add call to
1809 perror_warning_with_name if from_tty is nul.
1811 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1813 * utils.c (perror_string): New function, extracted out of
1814 throw_perror_with_name.
1815 (throw_perror_with_name): Rework to use perror_string.
1817 2013-10-11 Yao Qi <yao@codesourcery.com>
1819 * remote.c (discard_pending_stop_replies_in_queue): Update
1821 (struct stop_reply) <rs>: New field.
1822 (remove_stop_reply_of_remote_state): New function.
1823 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1824 Callers update. Pass remove_stop_reply_of_remote_state to
1826 (remote_parse_stop_reply): Initialize field 'rs'.
1828 2013-10-10 Will Newton <will.newton@linaro.org>
1830 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1833 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1835 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1836 serial_baud_show_cmd.
1837 (_initialize_cli_cmds): Delete the code creating the
1838 "set/show remotebaud" commands.
1839 * serial.c (baud_rate): Move here from top.c.
1840 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1841 (_initialize_serial): Create "set/show serial baud" commands.
1842 Add "set/show remotebaud" command aliases.
1843 * top.c (baud_rate): Moved to serial.c.
1844 * NEWS: Document the new "set/show serial baud" commands,
1845 replacing "set/show remotebaud".
1847 2013-10-09 Pedro Alves <palves@redhat.com>
1849 * breakpoint.c (insert_bp_location): Use memory_error_message to
1850 build the memory error string.
1851 * c-lang.c: Include "gdbcore.h".
1852 (c_get_string): Use memory_error to throw error.
1853 (target_xfer_memory_error): Delete.
1854 (memory_error_message): New, factored out from
1855 target_xfer_memory_error.
1856 (memory_error): Change parameter type to target_xfer_error.
1858 (read_memory): Use memory_error instead of
1859 target_xfer_memory_error.
1860 * gdbcore.h: Include "target.h".
1861 (memory_error): Change parameter type to target_xfer_error.
1862 (memory_error_message): Declare function.
1863 * target.c (target_read_memory, target_read_stack)
1864 (target_write_memory, target_write_raw_memory): Return
1865 TARGET_XFER_E_IO on error. Adjust comments.
1866 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1868 * target.h (target_read, target_insert_breakpoint)
1869 (target_remove_breakpoint): Adjust comments.
1870 * valprint.c (partial_memory_read): Rename parameter, and adjust
1872 (val_print_string): Use memory_error_message to build the memory
1875 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1877 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1878 result variable. Rename variable fopen_e_ever_failed to
1879 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1881 2013-10-09 Pedro Alves <palves@redhat.com>
1883 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1884 (monitor_write_memory_longlongs, monitor_write_memory_block):
1885 Constify 'myaddr' parameter.
1886 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1888 (monitor_xfer_partial): New function.
1889 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1890 hook. Install a to_xfer_partial hook.
1892 2013-10-09 Tom Tromey <tromey@redhat.com>
1894 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1895 bfd_get_alt_debug_link_info.
1897 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1899 New flag OBJF_NOT_FILENAME.
1900 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1901 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1903 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1904 symbol_file_add_from_bfd.
1905 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1907 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1909 * objfiles.h (OBJF_NOT_FILENAME): New.
1911 2013-10-08 Tom Tromey <tromey@redhat.com>
1913 * Makefile.in (SFILES): Add build-id.c.
1914 (HFILES_NO_SRCDIR): Add build-id.h.
1915 * build-id.c: New file, largely from elfread.c. Modified
1917 * build-id.h: New file.
1918 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1919 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1920 Search for dwz file using build-id.
1921 * elfread.c (build_id_bfd_get, build_id_verify)
1922 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1924 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1926 * ada-lang.c (compare_names_with_case): Renamed from
1927 compare_names, adding a new parameter "casing" and its handling.
1928 New function documentation.
1929 (compare_names): New function, implemented using
1930 compare_names_with_case.
1932 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1934 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1936 2013-10-07 Tom Tromey <tromey@redhat.com>
1938 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1939 demangled_names_hash.
1940 (free_objfile): Don't delete the demangled_names_hash.
1941 * objfiles.h (struct objfile_per_bfd_storage)
1942 <demangled_names_hash>: New field.
1943 (struct objfile) <demangled_names_hash>: Move to
1944 objfile_per_bfd_storage.
1945 * symfile.c (reread_symbols): Don't delete the
1946 demangled_names_hash.
1947 * symtab.c (create_demangled_names_hash): Update.
1948 (symbol_set_names): Update.
1950 2013-10-07 Tom Tromey <tromey@redhat.com>
1952 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1953 needs_relocations>: New fields.
1954 (gdb_bfd_requires_relocations): New function.
1955 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1956 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1957 the BFD needs relocations applied.
1959 2013-10-07 Pedro Alves <palves@redhat.com>
1961 PR breakpoints/11568
1962 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1963 the thread list" instead of "gone".
1965 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1967 * NEWS: Mention new convenience variable $_exitsignal.
1968 * corelow.c (core_open): Reset exit convenience variables. Set
1969 $_exitsignal to the uncaught signal which generated the corefile.
1970 * infrun.c (handle_inferior_event): Reset exit convenience
1971 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1972 (clear_exit_convenience_vars): New function.
1973 * inferior.h (clear_exit_convenience_vars): New prototype.
1975 2013-10-06 Yao Qi <yao@codesourcery.com>
1977 * varobj.h: Add comments to enum varobj_languages.
1979 2013-10-04 Doug Evans <dje@google.com>
1981 Add support for DWP file format version 2.
1982 * NEWS: Mention support for DWP file format version 2.
1983 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1984 union of asection, containing_section. New fields virtual_offset
1985 and is_virtual. Change type of readin filed from int to char.
1986 (dwo_sections, dwo_file): Tweak comments.
1987 (dwp_v2_section_ids): New enum.
1988 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1990 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1992 (virtual_v2_dwo_sections): New struct.
1993 (dwp_hash_table): New fields version, nr_columns. Change type of
1994 section_pool field to a union.
1995 (dwp_file): New field version.
1996 (dwarf2_has_info): Check for virtual sections.
1997 (get_containing_section): New function.
1998 (get_section_bfd_owner, get_section_bfd_section): Call it.
1999 (dwarf2_locate_sections): Update.
2000 (dwarf2_section_empty_p): Update.
2001 (dwarf2_read_section): Handle virtual sections.
2002 (locate_dwz_sections): Update.
2003 (create_dwp_hash_table): Document and handle V2 format.
2004 (locate_v1_virtual_dwo_sections): Renamed from
2005 locate_virtual_dwo_sections and update. All callers updated.
2006 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2007 Delete arg htab. Rename arg section_index to unit_index.
2008 All callers updated.
2009 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2011 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2012 (lookup_dwo_unit_in_dwp): Add V2 support.
2013 (dwarf2_locate_dwo_sections): Update.
2014 (dwarf2_locate_common_dwp_sections): Renamed from
2015 dwarf2_locate_dwp_sections and update. All callers updated.
2016 (dwarf2_locate_v2_dwp_sections): New function.
2017 (open_and_init_dwp_file): Add V2 support.
2018 (read_str_index): New locals str_section, str_offsets_section.
2020 2013-10-04 Pedro Alves <palves@redhat.com>
2022 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2023 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2024 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2025 describing comments with references to ptid.h.
2026 * common/ptid.h: Remove intro description of constructors,
2027 accessors and predicates.
2028 (struct ptid): Reformat.
2029 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2030 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2031 describing comments.
2033 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2035 * aix-thread.c (sync_threadlists): Add missing ')' in call
2038 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2040 * procfs.c (procfs_init_inferior): Fix typo causing the build
2043 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2045 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2047 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2049 * mi/mi-main.c (run_one_inferior): Add function description.
2050 Make ARG a pointer to an integer whose value determines whether
2051 we should "run" or "start" the program.
2052 (mi_cmd_exec_run): Add handling of the "--start" option.
2053 Reject all other command-line options.
2054 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2056 2013-10-04 Yao Qi <yao@codesourcery.com>
2058 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2059 (struct notif_client) <pending_event>: Moved
2060 to struct remote_notif_state.
2062 (struct remote_notif_state) <pending_event>: New field.
2063 (notif_event_xfree): Declare.
2064 * remote-notif.c (handle_notification): Adjust.
2065 (notif_event_xfree): New function.
2066 (do_notif_event_xfree): Call notif_event_xfree.
2067 (remote_notif_state_xfree): Call notif_event_xfree to free
2068 each element in field pending_event.
2069 * remote.c (discard_pending_stop_replies): Remove declaration.
2070 (discard_pending_stop_replies_in_queue): Declare.
2071 (remote_close): Call discard_pending_stop_replies_in_queue
2072 instead of discard_pending_stop_replies.
2073 (remote_start_remote): Adjust.
2074 (stop_reply_xfree): Call notif_event_xfree.
2075 (notif_client_stop): Adjust initialization.
2076 (remote_notif_remove_all): Rename it to ...
2077 (remove_stop_reply_for_inferior): ... this. Update comments.
2078 Don't check INF is NULL.
2079 (discard_pending_stop_replies): Return early if notif_state is
2080 NULL. Adjust. Don't check INF is NULL.
2081 (remote_notif_get_pending_events): Adjust.
2082 (discard_pending_stop_replies_in_queue): New function.
2083 (remote_wait_ns): Likewise.
2085 2013-10-04 Yao Qi <yao@codesourcery.com>
2087 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2088 (notif_queue): Remove.
2089 (remote_notif_process): Add one parameter 'notif_queue'.
2090 Update comments. Callers update.
2091 (remote_async_get_pending_events_token): Remove.
2092 (remote_notif_register_async_event_handler): Remove.
2093 (remote_notif_unregister_async_event_handler): Remove.
2094 (handle_notification): Add parameter 'notif_queue'. Update
2095 comments. Callers update.
2096 (notif_xfree): Remove.
2097 (remote_notif_state_allocate): New function.
2098 (remote_notif_state_xfree): New function.
2099 (_initialize_notif): Remove code to allocate queue.
2100 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2101 (struct remote_notif_state): New.
2102 (handle_notification): Update declaration.
2103 (remote_notif_process): Likewise.
2104 (remote_notif_register_async_event_handler): Remove.
2105 (remote_notif_unregister_async_event_handler): Remove.
2106 (remote_notif_state_allocate): Declare.
2107 (remote_notif_state_xfree): Declare.
2108 * remote.c (struct remote_state) <notif_state>: New field.
2109 (remote_close): Don't call
2110 remote_notif_unregister_async_event_handler. Call
2111 remote_notif_state_xfree.
2112 (remote_open_1): Don't call
2113 remote_notif_register_async_event_handler. Call
2114 remote_notif_state_allocate.
2116 2013-10-04 Yao Qi <yao@codesourcery.com>
2118 * varobj.c (create_child_with_value): Remove 'const' from the
2119 type of parameter 'name'.
2120 (varobj_add_child): Likewise.
2121 (install_dynamic_child): Remove 'const' from the type of
2123 (varobj_add_child): Likewise.
2124 (create_child_with_value): Likewise. Update comments. Don't
2126 (update_dynamic_varobj_children): Duplicate 'name'
2127 and pass it to install_dynamic_child.
2129 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2131 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2132 conversion logic to occur after PyLong_Check. Comment on order
2133 change significance.
2134 * python/py-arch.c (archpy_disassemble): Comment on order of
2135 conversion for integers and longs.
2137 2013-10-03 Pedro Alves <palves@redhat.com>
2139 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2140 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2141 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2142 PTRACE_O_TRACEFORK is not supported.
2143 (linux_test_for_tracesysgood): New function.
2144 (linux_test_for_tracefork): New function, factored out from
2145 linux_check_ptrace_features, and also don't kill child_pid here.
2147 2013-10-03 Tristan Gingold <gingold@adacore.com>
2149 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2150 Remove verbose error reporting. Use detected state to
2151 thread_set_state call.
2152 (i386_darwin_dr_get): Fix return type. Remove verbose error
2154 Remove trailing spaces.
2156 2013-10-02 Pedro Alves <palves@redhat.com>
2158 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2159 val_print_optimized_out.
2160 * jv-valprint.c (java_print_value_fields): Likewise.
2161 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2162 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2163 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2164 new optimized out value.
2165 * findvar.c (address_from_register): Likewise.
2166 * frame.c (put_frame_register): Tweak error string to say the
2167 register was not saved, rather than optimized out.
2168 * infcmd.c (default_print_one_register_info): Adjust call to
2169 val_print_optimized_out. Use value_of_register instead of
2170 get_frame_register_value.
2171 * mi/mi-main.c (output_register): Use value_of_register instead of
2172 get_frame_register_value.
2173 * valprint.c (valprint_check_validity): Likewise.
2174 (val_print_optimized_out): New value parameter. If the value is
2175 lval_register, print <not saved> instead.
2176 (value_check_printable, val_print_scalar_formatted): Adjust calls
2177 to val_print_optimized_out.
2178 * valprint.h (val_print_optimized_out): New value parameter.
2179 * value.c (struct value) <optimized_out>: Extend comment.
2180 (error_value_optimized_out): New function.
2181 (require_not_optimized_out): Use it. Use a different string for
2182 lval_register values.
2183 * value.h (error_value_optimized_out): New declaration.
2184 * NEWS: Mention <not saved>.
2186 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2188 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2189 strcmp to compare two symtab filenames.
2191 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2193 * symtab.c (search_symbols_equal): Delete.
2194 (sort_search_symbols_remove_dups): Replace call to
2195 search_symbols_equal by call to compare_search_syms,
2196 adjusting as necessary.
2198 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2201 * python/python.c: Document gdb.execute command in Python help.
2203 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2205 * python/py-frame.c (frame_info_to_frame_object): Use
2206 gdbpy_convert_exception. Clean up Python object on failure.
2208 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2210 * python/lib/gdb/command/frame_filters.py
2211 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2212 (ShowFrameFilterPriority.invoke): Ditto.
2214 2013-10-01 Keith Seitz <keiths@redhat.com>
2216 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2217 (parse_linespec): Make 'argptr' const.
2218 Remove temporary cast of 'argptr' to const char **.
2219 (decode_line_full): Pass const pointer to parse_linespec.
2220 (decode_line_1): Likewise.
2221 (decode_objc): Make local variable 'new_argptr' const.
2222 (find_function_symbols): Remove temporary cast to char *
2224 * objc-lang.c (find_imps): Make argument 'method' const.
2226 * objc-lang.h (find_imps): Likewise.
2228 2013-10-01 Keith Seitz <keiths@redhat.com>
2230 * completer.c (skip_quoted_chars): Make all arguments const.
2232 (skip_quoted): Likewise.
2233 * completer.h (skip_quoted_chars): Likewise.
2234 (skip_quoted): Likewise.
2235 * defs.h (skip_quoted): Remove duplicate declaration.
2236 * jv-exp.y: Include completer.h.
2237 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2238 * p-exp.y: Include completer.h.
2240 2013-10-01 Keith Seitz <keiths@redhat.com>
2242 * c-exp.y (parse_number): Make first argument const.
2243 Make a copy of the input to manipulate.
2244 (c_parse_escape): Make first argument const.
2245 Make local variable 'tokptr' const.
2246 (parse_string_or_char): Make first two arguments const.
2247 (macro_original_text): Make const.
2248 (lex_one_token): Make local variable 'tokstart' const.
2249 Likewise for local variables named 'p'.
2250 Cast away const for struct stoken (temporary).
2251 * c-lang.h (c_parse_escpae): Make first argument const.
2252 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2254 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2256 * f-exp.y (parse_number): Make first argument const.
2257 (match_string_literal): Make local variable 'tokstart'
2259 (yylex): Make local variable 'p' const.
2260 Cast away const for struct stoken (temporary).
2261 * go-exp.y (parse_number): Make first argument const.
2262 (parse_string_or_char): Likewise.
2263 Make local variable 'tokstart' const.
2264 (lex_one_token): Likewise for numerous locals called 'p'.
2265 Cast away const for struct stoken (temporary).
2266 * jv-exp.y (parse_number): Make first argument const.
2267 Make local variables 'tokstart' and 'tokptr' const.
2268 Cast away const for call to skip_quoted (temporary).
2269 (yylex): Make local variable 'p' const.
2270 Cast away const for struct stoken (temporary).
2271 * m2-exp.y (parse_number): Make local variable 'p' const.
2272 (yylex): Likewise for 'tokstart'.
2273 Cast away const for struct stoken (temporary).
2274 Make local variable 'p' const.
2275 * macroexp.c (get_character_constant): Pass a const string
2277 (get_string_literal): Likewise.
2278 (macro_expand_next): Make first argument const.
2279 Cast away const for init_shared_buffer.
2280 * macroexp.h (macro_expand_next): Make first argument const.
2281 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2282 Pass a const string to c_parse_escape.
2283 Make local variables 'p' and 'namestart' const.
2284 * parse.c (lexptr): Make const.
2285 (prev_lexptr): Likewise.
2286 (find_template_name_end): Return const.
2287 Make argument const, too.
2288 (parse_exp_in_context): Make first argument const.
2289 Remove the entire const_hack.
2290 (parse_exp_in_context_1): Make first argument const.
2291 * parser-defs.h (find_template_name_end): Return const.
2292 Make argument const, too.
2293 (lexptr): Make const.
2294 (prev_lexptr): Likewise.
2295 * utils.c (parse_escape): Make second argument const.
2296 * utils.h (parse_escape): Likewise.
2298 2013-10-01 Keith Seitz <keiths@redhat.com>
2300 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2302 (block_lookup): Make 'raw_name' and 'name' const.
2303 * ada-lex.l (processString): Update for struct stoken.ptr.
2304 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2305 (operator_stoken): Likewise.
2306 (lex_one_token): Remove temporary cast to char * for
2308 * f-exp.y (yylex): Likewise.
2309 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2310 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2311 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2313 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2314 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2315 * linespec.c (struct ls_parser): Make 'stream' const.
2316 (find_parameter_list_end): Make argument 'input' and local
2318 (linespec_lexer_lex_string): Make local variables 'start' and
2320 Use skip_spaces_const instead of skip_spaces.
2321 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2323 (parse_linespec): Temporarily cast 'argptr' to const for
2324 'parser->lexer.stream'.
2325 * m2-exp.y (yylex): Remove temporary cast to char * for
2327 * objc-lang.c (add_msglist): Make local variable 'p' const.
2328 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2329 (exp : STRING): Make 'sp' const.
2330 (parse_number): Make argument 'p' const.
2331 * parser-defs.h (struct stoken): Make 'ptr' const.
2333 2013-10-01 Doug Evans <dje@google.com>
2335 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2337 2013-10-01 Yao Qi <yao@codesourcery.com>
2339 * varobj.c (c_value_of_root): Remove declaration.
2340 (cplus_value_of_root, java_value_of_root): Likewise.
2341 (ada_value_of_root): Likewise.
2342 (struct language_specific) <value_of_root>: Remove.
2343 (languages): Update initialization.
2344 (check_scope): Move earlier.
2345 (c_value_of_root): Move earlier and rename to ...
2346 (value_of_root_1): ... this.
2347 (value_of_root): Caller update.
2348 (cplus_value_of_root, java_value_of_root): Remove.
2349 (ada_value_of_root): Remove.
2351 2013-10-01 Yao Qi <yao@codesourcery.com>
2353 * varobj.c (varobj_format_string): Remove "unknown".
2354 (languages): Remove the first element.
2355 * varobj.h (enum varobj_languages): Remove vlang_c.
2357 2013-10-01 Yao Qi <yao@codesourcery.com>
2359 * varobj.c (struct language_specific) <language>: Remove.
2360 (languages): Update the initialization.
2362 2013-10-01 Yao Qi <yao@codesourcery.com>
2364 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2365 "solib-target.h". Include "windows-tdep.h".
2366 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2367 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2368 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2369 windows-tdep.o to gdb_target_obs.
2371 2013-10-01 Yao Qi <yao@codesourcery.com>
2373 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2375 (amd64_windows_init_abi): Don't call set_solib_ops and
2376 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2377 windows_init_abi instead.
2378 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2380 (i386_cygwin_init_abi): Don't call set_solib_ops,
2381 set_gdbarch_has_dos_based_file_system and
2382 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2383 windows_init_abi instead.
2384 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2385 (windows_init_abi): New function.
2386 (windows_iterate_over_objfiles_in_search_order): Make it
2388 * windows-tdep.h (windows_init_abi): Declare.
2389 (windows_iterate_over_objfiles_in_search_order): Remove
2392 2013-10-01 Jerome Guitton <guitton@adacore.com>
2394 Checked in by Joel Brobecker <brobecker@adacore.com>
2395 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2396 incomplete dictionnary instead of None in case of missing
2397 environment variables.
2398 (elinos_init): in case of an incomplete environment, best
2399 effort to load system libraries instead of abort.
2401 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2403 * ada-lang.c (ada_has_this_exception_support): Ignore
2404 mst_solib_trampoline minimal symbols.
2406 2013-09-30 Tristan Gingold <gingold@adacore.com>
2408 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2409 hardware watchpoint.
2410 (i386_darwin_dr_set): Support 32 and 64 bit states.
2411 (i386_darwin_dr_get): Likewise.
2412 (i386_darwin_dr_set_control): Make static.
2413 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2414 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2416 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2418 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2419 Replace TIDGET with ptid_get_lwp.
2420 Replace GET_LWP with ptid_get_lwp.
2421 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2422 Replace BUILD_THREAD with ptid_build.
2423 Replace BUILD_LWP with ptid_build.
2424 Replace PIDGET with ptid_get_pid.
2425 Replace TIDGET with ptid_get_lwp.
2426 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2427 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2428 Replace TIDGET with ptid_get_lwp.
2429 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2430 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2431 Replace TIDGET with ptid_get_lwp.
2432 Replace GET_LWP with ptid_get_lwp.
2433 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2435 * breakpoint.c: Likewise.
2436 * common/ptid.c (ptid_is_pid): Condense check for
2437 null_ptid and minus_one_ptid.
2438 (ptid_lwp_p): New function.
2439 (ptid_tid_p): New function.
2440 * common/ptid.h: Update comments for accessors.
2441 (ptid_lwp_p): New prototype.
2442 (ptid_tid_p): New prototype.
2443 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2444 * gcore.c: Replace PIDGET with ptid_get_pid.
2445 * gdbthread.h: Likewise.
2446 * gnu-nat.c: Likewise.
2447 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2448 Replace TIDGET with ptid_get_lwp.
2449 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2450 * hppanbsd-nat.c: Likewise.
2451 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2452 Replace TIDGET with ptid_get_lwp.
2453 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2454 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2455 * infcmd.c: Likewise.
2456 * inferior.h: Likewise.
2457 * inflow.c: Likewise.
2458 * infrun.c: Likewise.
2459 * linux-fork.c: Likewise.
2460 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2461 Replace GET_PID with ptid_get_pid.
2462 Replace is_lwp with ptid_lwp_p.
2463 Replace GET_LWP with ptid_get_lwp.
2464 Replace BUILD_LWP with ptid_build.
2466 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2468 * common/linux-btrace.c: Move sys/syscall.h out of the
2469 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2470 Also check for SYS_perf_event_open before attempting to buid.
2472 2013-09-27 Doug Evans <dje@google.com>
2474 * dwarf2read.c (dwarf2_section_info): Add comment.
2475 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2477 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2478 (dwarf2_read_section): Delete unused local "header". Add section
2479 name to error message.
2480 (create_dwo_in_dwp): Tweak comment.
2481 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2483 * dwarf2read.c (die_reader_specs): Tweak comment.
2484 (get_section_bfd_owner, get_section_bfd_section): New functions.
2485 (get_section_name, get_section_file_name): New functions.
2486 (get_section_id, get_section_flags): New functions.
2487 (*): Use new functions to access section fields.
2489 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2490 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2491 arg "htab". All callers updated.
2492 (create_debug_types_hash_table): Remove redundant copy of
2494 (create_dwo_in_dwp): Tweak comments.
2495 (read_str_index): Tweak comment. Record dwarf form name in static
2498 2013-09-27 Pedro Alves <palves@redhat.com>
2500 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2501 (remote_filename_p): Add comment.
2502 * remote.c (remote_filename_p): Adjust to use
2503 REMOTE_SYSROOT_PREFIX.
2504 * solib.c (solib_find): When deciding whether we need to add a
2505 directory separator, check whether the sysroot is "remote:"
2506 instead of checking whether the patch has a drive spec. Add
2509 2013-09-27 Pedro Alves <palves@redhat.com>
2511 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2513 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2516 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2518 Fix set debug frame output.
2519 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2520 SENTINEL_FRAME entry lower to match enum frame_type order.
2522 2013-09-26 Pierre Muller <muller@sourceware.org>
2524 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2525 AMD64_R15_REGNUM when a register index is expected.
2526 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2527 Substitute in array.
2528 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2529 (amd64_push_arguments): Substitute in integer_regnum array.
2531 2013-09-25 Doug Evans <dje@google.com>
2533 * objfiles.c (allocate_objfile): Move comment to better place.
2535 New option "set debug symfile on".
2536 * NEWS: Mention "set debug symfile".
2537 * Makefile.in (SFILES): Add symfile-debug.c.
2538 (COMMON_OBS): Add symfile-debug.o.
2539 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2540 objfile's symbol functions.
2541 * objfiles.h (objfile_set_sym_fns): Declare.
2542 * symfile-debug.c: New file.
2543 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2544 objfile's symbol functions.
2545 (reread_symbols): Ditto.
2547 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2549 (add_symtab_fns): Update prototype.
2550 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2551 (registered_sym_fns): ... this.
2552 (symtab_fns): Update.
2553 (add_symtab_fns): New arg "flavour". All callers updated.
2554 (find_sym_fns): Rewrite to use new sym_fns registry.
2556 * symfile.h (struct sym_fns): Add "objfile" argument to
2557 sym_read_linetable. All uses updated.
2559 * symtab.c (domain_name, search_domain_name): New functions.
2560 * symtab.h (domain_name, search_domain_name): Declare.
2562 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2563 map_matching_symbols so objfile is first. All uses updated.
2564 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2565 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2567 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2570 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2573 2013-09-24 Doug Evans <dje@google.com>
2575 * objfiles.c (free_objfile): Move comment.
2577 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2579 * ada-exp.y (string_to_operator): Delete.
2580 (dummy_string_to_ada_operator): Delete.
2582 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2585 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2587 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2588 call_dummy_integer_regs, and classify.
2589 * amd64-tdep.h (amd64_classify): Add declaration.
2590 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2591 (amd64_reg_class): Delete, moved to i386-tdep.h.
2592 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2593 Replace call to amd64_classify by call to tdep->classify.
2594 (amd64_push_arguments): Get the list of registers to use for
2595 passing integer parameters from the gdbarch tdep structure,
2596 rather than using a hardcoded one. Replace calls to amd64_classify
2597 by calls to tdep->classify.
2598 (amd64_push_dummy_call): Get the register number used for
2599 the "hidden" argument from tdep->call_dummy_integer_regs.
2600 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2601 and tdep->call_dummy_integer_regs. Set tdep->classify.
2603 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2606 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2607 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2608 where tdep->memory_args_by_pointer is non-zero.
2610 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2613 * i386-tdep.h (struct gdbarch_tdep): Add new field
2614 integer_param_regs_saved_in_caller_frame.
2615 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2616 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2618 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2620 * amd64-windows-tdep.c: #include "value.h"
2621 (amd64_windows_classify): Delete.
2622 (amd64_windows_passed_by_integer_register)
2623 (amd64_windows_passed_by_xmm_register)
2624 (amd64_windows_passed_by_pointer)
2625 (amd64_windows_adjust_args_passed_by_pointer)
2626 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2627 (amd64_windows_push_dummy_call): New functions.
2628 (amd64_windows_init_abi): Remove setting of
2629 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2630 tdep->classify, tdep->memory_args_by_pointer and
2631 tdep->integer_param_regs_saved_in_caller_frame.
2632 Add call to set_gdbarch_push_dummy_call.
2634 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2636 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2637 objfile->original_name.
2639 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2641 Pass down original filename for objfile.
2642 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2643 * elfread.c (elf_symfile_read): Likewise.
2644 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2645 longer set ORIGINAL_NAME.
2646 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2647 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2648 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2649 symbol_file_add_from_bfd call.
2650 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2651 (macho_check_dsym): Add parameter filenamep. Change function comment.
2653 (macho_symfile_read): New variable dsym_filename. Update
2654 macho_check_dsym call. Use it for symbol_file_add_separate.
2655 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2656 it. Use it for objfile->original_name.
2657 (objfile_name): Return OBFD's filename, if available.
2658 * objfiles.h (allocate_objfile): Add new parameter name.
2659 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2660 * symfile-mem.c (symbol_file_add_from_memory): Update
2661 symbol_file_add_from_bfd call.
2662 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2664 (symbol_file_add_with_addrs): New parameter name, add function comment
2665 for it. Remove variable name. Update allocate_objfile call.
2666 (symbol_file_add_separate): New parameter name, add function comment
2667 for it. Update symbol_file_add_with_addrs call.
2668 (symbol_file_add_from_bfd): New parameter name. Update
2669 symbol_file_add_with_addrs call.
2670 (symbol_file_add): Update symbol_file_add_from_bfd call.
2671 (reread_symbols): New variable original_name. Save
2672 objfile->original_name by it.
2673 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2676 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2678 Code cleanup: Add objfile_name accessor function.
2679 * ada-lang.c (is_known_support_routine): Use objfile_name.
2680 * auto-load.c (source_gdb_script_for_objfile)
2681 (auto_load_objfile_script): Likewise.
2682 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2683 * dbxread.c (dbx_symfile_read): Likewise.
2684 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2685 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2686 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2687 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2688 (lookup_dwp_signatured_type, lookup_dwo_unit)
2689 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2690 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2691 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2692 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2693 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2694 (read_subrange_type, load_partial_dies, read_partial_die)
2695 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2696 (die_containing_type, build_error_marker_type, lookup_die_type)
2697 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2698 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2699 (get_DW_AT_signature_type, write_psymtabs_to_index)
2700 (save_gdb_index_command): Likewise.
2701 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2703 * expprint.c (dump_subexp_body_standard): Likewise.
2704 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2705 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2707 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2708 obj_name, use objfile_name for it, use the variable.
2709 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2711 * machoread.c (macho_symtab_read, macho_check_dsym)
2712 (macho_symfile_relocate): Likewise.
2713 * maint.c (maintenance_translate_address): Likewise.
2714 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2715 * minsyms.c (install_minimal_symbols): Likewise.
2716 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2718 (filter_overlapping_sections): Use objfile_name.
2719 (objfile_name): New function.
2720 * objfiles.h (struct objfile): Rename field name to original_name.
2721 (objfile_name): New prototype.
2722 * printcmd.c (sym_info, address_info): Use objfile_name.
2723 * probe.c (parse_probes, collect_probes, compare_probes)
2724 (info_probes_for_ops): Likewise.
2725 * progspace.c (clone_program_space): Likewise.
2726 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2727 (maintenance_info_psymtabs): Likewise.
2728 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2729 (source_section_scripts): Likewise.
2730 * python/py-objfile.c (objfpy_get_filename): Likewise.
2731 * python/py-progspace.c (pspy_get_filename): Likewise.
2732 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2733 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2734 * solib.c (solib_read_symbols): Likewise.
2735 * stabsread.c (scan_file_globals): Likewise.
2736 * stap-probe.c (handle_stap_probe): Likewise.
2737 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2738 (find_separate_debug_file_by_debuglink): Likewise.
2739 (reread_symbols): Likewise. Use the objfile field name renamed to
2741 (allocate_symtab): Use objfile_name.
2742 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2743 (dump_objfile, dump_msymbols, dump_symtab_1)
2744 (maintenance_print_msymbols, maintenance_print_objfiles)
2745 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2746 * target.c (target_translate_tls_address, target_info): Likewise.
2747 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2750 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2753 * probe.c (parse_probes): Rename variable objfile_name to
2756 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2758 Remove solib-sunos.c.
2759 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2760 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2761 * objfiles.c (rt_common_objfile): Remove.
2762 (free_objfile): Remove rt_common_objfile comparison.
2763 * objfiles.h (rt_common_objfile): Remove.
2764 * solib-sunos.c: Remove.
2765 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2767 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2769 Remove a.out NetBSD and OpenBSD hosts.
2770 * NEWS (Removed native configurations): New.
2771 * config/arm/nbsdaout.mh: Remove.
2772 * config/i386/nbsdaout.mh: Remove.
2773 * config/i386/obsdaout.mh: Remove.
2774 * config/m68k/nbsdaout.mh: Remove.
2775 * config/sparc/nbsdaout.mh: Remove.
2776 * config/vax/nbsdaout.mh: Remove.
2777 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2778 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2779 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2781 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2782 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2783 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2785 2013-09-23 Tom Tromey <tromey@redhat.com>
2787 * linespec.c (struct minsym_and_objfile): Remove.
2788 (minsym_and_objfile_d): Remove.
2789 (struct linespec, struct collect_info, linespec_parse_basic)
2790 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2791 (compare_msymbols, find_method, find_function_symbols)
2792 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2793 (add_minsym, search_minsyms_for_name): Update.
2795 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2797 * regcache.c: Add include of valprint.h.
2798 (dump_endian_bytes): Delete.
2799 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2801 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2803 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2805 2013-09-19 Pedro Alves <palves@redhat.com>
2807 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2810 2013-09-19 Pedro Alves <palves@redhat.com>
2811 Thomas Schwinge <thomas@codesourcery.com>
2812 Yue Lu <hacklu.newborn@gmail.com>
2814 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2815 Take a gdb_byte pointer instead of a char pointer.
2817 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2818 gnu_xfer_partial helper.
2819 (gnu_xfer_partial): New function.
2820 (gnu_target): Don't install a deprecated_xfer_memory hook.
2821 Install a to_xfer_partial hook.
2823 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2826 * main.c (captured_main): Replace catch_command_errors by
2827 catch_command_errors_const. Twice.
2828 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2829 (symbol_file_add): Make name parameter const.
2830 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2831 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2832 variable name. Change their usage accordingly.
2833 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2835 (symbol_file_add_main): Make args parameter const.
2837 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2838 Ulrich Weigand <uweigand@de.ibm.com>
2840 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2842 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2844 2013-09-18 Pedro Alves <palves@redhat.com>
2845 Yue Lu <hacklu.newborn@gmail.com>
2847 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2848 (gnu_create_inferior)
2849 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2850 (set_sig_thread_cmd): Use the lwpid field of ptids to
2851 store/extract thread ids instead of the tid field.
2852 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2854 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2856 * infcmd.c (default_print_one_register_info): Add detection of
2857 optimized out values.
2858 (default_print_registers_info): Switch to using
2859 get_frame_register_value.
2861 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2863 * infrun.c (handle_inferior_event): Check if we know the
2864 function start address before setting a resume breakpoint.
2866 2013-09-18 Pedro Alves <palves@redhat.com>
2868 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2869 minus_one_ptid instead of looking at the ptid's tid field and
2870 comparing that to -1.
2872 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2874 * main.h (get_gdb_program_name): Remove extra whitespace.
2876 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2878 * main.h (get_gdb_program_name): Add declaration.
2879 * main.c (get_gdb_program_name): Add definition.
2881 2013-09-17 Doug Evans <dje@google.com>
2883 * dwarf2read.c: Move definitions of complaint functions to after
2884 forward declarations of local functions.
2886 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2887 Pedro Alves <palves@redhat.com>
2890 * breakpoint.c (remove_threaded_breakpoints): New function.
2891 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2892 as thread_exit observer.
2894 2013-09-17 Pedro Alves <palves@redhat.com>
2897 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2898 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2899 * corelow.c (core_open):
2900 * frame.h (print_stack_frame, print_frame_info): New
2901 'set_current_sal' parameter.
2902 * infcmd.c (finish_command, kill_command): Adjust call to
2904 * inferior.c (inferior_command): Likewise.
2905 * infrun.c (normal_stop): Likewise.
2906 * linux-fork.c (linux_fork_context): Likewise.
2907 * record-full.c (record_full_goto_entry, record_full_restore):
2909 * remote-mips.c (common_open): Likewise.
2910 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2912 (print_frame_info): New 'set_current_sal' parameter. Set the last
2913 displayed sal depending on the new paremeter instead of looking at
2915 (backtrace_command_1, select_and_print_frame, frame_command)
2916 (current_frame_command, up_command, down_command): Adjust call to
2918 * thread.c (print_thread_info, restore_selected_frame)
2919 (do_captured_thread_select): Adjust call to print_stack_frame.
2920 * tracepoint.c (tfind_1): Likewise.
2921 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2922 (mi_cmd_stack_info_frame): Likewise.
2923 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2924 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2926 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2928 * value.c (isvoid_internal_fn): Replace "parameter" with
2931 2013-09-16 Stan Shebs <stan@codesourcery.com>
2933 * README: Update references to writing code for GDB.
2934 * configure.ac (build_warnings): Remove obsolete comment.
2935 * configure: Regenerate.
2936 * gdbarch.sh: Remove references to gdbint.texinfo.
2937 * gdbarch.h: Regenerate.
2938 * gdbtypes.c (objfile_type): Remove comments referencing internals
2941 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2943 * NEWS: Mention new convenience function $_isvoid.
2944 * value.c (isvoid_internal_fn): New function.
2945 (_initialize_values): Add new convenience function $_isvoid.
2947 2013-09-16 Pierre Muller <muller@sourceware.org>
2949 * arm-linux-tdep.c: Add "elf/common.h" header.
2950 Remove AT_HWCAP macro definintion as it is provided in
2952 * s390-tdep.c: Remove system header <elf.h>
2953 Add "elf/common.h" header for AT_HWCAP definition.
2954 (s390_core_read_description): Use correct CORE_ADDR
2955 for hwcap local variable used as third parameter
2956 of function target_auxv_search.
2958 2013-09-14 Pierre Muller <muller@sourceware.org>
2959 Tom Tromey <tromey@redhat.com>
2960 Pedro Alves <palves@redhat.com>
2962 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2963 mode if operating system doesn't know O_CLOEXEC.
2965 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2968 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2971 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2973 * NEWS: Mention TDB support.
2974 * features/s390-tdb.xml: New file.
2975 * features/s390-te-linux64.xml: New file.
2976 * features/s390x-te-linux64.xml: New file.
2977 * features/Makefile (WHICH): Add new tdescs above.
2978 (s390-te-linux64-expedite): Set.
2979 (s390x-te-linux64-expedite): Set.
2980 * features/s390-te-linux64.c: New file (generated).
2981 * features/s390x-te-linux64.c: New file (generated).
2982 * regformats/s390-te-linux64.dat: New file (generated).
2983 * regformats/s390x-te-linux64.dat: New file (generated).
2984 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2985 (HWCAP_S390_TE): Likewise.
2986 (S390_TDB_DWORD0_REGNUM): Likewise.
2987 (S390_TDB_DWORD0_REGNUM): Likewise.
2988 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2989 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2990 (S390_TDB_ATIA_REGNUM): Likewise.
2991 (S390_TDB_R0_REGNUM): Likewise.
2992 (S390_TDB_R1_REGNUM): Likewise.
2993 (S390_TDB_R2_REGNUM): Likewise.
2994 (S390_TDB_R3_REGNUM): Likewise.
2995 (S390_TDB_R4_REGNUM): Likewise.
2996 (S390_TDB_R5_REGNUM): Likewise.
2997 (S390_TDB_R6_REGNUM): Likewise.
2998 (S390_TDB_R7_REGNUM): Likewise.
2999 (S390_TDB_R8_REGNUM): Likewise.
3000 (S390_TDB_R9_REGNUM): Likewise.
3001 (S390_TDB_R10_REGNUM): Likewise.
3002 (S390_TDB_R11_REGNUM): Likewise.
3003 (S390_TDB_R12_REGNUM): Likewise.
3004 (S390_TDB_R13_REGNUM): Likewise.
3005 (S390_TDB_R14_REGNUM): Likewise.
3006 (S390_TDB_R15_REGNUM): Likewise.
3007 (S390_NUM_REGS): Increase.
3008 (S390_IS_TDBREGSET_REGNUM): New macro.
3009 (s390_regmap_tdb): Declare.
3010 (s390_sizeof_tdbregset): Define.
3011 (tdesc_s390_te_linux64): Declare.
3012 (tdesc_s390x_te_linux64): Likewise.
3013 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3014 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3015 (s390_regmap_tdb): New regmap.
3016 (s390_supply_tdb_regset): New function.
3017 (s390_tdb_regset): New regset.
3018 (s390_linux64v2_regset_sections): Add TDB regset to list.
3019 (s390x_linux64v2_regset_sections): Likewise.
3020 (s390_regset_from_core_section): Recognize TDB core note section.
3021 (s390_core_read_description): If HWCAP indicates TE support,
3022 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3023 (s390_gdbarch_init): Handle TDB regset.
3024 (_initialize_s390_tdep): Initialize new tdescs.
3025 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3026 (have_regset_tdb): New variable.
3027 (s390_native_supply): Support register invalidation.
3028 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3029 (check_regset): Treat ENODATA as "regset exists".
3030 (s390_linux_fetch_inferior_registers): Add TDB.
3031 (s390_read_description): Check for TDB existence and select
3033 * gdbserver/Makefile.in (clean): Add removal of new makefile
3035 (s390-te-linux64.c): New makefile target.
3036 (s390x-te-linux64.c): Likewise.
3037 * gdbserver/configure.srv (srv_regobj): Append new objects
3038 s390-te-linux64.o and s390x-te-linux64.o.
3039 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3040 s390x-te-linux64.xml, and s390-tdb.xml.
3041 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3043 (tdesc_s390_te_linux64): Likewise.
3044 (init_registers_s390x_te_linux64): Likewise.
3045 (tdesc_s390x_te_linux64): Likewise.
3046 (s390_check_regset): Treat ENODATA as "regset exists".
3047 (s390_arch_setup): Add TDB regset support.
3048 (initialize_low_arch): Initialize registers for new tdescs.
3050 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3052 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3053 (S390_IS_FPREGSET_REGNUM): New macro.
3054 * s390-tdep.c (s390_dwarf_regmap): Make const.
3055 (regnum_is_gpr_full): New function for replacing repeated code.
3056 (s390_pseudo_register_name): Use it.
3057 (s390_pseudo_register_type): Likewise.
3058 (s390_pseudo_register_read): Likewise.
3059 (s390_pseudo_register_write): Likewise.
3060 (s390_unwind_pseudo_register): Likewise.
3061 (s390_regmap_gregset): New format for regmap.
3062 (s390x_regmap_gregset): Likewise.
3063 (s390_regmap_fpregset): Likewise.
3064 (s390_regmap_upper): Likewise.
3065 (s390_regmap_last_break): Likewise.
3066 (s390_regmap_system_call): Likewise.
3067 (s390_supply_regset): Adjust to new regmap format.
3068 (s390_collect_regset): Likewise.
3069 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3070 (s390_native_collect): Likewise.
3071 (supply_gregset): Likewise.
3072 (fill_gregset): Likewise.
3073 (supply_fpregset): Likewise.
3074 (fill_fpregset): Likewise.
3075 (fetch_regset): Likewise.
3076 (store_regset): Likewise.
3077 (s390_linux_fetch_inferior_registers): Likewise.
3078 (s390_linux_fetch_inferior_registers): Likewise.
3080 2013-09-12 Andrew Pinski <apinski@cavium.com>
3082 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3084 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3086 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3088 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3090 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3092 2013-09-06 Pedro Alves <palves@redhat.com>
3094 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3095 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3096 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3097 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3098 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3101 2013-09-06 Pedro Alves <palves@redhat.com>
3103 * remote-sim.c (dump_mem): Constify buf parameter.
3104 gdbsim_xfer_inferior_memory): Rename to ...
3105 (gdbsim_xfer_memory): ... this. Adjust interface as
3106 target_xfer_partial helper.
3107 (gdbsim_xfer_partial): New function.
3108 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3109 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3111 2013-09-06 Pedro Alves <palves@redhat.com>
3113 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3114 host_address_to_string, and send debug output to gdb_stdlog.
3116 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3118 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3119 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3120 gdb_target_obs for cris target.
3121 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3122 (cris_gdbarch_init): Move calls to
3123 set_gdbarch_fetch_tls_load_module_address and
3124 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3125 Add call to gdbarch_init_osabi.
3126 * cris-linux-tdep.c: New file.
3127 * cris-tdep.h: New file.
3129 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3131 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3132 to deprecated_init_ui_hook.
3134 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3136 * cli/cli-interp.c (_initialize_cli_interp): Add a
3137 command_loop_proc to interp_procs.
3138 * event-top.c (cli_command_loop): Change signature to match
3139 interp_command_loop_ftype.
3140 * event-top.h (cli_command_loop): Same.
3141 * interps.c (interp_new): Require every interpreter to have a
3143 (current_interp_command_loop): Just call the command_loop_proc on
3144 the current interpreter.
3145 * tui/tui-interp.c (_initialize_tui_interp): Add a
3146 command_loop_proc to interp_procs.
3148 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3150 * cris-tdep.c (cris_gdbarch_init): Add call to
3151 get_gdbarch_fetch_tls_load_module_address.
3153 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3155 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3156 (cris_elf_gregset_t): Rename from elf_gregset_t.
3157 (crisv32_elf_gregset_t): Adjust.
3158 (cris_supply_gregset, fetch_core_registers): Adjust.
3160 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3162 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3164 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3166 * defs.h (deprecated_command_loop_hook): Remove, including
3167 references in comments.
3168 * interps.c (current_interp_command_loop): No longer use
3169 deprecated_command_loop_hook.
3170 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3172 * top.c (deprecated_command_loop_hook): Remove.
3174 2013-09-05 Pedro Alves <palves@redhat.com>
3176 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3177 local is now int instead of ULONGEST. Print it with %d
3178 instead of paddress.
3180 2013-09-05 Tristan Gingold <gingold@adacore.com>
3182 * MAINTAINERS: Remove avr maintainership.
3184 2013-09-05 Pedro Alves <palves@redhat.com>
3186 * findvar.c (value_of_register): Rework in terms of
3187 value_of_register_lazy.
3189 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3191 * symfile.c (add_symbol_file_command): Remove trailing
3192 whitespaces and blank line after comment.
3194 2013-09-05 Pedro Alves <palves@redhat.com>
3196 * tui/tui-regs.c (tui_register_format): Don't look at the
3197 register's name here. Return string representing register
3198 value instead of storing it in the data element.
3199 (tui_get_register): Compare register string representations
3200 instead of register value states and contents.
3202 2013-09-05 Pedro Alves <palves@redhat.com>
3205 * tui/tui-regs.c (tui_show_registers): Show registers of the
3206 selected frame, not the current frame.
3208 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3210 * MAINTAINERS (Write After Approval): Add myself to the list.
3212 2013-09-04 Doug Evans <dje@google.com>
3214 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3215 (queue_and_load_dwo_tu): New function.
3216 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3217 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3218 Make dependent_cu optional.
3219 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3220 and an older .gdb_index is in use, queue and load all its TUs too.
3222 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3224 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3225 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3226 variable search_flags.
3227 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3228 (OPF_RETURN_REALPATH): ... here.
3229 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3230 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3232 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3234 * solib.c (solib_find): Likewise. Four times.
3235 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3236 in the function comment and for the realpath_fptr variable.
3237 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3238 (find_and_open_source): Likewise. Twice.
3239 * symfile.c (symfile_bfd_open): Likewise, also twice.
3241 2013-09-04 Doug Evans <dje@google.com>
3243 * progspace.c (save_current_space_and_thread): Remove unnecessary
3244 call to save_current_inferior.
3246 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3248 * sh64-tdep.c (sh64_do_register): Return after printing message
3249 about unavailable register contents.
3251 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3252 Pedro Alves <palves@redhat.com>
3254 * symfile.c (add_symbol_file_command): Error out on unknown
3255 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3256 options and collapse into single conditional branch.
3258 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3260 * inf-child.c (inf_child_follow_fork): New parameter
3262 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3263 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3264 * inferior.h (detach_fork): Remove.
3265 * infrun.c (detach_fork): Adjust comment and make it
3267 (follow_fork): Pass detach_fork parameter to
3269 * linux-nat.c (linux_child_follow_fork): New parameter
3271 * target.c (target_follow_fork): New parameter detach_fork.
3272 Pass detach_fork as parameter and print its value.
3273 * target.h (struct target_ops) <to_follow_fork>: New int
3275 (target_follow_fork): New parameter detach_fork.
3277 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3279 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3280 Replace sec->bfd by sec->the_bfd_section->owner.
3282 2013-09-03 Yao Qi <yao@codesourcery.com>
3284 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3285 from linux_has_shared_address_space.
3286 (linux_has_shared_address_space): Call linux_is_uclinux.
3287 * linux-tdep.h (linux_is_uclinux): Declare.
3288 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3291 2013-09-03 Yao Qi <yao@codesourcery.com>
3293 * config/djgpp/fnchange.lst: Remove entry of
3294 i386-interix-nat.c and i386-interix-tdep.c.
3295 * configure.ac: Remove '*-*-interix*'.
3296 * configure: Re-generated.
3297 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3298 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3300 * osabi.c (gdb_osabi_names): Remove "Interix".
3302 2013-09-03 Yao Qi <yao@codesourcery.com>
3304 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3306 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3308 * record.h (record_print_flag) <record_print_src_line,
3309 record_print_insn_range>: Rename into ...
3310 (record_print_flag) <record_print_src_line,
3311 record_print_insn_range>: ... this. Update all users.
3313 2013-09-02 Pierre Muller <muller@sourceware.org>
3315 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3318 2013-09-02 Pierre Muller <muller@sourceware.org>
3320 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3321 by use of plongest function.
3323 2013-09-02 Tristan Gingold <gingold@adacore.com>
3325 * NEWS: Add entry mentioning support for native Windows x64
3328 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3329 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3330 (struct amd64_windows_frame_cache): New struct.
3331 (amd64_windows_w2gdb_regnum): New global.
3332 (pc_in_range, amd64_windows_frame_decode_epilogue)
3333 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3334 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3335 (amd64_windows_frame_this_id): New functions.
3336 (amd64_windows_frame_unwind): New static global.
3337 (amd64_windows_skip_prologue): New function.
3338 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3339 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3340 with amd64_windows_skip_prologue.
3342 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3346 2013-08-30 Pedro Alves <palves@redhat.com>
3348 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3351 2013-08-30 Pedro Alves <palves@redhat.com>
3353 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3356 2013-08-30 Pedro Alves <palves@redhat.com>
3358 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3359 Adjust arguments to print_stack_frame.
3361 2013-08-30 Pedro Alves <palves@redhat.com>
3363 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3365 2013-08-30 Pedro Alves <palves@redhat.com>
3367 * frame.h (show_and_print_stack_frame): Delete declaration.
3369 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3372 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3373 (archpy_name): Check for valid architecture.
3374 (archpy_disassemble): Ditto.
3376 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3378 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3379 instead of "long long" in call to ptrace64.
3381 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3383 * mi/mi-interp.c (mi_command_loop): Change signature to match
3384 interp_command_loop_ftype.
3385 (mi1_command_loop): Remove.
3386 (mi2_command_loop): Remove.
3387 (mi3_command_loop): Remove.
3388 (mi_interpreter_resume): Remove setting of
3389 deprecated_command_loop_hook.
3390 (_initialize_mi_interp): Set mi_command_loop as the command loop
3393 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3395 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3398 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3400 * value.c (allocate_value_contents): Make static.
3401 * value.h (allocate_value_contents): Remove prototype.
3403 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3405 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3406 of assembling value via allocate_value_lazy and attribute setter.
3407 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3408 assembling value via allocate_value_lazy and attribute setter.
3409 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3410 assembling value via allocate_value_lazy and attribute setter.
3412 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3414 * value.c (value_from_contents_and_address): Replace allocate_value and
3415 memcpy with value_from_contents.
3417 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3419 * python/py-framefilter.c (py_print_frame): Remove usage of
3420 PyString_AsString. Use python_string_to_host_string instead.
3421 Refactor function to work with a string as a new allocation
3422 instead of a pointer.
3423 (py_print_frame): Ditto.
3424 * python/lib/gdb/frames.py (return_list): Cain iterators together
3425 instead of adding them as a list.
3426 (_sort_list): Call return_list, and remove duplicate code.
3427 (execute_frame_filters): Convert iterator to a list with list().
3428 * python/lib/gdb/command/frame_filters.py
3429 (SetFrameFilterPriority._set_filter_priority): Convert priority
3430 attribute to an integer.
3431 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3432 wrapper function __next__.
3433 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3436 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3439 * python/py-framefilter.c (apply_frame_filter): Check
3440 gdb_python_initialized. Exit if the Python frame-filter code
3441 cannot be initialized.
3443 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3446 * top.c (print_gdb_version): Remove erroneous newline after help
3449 2013-08-29 Yao Qi <yao@codesourcery.com>
3451 * varobj.c (install_dynamic_child): Remove trailing space.
3452 Add one blank line after variable declaration.
3454 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3457 * corefile.c (get_exec_file): Use exec_filename.
3458 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3459 * exec.c (exec_close): Free EXEC_FILENAME.
3460 (exec_file_attach): New variable canonical_pathname. Use
3461 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3463 * exec.h (exec_filename): New.
3464 * inferior.c (print_inferior, inferior_command): Use
3465 PSPACE_EXEC_FILENAME.
3466 * mi/mi-main.c (print_one_inferior): Likewise.
3467 * progspace.c (clone_program_space, print_program_space): Likewise.
3468 * progspace.h (struct program_space): New field pspace_exec_filename.
3469 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3470 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3472 2013-08-28 Will Newton <will.newton@linaro.org>
3474 * common/linux-ptrace.c: Include stdint.h unconditionally.
3476 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3479 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3481 2013-08-28 Yao Qi <yao@codesourcery.com>
3482 Pedro Alves <palves@redhat.com>
3484 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3485 instead of stdio_fileopen.
3486 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3487 .Call stderr_fileopen instead of stdio_fileopen.
3488 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3489 [__MINGW32__] (stderr_file_fputs): New function.
3490 (stderr_fileopen): New function.
3491 * ui-file.h (stderr_fileopen): Declare.
3493 2013-08-27 Doug Evans <dje@google.com>
3495 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3496 (struct dwarf2_per_cu_data): Ditto.
3497 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3498 (process_imported_unit_die): Ditto.
3499 (follow_die_sig_1): Simplify assert.
3501 2013-08-27 Pedro Alves <palves@redhat.com>
3503 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3504 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3505 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3506 windows_xfer_memory directly.
3507 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3509 2013-08-27 Pedro Alves <palves@redhat.com>
3511 * darwin-nat.c (darwin_xfer_memory): Delete.
3512 (_initialize_darwin_inferior): Don't install a
3513 deprecated_xfer_memory method.
3515 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3516 Yao Qi <yao@codesourcery.com>
3518 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3519 (parse_no_frames_option): Remove.
3520 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3521 (mi_cmd_stack_list_args): Adjust.
3522 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3523 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3524 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3526 (list_args_or_locals): New parameter 'skip_unavailable'.
3528 * valprint.c (scalar_type_p): Rename to ...
3529 (val_print_scalar_type_p): ... this. Make extern.
3530 (val_print, value_check_printable): Adjust.
3531 * valprint.h (val_print_scalar_type_p): Declare.
3532 * value.c (value_entirely_unavailable): New function.
3533 * value.h (value_entirely_unavailable): Declare.
3535 * NEWS: Mention the new option "--skip-unavailable" to MI
3536 commands '-stack-list-locals', '-stack-list-arguments' and
3537 '-stack-list-variables'.
3539 2013-08-27 Yao Qi <yao@codesourcery.com>
3541 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3542 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3544 * mi/mi-getopt.c (mi_getopt): Remove.
3545 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3547 (mi_getopt): Call mi_getopt_1.
3548 (mi_getopt_silent): New.
3549 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3551 2013-08-26 Doug Evans <dje@google.com>
3554 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3555 .gdb_index is in use.
3556 * symfile.c (reread_symbols): Reset objfile->sf.
3558 * NEWS: Document "mt print objfiles" now takes optional regexp.
3559 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3560 regexp of objfiles to print.
3561 (_initialize_symmisc): Update doc string for "mt print objfiles".
3563 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3564 missing debug info checks.
3566 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3567 Ulrich Weigand <uweigand@de.ibm.com>
3569 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3570 line tables generated by XLC compiled binaries.
3572 2013-08-23 Doug Evans <dje@google.com>
3574 * symmisc.c (dump_symtab): Delete prototype.
3575 (dump_msymbols, dump_objfile): Ditto.
3576 (maintenance_info_symtabs): Mark as dont_repeat.
3577 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3579 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3580 debugging printf to better location.
3582 2013-08-23 Pedro Alves <palves@redhat.com>
3584 * target.c (target_read_live_memory): Change type of 'ret' local
3587 2013-08-23 Pedro Alves <palves@redhat.com>
3589 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3590 (remote_read_bytes): Change return type to LONGEST, and adjust to
3591 return a target_xfer_error on error.
3592 (remote_xfer_memory): Delete.
3593 (remote_flash_write): Change type of 'ret' local to LONGEST.
3594 (remote_xfer_partial, remote_xfer_partial): Adjust.
3595 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3597 2013-08-23 Pierre Muller <muller@sourceware.org>
3599 ARI fix: Push # directives to start of line.
3600 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3602 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3605 * breakpoint.c (enable_command, disable_command): Iterate over
3606 all specified breakpoint locations.
3608 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3610 * common/linux-ptrace.c (linux_fork_to_function): Push #
3611 directives to the start of the line.
3612 (linux_check_ptrace_features): Fix warning message to use
3615 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3617 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3618 nat/linux-waitpid.h.
3619 (linux-waitpid.o): New object file rule.
3620 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3621 (current_ptrace_options): Moved from linux-nat.c.
3622 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3624 (linux_fork_to_function): New function.
3625 (linux_grandchild_function): Likewise.
3626 (linux_child_function): Likewise.
3627 (linux_check_ptrace_features): New function, heavily
3628 based on linux-nat.c:linux_test_for_tracefork.
3629 (linux_enable_event_reporting): New function.
3630 (ptrace_supports_feature): Likewise.
3631 (linux_supports_tracefork): Likewise.
3632 (linux_supports_traceclone): Likewise.
3633 (linux_supports_tracevforkdone): Likewise.
3634 (linux_supports_tracesysgood): Likewise.
3635 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3636 gdbserver/linux-low.c.
3637 (linux_enable_event_reporting): New declaration.
3638 (linux_supports_tracefork): Likewise.
3639 (linux_supports_traceclone): Likewise.
3640 (linux_supports_tracevforkdone): Likewise.
3641 (linux_supports_tracesysgood): Likewise.
3642 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3643 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3644 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3645 * config/arm/linux.mh (NATDEPFILES): Likewise.
3646 * config/i386/linux.mh (NATDEPFILES): Likewise.
3647 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3648 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3649 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3650 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3651 * config/mips/linux.mh (NATDEPFILES): Likewise.
3652 * config/pa/linux.mh (NATDEPFILES): Likewise..
3653 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3654 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3655 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3656 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3657 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3658 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3659 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3660 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3661 ptrace's 4th argument's types.
3662 Check the type of PTRACE_TYPE_ARG4.
3663 * configure: Regenerate.
3664 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3665 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3666 (linux_supports_tracefork_flag): Remove.
3667 (linux_supports_tracesysgood_flag): Likewise.
3668 (linux_supports_tracevforkdone_flag): Likewise.
3669 (current_ptrace_options): Moved to
3670 common/linux-ptrace.c.
3671 (linux_tracefork_child): Remove.
3672 (my_waitpid): Remove.
3673 (linux_test_for_tracefork): Renamed to
3674 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3675 (linux_test_for_tracesysgood): Remove.
3676 (linux_supports_tracesysgood): Remove.
3677 (linux_supports_tracefork): Remove.
3678 (linux_supports_tracevforkdone): Remove.
3679 (linux_enable_tracesysgood): Remove.
3680 (linux_enable_event_reporting): Remove.
3681 (linux_init_ptrace): New function.
3682 (linux_child_post_attach): Call linux_init_ptrace.
3683 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3684 (linux_child_follow_fork): Call linux_supports_tracefork
3685 and linux_supports_tracevforkdone.
3686 (linux_child_insert_fork_catchpoint): Call
3687 linux_supports_tracefork.
3688 (linux_child_insert_vfork_catchpoint): Likewise.
3689 (linux_child_set_syscall_catchpoint): Call
3690 linux_supports_tracesysgood.
3691 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3692 * nat/linux-nat.h: New file.
3693 * nat/linux-waitpid.c: New file.
3694 * nat/linux-waitpid.h: New file.
3696 2013-08-22 Samuel Bronson <naesten@gmail.com>
3698 ARM Linux support for `catch syscall'.
3699 * syscalls/arm-linux.py: New file.
3700 * syscalls/arm-linux.xml: Likewise.
3701 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3702 (arm_linux_init_abi): Register the new function and syscall xml file.
3703 * data-directory/Makefile.in: Install the new syscall xml file.
3704 * NEWS: Brag about this.
3706 2013-08-22 Pedro Alves <palves@redhat.com>
3709 * corefile.c (target_xfer_memory_error): New function.
3710 (memory_error): Defer EIO to target_memory_error.
3711 (read_memory): Use target_xfer_partial, and handle finer-grained
3713 * target.c (target_xfer_error_to_string): New function.
3714 (memory_xfer_partial_1): If memory is known to be
3715 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3716 (target_xfer_partial): Make extern.
3717 * target.h (enum target_xfer_error): New enum.
3718 (target_xfer_error_to_string): Declare function.
3719 (target_xfer_partial): Declare function.
3720 (struct target_ops) <xfer_partial>: Adjust describing comment.
3722 2013-08-22 Alan Modra <amodra@gmail.com>
3724 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3725 * configure.tgt: Likewise as targets.
3727 2013-08-20 Doug Evans <dje@google.com>
3729 * buildsym.c (subfile_stack): Move here from buildsym.h.
3730 (pending_macros): Ditto.
3731 (get_macro_table): New function.
3732 (buildsym_init): Initialize subfile_stack.
3733 * coffread.c (type_vector,type_vector_length): Moved here from
3735 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3736 (coff_symtab_read): Use it.
3737 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3738 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3739 with call to get_macro_table.
3740 * stabsread.c (type_vector,type_vector_length): Moved here from
3742 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3743 * buildsym.h (get_macro_table): Declare.
3745 2013-08-20 Tom Tromey <tromey@redhat.com>
3747 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3749 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3751 2013-08-20 Doug Evans <dje@google.com>
3753 * blockframe.c: Remove #include "psymtab.h".
3754 * cp-support.c: Ditto.
3758 2013-08-20 Tom Tromey <tromey@redhat.com>
3761 * exceptions.h (return_mask): Now an enum.
3762 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3765 2013-08-20 Tom Tromey <tromey@redhat.com>
3767 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3769 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3770 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3771 * jit.c (jit_object_close_impl): Update.
3772 * jv-lang.c (get_dynamics_objfile): Update.
3773 * linespec.c (add_minsym): Use get_dynamics_objfile.
3774 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3775 (allocate_objfile): Don't initialize 'gdbarch' field.
3776 (get_objfile_arch): Update.
3777 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3779 (struct objfile) <gdbarch>: ... here. Remove.
3780 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3782 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3784 2013-08-20 Alan Modra <amodra@gmail.com>
3786 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3787 for IBM long double nan and inf.
3788 (floatformat_is_negative, floatformat_classify,
3789 floatformat_mantissa): Similarly.
3790 (floatformat_ieee_single, floatformat_ieee_double,
3791 floatformat_ieee_quad, floatformat_arm_ext,
3792 floatformat_ia64_spill): Delete unused vars.
3793 (_initialize_doublest): Delete unused function.
3794 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3795 little-endian variants of floatformat_ibm_long_double.
3797 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3799 * Makefile.in (SFILES): Remove common/target-common.c and
3800 add target/waitstatus.c.
3801 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3802 target/resume.h, target/wait.h and target/waitstatus.h.
3803 (COMMON_OBS): Remove target-common.o and add
3805 (target-common.o): Remove.
3806 (waitstatus.o): New target object file.
3807 * common/target-common.c: Move contents to
3808 target/waitstatus.c and remove.
3809 * common/target-common.h: Move contents to other files and
3811 (enum resume_kind: Move to target/resume.h.
3812 (TARGET_WNOHANG): Move to target/wait.h.
3813 (enum target_waitkind): Move to target/waitstatus.h.
3814 (struct target_waitstatus): Likewise.
3815 * target.h: Do not include target-common.h and
3816 include target/resume.h, target/wait.h and
3817 target/waitstatus.h.
3818 * target/resume.h: New file.
3819 * target/wait.h: New file.
3820 * target/waitstatus.h: New file.
3821 * target/waitstatus.c: New file.
3823 2013-08-19 Pedro Alves <palves@redhat.com>
3825 * linux-nat.c (linux_test_for_tracefork)
3826 (linux_test_for_tracesysgood, linux_child_follow_fork)
3827 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3828 (linux_nat_wait_1): Extend comment.
3829 (linux_async_pipe): Add comment.
3831 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3833 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3834 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3835 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3836 Update to account for fact that PC is now a pseudo-register.
3837 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3838 cases for RL78_PC_REGNUM.
3840 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3843 * top.c (quit_force): Skip writing history file
3844 if input is not from terminal.
3846 2013-08-14 Tom Tromey <tromey@redhat.com>
3848 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3849 resultthreadlist>: New fields.
3850 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3851 (remote_get_threadlist, remote_threadlist_iterator): Use
3852 new fields. Remove static variables.
3854 2013-08-14 Tom Tromey <tromey@redhat.com>
3856 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3857 remote_watch_data_address>: New fields.
3858 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3859 (process_stop_reply, remote_wait_as)
3860 (remote_check_watch_resources, remote_stopped_data_address): Update.
3862 2013-08-14 Tom Tromey <tromey@redhat.com>
3864 * remote.c (struct remote_state) <async_client_callback,
3865 async_client_context>: New fields.
3866 (async_client_callback, async_client_context): Remove.
3867 (remote_async_serial_handler, remote_async): Update.
3869 2013-08-14 Tom Tromey <tromey@redhat.com>
3871 * remote.c (sizeof_pkt): Remove.
3872 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3874 2013-08-14 Tom Tromey <tromey@redhat.com>
3876 * remote.c (struct remote_state) <use_threadinfo_query,
3877 use_threadextra_query>: New fields.
3878 (remote_threads_info, remote_threads_extra_info)
3879 (remote_open_1): Update.
3881 2013-08-14 Tom Tromey <tromey@redhat.com>
3883 * remote.c (struct remote_state) <finished_object,
3884 finished_annex, finished_offset>: New fields.
3885 (remote_read_qxfer): Use remote_state fields; remove static
3888 2013-08-14 Tom Tromey <tromey@redhat.com>
3890 * remote.c (struct remote_state) <last_sent_step>:
3892 (last_sent_step): Remove.
3893 (remote_resume, remote_wait_as): Update.
3895 2013-08-14 Tom Tromey <tromey@redhat.com>
3897 * remote.c (struct remote_state) <last_sent_signal>:
3899 (last_sent_signal): Remove.
3900 (new_remote_state, remote_resume, remote_wait_as): Update.
3902 2013-08-14 Tom Tromey <tromey@redhat.com>
3904 * remote.c (struct remote_state) <last_program_signals_packet>:
3906 (last_program_signals_packet): Remove.
3907 (remote_program_signals, remote_open_1): Update.
3909 2013-08-14 Tom Tromey <tromey@redhat.com>
3911 * remote.c (struct remote_state) <last_pass_packet>:
3913 (last_pass_packet): Remove.
3914 (remote_pass_signals, remote_open_1): Update.
3916 2013-08-14 Tom Tromey <tromey@redhat.com>
3918 * remote.c (struct remote_state) <remote_traceframe_number>:
3920 (remote_traceframe_number): Remove.
3921 (new_remote_state, remote_open_1, set_remote_traceframe)
3922 (remote_trace_find): Update.
3924 2013-08-14 Tom Tromey <tromey@redhat.com>
3926 * remote.c (struct remote_state) <general_thread, continue_thread>:
3928 (general_thread, continue_thread): Remove.
3929 (record_currthread, set_thread, set_general_process)
3930 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3931 (extended_remote_mourn_1): Update.
3933 2013-08-14 Tom Tromey <tromey@redhat.com>
3935 * remote.c (struct remote_state) <remote_desc>: New field.
3936 (remote_desc): Remove.
3937 (remote_threads_info, remote_threads_extra_info, remote_close)
3938 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3939 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3940 (remote_hostio_send_command, remote_file_put, remote_file_get)
3941 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3942 (remote_async, remote_new_objfile, set_range_stepping): Update.
3944 2013-08-14 Tom Tromey <tromey@redhat.com>
3946 * remote.c (remote_state): Now a pointer.
3947 (get_remote_state_raw): Update.
3948 (new_remote_state): New function.
3949 (_initialize_remote): Use new_remote_state.
3951 2013-08-14 Tom Tromey <tromey@redhat.com>
3953 * remote.c (remote_protocol_features): Now const.
3955 2013-08-14 Tom Tromey <tromey@redhat.com>
3957 * remote.c (crc32_table, crc32): Remove.
3958 (remote_verify_memory): Use xcrc32.
3960 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3962 * value.h (create_internalvar_type_lazy): Adjust prototype
3965 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3967 * common/format.c (parse_format_string): Don't allow '#' flag for
3968 pointer arguments in format string.
3970 2013-08-13 Pierre Muller <muller@sourceware.org>
3972 * utils.c (init_page_info): Only call tgetnum function
3973 if rl_get_screen_size did not return useful values.
3975 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3977 PR breakpoints/15117
3978 * linespec.c (linespec_parse_basic): Check for convenience
3979 variable or history value while parsing.
3981 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3983 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3985 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3986 different signals between the generic Linux kernel implementation
3988 (avr_linux_gdb_signal_from_target): Delete.
3989 (avr_linux_gdb_signal_to_target): Delete.
3990 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3992 2013-08-09 Doug Evans <dje@google.com>
3994 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3997 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3999 * linux-tdep.c: Define enum with generic signal numbers.
4000 (linux_gdb_signal_from_target): New function.
4001 (linux_gdb_signal_to_target): Likewise.
4002 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4003 methods to the functions above.
4004 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4005 (linux_gdb_signal_to_target): Likewise.
4006 * alpha-linux-tdep.c: Define new enum with signals different
4007 from generic Linux kernel.
4008 (alpha_linux_gdb_signal_from_target): New function.
4009 (alpha_linux_gdb_signal_to_target): Likewise.
4010 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4011 with the functions mentioned above.
4012 * avr-tdep.c: Define enum with differences between Linux kernel
4014 (avr_linux_gdb_signal_from_target): New function.
4015 (avr_linux_gdb_signal_to_target): Likewise.
4016 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4017 the functions mentioned above.
4018 * sparc-linux-tdep.c: Define enum with differences between SPARC
4019 and generic Linux kernel signal numbers.
4020 (sparc32_linux_gdb_signal_from_target): New function.
4021 (sparc32_linux_gdb_signal_to_target): Likewise.
4022 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4023 to the functions defined above.
4024 * xtensa-linux-tdep.c: Define enum with differences between
4025 Xtensa and Linux kernel generic signals.
4026 (xtensa_linux_gdb_signal_from_target): New function.
4027 (xtensa_linux_gdb_signal_to_target): Likewise.
4028 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4029 to the functions defined above.
4030 * mips-linux-tdep.c: Define enum with differences between
4031 signals in MIPS and Linux kernel generic ones.
4032 (mips_gdb_signal_to_target): New function.
4033 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4034 only different signals from the Linux kernel generic.
4035 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4036 the functions defined above.
4037 * mips-linux-tdep.h (enum mips_signals): Remove.
4039 2013-08-09 Pedro Alves <palves@redhat.com>
4041 * avr-tdep.c (XMALLOC): Delete macro.
4042 * cli/cli-dump.c (XMALLOC): Delete macro.
4044 2013-08-09 Pedro Alves <palves@redhat.com>
4046 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4047 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4048 (fopen_with_cleanup, add_dump_command): Make static.
4049 * cli/cli-dump.h: Delete file.
4050 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4053 2013-08-09 Pedro Alves <palves@redhat.com>
4055 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4058 2013-08-09 Pedro Alves <palves@redhat.com>
4060 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4063 2013-08-09 Pedro Alves <palves@redhat.com>
4065 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4066 (gcore_command): Use tilde_expand here, and when showing the
4067 filename to the user, show the expanded version.
4069 2013-08-09 Yao Qi <yao@codesourcery.com>
4071 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4074 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4076 * gcore.c (create_gcore_bfd): Use tilde_expand.
4078 2013-08-08 Yao Qi <yao@codesourcery.com>
4080 * frame.h (read_frame_local): Declare.
4081 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4083 * stack.c (read_frame_local): New.
4085 2013-08-08 Yao Qi <yao@codesourcery.com>
4087 * mi/mi-cmd-stack.c: Update comments to function
4088 list_args_or_locals.
4090 2013-08-07 Tom Tromey <tromey@redhat.com>
4093 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4094 (process_psymtab_comp_unit_reader): Use it.
4095 (process_psymtab_comp_unit): Update. Add "pretend_language"
4097 (dwarf2_build_psymtabs_hard): Update.
4098 (scan_partial_symbols): Pass CU's language to
4099 process_psymtab_comp_unit.
4101 2013-08-07 Tom Tromey <tromey@redhat.com>
4103 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4104 (dwarf2_gdb_index_functions): Update.
4105 * psymtab.c (find_symbol_file_from_partial): Remove.
4106 (psym_functions): Update.
4107 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4110 2013-08-07 Tom Tromey <tromey@redhat.com>
4112 * symfile.c (set_initial_language): Look up "main" symbol
4113 and use its language.
4114 * symtab.c (find_main_filename): Remove.
4115 * symtab.h (find_main_filename): Remove.
4117 2013-08-07 Tom Tromey <tromey@redhat.com>
4119 * dwarf2read.c (recursively_compute_inclusions): Add
4120 "immediate_parent" argument. Set symtab's "user" field
4122 (compute_symtab_includes): Update.
4124 2013-08-07 Tom Tromey <tromey@redhat.com>
4126 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4127 when adding label symbols.
4129 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4130 Ulrich Weigand <uweigand@de.ibm.com>
4132 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4133 * configure.host (powerpc64-*-aix*): Likewise.
4135 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4136 Ulrich Weigand <uweigand@de.ibm.com>
4138 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4140 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4141 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4142 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4143 * configure.ac: Check for ptrace64.
4144 * configure, config.in: Regenerate.
4146 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4147 Ulrich Weigand <uweigand@de.ibm.com>
4149 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4150 Call ptrace64 instead of ptrace if defined.
4151 Add macro addr_ptr to take care of ptrace address argument.
4152 (pdc_read_regs): Likewise.
4153 (pdc_write_regs): Likewise.
4154 (aix_thread_resume): Likewise.
4155 (fetch_regs_kernel_thread): Likewise.
4156 (store_regs_kernel_thread): Likewise.
4158 2013-08-07 Anton Blanchard <anton@samba.org>
4160 * MAINTAINERS: Add myself to Write After Approval.
4162 2013-08-05 Tom Tromey <tromey@redhat.com>
4164 * aix-thread.c (_initialize_aix_thread): Use
4165 complete_target_initialization.
4166 * bsd-uthread.c (_initialize_bsd_uthread): Use
4167 complete_target_initialization.
4168 * dec-thread.c (_initialize_dec_thread): Use
4169 complete_target_initialization.
4170 * ravenscar-thread.c (_initialize_ravenscar): Use
4171 complete_target_initialization.
4172 * sol-thread.c (_initialize_sol_thread): Use
4173 complete_target_initialization.
4174 * spu-multiarch.c (_initialize_spu_multiarch): Use
4175 complete_target_initialization.
4177 2013-08-05 Tom Tromey <tromey@redhat.com>
4179 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4180 * ada-lang.c (ada_lookup_simple_minsym): Return
4181 bound_minimal_symbol.
4182 * ada-lang.h (ada_lookup_simple_minsym): Update.
4183 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4184 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4185 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4186 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4187 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4188 * minsyms.c (msymbol_objfile): Remove.
4189 (lookup_minimal_symbol_internal): New function, from
4190 lookup_minimal_symbol.
4191 (lookup_minimal_symbol): Rewrite using
4192 lookup_minimal_symbol_internal.
4193 (lookup_bound_minimal_symbol): New function.
4194 * minsyms.h (msymbol_objfile): Remove.
4195 (lookup_bound_minimal_symbol): Declare.
4196 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4197 * parse.c (write_exp_msymbol): Change parameter to a
4198 bound_minimal_symbol.
4199 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4200 * parser-defs.h (write_exp_msymbol): Update.
4201 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4202 * symfile.c (simple_read_overlay_table): Use
4203 lookup_bound_minimal_symbol.
4204 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4205 (search_symbols): Likewise.
4206 (print_msymbol_info): Take a bound_minimal_symbol argument.
4207 (symtab_symbol_info, rbreak_command): Update.
4208 * symtab.h (struct symbol_search) <msymbol>: Change type
4209 to bound_minimal_symbol.
4210 * valops.c (find_function_in_inferior): Use
4211 lookup_bound_minimal_symbol.
4212 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4214 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4217 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4219 (async_cleanup_sigint_signal_handler): ... this.
4220 (initialize_sigint_signal_handler): Remove declaration.
4221 (handle_remote_sigint): Rename the declaration to ...
4222 (async_handle_remote_sigint): ... this.
4223 (handle_remote_sigint_twice): Rename the declaration to ...
4224 (async_handle_remote_sigint_twice): ... this.
4225 (async_remote_interrupt, async_remote_interrupt_twice)
4226 (remote_interrupt): Remove the declarations.
4227 (remote_interrupt_twice): Rename the declaration ...
4228 (sync_remote_interrupt_twice): ... this.
4229 (sigint_remote_twice_token): Rename the variable to ...
4230 (async_sigint_remote_twice_token): ... this.
4231 (sigint_remote_token): Rename the variable to ...
4232 (async_sigint_remote_token): ... this.
4233 (initialize_sigint_signal_handler): Rename the function to ...
4234 (async_initialize_sigint_signal_handler): ... this. Update the name
4236 (handle_remote_sigint): Rename the function to ...
4237 (async_handle_remote_sigint): ... this. Update the names inside.
4238 (handle_remote_sigint_twice): Rename the function to ...
4239 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4240 (cleanup_sigint_signal_handler): Rename the function to ...
4241 (async_cleanup_sigint_signal_handler): ... this.
4242 (remote_interrupt): Rename the function to ...
4243 (sync_remote_interrupt): this. Update the names inside.
4244 (remote_interrupt_twice): Rename the function to ...
4245 (sync_remote_interrupt_twice): this. Update the names inside.
4246 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4247 (_initialize_remote): Update the names inside.
4249 2013-08-02 Tom Tromey <tromey@redhat.com>
4252 * breakpoint.c (update_watchpoint, watchpoint_check)
4253 (watch_command_1): Update.
4254 * eval.c (fetch_subexp_value): Add "preserve_errors"
4256 * ppc-linux-nat.c (check_condition): Update.
4257 * value.h (fetch_subexp_value): Update.
4259 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4261 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4264 2013-08-01 Doug Evans <dje@google.com>
4267 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4268 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4269 Add assert of sig_entry->dwo_unit == NULL.
4270 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4271 had already been read.
4272 (read_signatured_type): Set per_cu.tu_read.
4275 * valops.c (value_struct_elt): Add missing call to check_typedef.
4276 (value_find_oload_method_list): Ditto.
4278 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4279 effectively, struct symbol_search **.
4280 (make_cleanup_free_search_symbols): Change arg to struct
4281 symbol_search **. All callers updated.
4282 (compare_search_syms): Compare symtab file name and block as well.
4283 (search_symbols_equal): New function.
4284 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4285 New args new_head, new_tail. Result is now void. Remove dups after
4286 sorting the symbols.
4287 (search_symbols): Sort all found symbols once, after all have been
4288 found, and remove duplicates. Simplify cleanup tracking of result.
4289 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4291 Further workarounds for binutils/15021.
4292 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4293 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4294 Watch for duplicate symtabs coming from type units.
4295 (compute_symtab_includes): Update call to
4296 recursively_compute_inclusions. Build vector of included symtabs
4298 * symtab.h (symtab_ptr): New typedef.
4299 (DEF_VEC_P (symtab_ptr)): New VEC type.
4300 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4303 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4305 * cli/cli-script.c (script_from_file): Remove use of
4307 * main.c (captured_main): Remove use of error_pre_print and
4309 * utils.c (error_pre_print, quit_pre_print): Remove.
4310 * utils.h (error_pre_print, quit_pre_print): Likewise.
4312 2013-08-01 Yao Qi <yao@codesourcery.com>
4314 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4316 (mi_cmd_stack_list_variables): Likewise.
4318 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4320 * exceptions.c (deprecated_throw_reason): Remove.
4321 * exceptions.h (deprecated_throw_reason): Remove.
4323 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4325 * remote-mips.c (mips_error): Replace use of
4326 deprecated_throw_reason with throw_verror. Use the error message
4327 passed to mips_error as the error message for throw_verror.
4329 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4331 * monitor.c (monitor_interrupt_query): Replace use of
4332 deprecated_throw_reason with quit.
4333 * nto-procfs.c (interrupt_query): Likewise.
4334 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4335 * remote-mips.c (mips_kill): Likewise.
4336 * remote.c (interrupt_query): Likewise.
4338 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4340 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4343 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4344 Yao Qi <yao@codesourcery.com>
4346 * tracepoint.c (trace_dump_command): Select the current frame.
4348 2013-07-30 Doug Evans <dje@google.com>
4350 * dwarf2read.c (process_queue): Add type signature to debug output.
4352 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4354 * value.c (value_fetch_lazy): Mark optimized out values as such
4355 rather than raising an error.
4357 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4359 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4360 before checking which bits of the parent, not the child, value are
4363 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4366 * top.c: Include "filenames.h".
4367 (set_history_filename): New function.
4368 (init_main): Install it as set hook of the "set history filename"
4371 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4373 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4374 attribute parameter.
4375 (dwarf2_const_value_data): Constify struct attribute parameter.
4376 (dwarf2_const_value): Constify struct attribute parameter.
4377 (dwarf2_const_value_attr): Constify struct attribute parameter.
4378 (lookup_die_type): Constify struct attribute parameter.
4379 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4380 (follow_die_ref_or_sig): Constify struct attribute parameter.
4381 (follow_die_ref): Constify struct attribute parameter.
4382 (follow_die_sig): Constify struct attribute parameter.
4383 (get_DW_AT_signature_type): Constify struct attribute parameter.
4384 (get_type_unit_group): Constify struct attribute parameter.
4385 (fill_in_loclist_baton): Constify struct attribute parameter.
4386 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4387 (type_unit_group): Constify struct attribute parameter.
4389 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4391 * dwarf2read.c (attr_form_is_block): Make argument const.
4392 (attr_form_is_section_offset): Make argument const.
4393 (attr_form_is_constant): Make argument const.
4394 (attr_form_is_ref): Make argument const.
4396 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4398 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4400 (attr_form_is_ref): Moved below attr_form_is_constant.
4402 2013-07-29 Doug Evans <dje@google.com>
4404 * main.c (captured_command_loop): Tweak comment.
4406 * target.c (target_async_permitted_1): Fix comment.
4408 * symtab.c (iterate_over_some_symtabs): Add comment.
4410 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4412 2013-07-27 Yao Qi <yao@codesourcery.com>
4414 * NEWS: Mention that GDBserver now supports hardware
4415 watchpoints on the MIPS GNU/Linux target.
4417 2013-07-27 Yao Qi <yao@codesourcery.com>
4419 * Makefile.in (HFILES_NO_SRCDIR): Add
4420 common/mips-linux-watch.h.
4421 (mips-linux-watch.o): New rule.
4422 * common/mips-linux-watch.c: New.
4423 * common/mips-linux-watch.h: New.
4424 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4425 * mips-linux-nat.c: Include mips-linux-watch.h.
4426 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4427 to common/mips-linux-watch.h.
4428 (MAX_DEBUG_REGISTER): Likewise.
4429 (enum pt_watch_style): Likewise.
4430 (struct mips32_watch_regs): Likewise.
4431 (struct mips64_watch_regs): Likewise.
4432 (struct pt_watch_regs): Likewise.
4433 (struct mips_watchpoint): Likewise.
4434 (mips_linux_watch_get_irw_mask): Move to
4435 common/mips-linux-watch.c.
4436 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4437 (mips_linux_watch_get_watchlo): Likewise.
4438 (mips_linux_watch_set_watchlo): Likewise.
4439 (mips_linux_watch_get_watchhi): Likewise.
4440 (mips_linux_watch_set_watchhi): Likewise.
4441 (mips_linux_read_watch_registers): Likewise.
4442 (mips_linux_watch_type_to_irw): Likewise.
4443 (mips_linux_stopped_data_address, fill_mask): Likewise.
4444 (mips_linux_watch_try_one_watch): Likewise.
4445 (mips_linux_watch_populate_regs): Likewise.
4447 2013-07-27 Yao Qi <yao@codesourcery.com>
4449 * mips-linux-nat.c (get_irw_mask): Rename to ...
4450 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4451 'set' to 'n'. Update function comment. All callers changed.
4452 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4453 function comment. All callers changed.
4454 (get_num_valid): Rename to ...
4455 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4456 'set' to 'n'. Update function comment. All callers changed.
4457 (get_watchlo): Rename to ...
4458 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4459 'set' to 'n'. Update function comment. All callers changed.
4460 (set_watchlo): Rename to ...
4461 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4462 'set' to 'n'. Update function comment. All callers changed.
4463 (get_watchhi): Rename to ...
4464 (mips_linux_watch_get_watchhi): ... this. Update function
4465 comment. All callers changed.
4466 (set_watchhi): Rename to ...
4467 (mips_linux_watch_set_watchhi): ... this. Update function
4468 comment. All callers changed.
4469 (mips_linux_read_watch_registers): Update function comment.
4470 Add new parameters 'lwpid', 'watch_readback', and
4471 'watch_readback_valid'. Update.
4472 (type_to_irw): Rename to ...
4473 (mips_linux_watch_type_to_irw): ... this. Update function
4474 comment. All callers changed.
4475 (fill_mask): Update function comment.
4476 (try_one_watch): Rename to ...
4477 (mips_linux_watch_try_one_watch): ... this. Change the type
4478 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4479 (populate_regs_from_watches): Rename to ...
4480 (mips_linux_watch_populate_regs): ... this. Add parameter
4481 'current_watches'. All callers changed.
4483 2013-07-27 Yao Qi <yao@codesourcery.com>
4485 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4487 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4488 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4489 (struct pt_watch_regs): Likewise.
4490 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4491 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4492 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4493 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4494 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4496 2013-07-27 Yao Qi <yao@codesourcery.com>
4498 * breakpoint.h: Include break-common.h.
4499 (enum target_hw_bp_type): Move to ...
4500 * common/break-common.h: ... here. New.
4502 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4504 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4505 process group regardless of having tty on stdin.
4507 2013-07-25 Doug Evans <dje@google.com>
4509 * linux-fork.h (detach_fork): Delete.
4511 2013-07-25 Tom Tromey <tromey@redhat.com>
4513 PR remote/15256, PR remote/15266:
4514 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4515 * monitor.c (monitor_detach): Use unpush_target.
4516 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4517 * remote-mips.c (mips_detach): Use unpush_target. Don't
4519 * remote-sim.c (gdbsim_detach): Use unpush_target.
4520 * target.c (pop_target): Remove.
4521 (pop_all_targets_above): Don't call target_close.
4522 (target_close): Assert that the target is unpushed.
4523 * target.h (pop_target): Don't declare.
4524 * tracepoint.c (tfile_open): Use unpush_target.
4526 2013-07-25 Tom Tromey <tromey@redhat.com>
4528 * linux-thread-db.c (init_thread_db_ops): Call
4529 complete_target_initialization.
4530 (_initialize_thread_db): Don't call add_target.
4531 * target.c (complete_target_initialization): New function.
4532 (add_target_with_completer): Call it.
4533 * target.h (complete_target_initialization): Declare.
4535 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4537 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4538 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4539 (HPPANBSD_SIZEOF_GREGS): New define.
4540 (hppaobsd_supply_gregset): Handle additional registers.
4541 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4542 we provide more registers now.
4543 (hppabsd_supply_gregset): Supply additional registers.
4544 (hppabsd_collect_gregset): Collect additional registers.
4546 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4548 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4549 (hppabsd_dwarf2_frame_init_reg): New function.
4550 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4552 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4554 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4555 'z' format code. Remove error for optimized out values, standard
4556 code will handle these fine.
4558 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4560 * NEWS: Mention new 'z' formatter.
4561 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4562 (_initialize_printcmd): Mention 'z' formatter in help text of the
4565 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4567 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4570 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4572 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4573 interface can evaluate arguments. Fallback to the old mode if it
4575 (create_exception_master_breakpoint): Likewise.
4576 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4577 (struct sym_probe_fns elf_probe_fns): Export function above to the
4579 * probe.c (can_evaluate_probe_arguments): New function.
4580 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4582 (can_evaluate_probe_arguments): New function prototype.
4583 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4584 probe interface can evaluate arguments. Fallback to the old mode
4586 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4587 interface can evaluate arguments. Warning the user if it cannot.
4588 (stap_can_evaluate_probe_arguments): New function.
4589 (struct probe_ops stap_probe_ops): Export function above to the
4591 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4592 New function pointer.
4594 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4596 * Makefile.in (SFILES): Add common/target-common.c.
4597 Add common/target-common.h to headers.
4598 (COMMON_OBS): Add target-common.o.
4599 (target-common.o): New target.
4600 * linux-nat.h (resume_kind): Move to common/target-common.h.
4601 * target.c (target_waitstatus_to_string): Move to
4602 common/target-common.c.
4603 * target.h: Include target-common.h.
4604 (target_waitkind): Move to common/target-common.h.
4605 (target_waitstatus): Likewise.
4606 (TARGET_WNOHANG): Likewise.
4607 * common/target-common.c: New file.
4608 * common/target-common.h: New file.
4610 2013-07-24 Doug Evans <dje@google.com>
4612 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4615 2013-07-23 Yao Qi <yao@codesourcery.com>
4617 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4618 parameter 'gdbarch'.
4619 (i386_stack_tramp_frame_sniffer): Caller update.
4620 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4621 parameter 'gdbarch' and 'target'.
4622 (i386_linux_core_read_description): Caller update.
4623 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4625 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4628 2013-07-23 Tom Tromey <tromey@redhat.com>
4630 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4633 2013-07-22 Doug Evans <dje@google.com>
4635 * exec.h (remove_target_sections): Delete arg abfd.
4636 * exec.c (exec_close): Update call to remove_target_sections.
4637 (remove_target_sections): Delete arg abfd.
4638 * solib.c (update_solib_list): Ditto.
4639 (reload_shared_libraries_1): Ditto.
4640 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4641 * target.h (struct target_section): Rename key to owner.
4644 2013-07-22 Tom Tromey <tromey@redhat.com>
4646 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4648 2013-07-22 Tom Tromey <tromey@redhat.com>
4650 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4651 Simplify cleanup handling.
4653 2013-07-22 Tom Tromey <tromey@redhat.com>
4655 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4656 on all return paths.
4658 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4660 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4661 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4662 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4664 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4666 * top.c (print_gdb_version): Add help, apropos description and
4667 url to online documentation.
4669 2013-07-19 Hui Zhu <hui@codesourcery.com>
4672 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4674 2013-07-19 Yao Qi <yao@codesourcery.com>
4676 * target.c (update_current_target): Change the default action
4677 of 'to_traceframe_info' from tcomplain to return_zero.
4678 * target.h (struct target_ops) <to_traceframe_info>: Add more
4680 * valops.c (read_value_memory): Call
4681 traceframe_available_memory unconditionally.
4683 2013-07-18 Yao Qi <yao@codesourcery.com>
4685 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4686 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4687 symbol without prefix. If found, set its type to
4688 'mst_solib_trampoline'.
4690 2013-07-17 Doug Evans <dje@google.com>
4692 * NEWS: Mention "set print raw frame-arguments".
4693 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4694 * stack.c (print_raw_frame_arguments): New static global.
4695 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4696 (_initialize_stack): New command "set/show print raw frame-arguments".
4697 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4698 (set_print_raw, show_print_raw): New functions.
4699 (_initialize_valprint): New prefix command "set/show print raw".
4700 * valprint.h (value_print_options): Improve comments.
4702 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4703 of all *list variables.
4705 * gdbcmd.h (togglelist): Delete.
4706 * cli/cli-cmds.c (togglelist): Delete.
4707 (init_cmd_lists): Update.
4708 * cli/cli-cmds.h (togglelist): Delete.
4710 2013-07-17 Tom Tromey <tromey@redhat.com>
4712 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4715 2013-07-16 Doug Evans <dje@google.com>
4717 * nto-tdep.c (nto_relocate_section_addresses): Update,
4718 target_section.bfd deleted.
4719 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4720 * s390-tdep.c (s390_load): Ditto.
4721 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4723 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4725 * common/format.c (parse_format_string): Add checks for NULL
4726 character before calling strchr.
4728 2013-07-16 Doug Evans <dje@google.com>
4730 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4731 temp_pathname argument.
4732 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4733 when opening the file fails.
4735 * target.h (struct target_section): Delete member bfd.
4736 All users updated to use the_bfd_section->owner instead.
4737 * exec.c (add_to_section_table): Assert bfd is expected value.
4738 Remove initialization of target_section.bfd.
4739 (remove_target_sections): Update.
4740 (section_table_available_memory): Update.
4741 (section_table_xfer_memory_partial): Update.
4742 (print_section_info): Update.
4743 (exec_set_section_address): Update.
4744 * record-full.c (record_full_core_xfer_partial): Update.
4745 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4746 * solib-target.c (solib_target_relocate_section_addresses): Update.
4747 * symfile.c (build_section_addr_info_from_section_table): Update.
4748 * target.c (memory_xfer_live_readonly_partial): Update.
4749 (memory_xfer_partial_1): Update.
4751 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4753 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4754 now available for embedded (BookE) and server (BookS) processors,
4755 correct mentions of 'booke' and adjust comments accordingly in order to
4756 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4757 (have_ptrace_booke_interface): Rename function and variable
4758 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4759 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4760 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4761 'hwdebug_point_cmp'. Update all uses.
4762 (booke_find_thread_points_by_tid): Rename function
4763 'booke_find_thread_points_by_tid' to
4764 'hwdebug_find_thread_points_by_tid'. Update all uses.
4765 (booke_insert_point): Rename function 'booke_insert_point' to
4766 'hwdebug_insert_point'. Update all uses.
4767 (booke_remove_point): Rename function 'booke_remove_point' to
4768 'hwdebug_remove_point'. Update all uses.
4770 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4772 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4773 numbers with enum values.
4775 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4778 * thread.c (thread_apply_all_command): Check for valid threads
4780 (thread_array_cleanup): New struct.
4781 (set_thread_refcount): New function.
4783 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4785 * infcmd.c (default_print_one_register_info): Reuse function
4788 2013-07-10 Tom Tromey <tromey@redhat.com>
4790 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4791 (ada-exp.o): New target.
4793 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4795 * mt-tdep.c (mt_registers_info): Call
4796 get_no_prettyformat_print_options instead of
4797 get_raw_print_options (regression by last patch from Doug
4800 2013-07-09 Pedro Alves <palves@redhat.com>
4802 Checked in by Joel Brobecker <brobecker@adacore.com>.
4803 * ada-lang.c (coerce_unspec_val_to_type): Use
4804 value_optimized_out_const.
4805 * value.c (value_optimized_out_const): New function.
4806 * value.h (value_optimized_out_const): New declaration.
4808 2013-07-09 Doug Evans <dje@google.com>
4810 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4811 Enum values rename as well. All uses updated.
4812 * valprint.h (value_print_options): Rename member pretty to
4813 pretty format. Rename member prettyprint_arrays to
4814 prettyformat_arrays. Rename member prettyprint_structs to
4815 prettyformat_structs. All uses updated.
4816 (get_no_prettyformat_print_options): Renamed from
4817 get_raw_print_options.
4818 * valprint.c (get_no_prettyformat_print_options): Renamed from
4819 get_raw_print_options. All callers updated.
4820 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4821 All callers updated.
4822 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4823 All callers updated.
4824 (_initialize_valprint): Improve help text for "set print pretty" and
4827 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4829 * value.c (value_bits_valid): Revert previous change, and change
4830 by Pedro on 2013-07-04, due to regressions in
4831 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4833 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4834 Pedro Alves <palves@redhat.com>
4836 * value.c (value_bits_valid): If the value is not lval_computed
4837 or has no check validity handler then the answer is the
4838 optimized_out flag, otherwise defer to the handler.
4840 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4842 * top.c (print_gdb_configuration): Explain in output of
4843 --configuration what does "relocatable" mean.
4845 * main.c (print_gdb_help): Regroup options in the --help text.
4846 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4847 the relevant discussions.
4849 2013-07-06 Yao Qi <yao@codesourcery.com>
4851 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4852 Remove parameter 'lsal'.
4853 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4854 to inner block. Caller update.
4855 (base_breakpoint_create_breakpoints_sal): Update.
4856 (bkpt_create_breakpoints_sal): Likewise.
4857 (tracepoint_create_breakpoints_sal): Likewise.
4858 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4859 element 0 of vector 'canonical->sals'.
4861 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4863 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4864 register number instead of the pseudo register one.
4865 (rs6000_dwarf2_reg_to_regnum): Likewise.
4867 2013-07-04 Pedro Alves <palves@redhat.com>
4869 * findvar.c (value_of_register): Use allocate_optimized_out_value
4870 if the register has been optimized out, instead of
4871 set_value_optimized_out.
4872 * frame-unwind.c (frame_unwind_got_optimized): Use
4873 allocate_optimized_out_value.
4875 2013-07-04 Pedro Alves <palves@redhat.com>
4877 * value.c (value_bits_valid): If the value is not lval_computed,
4878 or doesn't have a check_validity hook, assume the value is entirely
4881 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4883 * stack.c (read_frame_arg): No longer fetch lazy values.
4884 * value.c (value_optimized_out): If the value is not already
4885 marked optimized out, and is lazy then fetch it.
4886 (value_primitive_field): Move optimized out check to later in the
4887 function, after we have loaded any lazy values.
4888 (value_fetch_lazy): Use optimized out flag directly rather than
4889 calling optimized_out method.
4891 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4893 * valops.c: Don't include "user-regs.h".
4894 (value_fetch_lazy): Moved to value.c.
4895 * value.c: Include "user-regs.h".
4896 (value_fetch_lazy): Moved from valops.c.
4898 2013-07-04 Yao Qi <yao@codesourcery.com>
4901 2013-06-27 Yao Qi <yao@codesourcery.com>
4903 * common/create-version.sh: Update comments. Handle the case
4904 that TARGET_ALIAS is empty.
4906 2013-07-03 Pedro Alves <palves@redhat.com>
4908 * Makefile.in (config.status): Depend on development.sh.
4909 (aclocal_m4_deps): Add libmcheck.m4.
4910 * acinclude.m4: Include libmcheck.m4.
4911 * configure.ac: Source development.sh instead of setting
4912 'development' here. --enable-libmcheck/--disable-libmcheck code
4913 factored out to GDB_AC_LIBMCHECK. Run it.
4914 * development.sh: New file.
4915 * libmcheck.m4: New file.
4916 * configure: Regenerate.
4918 2013-07-02 Tom Tromey <tromey@redhat.com>
4920 * contrib/ari/update-web-ari.sh: Update for version.in change.
4922 2013-07-02 Tom Tromey <tromey@redhat.com>
4924 * common/ptid.h: Comment fixes.
4926 2013-07-01 Tom Tromey <tromey@redhat.com>
4928 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4929 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4930 (dwarf2_read_index, create_all_comp_units): Update.
4932 2013-07-01 Tom Tromey <tromey@redhat.com>
4934 * configure.ac (build_warnings): Add -Wold-style-definition.
4935 * configure: Rebuild.
4936 * machoread.c (_initialize_machoread): Use "(void)".
4937 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4940 2013-07-01 Tom Tromey <tromey@redhat.com>
4942 * configure.ac (build_warnings): Add -Wold-style-declaration.
4943 * configure: Rebuild.
4944 * dsrec.c (make_srec): Use "static const", not "const static".
4945 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4947 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4948 Use "static const", not "const static".
4949 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4951 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4953 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4955 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4957 (v850_dbtrap_breakpoint_from_pc): Likewise.
4958 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4961 2013-07-01 Tom Tromey <tromey@redhat.com>
4963 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4964 * configure: Rebuild.
4966 2013-07-01 Pedro Alves <palves@redhat.com>
4968 * defs.h: Include "pathmax.h".
4969 * utils.c: Don't include sys/param.h.
4970 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4971 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4972 instead of MAXPATHLEN.
4973 * solib-sunos.c: Don't include sys/param.h.
4974 * xcoffread.c: Don't include sys/param.h.
4975 * bsd-kvm.c: Don't include sys/param.h.
4976 * darwin-nat.c: Don't include sys/param.h.
4977 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4978 * darwin-nat-info.c: Don't include sys/param.h.
4979 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4981 * i386obsd-nat.c: Don't include sys/param.h.
4982 * inf-child.c: Don't include sys/param.h.
4983 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4984 * linux-fork.c: Don't include sys/param.h.
4985 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4986 * linux-nat.c: Don't include sys/param.h.
4987 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4988 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4989 * m68klinux-nat.c: Don't include sys/param.h.
4990 * nbsd-nat.c: Don't include sys/param.h.
4991 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4992 * ppc-linux-nat.c: Don't include sys/param.h.
4993 * rs6000-nat.c: Don't include sys/param.h.
4994 * spu-linux-nat.c. Don't include sys/param.h.
4995 * windows-nat.c: Don't include sys/param.h.
4996 * xtensa-linux-nat.c: Don't include sys/param.h.
4997 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4999 2013-07-01 Pedro Alves <palves@redhat.com>
5001 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5002 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5003 * gnulib/aclocal.m4: Regenerate.
5004 * gnulib/config.in: Regenerate.
5005 * gnulib/configure: Regenerate.
5006 * gnulib/import/pathmax.h: New file.
5007 * gnulib/import/Makefile.am: Regenerate.
5008 * gnulib/import/Makefile.in: Regenerate.
5009 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5010 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5011 * gnulib/import/m4/pathmax.m4: New file.
5013 2013-07-01 Pedro Alves <palves@redhat.com>
5015 * configure.ac (GDBINIT): Define, depending on host.
5016 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5017 * top.c (PATH_MAX): Delete fallback definition.
5018 (GDBINIT_FILENAME): Delete.
5019 (gdbinit): Reimplement as const char array set to the GDBINIT
5021 * top.h (gdbinit): Make const.
5022 * configure, config.in: Regenerate.
5024 2013-07-01 Pedro Alves <palves@redhat.com>
5026 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5027 * cli/cli-cmds.h (source_script): Likewise.
5028 * exceptions.c (catch_command_errors_const): New function.
5029 * exceptions.h (catch_command_errors_const): Declare.
5030 * main.c (get_init_files): Make parameters const, and adjust.
5031 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5032 'local_gdbinit' locals const. Adjust to use
5033 catch_command_errors_const.
5034 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5035 'local_gdbinit' locals const.
5037 2013-07-01 Pedro Alves <palves@redhat.com>
5039 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5040 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5041 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5044 2013-07-01 Pedro Alves <palves@redhat.com>
5046 Import the "unistd" gnulib module.
5047 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5048 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5049 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5050 import/m4/unistd_h.m4.
5051 * gnulib/aclocal.m4: Renenerate.
5052 * gnulib/config.in: Renenerate.
5053 * gnulib/configure: Renenerate.
5054 * gnulib/import/Makefile.am: Renenerate.
5055 * gnulib/import/Makefile.in: Renenerate.
5056 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5057 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5058 * gnulib/import/m4/off_t.m4: New file.
5059 * gnulib/import/m4/ssize_t.m4: New file.
5060 * gnulib/import/m4/sys_types_h.m4: New file.
5061 * gnulib/import/m4/unistd_h.m4: New file.
5062 * gnulib/import/sys_types.in.h: New file.
5063 * gnulib/import/unistd.c: New file.
5064 * gnulib/import/unistd.in.h: New file.
5066 2013-07-01 Pedro Alves <palves@redhat.com>
5068 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5069 defined instead of checking HAVE_UNISTD_H.
5071 2013-07-01 Pedro Alves <palves@redhat.com>
5073 Reimport gnulib from scratch.
5074 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5075 import/m4/onceonly.m4.
5076 * gnulib/aclocal.m4: Renegerate.
5077 * gnulib/config.in: Renegerate.
5078 * gnulib/configure: Renegerate.
5079 * gnulib/import/Makefile.in: Renegerate.
5080 * gnulib/import/extra/update-copyright: Renegerate.
5081 * gnulib/import/m4/onceonly.m4: Delete.
5083 2013-07-01 Pedro Alves <palves@redhat.com>
5085 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5087 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5090 * remote.c (async_remote_interrupt_twice): Make it static.
5091 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5093 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5095 * ia64-linux-tdep.c: Include <ctype.h>.
5096 (ia64_linux_stap_is_single_operand): New function.
5097 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5099 2013-06-28 Tom Tromey <tromey@redhat.com>
5101 * Makefile.in (version.c): Use version.in, not
5103 * common/create-version.sh: Likewise.
5104 * common/version.in: Move...
5105 * version.in: ...here.
5107 2013-06-28 Pedro Alves <palves@redhat.com>
5109 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5111 * utils.h (pagination_enabled): Declare.
5113 2013-06-28 Pedro Alves <palves@redhat.com>
5115 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5116 Move higher up in file.
5118 2013-06-28 Tom Tromey <tromey@redhat.com>
5120 * tracepoint.c (deprecated_readline_begin_hook)
5121 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5124 2013-06-28 Pedro Alves <palves@redhat.com>
5127 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5128 checking if they're available.
5129 * value.c (value_available_contents_eq): Change comment.
5130 * value.h (value_available_contents_eq): Expand comment.
5132 2013-06-27 Tom Tromey <tromey@redhat.com>
5134 * target.c (find_run_target): Remove.
5135 * target.h (find_run_target): Remove.
5137 2013-06-27 Tom Tromey <tromey@redhat.com>
5139 * corelow.c (core_gdbarch): Now static.
5141 2013-06-27 Tom Tromey <tromey@redhat.com>
5143 * target.c (target_struct_index): Remove.
5145 2013-06-27 Pedro Alves <palves@redhat.com>
5147 * infrun.c: Remove comment describing the 'stepping over runtime
5148 loader dynamic symbol resolution code' mechanism; moved to
5151 2013-06-27 Pedro Alves <palves@redhat.com>
5153 * exceptions.c (catch_command_errors): Remove spurious space.
5154 * exceptions.h (catch_command_errors): Second parameter is "arg",
5157 2013-06-27 Yao Qi <yao@codesourcery.com>
5159 * common/create-version.sh: Update comments. Handle the case
5160 that TARGET_ALIAS is empty.
5162 2013-06-26 Pedro Alves <palves@redhat.com>
5164 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5167 2013-06-26 Pedro Alves <palves@redhat.com>
5169 * infrun.c: Update comments on stepping over runtime loader
5170 dynamic symbol resolution code.
5172 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5174 * ax-gdb.h (union exp_element): Forward declare.
5175 * parser-defs.h: Include expression.h.
5177 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5179 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5181 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5183 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5185 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5187 Fix trace-status to output proper start-time and stop-time.
5188 * tracepoint.c (trace_status_command): Fix type of printf arg to
5189 prevent improper type conversion.
5190 (trace_status_mi): Likewise.
5192 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5194 * mips-tdep.c (mips_next_pc): Fix a typo.
5196 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5198 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5200 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5201 Yao Qi <yao@codesourcery.com>
5203 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5204 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5205 * mi/mi-main.c (print_variable_or_computed): New function.
5206 (mi_cmd_trace_frame_collected): New function.
5207 * tracepoint.c (find_trace_state_variable_by_number): New.
5208 (struct traceframe_info): Move to tracepoint.h
5209 (struct collection_list): Likewise.
5210 (do_collect_symbol): Include locals and arguments in the
5211 collected variables list.
5212 (clear_collection_list): Clear wholly collected variables list
5213 and computed variables list.
5214 (append_exp): New function.
5215 (encode_actions_1): Include variables in the wholly
5216 collected variables list. Include memory ranges and
5217 full-fledged expressions in the computed expressions list.
5218 (encode_actions): Move some code to ...
5219 Return the cleanup chain.
5220 (encode_actions_rsp): ... here. New function.
5221 (get_traceframe_location, get_traceframe_info): Remove static.
5222 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5223 (struct collection_list): Moved from tracepoint.c. Add two
5224 new fields 'wholly_collected' and 'computed'.
5225 (find_trace_state_variable_by_number): Declare.
5226 (encode_actions): Adjust declaration.
5227 (encode_actions_rsp): Declare.
5228 (get_traceframe_info, get_traceframe_location): Declare.
5230 * NEWS: Mention new MI command -trace-frame-collected.
5232 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5233 Yao Qi <yao@codesourcery.com>
5235 * ctf.c (ctf_traceframe_info): Push trace state variables
5236 present in the trace data into the traceframe info object.
5237 * breakpoint.c (DEF_VEC_I): Remove.
5238 * common/filestuff.c (DEF_VEC_I): Likewise.
5239 * dwarf2loc.c (DEF_VEC_I): Likewise.
5240 * mi/mi-main.c (DEF_VEC_I): Likewise.
5241 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5242 * features/traceframe-info.dtd: Add tvar element and its
5244 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5245 (build_traceframe_info): Push trace state variables present in
5246 the trace data into the traceframe info object.
5247 (traceframe_info_start_tvar): New function.
5248 (tvar_attributes): New.
5249 (traceframe_info_children): Add "tvar" element.
5250 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5252 * NEWS: Mention the change in GDB and GDBserver.
5254 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5255 Yao Qi <yao@codesourcery.com>
5257 * tracepoint.c (trace_dump_command): Move code to ...
5258 (get_traceframe_location): ... here. New.
5260 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5261 Yao Qi <yao@codesourcery.com>
5263 * tracepoint.c (trace_dump_command): GDB emits an error
5264 instead of a warning when a traceframe is not selected.
5266 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5267 Yao Qi <yao@codesourcery.com>
5269 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5270 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5272 (do_clear_collection_list, init_collection_list): New.
5273 (encode_actions): Add local variables 'tracepoint_list' and
5274 'stepping_list'. Call init_collection_list and make cleanup
5275 which calls do_clear_collection_list. Don't call
5276 clear_collection_list.
5277 (_initialize_tracepoint): Delete references to
5278 'tracepoint_list' and 'stepping_list'.
5280 2013-06-25 Tom Tromey <tromey@redhat.com>
5282 * common/create-version.sh (date): Use "$", not "$$" in sed
5285 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5287 * NEWS (New targets): Add entry for TI MSP430.
5289 2013-06-25 Yao Qi <yao@codesourcery.com>
5291 * remote.c (remote_start_remote): Move code to upload tsv
5294 2013-06-25 Yao Qi <yao@codesourcery.com>
5295 Hui Zhu <hui@codesourcery.com>
5296 Pedro Alves <palves@redhat.com>
5298 PR breakpoints/15075
5299 PR breakpoints/15434
5300 * breakpoint.c (bpstat_stop_status): Call
5301 b->ops->after_condition_true.
5302 (update_dprintf_command_list): Don't append "continue" command
5303 to the command list of dprintf breakpoint.
5304 (base_breakpoint_after_condition_true): New function.
5305 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5306 (dprintf_after_condition_true): New function.
5307 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5308 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5310 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5312 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5313 (ALLDEPFILES): Add msp430-tdep.c.
5314 * configure.tgt (msp430*-*-elf): New target.
5315 * msp430-tdep.c: New file.
5317 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5319 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5320 microMIPS synthetic symbols.
5322 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5324 * objfiles.h (pc_in_section): New prototype.
5325 (in_plt_section): Remove name argument, replace prototype with
5326 static inline function.
5327 * mips-tdep.h: Include "objfiles.h".
5328 (in_mips_stubs_section): New function.
5329 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5330 in_solib_call_trampoline member.
5331 (hppa_in_solib_call_trampoline): Remove name argument.
5332 * objfiles.c (pc_in_section): New function.
5333 (in_plt_section): Remove function.
5334 * mips-linux-tdep.c: Include "objfiles.h".
5335 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5336 name argument. Return 1 rather than the low 16-bit halfword of
5337 any instruction examined.
5338 (mips_linux_in_dynsym_resolve_code): Update
5339 mips_linux_in_dynsym_stub call accordingly.
5340 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5341 rather than an equivalent hand-coded sequence.
5342 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5343 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5344 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5345 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5347 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5348 on call to tdep->in_solib_call_trampoline.
5349 (hppa_in_solib_call_trampoline): Remove name argument, update
5350 according to in_plt_section change.
5351 (hppa_skip_trampoline_code): Update according to in_plt_section
5353 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5354 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5356 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5357 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5358 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5359 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5360 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5361 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5362 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5363 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5364 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5365 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5366 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5367 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5368 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5370 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5372 * common/create-version.sh: Fix expansion of $host_alias
5373 and $target_alias in generation of HOST_NAME and TARGET_NAME
5376 2013-06-24 Tom Tromey <tromey@redhat.com>
5378 * common/create-version.sh: New file.
5379 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5381 (HFILES_NO_SRCDIR): Use common/version.h.
5382 * version.in: Move to ...
5383 * common/version.in: ... here. Replace date with "DATE".
5384 * version.h: Move to ...
5385 * common/version.h: ... here.
5387 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5389 * gdb/gnulib/Makefile.in: Update date in copyright header.
5390 * gdb/gnulib/configure.ac: Ditto.
5391 * gdb/gnulib/update-gnulib.sh: Ditto.
5393 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5395 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5396 "gdb/gnulib/import".
5398 2013-06-21 Will Newton <will.newton@linaro.org>
5400 * doublest.c (ldfrexp): Remove function.
5401 (convert_doublest_to_floatformat): Call frexpl instead of
5404 2013-06-21 Will Newton <will.newton@linaro.org>
5406 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5407 * gnulib/aclocal.m4: Regenerate.
5408 * gnulib/config.in: Regenerate.
5409 * gnulib/configure: Regenerate.
5410 * gnulib/import/Makefile.am: Update.
5411 * gnulib/import/Makefile.in: Update.
5412 * gnulib/import/m4/gnulib-cache.m4: Update.
5413 * gnulib/import/m4/gnulib-comp.m4: Update.
5414 * gnulib/import/float+.h: Import.
5415 * gnulib/import/float.c: Import.
5416 * gnulib/import/float.in.h: Import.
5417 * gnulib/import/fpucw.h: Import.
5418 * gnulib/import/frexp.c: Import.
5419 * gnulib/import/frexpl.c: Import.
5420 * gnulib/import/isnan.c: Import.
5421 * gnulib/import/isnand-nolibm.h: Import.
5422 * gnulib/import/isnand.c: Import.
5423 * gnulib/import/isnanl-nolibm.h: Import.
5424 * gnulib/import/isnanl.c: Import.
5425 * gnulib/import/itold.c: Import.
5426 * gnulib/import/m4/exponentd.m4: Import.
5427 * gnulib/import/m4/exponentl.m4: Import.
5428 * gnulib/import/m4/float_h.m4: Import.
5429 * gnulib/import/m4/fpieee.m4: Import.
5430 * gnulib/import/m4/frexp.m4: Import.
5431 * gnulib/import/m4/frexpl.m4: Import.
5432 * gnulib/import/m4/isnand.m4: Import.
5433 * gnulib/import/m4/isnanl.m4: Import.
5434 * gnulib/import/m4/math_h.m4: Import.
5435 * gnulib/import/math.c: Import.
5436 * gnulib/import/math.in.h: Import.
5438 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5440 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5441 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5442 signature_INTEL_edx comparisons.
5444 2013-06-20 Doug Evans <dje@google.com>
5447 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5448 All callers updated.
5449 (open_dwp_file): If we can't find the dwp file, search the basename
5450 in debug-file-directory.
5452 * dwarf2read.c (struct dwp_file): Fix comment.
5453 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5455 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5458 2013-06-20 Yao Qi <yao@codesourcery.com>
5460 * breakpoint.c (create_breakpoint): Fix code indentation.
5462 2013-06-20 Yao Qi <yao@codesourcery.com>
5464 * breakpoint.c (create_breakpoints_sal_default): Remove
5465 parameter 'lsal'. Update declaration.
5466 (bkpt_create_breakpoints_sal): Caller update.
5467 (tracepoint_create_breakpoints_sal): Likewise.
5469 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5470 Yao Qi <yao@codesourcery.com>
5472 * NEWS: Mention the new option '--skip-unavailable' of command
5473 -data-list-register-values.
5474 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5475 --skip-unavailable option. Adjust to use output_register.
5476 (output_register): Add new 'skip_unavailable' parameter.
5479 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5481 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5482 common/i386-gcc-cpuid.h.
5483 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5484 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5485 Copy the latest version from upstream gcc.
5486 * common/linux-btrace.c: Include i386-cpuid.h.
5487 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5489 (cpu_supports_btrace): Likewise.
5490 * go32-nat.c: Include i386-cpuid.h.
5491 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5493 2013-06-19 Doug Evans <dje@google.com>
5495 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5496 (get_section_index): Ditto.
5498 2013-06-19 Tom Tromey <tromey@redhat.com>
5500 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5503 2013-06-18 Doug Evans <dje@google.com>
5505 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5507 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5508 Move test of cu_index closer to use. Print complaint if cu_index
5511 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5513 * machoread.c (oso_vector): Delete this global.
5514 (macho_register_oso): Add new parameter "oso_vector_ptr".
5515 Use it instead of the "oso_vector" global.
5516 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5517 (macho_symfile_read): Use a local oso_vector, to be free'ed
5518 at the end of this function, in place of the old "oso_vector"
5519 global. Update various function calls accordingly. Use one
5520 single cleanup chain for the entire function.
5522 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5524 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5525 DWARF2_PER_OBJFILE by uses of DATA instead.
5527 2013-06-18 Tom Tromey <tromey@redhat.com>
5529 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5531 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5532 Special case signals other than GDB_SIGNAL_TRAP.
5533 (explains_signal_watchpoint): New function.
5534 (base_breakpoint_explains_signal): Add 'sig' argument.
5535 (initialize_breakpoint_ops): Set 'explains_signal' method for
5537 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5539 (bpstat_explains_signal): Likewise.
5540 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5542 2013-06-18 Tom Tromey <tromey@redhat.com>
5544 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5546 2013-06-18 Tom Tromey <tromey@redhat.com>
5548 * python/python.c (finish_python_initialization): Decref
5549 'pythondir' on failure path as well.
5551 2013-06-18 Tom Tromey <tromey@redhat.com>
5554 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5555 after taking bits_to_skip into account. Sign extend byte_offset.
5556 * utils.h (gdb_sign_extend): Declare.
5557 * utils.c (gdb_sign_extend): New function.
5559 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5561 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5563 2013-06-17 Pierre Muller <muller@sourceware.org>
5565 * corelow.c (core_open): Print GDB signal name instead of target
5568 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5570 * .gitignore: Add /gcore.
5572 2013-06-13 Doug Evans <dje@google.com>
5574 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5575 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5577 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5579 * stack.c (backtrace_command_1): Fix indentation.
5581 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5583 * window-nat.c (thread_rec): Add missing empty line after
5584 local variable declaration.
5586 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5588 * windows-nat.c (thread_rec): Revert format used to print
5589 error code returned by SuspendThread from %d back to %u.
5591 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5593 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5595 (get_windows_debug_event): Likewise, for all debug traces.
5597 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5599 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5602 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5603 Yao Qi <yao@codesourcery.com>
5605 * mi/mi-main.c (get_register): Remove declaration.
5606 (output_register): Declare.
5607 (mi_cmd_data_list_register_values): Remove local variable
5608 'tuple_cleanup'. Move some code into output_register.
5609 (get_register): Renamed to ...
5610 (output_register): ... this. Output the register's
5611 "number" ui_out tuple here.
5613 2013-06-07 Pedro Alves <palves@redhat.com>
5615 * darwin-nat.c: Fix formating in copyright header.
5616 * darwin-nat.h: Likewise.
5617 * gnu-nat.c: Likewise.
5618 * machoread.c: Likewise.
5620 2013-06-07 Pedro Alves <palves@redhat.com>
5623 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5624 static. Output a global target description pointer.
5625 (init_registers_${name}): Adjust to initialize a
5626 target description structure.
5628 2013-06-07 Will Newton <will.newton@linaro.org>
5630 * printcmd.c (build_address_symbolic): Call
5631 gdbarch_addr_bits_remove for text minimal symbols.
5633 2013-06-07 Will Newton <will.newton@linaro.org>
5635 * MAINTAINERS: Add myself to Write After Approval.
5637 2013-06-07 Yao Qi <yao@codesourcery.com>
5639 * tracepoint.c (start_tracing): Move code to ...
5640 (trace_reset_local_state): ... here. New.
5641 (disconnect_tracing): Don't call set_current_traceframe,
5642 set_tracepoint_num, and set_traceframe_context. Call
5643 trace_reset_local_state instead.
5644 (tfile_close): Call trace_reset_local_state.
5645 * ctf.c (ctf_close): Likewise.
5646 * remote.c (remote_close): Likewise.
5647 * tracepoint.h (trace_reset_local_state): Declare.
5649 2013-06-06 Doug Evans <dje@google.com>
5651 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5652 and fix header docs.
5654 2013-06-05 Doug Evans <dje@google.com>
5655 Keith Seitz <keiths@redhat.com>
5658 * cp-namespace.c (find_symbol_in_baseclass): Call
5659 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5660 Check result of call to lookup_symbol_static.
5661 Call lookup_static_symbol_aux unconditionally.
5662 Call check_typedef on base types before accessing them.
5663 (cp_lookup_nested_symbol): Fix comment.
5665 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5667 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5668 minimal symbols pointing to function descriptors.
5670 2013-06-05 Tom Tromey <tromey@redhat.com>
5672 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5674 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5675 Pedro Alves <palves@redhat.com>
5677 * remote.c (remote_wait_as): Restore signal handler before returning
5678 when GDB gets a notification.
5680 2013-06-04 Gary Benson <gbenson@redhat.com>
5683 * breakpoint.h (handle_solib_event): Moved function declaration
5685 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5686 (bpstat_stop_status): Pass new argument to handle_solib_event.
5687 * solib.h (update_solib_breakpoints): New function declaration.
5688 (handle_solib_event): Moved function declaration from
5690 * solib.c (update_solib_breakpoints): New function.
5691 (handle_solib_event): Moved function from breakpoint.c.
5692 Updated to call solib_ops->handle_event if not NULL.
5693 * solist.h (target_so_ops): New fields "update_breakpoints" and
5695 * infrun.c (set_stop_on_solib_events): New function.
5696 (_initialize_infrun): Use the above for "set
5697 stop-on-solib-events".
5698 (handle_inferior_event): Pass new argument to handle_solib_event.
5699 * solib-svr4.c (probe.h): New include.
5700 (svr4_free_library_list): New forward declaration.
5701 (probe_action): New enum.
5702 (probe_info): New struct.
5703 (probe_info): New static variable.
5704 (NUM_PROBES): New definition.
5705 (svr4_info): New fields "using_xfer", "probes_table" and
5707 (free_probes_table): New function.
5708 (free_solib_list): New function.
5709 (svr4_pspace_data_cleanup): Free probes table and solib list.
5710 (svr4_copy_library_list): New function.
5711 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5712 (svr4_read_so_list): New parameter "prev_lm".
5713 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5714 (svr4_current_sos): New function.
5715 (probe_and_action): New struct.
5716 (hash_probe_and_action): New function.
5717 (equal_probe_and_action): Likewise.
5718 (register_solib_event_probe): Likewise.
5719 (solib_event_probe_at): Likewise.
5720 (solib_event_probe_action): Likewise.
5721 (solist_update_full): Likewise.
5722 (solist_update_incremental): Likewise.
5723 (disable_probes_interface_cleanup): Likewise.
5724 (svr4_handle_solib_event): Likewise.
5725 (svr4_update_solib_event_breakpoint): Likewise.
5726 (svr4_update_solib_event_breakpoints): Likewise.
5727 (svr4_create_solib_event_breakpoints): Likewise.
5728 (enable_break): Free probes table before creating breakpoints.
5729 Use svr4_create_solib_event_breakpoints to create breakpoints.
5730 (svr4_solib_create_inferior_hook): Free the solib list.
5731 (_initialize_svr4_solib): Initialise
5732 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5734 2013-06-04 Gary Benson <gbenson@redhat.com>
5736 * target.h (target_ops): New field
5737 "to_augmented_libraries_svr4_read".
5738 (target_augmented_libraries_svr4_read): New macro.
5739 * target.c (update_current_target): Handle
5740 to_augmented_libraries_svr4_read.
5741 * remote.c (remote_state): New field
5742 "augmented_libraries_svr4_read".
5743 (remote_augmented_libraries_svr4_read_feature): New function.
5744 (remote_protocol_features): Add entry for
5745 "augmented-libraries-svr4-read".
5746 (remote_augmented_libraries_svr4_read): New function.
5747 (init_remote_ops): Initialize
5748 remote_ops.to_augmented_libraries_svr4_read.
5750 2013-06-04 Gary Benson <gbenson@redhat.com>
5754 2013-06-04 Gary Benson <gbenson@redhat.com>
5756 * objfiles.h (inhibit_section_map_updates): New function
5758 (resume_section_map_updates): Likewise.
5759 (resume_section_map_updates_cleanup): Likewise.
5760 * objfiles.c (objfile_pspace_info): Removed field
5761 "objfiles_changed_p". New fields "new_objfiles_available",
5762 "section_map_dirty" and "inhibit_updates".
5763 (allocate_objfile): Set new_objfiles_available.
5764 (free_objfile): Set section_map_dirty.
5765 (objfile_relocate1): Likewise.
5766 (in_plt_section): Likewise.
5767 (find_pc_section): Update the conditions under which the
5768 section map will be updated.
5769 (inhibit_section_map_updates): New function.
5770 (resume_section_map_updates): Likewise.
5771 (resume_section_map_updates_cleanup): Likewise.
5773 2013-06-04 Gary Benson <gbenson@redhat.com>
5775 * probe.h (get_probe_argument_count): New declaration.
5776 (evaluate_probe_argument): Likewise.
5777 * probe.c (get_probe_argument_count): New function.
5778 (evaluate_probe_argument): Likewise.
5779 (probe_safe_evaluate_at_pc): Use the above new functions.
5781 2013-06-04 Alan Modra <amodra@gmail.com>
5783 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5784 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5785 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5786 target mem reads on optional insns.
5787 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5788 ppc_insns_match_pattern calls.
5789 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5790 Add match for power7 thread safety insns, and new order of
5791 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5792 invocation in comment, and update rest of comment.
5793 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5794 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5795 (ppc64_standard_linkage2_target): Update insn offsets.
5796 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5797 stubs first. Update calls.
5799 2013-06-04 Yao Qi <yao@codesourcery.com>
5801 * solib.c (solib_find): Don't need dir separator if path has
5804 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5806 Revert (indirectly causes a SIGSEGV):
5807 * machoread.c (macho_symfile_read): Assign first cleanup to
5810 2013-06-03 Yao Qi <yao@codesourcery.com>
5812 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5813 mi-parse.c. Make them static.
5814 (mi_all_values): Likewise.
5815 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5816 mi_parse_print_values. Make it external.
5817 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5818 Remove the declarations.
5819 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5820 * mi/mi-parse.h (mi_parse_print_values): Declare.
5821 * mi/mi-cmd-stack.c: Include mi-parse.h.
5822 (parse_print_values): Remove
5823 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5824 of parse_print_values.
5825 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5827 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5828 Yao Qi <yao@codesourcery.com>
5830 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5831 (encode_actions): Move code to ...
5832 (all_tracepoint_actions_and_cleanup): ... here. New.
5833 (trace_dump_command): Likewise.
5835 2013-05-30 Tom Tromey <tromey@redhat.com>
5837 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5839 2013-05-30 Tom Tromey <tromey@redhat.com>
5841 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5842 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5843 'old_chain' argument. Add 'parser_result' argument.
5844 (gdb_xml_create_parser_and_cleanup): Remove old version.
5845 (gdb_xml_parse_quick): Update.
5846 (xml_process_xincludes): Update.
5847 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5850 2013-05-30 Tom Tromey <tromey@redhat.com>
5852 * probe.c (collect_probes): Check arguments for NULL before
5853 calling compile_rx_or_error.
5854 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5857 2013-05-30 Tom Tromey <tromey@redhat.com>
5859 * infrun.c (adjust_pc_after_break): Introduce an outer null
5862 2013-05-30 Tom Tromey <tromey@redhat.com>
5864 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5866 2013-05-30 Tom Tromey <tromey@redhat.com>
5868 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5869 for 'old_chain'. Do not check 'head' before processing
5872 2013-05-30 Tom Tromey <tromey@redhat.com>
5874 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5877 2013-05-30 Tom Tromey <tromey@redhat.com>
5879 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5880 inner scope. Unconditionally call do_cleanups.
5882 2013-05-30 Tom Tromey <tromey@redhat.com>
5884 * source.c (find_and_open_source): Call do_cleanups.
5886 2013-05-30 Tom Tromey <tromey@redhat.com>
5888 * linux-thread-db.c (thread_db_load_search): Unconditionally
5891 2013-05-30 Tom Tromey <tromey@redhat.com>
5893 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5894 for 'cleanup'; instead use a later one.
5896 2013-05-30 Tom Tromey <tromey@redhat.com>
5898 * python/py-breakpoint.c (bppy_get_commands): Use
5899 explicit, unconditional return.
5900 * python/py-frame.c (frapy_read_var): Likewise.
5901 * python/python.c (gdbpy_decode_line): Likewise.
5903 2013-05-30 Tom Tromey <tromey@redhat.com>
5905 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5906 do_cleanups on all return paths.
5908 2013-05-30 Tom Tromey <tromey@redhat.com>
5910 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5912 2013-05-30 Tom Tromey <tromey@redhat.com>
5914 * stabsread.c (read_struct_type): Call do_cleanups along
5917 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5919 * mips-linux-tdep.c: Adjust formatting throughout.
5921 2013-05-30 Tom Tromey <tromey@redhat.com>
5923 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5924 along all return paths.
5926 2013-05-30 Tom Tromey <tromey@redhat.com>
5928 * symfile.c (find_separate_debug_file): Call do_cleanups
5929 along all return paths.
5931 2013-05-30 Tom Tromey <tromey@redhat.com>
5933 * symtab.c (search_symbols): Introduce a null cleanup for
5936 2013-05-30 Tom Tromey <tromey@redhat.com>
5938 * python/py-value.c (valpy_binop): Call do_cleanups before
5941 2013-05-30 Tom Tromey <tromey@redhat.com>
5943 * python/py-prettyprint.c (print_children): Remove extra
5946 2013-05-30 Tom Tromey <tromey@redhat.com>
5948 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5951 2013-05-30 Tom Tromey <tromey@redhat.com>
5953 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5954 along all return paths.
5956 2013-05-30 Tom Tromey <tromey@redhat.com>
5958 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5961 2013-05-30 Tom Tromey <tromey@redhat.com>
5963 * varobj.c (c_value_of_root): Call do_cleanups along all
5966 2013-05-30 Tom Tromey <tromey@redhat.com>
5968 * tracepoint.c (trace_dump_command): Unconditionally call
5971 2013-05-30 Tom Tromey <tromey@redhat.com>
5973 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5974 do_cleanups earlier.
5976 2013-05-30 Tom Tromey <tromey@redhat.com>
5978 * machoread.c (macho_symfile_read): Assign first cleanup to
5981 2013-05-30 Tom Tromey <tromey@redhat.com>
5983 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5985 2013-05-30 Tom Tromey <tromey@redhat.com>
5987 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5989 2013-05-30 Tom Tromey <tromey@redhat.com>
5991 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5992 call discard_cleanups.
5993 (inf_ptrace_attach): Likewise.
5995 2013-05-30 Tom Tromey <tromey@redhat.com>
5997 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5999 (mips_initialize): Likewise.
6000 (common_open): Call do_cleanups.
6002 2013-05-30 Tom Tromey <tromey@redhat.com>
6004 * utils.c (internal_vproblem): Call do_cleanups.
6006 2013-05-30 Tom Tromey <tromey@redhat.com>
6008 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6010 2013-05-30 Tom Tromey <tromey@redhat.com>
6012 * cli/cli-script.c (setup_user_args): Don't return after error.
6014 2013-05-30 Tom Tromey <tromey@redhat.com>
6016 * somread.c (som_symtab_read): Call do_cleanups.
6018 2013-05-30 Tom Tromey <tromey@redhat.com>
6020 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6022 2013-05-30 Tom Tromey <tromey@redhat.com>
6024 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6025 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6026 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6027 * source.c (show_substitute_path_command): Call do_cleanups.
6028 (unset_substitute_path_command, set_substitute_path_command):
6030 * symfile.c (load_command): Call do_cleanups.
6032 2013-05-30 Tom Tromey <tromey@redhat.com>
6034 * contrib/cleanup_check.py: New file.
6035 * contrib/gcc-with-excheck: Add option parsing.
6037 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6039 * windows-nat.c (windows_delete_thread): Add missing space
6042 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6044 * inferior.c (top level): Include tilde.h.
6045 (add_inferior_command): Call tilde_expand on the value of 'exec'
6048 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6049 Yao Qi <yao@codesourcery.com>
6051 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6053 (encode_actions): Likewise.
6054 * remote.c (remote_download_tracepoint): Caller update.
6055 * tracepoint.h (encode_actions): Update declaration.
6057 2013-05-30 Pedro Alves <palves@redhat.com>
6059 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6062 2013-05-30 Yao Qi <yao@codesourcery.com>
6064 * remote.c (remote_check_symbols): Remove unused parameter
6067 (remote_start_remote, remote_new_objfile): Caller update.
6069 2013-05-30 Yao Qi <yao@codesourcery.com>
6071 * mi/mi-cmds.c (mi_cmds): Define MI command
6072 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6075 2013-05-29 Pedro Alves <palves@redhat.com>
6077 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6078 (remote_insert_watchpoint, remote_remove_watchpoint)
6079 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6080 (remote_verify_memory, compare_sections_command)
6081 (remote_search_memory): Set the general process/thread on the
6084 2013-05-29 Pedro Alves <palves@redhat.com>
6086 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6087 (_initialize_aarch64_tdep): Don't call
6088 initialize_tdesc_aarch64_without_fpu.
6089 * features/Makefile (WHICH): Remove reference to
6090 aarch64-without-fpu.
6091 * features/aarch64-without-fpu.c: Delete file.
6092 * regformats/aarch64-without-fpu.dat: Delete file.
6094 2013-05-28 Yao Qi <yao@codesourcery.com>
6096 * tracepoint.c (stringify_collection_list): Remove parameter
6098 (encode_actions): Caller update. Remove local variables.
6100 2013-05-24 Yao Qi <yao@codesourcery.com>
6102 * tracepoint.c (TFILE_PID): Remove.
6103 (tfile_open): Don't add thread and inferior.
6104 (tfile_close): Don't set 'inferior_ptid'. Don't call
6105 exit_inferior_silent.
6106 (tfile_thread_alive): Remove.
6107 (init_tfile_ops): Don't set field 'to_thread_alive' of
6110 2013-05-23 Doug Evans <dje@google.com>
6112 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6114 2013-05-23 Pedro Alves <palves@redhat.com>
6116 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6117 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6118 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6119 Only define if HAVE_SOCKETS is defined.
6120 * configure.ac: Check for sys/socket.h.
6121 * config.in, configure: Regenerate.
6123 2013-05-23 Pedro Alves <palves@redhat.com>
6125 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6126 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6127 printing uint32_t variables.
6129 2013-05-23 Pedro Alves <palves@redhat.com>
6131 * NEWS: Mention GDBserver range stepping support.
6133 2013-05-23 Yao Qi <yao@codesourcery.com>
6134 Pedro Alves <palves@redhat.com>
6136 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6138 * infcmd.c (step_once, until_next_command): Enable range stepping.
6139 * infrun.c (displaced_step_prepare): Disable range stepping.
6140 (resume): Disable range stepping if stepping over a breakpoint or
6141 we have software watchpoints. If range stepping is enabled,
6142 assert the thread is in the stepping range.
6143 (clear_proceed_status_thread): Clear may_range_step.
6144 (handle_inferior_event): Disable range stepping as soon as we know
6145 the thread that hit the event. Re-enable it whenever we're going
6146 to step with a step range.
6147 * remote.c (struct vCont_action_support) <r>: New field.
6148 (use_range_stepping): New global.
6149 (remote_vcont_probe): Handle 'r' action.
6150 (append_resumption): Append an 'r' action if the thread may range
6152 (show_range_stepping): New function.
6153 (set_range_stepping): New function.
6154 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6155 'set range-stepping' and 'show range-stepping' commands.
6156 * NEWS: Mention range stepping, the new vCont;r action, and the
6157 new "set/show range-stepping" commands.
6159 2013-05-23 Yao Qi <yao@codesourcery.com>
6160 Pedro Alves <palves@redhat.com>
6162 * remote.c (struct vCont_action_support): New struct.
6163 (struct remote_state) <support_vCont_t>: Remove field.
6164 <vCont_actions_support>: New field.
6165 (remote_vcont_probe, remote_stop_ns): Update.
6167 2013-05-23 Yao Qi <yao@codesourcery.com>
6168 Pedro Alves <palves@redhat.com>
6170 * gdbthread.h (pc_in_thread_step_range): New declaration.
6171 * thread.c (pc_in_thread_step_range): New function.
6172 * infrun.c (handle_inferior_event): Use it.
6174 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6176 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6179 2013-05-22 Keith Seitz <keiths@redhat.com>
6181 * ada-lang.c (is_known_support_routine): Add explicit free of
6182 'func_name' from find_frame_funname.
6183 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6184 for func_name from find_frame_funname.
6185 * python/py-frame.c (frapy_name): Add explicit free of
6186 'name' from find_frame_funname.
6187 * stack.c (find_frame_funname): Add comment explaining that
6188 funcp must be freed by the caller.
6189 Return copy of symbol names instead of pointers.
6190 (print_frame): Add a cleanup for 'funname' from
6192 * stack.h (find_frame_funname): Remove "const" from
6193 'funname' parameter.
6195 2013-05-22 Tom Tromey <tromey@redhat.com>
6198 * c-valprint.c (c_value_print): Use value_addr for
6199 references. Convert back to reference type with value_ref.
6201 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6203 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6204 unloaded DLL, it will be done by handle_solib_event. See
6205 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6208 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6210 * ui-out.c: Create typedef ui_out_level_p and define vector
6211 operations for that type.
6212 (struct ui_out): Use a vector instead of an array.
6213 (current_level): Return level from a vector.
6214 (push_level): Create a level in a vector.
6215 (pop_level): Delete a level in a vector.
6216 (ui_out_new): Create initial level zero level, and store in a
6218 (ui_out_destroy): Add vector cleanup.
6220 2013-05-22 Pedro Alves <palves@redhat.com>
6222 * python/python-internal.h (gdb_Py_DECREF): Tag with
6223 "ARI: editCase function".
6225 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6227 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6229 2013-05-21 Pedro Alves <palves@redhat.com>
6231 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6232 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6233 * python/py-utils.c (py_decref): Don't check for NULL before
6236 2013-05-21 Pedro Alves <palves@redhat.com>
6238 * python/py-utils.c (py_decref): Remove extra braces.
6239 (gdb_pymodule_addobject): Remove extra braces.
6240 * python-internal.h (gdb_Py_DECREF): New static inline function.
6241 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6243 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6245 * breakpoints.c (detach_breakpoints): Do not
6246 detach breakpoints locations with loc_type bp_loc_other.
6248 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6250 Workaround Python 2.6.
6251 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6254 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6256 Code cleanup: constification.
6257 * solib.c (solib_ops): Make return type and ops variable type const.
6258 (set_solib_ops): Make the new_ops parameter and ops variable const.
6259 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6260 (solib_add, solib_keep_data_in_core, clear_solib)
6261 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6262 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6264 * solib.h (set_solib_ops): Make the new_ops parameter const.
6266 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6268 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6270 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6271 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6272 (SYSTEM_GDBINIT_FILES): New variables.
6273 (all): Add stamp-system-gdbinit.
6274 (stamp-system-gdbinit): New rule.
6275 (clean-system-gdbinit, install-system-gdbinit)
6276 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6277 (install-only): Add dependency on install-system-gdbinit.
6278 (uninstall): Add dependency on uninstall-system-gdbinit.
6279 (clean): Add dependency on clean-system-gdbinit.
6280 * system-gdbinit/elinos.py: New file.
6281 * system-gdbinit/wrs-linux.py: New file.
6283 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6285 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6287 2013-05-21 Hui Zhu <hui@codesourcery.com>
6289 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6290 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6291 * mi/mi-cmd-break.c (ctype.h): New include.
6292 (gdb_obstack.h): New include.
6293 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6294 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6295 (mi_cmd_dprintf_insert): New.
6296 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6297 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6299 2013-05-20 Tom Tromey <tromey@redhat.com>
6301 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6303 2013-05-20 Tom Tromey <tromey@redhat.com>
6305 * python/py-value.c (valpy_get_dynamic_type): Simplify
6306 dynamic_type assignment. Use Py_XINCREF.
6308 2013-05-20 Tom Tromey <tromey@redhat.com>
6310 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6312 2013-05-20 Tom Tromey <tromey@redhat.com>
6314 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6315 (gdbpy_selected_frame): Move object-construction code
6318 2013-05-20 Tom Tromey <tromey@redhat.com>
6320 * python/py-arch.c (gdbpy_initialize_arch): Use
6321 gdb_pymodule_addobject.
6322 * python/py-block.c (gdbpy_initialize_blocks): Use
6323 gdb_pymodule_addobject.
6324 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6325 gdb_pymodule_addobject.
6326 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6327 gdb_pymodule_addobject.
6328 * python/py-event.c (gdbpy_initialize_event_generic): Use
6329 gdb_pymodule_addobject.
6330 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6331 gdb_pymodule_addobject.
6332 * python/py-evts.c (add_new_registry): Use
6333 gdb_pymodule_addobject.
6334 (gdbpy_initialize_py_events): Likewise.
6335 * python/py-finishbreakpoint.c
6336 (gdbpy_initialize_finishbreakpoints): Use
6337 gdb_pymodule_addobject.
6338 * python/py-frame.c (gdbpy_initialize_frames): Use
6339 gdb_pymodule_addobject.
6340 * python/py-function.c (gdbpy_initialize_functions): Use
6341 gdb_pymodule_addobject.
6342 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6343 gdb_pymodule_addobject.
6344 * python/py-infthread.c (gdbpy_initialize_thread): Use
6345 gdb_pymodule_addobject.
6346 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6347 gdb_pymodule_addobject.
6348 * python/py-param.c (gdbpy_initialize_parameters): Use
6349 gdb_pymodule_addobject.
6350 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6351 gdb_pymodule_addobject.
6352 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6353 gdb_pymodule_addobject.
6354 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6355 gdb_pymodule_addobject.
6356 * python/py-type.c (gdbpy_initialize_types): Use
6357 gdb_pymodule_addobject.
6358 * python/py-utils.c (gdb_pymodule_addobject): New function.
6359 * python/py-value.c (gdbpy_initialize_values): Use
6360 gdb_pymodule_addobject.
6361 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6362 * python/python.c (_initialize_python): Use
6363 gdb_pymodule_addobject.
6365 2013-05-20 Tom Tromey <tromey@redhat.com>
6367 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6368 * python/py-param.c (get_set_value, get_show_value): Use
6370 * python/python.c (start_type_printers, apply_type_printers):
6371 Use explicit decrefs.
6373 2013-05-20 Tom Tromey <tromey@redhat.com>
6375 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6378 2013-05-20 Tom Tromey <tromey@redhat.com>
6380 * python/python.c (gdbpy_run_events): Decref the result
6381 of PyObject_CallObject.
6383 2013-05-20 Tom Tromey <tromey@redhat.com>
6385 * python/py-symtab.c (set_sal): Use
6386 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6387 (symtab_and_line_to_sal_object): Update.
6389 2013-05-20 Tom Tromey <tromey@redhat.com>
6391 * python/py-param.c (compute_enum_values): Decref 'item'.
6393 2013-05-20 Tom Tromey <tromey@redhat.com>
6395 * mi/mi-main.c: Include python-internal.h.
6396 (mi_cmd_list_features): Check gdb_python_initialized.
6397 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6398 (python_inferior_exit, python_new_objfile, add_thread_object)
6399 (delete_thread_object, py_free_inferior): Check
6400 gdb_python_initialized.
6401 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6402 gdb_python_initialized.
6403 * python/py-type.c (save_objfile_types): Check
6404 gdb_python_initialized.
6405 * python/python-internal.h (gdb_python_initialized): Declare.
6406 * python/python.c (ensure_python_env): Throw exception if
6407 Python not initialized.
6408 (before_prompt_hook, source_python_script_for_objfile)
6409 (start_type_printers, apply_type_printers,
6410 free_type_printers): Check gdb_python_initialized.
6411 * varobj.c (varobj_get_display_hint)
6412 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6413 (install_new_value_visualizer, varobj_set_visualizer)
6414 (value_get_print_value): Check gdb_python_initialized.
6416 2013-05-20 Tom Tromey <tromey@redhat.com>
6418 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6420 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6421 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6423 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6425 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6427 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6429 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6430 init function to return 'int'.
6431 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6432 Return 'int'. Check errors.
6433 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6435 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6436 Return 'int'. Check errors.
6437 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6439 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6441 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6443 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6445 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6447 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6449 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6451 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6453 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6455 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6457 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6459 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6461 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6463 * python/python-internal.h (gdbpy_initialize_auto_load,
6464 gdbpy_initialize_values, gdbpy_initialize_frames,
6465 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6466 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6467 gdbpy_initialize_blocks, gdbpy_initialize_types,
6468 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6469 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6470 gdbpy_initialize_finishbreakpoints,
6471 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6472 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6473 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6474 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6475 gdbpy_initialize_signal_event,
6476 gdbpy_initialize_breakpoint_event,
6477 gdbpy_initialize_continue_event,
6478 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6479 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6480 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6481 * python/python.c (gdb_python_initialized): New global.
6482 (gdbpy_initialize_events): Return 'int'. Check errors.
6483 (_initialize_python): Check errors. Set
6484 gdb_python_initialized.
6486 2013-05-20 Tom Tromey <tromey@redhat.com>
6488 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6489 Decref the reslut of PyObject_CallMethod.
6491 2013-05-20 Tom Tromey <tromey@redhat.com>
6493 * python/py-event.c (gdbpy_initialize_event_generic): Return
6494 early if PyType_Ready fails.
6496 2013-05-20 Tom Tromey <tromey@redhat.com>
6498 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6499 as 'default' in the switch.
6501 2013-05-20 Tom Tromey <tromey@redhat.com>
6503 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6504 get_addr_from_python calls out of TRY_CATCH.
6505 (infpy_write_memory, infpy_search_memory): Likewise.
6506 * python/py-utils.c (get_addr_from_python): Return negative
6507 value on error. Use TRY_CATCH.
6508 * python/python-internal.h (get_addr_from_python): Use
6509 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6511 2013-05-20 Tom Tromey <tromey@redhat.com>
6513 * python/py-event.c (evpy_emit_event): Decref the
6514 result of PyObject_CallFunctionObjArgs.
6516 2013-05-20 Tom Tromey <tromey@redhat.com>
6518 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6521 2013-05-20 Tom Tromey <tromey@redhat.com>
6523 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6525 2013-05-20 Tom Tromey <tromey@redhat.com>
6527 * python/py-event.h (gdbpy_initialize_event_generic): Use
6528 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6529 * python/py-evts.c (add_new_registry): Use
6530 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6531 * python/python-internal.h
6532 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6534 2013-05-20 Tom Tromey <tromey@redhat.com>
6536 * python/py-arch.c (archpy_disassemble): Update.
6537 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6538 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6539 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6540 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6542 (GDB_PY_HANDLE_EXCEPTION): Update.
6543 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6545 2013-05-20 Tom Tromey <tromey@redhat.com>
6547 * python/python-internal.h (events_object_type): Remove.
6549 2013-05-20 Tom Tromey <tromey@redhat.com>
6551 * python/py-event.h (evpy_emit_event): Use
6552 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6553 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6556 2013-05-20 Tom Tromey <tromey@redhat.com>
6558 * py-evtregistry.c (create_event_object): Decref
6559 eventregistry_object if PyList_New fails.
6561 2013-05-20 Tom Tromey <tromey@redhat.com>
6563 * py-cmd.c (gdbpy_string_to_argv): Check result of
6566 2013-05-20 Tom Tromey <tromey@redhat.com>
6568 * python/python.c (before_prompt_hook): Add cleanup to
6571 2013-05-20 Tom Tromey <tromey@redhat.com>
6573 * python/py-function.c (fnpy_init): Decref result of
6574 PyObject_GetAttrString.
6576 2013-05-20 Tom Tromey <tromey@redhat.com>
6578 * python/py-threadevent.c (get_event_thread): Use
6579 CPYCHECKER_RETURNS_BORROWED_REF.
6580 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6582 (pspace_to_pspace_object, objfile_to_objfile_object)
6583 (find_thread_object): Use it.
6585 2013-05-20 Tom Tromey <tromey@redhat.com>
6587 * python/py-arch.c (arch_object_type): Use
6588 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6589 * python/py-block.c (block_syms_iterator_object_type):
6590 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6591 * python/py-bpevent.c (breakpoint_event_object_type):
6592 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6593 * python/py-cmd.c (cmdpy_object_type): Use
6594 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6595 * python/py-continueevent.c (continue_event_object_type):
6596 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6597 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6598 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6599 * python/py-events.h (thread_event_object_type):
6600 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6601 * python/py-evtregistry.c (eventregistry_object_type): Use
6602 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6603 * python/py-exitedevent.c (exited_event_object_type):
6604 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6605 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6606 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6607 * python/py-function.c (fnpy_object_type): Use
6608 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6609 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6610 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6611 * python/py-infthread.c (thread_object_type): Use
6612 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6613 * python/py-lazy-string.c (lazy_string_object_type):
6614 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6615 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6616 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6617 * python/py-objfile.c (objfile_object_type): Use
6618 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6619 * python/py-param.c (parmpy_object_type):
6620 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6621 * python/py-progspace.c (pspace_object_type):
6622 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6623 * python/py-signalevent.c (signal_event_object_type):
6624 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6625 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6626 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6627 * python/py-type.c (type_object_type, field_object_type)
6628 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6629 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6631 (value_object_type, block_object_type, symbol_object_type)
6632 (event_object_type, stop_event_object_type, breakpoint_object_type)
6633 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6635 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6637 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6638 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6640 2013-05-20 Doug Evans <dje@google.com>
6642 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6644 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6645 reading_dwo_directly.
6646 (struct signatured_type): New member dwo_unit.
6647 (struct die_reader_specs): New member comp_dir.
6648 (create_signatured_type_table_from_index): Use malloc for
6649 all_type_units instead of objfile's obstack.
6650 (create_all_type_units): Ditto.
6651 (fill_in_sig_entry_from_dwo_entry): New function.
6652 (add_type_unit): New function.
6653 (lookup_dwo_signatured_type): New function.
6654 (lookup_dwp_signatured_type): New function.
6655 (lookup_signatured_type): New arg cu. All callers updated.
6656 (init_cu_die_reader): Initialize comp_dir.
6657 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6658 Change assert of matching type signatures to call error on mismatch.
6659 (lookup_dwo_unit): Add assert.
6660 (init_tu_and_read_dwo_dies): New function.
6661 (init_cutu_and_read_dies): Call it.
6662 (build_type_unit_groups): Handle case of no type unit groups created.
6663 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6664 (lookup_dwo_cutu): Tweak complaint.
6665 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6666 (dwarf2_per_objfile_free): Free all_type_units.
6668 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6670 * windows-nat.c (handle_unload_dll): Add missing empty line.
6672 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6674 * dwarf2read.c (prototyped_function_p): New function.
6675 (read_subroutine_type): Use it.
6677 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6679 * rs6000-aix-tdep.c: De-indent some example code provided
6682 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6684 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6685 region is ok for a hardware watchpoint using the new ptrace interface
6688 2013-05-17 Doug Evans <dje@google.com>
6690 * NEWS: Mention new maintenance commands check-symtabs, and
6691 expand-symtabs, and renamed check-psymtabs.
6692 * psymtab.c (maintenance_check_psymtabs): Renamed from
6693 maintenance_check_symtabs. Only process already-expanded symbol
6695 (_initialize_psymtab): Update.
6696 * symmisc.c (maintenance_check_symtabs): New function.
6697 (maintenance_expand_name_matcher): New function
6698 (maintenance_expand_file_matcher): New function
6699 (maintenance_expand_symtabs): New function.
6700 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6703 2013-05-17 Tom Tromey <tromey@redhat.com>
6705 * python/py-inferior.c (infpy_read_memory): Don't call
6706 PyErr_SetString if PyObject_New fails.
6707 * python/py-frame.c (frame_info_to_frame_object): Don't call
6708 PyErr_SetString if PyObject_New fails.
6710 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6712 * acinclude.m4: Add check for dlopen in libdl.
6713 * configure.ac: Ditto.
6714 * configure: Regenerate.
6716 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6718 * frame.c (frame_stash): Convert to htab.
6719 (frame_addr_hash): New function.
6720 (frame_addr_hash_eq): New function.
6721 (frame_stash_create): Convert function to create
6723 (frame_stash_add): Convert function to add an entry to a hash
6725 (frame_stash_find): Convert function to search the hash table.
6726 (frame_stash_invalidate): Convert function to empty the hash
6728 (get_frame_id): Only add to stash if a frame_id is created.
6729 (_initialize_frame): Call frame_stash_create.
6731 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6733 * configure.ac: Ensure MIG is available when building for GNU Hurd
6735 * configure: Regenerate.
6737 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6739 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6741 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6743 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6744 all cleanups are done before returning from this function.
6746 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6748 * utils.h: #include "exceptions.h".
6749 (enum errors): Remove partial declaration.
6751 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6753 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6754 * gdbarch.h, gdbarch.c: Regenerate.
6755 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6758 * rs6000-aix-tdep.h: New file.
6759 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6760 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6762 (struct field_info, struct ld_info_desc): New types.
6763 (ld_info32_desc, ld_info64_desc): New static constants.
6764 (struct ld_info): New type.
6765 (rs6000_aix_extract_ld_info): New function.
6766 (rs6000_aix_shared_library_to_xml): Likewise.
6767 (rs6000_aix_ld_info_to_xml): Likewise.
6768 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6769 (rs6000_aix_init_osabi): Add call to
6770 set_gdbarch_core_xfer_shared_libraries_aix.
6771 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6772 Remove "xml-utils.h" include.
6773 (LdInfo): Delete typedef.
6774 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6776 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6777 Adjust code accordingly.
6778 (rs6000_core_ldinfo): Delete, folded into
6779 rs6000_aix_core_xfer_shared_libraries_aix.
6780 (rs6000_xfer_shared_library): Delete.
6781 (rs6000_xfer_shared_libraries): Reimplement.
6783 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6785 * record.c (record_goto_cmdlist): New.
6786 (cmd_record_goto): Split into this ...
6787 (cmd_record_goto_begin): ... this
6788 (cmd_record_goto_end): ... and this.
6789 (_initialize_record): Change "record goto" to prefix command.
6790 Add commands for "record goto begin" and "record goto end".
6791 Add an alias for "record goto start" to "record goto begin".
6793 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6795 * linespec.c (convert_linespec_to_sals): New comment for
6796 SOURCE_FILENAME assignment.
6798 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6800 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6803 2013-05-14 Tom Tromey <tromey@redhat.com>
6805 * eval.c (parse_and_eval_long): Make 'exp' const.
6806 * value.h (parse_and_eval_long): Update.
6808 2013-05-14 Tom Tromey <tromey@redhat.com>
6810 * ui-file.c (gdb_fopen): Make arguments const.
6811 * ui-file.h (gdb_fopen): Make arguments const.
6813 2013-05-14 Tom Tromey <tromey@redhat.com>
6815 * remote.c (remote_set_trace_notes): Make arguments const.
6816 * target.c (update_current_target): Update cast.
6817 * target.h (to_set_trace_notes): Make arguments const.
6819 2013-05-14 Tom Tromey <tromey@redhat.com>
6821 * go32-nat.c (go32_terminal_info): Make 'args' const.
6822 * inferior.h (child_terminal_info): Update.
6823 * inflow.c (child_terminal_info): Make 'args' const.
6824 * target.c (default_terminal_info): Make 'args' const.
6825 (debug_to_terminal_save_ours): Likewise.
6826 * target.h (struct target_ops) <to_terminal_info>: Make argument
6829 2013-05-13 Tom Tromey <tromey@redhat.com>
6831 * gcore.c (create_gcore_bfd): Make 'filename' const.
6832 * gcore.h (create_gcore_bfd): Make 'filename' const.
6833 * record-full.c (record_full_save): Make 'recfilename' const.
6834 * target.c (target_save_record): Make 'filename' const.
6835 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6837 (target_save_record): Likewise.
6839 2013-05-13 Tom Tromey <tromey@redhat.com>
6842 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6843 ranges section has been read.
6845 2013-05-13 Tom Tromey <tromey@redhat.com>
6848 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6849 STRUCTOP_PTR>: Return a not_lval value for
6850 EVAL_AVOID_SIDE_EFFECTS.
6851 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6852 for EVAL_AVOID_SIDE_EFFECTS.
6854 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6856 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6857 floating point registers to register type before storing
6859 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6862 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6863 Tom Tromey <tromey@redhat.com>
6865 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6867 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6869 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6870 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6871 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6872 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6874 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6875 Tom Tromey <tromey@redhat.com>
6878 * configure: Rebuild.
6879 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6882 2013-05-10 Pedro Alves <palves@redhat.com>
6884 * remote.c (_initialize_remote): Fix spelling of
6885 qXfer:traceframe-info:read packet in packet config command.
6887 2013-05-10 David Taylor <dtaylor@emc.com>
6891 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6892 "QTro" at start of packet.
6894 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6896 * solib-aix.c (solib_aix_relocate_section_addresses):
6897 For the .bss section action, apply the same offset as
6900 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6902 * solib-aix.c (solib_aix_relocate_section_addresses):
6903 Remove FIXME comment.
6905 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6908 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6909 New functions, directly copied from sparc-sol-thread.c.
6910 * sparc-sol-thread.c: Delete.
6911 * configure.ac: Remove code handling sparc-solaris-thread.c.
6912 * configure: Regenerate.
6914 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6916 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6918 (backtrace_command): Add "no-filters" option parsing.
6919 (_initialize_stack): Alter help to reflect "no-filters" option.
6920 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6921 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6922 (py-frame.o): Add target
6923 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6925 * python/python.h: Add new frame filter constants, and flag enum.
6926 (apply_frame_filter): Add definition.
6927 * python/python.c (apply_frame_filter): New non-Python
6929 * python/py-utils.c (py_xdecref): New function.
6930 (make_cleanup_py_xdecref): Ditto.
6931 * python/py-objfile.c: Declare frame_filters dictionary.
6932 (objfpy_dealloc): Add frame_filters dealloc.
6933 (objfpy_new): Initialize frame_filters attribute.
6934 (objfile_to_objfile_object): Ditto.
6935 (objfpy_get_frame_filters): New function.
6936 (objfpy_set_frame_filters): New function.
6937 * python/py-progspace.c: Declare frame_filters dictionary.
6938 (pspy_dealloc): Add frame_filters dealloc.
6939 (pspy_new): Initialize frame_filters attribute.
6940 (pspacee_to_pspace_object): Ditto.
6941 (pspy_get_frame_filters): New function.
6942 (pspy_set_frame_filters): New function.
6943 * python/py-framefilter.c: New file.
6944 * python/lib/gdb/command/frame_filters.py: New file.
6945 * python/lib/gdb/frames.py: New file.
6946 * python/lib/gdb/__init__.py: Initialize global frame_filters
6948 * python/lib/gdb/FrameDecorator.py: New file.
6949 * python/lib/gdb/FrameIterator.py: New file.
6950 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6951 * mi/mi-cmds.h: Declare.
6952 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6953 --no-frame-filter logic, and Python frame filter logic.
6954 (stack_enable_frame_filters): New function.
6955 (parse_no_frame_option): Ditto.
6956 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6958 (mi_cmd_stack_list_locals): Ditto.
6959 (mi_cmd_stack_list_args): Ditto.
6960 (mi_cmd_stack_list_variables): Ditto.
6961 * NEWS: Add frame filter note.
6963 2013-05-09 Doug Evans <dje@google.com>
6965 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6966 All callers updated.
6967 (syms_from_objfile): Ditto. Make static.
6968 (symbol_file_add_with_addrs): Renamed from
6969 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6970 num_offsets. All callers updated.
6971 * symfile.h (syms_from_objfile): Delete.
6973 * symfile.c (decrement_reading_symtab): Add assert.
6974 (increment_reading_symtab): Ditto.
6976 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6978 * source.c (forward_search_command): Replace call to getc
6980 (reverse_search_command): Likewise.
6982 2013-05-08 Doug Evans <dje@google.com>
6984 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6987 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6989 * sol-thread.c (info_cb): Factorize the code a little.
6991 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6993 * sol-thread.c (info_cb): Rework the output of the "maintenance
6994 info sol-threads" command a bit.
6996 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6998 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6999 Replace ti.ti_startfunc by ti.ti_pc.
7001 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7003 * solib-aix.c (solib_aix_free_library_list): New function
7004 for the case where HAVE_LIBEXPAT is not defined.
7006 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7008 PR breakpoints/15413:
7009 * breakpoint.c (condition_completer): Simplify the code to
7010 disconsider multiple locations of breakpoints when completing the
7011 "condition" command.
7013 2013-05-07 Pierre Muller <muller@sourceware.org>
7015 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7016 instead of <sys/wait.h>.
7018 2013-05-07 Pierre Muller <muller@sourceware.org>
7020 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7021 trailing new line from warning message.
7023 2013-05-07 Pierre Muller <muller@sourceware.org>
7025 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7026 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7028 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7030 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7031 error message (ARI fix).
7033 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7035 * features/library-list-aix.dtd: Replace library-list by
7037 * rs6000-nat.c: Replace library-list by library-list-aix
7039 * solib-aix.c: Likewise.
7041 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7043 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7044 Renames TARGET_OBJECT_AIX_LIBRARIES.
7045 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7046 TARGET_OBJECT_LIBRARIES_AIX throughout.
7047 * solib-aix.c: Likwise.
7049 2013-05-07 Yao Qi <yao@codesourcery.com>
7051 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7052 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7054 2013-05-07 Yao Qi <yao@codesourcery.com>
7056 * solib-dsbt.c (enable_break): Declare.
7057 (dsbt_current_sos): Remove call to enable_break2.
7058 (enable_break2): Rename to enable_break. Set solib breakpoint
7059 on '_dl_debug_state'.
7060 (enable_break): Remove.
7062 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7064 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7065 debug state prior to replicating existing hardware watchpoints or
7068 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7070 * gcore.c (gcore_create_callback): Ignore sections with
7071 separate_debug_objfile_backlink != NULL.
7073 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7074 Andrew Jenner <andrew@codesourcery.com>
7075 Chung-Lin Tang <cltang@codesourcery.com>
7076 Julian Brown <julian@codesourcery.com>
7078 Based on the nios2-elf port from Altera Corporation.
7080 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7082 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7083 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7084 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7085 * nios2-tdep.h: New.
7086 * nios2-tdep.c: New.
7087 * nios2-linux-tdep.c: New.
7088 * features/Makefile (WHICH): Add nios2-linux.
7089 (nios2-linux-expedite): Set.
7090 * features/nios2-cpu.xml: New.
7091 * features/nios2.xml: New.
7092 * features/nios2-linux.xml: New.
7093 * features/nios2.c: New (autogenerated).
7094 * features/nios2-linux.c: New (autogenerated).
7095 * regformats/nios2-linux.dat: New (autogenerated).
7096 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7099 2013-05-06 Doug Evans <dje@google.com>
7101 * symfile.c: Whitespace cleanup.
7103 * solist.h (struct target_so_ops): New member clear_so.
7104 * solib-svr4.c (svr4_clear_so): New function.
7105 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7106 * solib.c (clear_so): Renamed from free_so_symbols.
7107 All callers updated. Call target clear_so if it exists.
7109 2013-05-06 Tom Tromey <tromey@redhat.com>
7111 * ada-lang.c (ada_value_primitive_packed_val): Don't
7113 * value.c (set_value_parent): Incref the new parent and decref
7115 (value_copy, value_primitive_field): Use set_value_parent.
7117 2013-05-06 Tom Tromey <tromey@redhat.com>
7119 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7120 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7122 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7123 * dwarf2read.c (write_constant_as_bytes)
7124 (dwarf2_fetch_constant_bytes): New functions.
7126 2013-05-06 Tom Tromey <tromey@redhat.com>
7128 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7130 (dwarf2_const_value_attr): Update.
7132 2013-05-06 Tom Tromey <tromey@redhat.com>
7134 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7135 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7136 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7139 2013-05-06 Tom Tromey <tromey@redhat.com>
7141 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7144 2013-05-06 Doug Evans <dje@google.com>
7146 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7147 * stabsread.h (process_one_symbol): Update declaration.
7148 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7149 * elfread.c (elf_symfile_relocate_probe): Ditto.
7150 * psymtab.c (relocate_psymtabs): Ditto.
7151 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7152 (objfile_relocate): Ditto.
7153 * objfiles.h (objfile_relocate): Update declaration.
7154 * symfile.c (relative_addr_info_to_section_offsets): Constify
7156 (default_symfile_offsets): Ditto.
7157 (syms_from_objfile_1): Constify offsets parameter.
7158 (syms_from_objfile): Ditto.
7159 (symbol_file_add_with_addrs_or_offsets): Ditto.
7160 (symfile_map_offsets_to_segments): Constify data parameter.
7161 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7162 delta parameters of member relocate.
7163 (struct sym_probe_fns): Constify new_offsets,
7164 delta parameters of member sym_relocate_probe.
7165 (struct sym_fns): Constify section_addr_info parameter of member
7167 (relative_addr_info_to_section_offsets): Update declaration.
7168 (default_symfile_offsets): Ditto.
7169 (syms_from_objfile): Ditto.
7170 (symfile_map_offsets_to_segments): Ditto.
7172 * symfile.c (syms_from_objfile_1): Use correct section count when
7173 objfile->sf == NULL.
7175 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7177 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7179 2013-05-06 Doug Evans <dje@google.com>
7181 * psympriv.h (struct partial_symtab): Augment comment for member
7184 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7186 Reimplement shared library support on ppc-aix...
7187 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7188 * features/library-list-aix.dtd: New file.
7189 * solib-aix.h, solib-aix.c: New file.
7190 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7191 (rs6000_find_toc_address_hook): Delete.
7192 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7193 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7194 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7196 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7197 (vmap_symtab, fixup_breakpoints): Delete.
7198 (rs6000_xfer_shared_libraries): New function.
7199 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7200 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7201 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7202 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7203 (rs6000_xfer_shared_library): New function.
7204 (find_toc_address): Delete.
7205 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7206 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7207 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7208 before creating minimal symbol. Adjust function description
7210 (scan_xcoff_symtab): Replace call to
7211 prim_record_minimal_symbol_and_info by call to
7212 record_minimal_symbol.
7213 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7214 around default_symfile_offsets.
7215 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7216 powerpc-aix targets.
7217 * config/rs6000/nm-rs6000.h: Delete.
7218 * config/powerpc/aix.mh (NAT_FILE): Delete.
7219 (NATDEPFILES): Remove xcoffsolib.o.
7220 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7221 (ALL_TARGET_OBS): Add solib-aix.o.
7222 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7223 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7224 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7225 * xcoffsolib.h, xcoffsolib.c: Delete.
7227 * solib.c (reload_shared_libraries): Remove reference to
7228 SOLIB_CREATE_INFERIOR_HOOK.
7229 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7230 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7231 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7233 * corelow.c (deprecated_core_resize_section_table): Delete.
7234 * exec.c: Remove include of xcoffsolib.h".
7235 (map_vmap, vmap): Delete.
7236 (exec_close_1): Remove references to vmap.
7237 (exec_file_attach): Remove vmap handling code, and reference
7238 to DEPRECATED_IBM6000_TARGET.
7239 (bfdsec_to_vmap): Delete.
7240 (exec_files_info): Remove block of code handling VMAP.
7241 * infcmd.c (post_create_inferior): Remove reference to
7242 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7243 * infrun.c (follow_exec): Remove reference to
7244 SOLIB_CREATE_INFERIOR_HOOK.
7245 * stack.c (print_frame): Remove reference to PC_SOLIB.
7246 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7247 (dsbt_relocate_main_executable): Likewise.
7248 * solib-frv.c (frv_current_sos): Likewise.
7250 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7252 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7253 to target_write_memory and target_read_memory.
7255 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7257 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7258 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7260 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7262 * darwin-nat.c: Replace all "%x" instances in format strings
7263 into "0x%x" throughout.
7265 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7267 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7268 gdb_assert by call to MACH_CHECK_ERROR.
7269 (darwin_attach_pid): Raise an error rather than a failed
7270 assertion when various system calls failed. Report a warning
7271 instead of raising a failed assertion when PREV_NOT is not NULL
7272 after call to mach_port_request_notification.
7273 (darwin_ptrace_me): Raise an error rather than a failed
7274 assertion when read returns nonzero.
7276 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7278 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7280 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7282 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7284 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7286 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7287 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7288 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7289 a stale cleanup. Fix double free of NAME.
7291 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7293 * windows-nat.c (windows_delete_thread): Accept an additional
7294 argument, the thread's exit code, and announce thread death when
7295 print_thread_events is non-zero and we are deleting a thread that
7296 is not the main thread.
7297 (get_windows_debug_event): Pass thread exit code to
7298 windows_delete_thread.
7300 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7302 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7303 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7304 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7305 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7306 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7307 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7308 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7309 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7310 (gdbarch_tdep): New struct.
7311 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7313 (v850e3v5_register_name): New function.
7314 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7315 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7316 code handling the struct return conventions for the RH850 ABI.
7318 (v850_eight_byte_align_p): New function.
7319 (v850_push_call_dummy): Push structs by value, not by reference
7320 for the RH850 ABI. Add support for eight byte alignment.
7321 (v850_dbtrap_breakpoint_from_pc): New function.
7322 (v850_gdbarch_init): Add ABI detection code. Register
7323 v850e3v5_register_name for the v850e3v5 architecture. Set the
7324 number of registers for v850e3v5. Register
7325 v850_dbtrap_breakpoint_from_pc as appropriate.
7326 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7328 2013-05-03 Doug Evans <dje@google.com>
7330 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7331 of bfd_count_sections.
7332 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7333 * symfile.c (default_symfile_offsets): Ditto.
7334 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7335 one entry, not bfd_count_sections entries.
7337 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7339 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7340 `save' and `restore' register groups. Don't include SPL
7341 or SPH in these groups.
7342 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7343 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7344 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7345 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7346 dwarf2_append_unwinders().
7348 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7350 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7351 ignore SIGINT and SIGTRAP in case these internal signals are
7354 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7356 * darwin-nat.c (darwin_read_write_inferior): Change types
7357 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7358 of copy_count to "mach_msg_type_number_t".
7359 (darwin_read_dyld_info): Change type of parameter
7360 rdaddr to "gdb_byte *".
7362 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7364 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7365 of &info->load_map from "char *" to "gdb_byte *".
7367 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7369 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7370 from "char *" to "gdb_byte *".
7371 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7373 2013-04-30 Doug Evans <dje@google.com>
7375 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7376 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7377 DWO stub. If DWO isn't found, just use stub.
7378 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7380 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7381 calling init_cutu_and_read_dies.
7383 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7385 * target-descriptions.c (maint_print_c_tdesc_cmd):
7386 Add case to parse structures as register types and
7389 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7391 * MAINTAINERS (Write After Approval): Add myself to the list.
7393 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7395 * sol-thread.c (rw_common): Change type of parameter "buf"
7397 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7398 rw_common to "gdb_byte *" instead of "char *".
7400 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7402 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7403 of local variable msym to const struct bound_minimal_symbol.
7404 Adjust use accordingly.
7405 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7407 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7409 * i386gnu-nat.c (CREG_OFFSET): New macro.
7410 (creg_offset): New array.
7411 (CREG_ADDR): Use creg_offset instead of reg_offset.
7413 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7415 * mep-tdep.c (mep_write_pc): Delete.
7416 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7417 Add call to set_gdbarch_pc_regnum.
7419 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7421 * common/filestuff.c: Replace #include <dirent.h> by
7422 #include "gdb_dirent.h".
7424 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7426 * common/filestuff.c: Replace #include <sys/stat.h> by
7427 #include "gdb_stat.h".
7429 2013-04-29 Pierre Muller <muller@sourceware.org>
7431 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7432 editCase function rule.
7433 (get_DW_AT_signature_type): Likewise.
7435 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7437 * m32r-tdep.c (m32r_write_pc): Delete.
7438 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7439 Add call to set_gdbarch_pc_regnum.
7441 2013-04-29 Pierre Muller <muller@sourceware.org>
7443 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7445 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7447 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7449 2013-04-28 Yao Qi <yao@codesourcery.com>
7451 * solib-dsbt.c (fetch_loadmap): Re-indent.
7452 (displacement_from_map, enable_break2): Likewise.
7453 (dsbt_relocate_section_addresses): Likewise.
7455 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7459 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7462 * dwarf2read.c (process_full_comp_unit): Always create a static
7465 2013-04-25 Hui Zhu <hui@codesourcery.com>
7467 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7468 to loc->cmd_bytecode.
7470 2013-04-24 Doug Evans <dje@google.com>
7472 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7474 2013-04-22 Keith Seitz <keiths@redhat.com>
7476 * tracepoint.c (trace_save): Call the writer's start method.
7478 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7481 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7484 2013-04-23 Tom Tromey <tromey@redhat.com>
7486 * common/filestuff.c: Check USE_WIN32API before including
7488 (HAVE_F_GETFD): New define.
7489 (mark_cloexec): Check HAVE_F_GETFD.
7490 (gdb_open_cloexec): Change 'mode' to unsigned long.
7491 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7492 (gdb_pipe_cloexec): Check HAVE_PIPE.
7493 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7496 2013-04-23 Hui Zhu <hui@codesourcery.com>
7499 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7501 2013-04-23 Hui Zhu <hui@codesourcery.com>
7504 * breakpoint.c (dprintf_print_recreate): New.
7505 (save_breakpoints): Let it not save dprintf commands.
7506 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7508 2013-04-22 Tom Tromey <tromey@redhat.com>
7511 * Makefile.in (SFILES): Add filestuff.c
7512 (COMMON_OBS): Add filestuff.o.
7513 (filestuff.o): New target.
7514 * auto-load.c (auto_load_objfile_script_1): Use
7516 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7517 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7518 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7519 * common/agent.c (gdb_connect_sync_socket): Use
7521 * common/filestuff.c: New file.
7522 * common/filestuff.h: New file.
7523 * common/linux-osdata.c (linux_common_core_of_thread)
7524 (command_from_pid, commandline_from_pid, print_source_lines)
7525 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7526 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7528 * common/linux-procfs.c (linux_proc_get_int)
7529 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7530 * config.in, configure: Rebuild.
7531 * configure.ac: Don't check for sys/socket.h. Check for
7533 * corelow.c (core_open): Use gdb_open_cloexec.
7534 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7535 * fork-child.c (fork_inferior): Call close_most_fds.
7536 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7537 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7538 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7539 Use gdb_fopen_cloexec.
7540 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7542 (linux_async_pipe): Use gdb_pipe_cloexec.
7543 * remote-fileio.c (remote_fileio_func_open): Use
7545 * remote.c (remote_file_put, remote_file_get): Use
7547 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7549 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7550 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7551 * solib.c (solib_find): Use gdb_open_cloexec.
7552 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7553 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7554 (tfile_open): Use gdb_open_cloexec.
7555 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7556 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7557 * xml-support.c (xml_fetch_content_from_file): Use
7559 * main.c (captured_main): Call notice_open_fds.
7561 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7563 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7564 'char *' to 'gdb_byte *'.
7565 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7568 2013-04-22 Yao Qi <yao@codesourcery.com>
7570 * infrun.c: Fix typo in comment.
7572 2013-04-22 Andrew Haley <aph@redhat.com>
7574 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7577 2013-04-20 Yao Qi <yao@codesourcery.com>
7579 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7580 'char *' to 'gdb_byte *'. Cast the return value of
7581 'bt_ctf_get_char_array' to 'gdb_byte *'.
7583 2013-04-19 Pedro Alves <palves@redhat.com>
7585 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7587 * configure: Regenerate.
7589 2013-04-19 Pedro Alves <palves@redhat.com>
7591 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7594 2013-04-19 Pedro Alves <palves@redhat.com>
7596 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7597 Change type of 'myaddr' parameter to gdb_byte pointer.
7598 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7599 to 'long long' pointer instead of to 'unsigned long long'.
7600 (monitor_write_memory_block, monitor_read_memory_single)
7601 (monitor_read_memory): Change type of 'myaddr' parameter to
7604 2013-04-19 Pedro Alves <palves@redhat.com>
7606 * record.c (validate_history_size): Make parameter 'setting'
7609 2013-04-19 Pedro Alves <palves@redhat.com>
7611 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7614 2013-04-19 Pedro Alves <palves@redhat.com>
7616 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7619 2013-04-19 Pedro Alves <palves@redhat.com>
7621 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7622 * ada-tasks.c (read_fat_string_value): Likewise.
7624 2013-04-19 Pedro Alves <palves@redhat.com>
7626 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7627 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7628 'offset', and adjust.
7630 2013-04-19 Pedro Alves <palves@redhat.com>
7632 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7633 (read_index_from_section): Add cast to 'char *'.
7635 2013-04-19 Pedro Alves <palves@redhat.com>
7637 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7639 2013-04-19 Pedro Alves <palves@redhat.com>
7641 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7643 2013-04-19 Pedro Alves <palves@redhat.com>
7645 * record-full.c (record_full_get_bookmark): Change local 'ret'
7646 type to char * and add cast to gdb_byte *.
7647 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7649 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7651 2013-04-19 Pedro Alves <palves@redhat.com>
7653 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7654 * python/py-prettyprint.c (print_string_repr): Change type of
7655 'output' local to char *. Add cast to gdb_byte * in
7656 LA_PRINT_STRING call.
7657 (print_children): Change type of 'output' local to char *.
7658 * python/py-value.c (valpy_string): Add cast to const char * in
7659 PyUnicode_Decode call.
7661 2013-04-19 Pedro Alves <palves@redhat.com>
7663 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7664 and change its type to 'const char *'. Adjust.
7665 (mips_send_packet): Add cast to 'char *', and remove cast to
7667 (mips_receive_packet): Remove cast to 'unsigned char *'.
7668 (mips_load_srec): Use bfd_byte.
7669 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7670 (pmon_checkset): Make 'value' parameter unsigned.
7672 2013-04-19 Pedro Alves <palves@redhat.com>
7674 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7676 2013-04-19 Pedro Alves <palves@redhat.com>
7678 * remote.c (remote_write_bytes_aux, compare_sections_command)
7680 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7681 (remote_hostio_readlink, remote_bfd_iovec_pread)
7682 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7683 binary buffer, and char when buffer is used as string.
7684 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7685 (trace_save, tfile_open, traceframe_walk_blocks)
7686 (tfile_fetch_registers): Likewise.
7688 2013-04-19 Pedro Alves <palves@redhat.com>
7690 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7691 buffer and size_t size. Adjust.
7692 * ser-base.h (ser_base_write): Adjust.
7693 * ser-go32.c (cnts): Change type to size_t.
7694 (dos_write): Change prototype -- take 'void *'
7695 buffer and size_t size. Adjust.
7696 (dos_info): Print elements of 'cnts' as unsigned long.
7697 * serial.c (serial_write): Likewise.
7698 * serial.h (serial_write): Adjust.
7699 (struct serial_ops) <write>: Change prototype -- take 'void *'
7700 buffer and size_t size. Adjust.
7702 2013-04-19 Pedro Alves <palves@redhat.com>
7704 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7706 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7708 2013-04-19 Pedro Alves <palves@redhat.com>
7710 * alpha-tdep.c (alpha_extract_return_value): Use
7711 regcache_cooked_read_unsigned to read 'v0'.
7713 2013-04-19 Pedro Alves <palves@redhat.com>
7715 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7716 parameters 'at', 'as' and 'offset' to uint32_t.
7718 2013-04-19 Pedro Alves <palves@redhat.com>
7720 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7721 'is64' to signed 'int'.
7723 2013-04-19 Pedro Alves <palves@redhat.com>
7725 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7728 2013-04-19 Pedro Alves <palves@redhat.com>
7730 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7731 'insnbuf' buffer type to unsigned int[].
7733 2013-04-19 Pedro Alves <palves@redhat.com>
7735 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7737 2013-04-19 Pedro Alves <palves@redhat.com>
7739 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7742 2013-04-19 Pedro Alves <palves@redhat.com>
7744 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7745 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7747 * mips-tdep.c (heuristic_fence_post): Change type to int.
7748 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7750 2013-04-19 Pedro Alves <palves@redhat.com>
7752 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7753 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7754 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7756 2013-04-19 Pedro Alves <palves@redhat.com>
7758 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7759 it to get a string view of the byte buffer.
7760 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7761 type to gdb_byte *. Adjust.
7762 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7763 Change local to char *.
7764 * solib-darwin.c (find_program_interpreter): Change return type to
7766 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7767 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7768 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7769 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7770 * solib-svr4.c (find_program_interpreter): Change return type to
7772 (enable_break): Change local 'interp_name' to char *.
7773 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7774 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7775 (spu_pseudo_register_write_spu): Use char for string buffer.
7777 (info_spu_event_command, info_spu_signal_command): Add casts to
7780 2013-04-19 Pedro Alves <palves@redhat.com>
7782 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7784 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7785 * ada-lang.c (ada_value_assign): Use gdb_byte.
7786 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7787 (alphanbsd_sigtramp_offset): Use gdb_byte.
7788 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7789 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7790 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7791 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7792 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7793 * arm-tdep.c (arm_stub_unwind_sniffer)
7794 (arm_displaced_init_closure): Use gdb_byte.
7795 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7796 (arm_default_thumb_le_breakpoint)
7797 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7798 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7799 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7800 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7801 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7802 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7803 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7804 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7805 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7806 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7807 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7808 (cris_store_return_value, cris_extract_return_value): Use
7810 (constraint): Change type of parameter to char * from signed
7811 char*. Use gdb_byte.
7812 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7813 of local buffer to gdb_byte *.
7814 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7815 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7816 (add_address_entry): Change type of local buffer to gdb_byte[].
7817 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7818 (frv_push_dummy_call): Use gdb_byte.
7819 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7820 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7821 (hppa_hpux_supply_save_state): Use gdb_byte.
7822 * hppa-tdep.c (hppa32_push_dummy_call)
7823 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7824 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7825 (slotN_contents, replace_slotN_contents): Change type of parameter
7827 (fetch_instruction, ia64_pseudo_register_write)
7828 (ia64_register_to_value, ia64_value_to_register)
7829 (ia64_extract_return_value, ia64_store_return_value)
7830 (ia64_push_dummy_call): Use gdb_byte.
7831 * m32c-tdep.c (m32c_return_value): Remove cast.
7832 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7833 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7835 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7836 * mn10300-tdep.c (mn10300_store_return_value)
7837 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7839 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7840 (moxie_process_record): Remove casts.
7841 * ppc-ravenscar-thread.c (supply_register_at_address)
7842 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7843 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7844 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7845 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7846 * remote.c (compare_sections_command): Use gdb_byte.
7847 * score-tdep.c (score7_free_memblock): Change type of parameter to
7849 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7850 gdb_byte *. Use gdb_byte.
7851 (sh_push_dummy_call_fpu): Use gdb_byte.
7852 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7853 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7854 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7855 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7856 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7857 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7858 (sh64_store_return_value, sh64_register_convert_to_virtual):
7859 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7860 (sh64_pseudo_register_write): Use gdb_byte.
7861 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7862 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7864 (irix_current_sos): Use gdb_byte.
7865 * solib-som.c (som_current_sos): Use gdb_byte.
7866 * sparc-ravenscar-thread.c (supply_register_at_address)
7867 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7868 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7869 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7870 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7872 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7874 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7875 * xstormy16-tdep.c (xstormy16_extract_return_value)
7876 (xstormy16_store_return_value): Change parameter type to
7877 'gdb_byte *'. Adjust.
7878 (xstormy16_push_dummy_call): Use gdb_byte.
7879 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7880 (call0_analyze_prologue, execute_code): Use gdb_byte.
7882 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7883 Pedro Alves <palves@redhat.com>
7885 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7888 2013-04-17 Doug Evans <dje@google.com>
7890 * dwarf2read.c (struct signatured_type): New member type.
7891 (struct attribute): Replace member signatured_type with signature.
7892 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7893 (read_call_site_scope): Call follow_die_ref instead of
7894 follow_die_ref_or_sig.
7895 (read_structure_type): Rewrite handling of signatured types.
7896 (read_enumeration_type): Ditto.
7897 (read_attribute_value): Update.
7898 (build_error_marker_type): New function.
7899 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7900 Don't call error for bad types, just build an error marker type.
7901 (dump_die_shallow): Update.
7902 (follow_die_sig_1): Renamed from follow_die_sig.
7903 Don't call error for bad types, instead return NULL.
7904 (follow_die_sig): New function.
7905 (get_signatured_type, get_DW_AT_signature_type): New functions.
7907 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7909 * aarch64-tdep.c (aarch64_write_pc): Removed.
7910 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7913 2013-04-17 Yao Qi <yao@codesourcery.com>
7915 * top.c (print_gdb_configuration): Print configure-time
7916 parameter on using libbabeltrace or not.
7918 2013-04-16 Pedro Alves <palves@redhat.com>
7920 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7922 2013-04-16 Pedro Alves <palves@redhat.com>
7924 * common/glibc_thread_db.h: Update from upstream glibc
7925 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7927 2013-04-16 Pedro Alves <palves@redhat.com>
7929 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7930 * common/glibc_thread_db.h: ... this new file ...
7931 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7933 2013-04-16 Will Newton <will.newton@gmail.com>
7934 Pedro Alves <palves@redhat.com>
7938 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7939 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7942 2013-04-16 Pedro Alves <palves@redhat.com>
7943 Eli Zaretskii <eliz@gnu.org>
7945 * NEWS: Mention "set foo unlimited".
7947 2013-04-15 Doug Evans <dje@google.com>
7949 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7950 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7951 (create_dwo_cu_reader): Renamed from
7952 create_dwo_debug_info_hash_table_reader.
7953 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7954 Remove support for multiple CUs in a DWO file.
7955 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7957 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7959 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7960 (create_dwo_in_dwp): Ditto.
7962 2013-04-15 Tom Tromey <tromey@redhat.com>
7964 * NEWS: Move recent entries into "since 7.6" section.
7966 2013-04-15 Tom Tromey <tromey@redhat.com>
7970 * break-catch-throw.c (struct exception_catchpoint)
7971 <exception_rx, pattern>: New fields.
7972 (fetch_probe_arguments, dtor_exception_catchpoint)
7973 (check_status_exception_catchpoint)
7974 (print_one_detail_exception_catchpoint): New functions.
7975 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7976 Compile regular expression if needed.
7977 (extract_exception_regexp): New function.
7978 (catch_exception_command_1): Use extract_exception_regexp.
7979 (compute_exception): Use fetch_probe_arguments.
7980 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7981 and check_status fields.
7982 * cp-abi.c (cplus_typename_from_type_info): New function.
7983 * cp-abi.h (cplus_typename_from_type_info): Declare.
7984 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7985 * gdb_regex.h (compile_rx_or_error): Declare.
7986 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7988 (init_gnuv3_ops): Set get_type_from_type_info field.
7989 * probe.c (compile_rx_or_error): Move...
7990 * utils.c (compile_rx_or_error): ... here.
7992 2013-04-15 Tom Tromey <tromey@redhat.com>
7996 * break-catch-throw.c (compute_exception): New function.
7997 (exception_funcs): New global.
7998 (_initialize_break_catch_throw): Create $_exception.
7999 * cp-abi.c (cplus_type_from_type_info): New function.
8000 * cp-abi.h (cplus_type_from_type_info): Declare.
8001 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8002 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8003 (gnuv3_get_type_from_type_info): New functions.
8004 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8006 2013-04-15 Tom Tromey <tromey@redhat.com>
8008 * break-catch-throw.c (struct exception_names): New.
8009 (exception_functions): Change type.
8010 (re_set_exception_catchpoint): Look for SDT probes.
8012 2013-04-15 Tom Tromey <tromey@redhat.com>
8015 * break-catch-throw.c (exception_functions): New global.
8016 (gnu_v3_exception_catchpoint_ops): Move earlier.
8017 (struct exception_catchpoint): New.
8018 (classify_exception_breakpoint): Rewrite.
8019 (re_set_exception_catchpoint): New function.
8020 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8021 Allocate a struct exception_catchpoint.
8022 (catch_exception_command_1): Update.
8023 (initialize_throw_catchpoint_ops): Set 're_set' method.
8025 2013-04-15 Tom Tromey <tromey@redhat.com>
8027 * Makefile.in (SFILES): Add break-catch-throw.c
8028 (COMMON_OBS): Add break-catch-throw.o.
8029 * break-catch-throw.c: New file.
8030 * breakpoint.c: Move exception-catching code to new file.
8031 (ep_parse_optional_if_clause): No longer static.
8032 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8034 2013-04-15 Tom Tromey <tromey@redhat.com>
8038 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8039 * c-exp.y (TYPEID): New token.
8040 (exp): Add new TYPEID productions.
8041 (ident_tokens): Add "typeid".
8042 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8043 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8044 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8045 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8046 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8048 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8049 (build_std_type_info_type, gnuv3_get_typeid_type)
8050 (gnuv3_get_typeid): New functions.
8051 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8052 new fields on ABI object.
8053 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8054 * std-operator.def (OP_TYPEID): New.
8056 2013-04-15 Tom Tromey <tromey@redhat.com>
8058 * elfread.c (elf_symtab_read): Install versioned symbol under
8059 unversioned name as well.
8061 2013-04-15 Tom Tromey <tromey@redhat.com>
8064 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8065 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8066 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8067 (gdb_demangle): New function.
8068 * cp-support.h (gdb_demangle): Declare.
8069 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8070 (dwarf2_name): Use gdb_demangle.
8071 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8072 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8074 (gnuv3_print_method_ptr): Use gdb_demangle.
8075 * jv-lang.c (java_demangle): Use gdb_demangle.
8076 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8077 * language.c (unk_lang_demangle): Use gdb_demangle.
8078 * symtab.c (symbol_find_demangled_name)
8079 (demangle_for_lookup): Use gdb_demangle.
8081 2013-04-15 Tom Tromey <tromey@redhat.com>
8085 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8087 (classify_exception_breakpoint): New function.
8088 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8089 (print_mention_exception_catchpoint)
8090 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8091 (catch_exception_command_1): Handle "rethrow" catchpoint.
8092 (catch_rethrow_command): New function.
8093 (_initialize_breakpoint): Add "catch rethrow" command.
8095 2013-04-15 Pierre Muller <muller@sourceware.org>
8097 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8098 set_gdbarch_write_pc as deprecated anymore.
8100 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8102 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8105 2013-04-13 Yao Qi <yao@codesourcery.com>
8107 * ctf.c (_initialize_ctf): Include "completer.h".
8108 Call add_target_with_completer instead of add_target.
8110 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8112 Fix GDB regression related to PR binutils/14813.
8113 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8114 * minidebug.c (lzma_close): Add return value comment.
8115 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8116 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8117 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8119 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8121 * config.in: Regenerate.
8123 2013-04-12 Tom Tromey <tromey@redhat.com>
8125 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8127 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8128 (struct die_reader_specs) <buffer>: Likewise.
8129 (die_reader_func_ftype): Make 'info_ptr' const.
8130 (struct line_header) <include_dirs, statement_program_start,
8131 statement_program_end>: Now const.
8132 (struct file_entry) <name>: Likewise.
8133 (struct partial_die_info) <sibling>: Likewise.
8134 (struct dwarf_block) <data>: Likewise.
8135 (dwarf2_read_section): Remove cast.
8136 (dwarf2_get_section_info): Make 'bufp' const.
8137 (read_index_from_section): Constify.
8138 (dw2_get_file_names_reader): Make 'info_ptr' const.
8139 (dw2_get_primary_filename_reader): Likewise.
8140 (read_comp_unit_head): Make 'info_ptr' and return type const.
8141 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8143 (read_abbrev_offset): Constify.
8144 (dwarf2_create_include_psymtab): Make 'name' const.
8145 (create_debug_types_hash_table): Update.
8146 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8147 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8149 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8150 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8151 (read_comp_units_from_section): Constify.
8152 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8153 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8155 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8156 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8157 (create_dwp_hash_table, dwarf2_ranges_read)
8158 (dwarf2_record_block_ranges): Constify.
8159 (read_die_and_children, read_die_and_siblings_1)
8160 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8162 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8163 (abbrev_table_read_table): Constify.
8164 (load_partial_dies): Make 'info_ptr' const.
8165 (read_partial_die, read_attribute_value, read_attribute): Make
8166 'info_ptr' and return type const.
8167 (read_address, read_initial_length)
8168 (read_checked_initial_length_and_offset, read_offset)
8169 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8171 (read_direct_string): Make 'buf' and return type const.
8172 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8173 (read_indirect_string): Make return type const.
8174 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8175 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8177 (read_str_index): Make return type const.
8178 (add_include_dir): Make 'include_dir' const.
8179 (add_file_name): Make 'name' const.
8180 (dwarf_decode_line_header): Constify.
8181 (psymtab_include_file_name): Make return type const.
8182 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8183 (dwarf2_start_subfile): Make 'filename' const.
8184 (dwarf2_const_value_attr): Make 'bytes' const.
8185 (read_signatured_type_reader): Make 'info_ptr' const.
8186 (decode_locdesc): Constify.
8187 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8189 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8190 'mac_end', and return type const.
8191 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8192 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8194 (per_cu_header_read_in): Constify.
8195 * symfile.h (dwarf2_get_section_info): Update.
8197 2013-04-12 Tom Tromey <tromey@redhat.com>
8199 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8201 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8203 * NEWS: Mention "show configuration", --configuration.
8204 * top.c (print_gdb_configuration): New function, displays the
8205 details about GDB configure-time parameters.
8206 (print_gdb_version): Mention "show configuration".
8207 * cli/cli-cmds.c (show_configuration): New function.
8208 (_initialize_cli_cmds): Add the "show configuration" command.
8209 * main.c (captured_main) <print_configuration>: New static var.
8210 <long_options>: Use it.
8211 If --configuration was given, call print_gdb_configuration.
8213 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8214 Pedro Alves <palves@redhat.com>
8216 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8217 (generated_files): Add gcore.
8218 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8219 HAVE_NATIVE_GCORE_HOST.
8221 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8222 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8223 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8224 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8225 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8226 Add HAVE_NATIVE_GCORE_HOST.
8227 * configure: Regenerate.
8228 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8229 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8230 AC_CONFIG_FILES for gcore.
8231 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8233 * gdb_gcore.sh: Rename to ...
8234 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8235 and GCORE_TRANSFORM_NAME substitutions.
8237 Fix parsing tabs in ${gdb_target_obs}.
8238 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8240 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8242 * remote.c (unpush_and_perror): Add output message final dot.
8244 2013-04-11 Yao Qi <yao@codesourcery.com>
8246 * tracepoint.c (tfile_interp_line): Fit parameters line and
8249 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8251 * solib.c (solib_map_sections): Remove code overwriting
8252 SO->SO_NAME with the bfd's filename.
8254 2013-04-10 Pedro Alves <palves@redhat.com>
8256 * cli/cli-decode.c (integer_unlimited_completer): New function.
8257 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8258 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8260 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8261 (is_unlimited_literal): New function.
8262 (do_set_command): Handle literal "unlimited" arguments.
8263 * frame.c (_initialize_frame) <set backtrace limit>: Document
8265 * printcmd.c (_initialize_printcmd) <set print
8266 max-symbolic-offset>: Add help text.
8267 * record-full.c (_initialize_record_full) <set record full
8268 insn-number-max>: Likewise.
8269 * record.c (_initialize_record) <set record
8270 instruction-history-size, set record function-call-history-size>:
8272 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8274 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8276 * source.c (_initialize_source) <set listsize>: Add help text.
8277 * utils.c (initialize_utils) <set height, set width>: Likewise.
8278 <set pagination>: Mention "set height unlimited".
8279 * valprint.c (_initialize_valprint) <set print elements, set print
8280 repeats>: Document "unlimited".
8282 2013-04-10 Pedro Alves <palves@redhat.com>
8284 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8285 instead of disconnect_tracing.
8286 * infcmd.c (detach_command, disconnect_command): Call
8287 query_if_trace_running. Adjust.
8288 * top.c: Include "tracepoint.h".
8289 (quit_target): Delete. Contents moved ...
8290 (quit_force): ... here. Wrap each stage of teardown in
8291 TRY_CATCH. Call disconnect_tracing before detaching.
8293 2013-04-10 Hui Zhu <hui@codesourcery.com>
8294 Yao Qi <yao@codesourcery.com>
8296 * configure.ac: Check libbabeltrace is installed.
8297 * config.in: Regenerate.
8298 * configure: Regenerate.
8299 * Makefile.in (LIBBABELTRACE): New.
8300 (CLIBS): Add LIBBABELTRACE.
8301 * ctf.c: Include "exec.h".
8302 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8303 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8304 (ctf_save_metadata_header): Define new type aliases in
8306 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8307 in metadata. Start a new faked packet for trace status.
8308 (ctf_write_status): Write trace status to CTF.
8309 (ctf_write_uploaded_tsv): Write TSV to CTF.
8310 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8311 (ctf_write_definition_end): End the faked packet.
8313 (ctx, ctf_iter, trace_dirname): New.
8314 (start_pos): New variable.
8315 (ctf_destroy, ctf_open_dir, ctf_open): New.
8316 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8318 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8319 (ctf_fetch_registers, ctf_xfer_partial): New.
8320 (ctf_get_trace_state_variable_value): New.
8321 (ctf_get_tpnum_from_frame_event): New.
8322 (ctf_get_traceframe_address): New.
8323 (ctf_trace_find, ctf_has_stack): New.
8324 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8325 (ctf_get_trace_status, ctf_read_status): New.
8326 (_initialize_ctf): New.
8327 * tracepoint.c (get_tracepoint_number): New
8328 (get_uploaded_tsv): Remove 'static'.
8329 (struct traceframe_info, trace_regblock_size): Move it to ...
8330 * tracepoint.h: ... here.
8331 (get_tracepoint_number): Declare it.
8332 (get_uploaded_tsv): Declare it.
8334 * NEWS: Mention new configure option.
8336 2013-04-10 Pedro Alves <palves@redhat.com>
8337 Hui Zhu <hui@codesourcery.com>
8339 * breakpoint.c (dprintf_re_set): New.
8340 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8343 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8345 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8346 Remove solib-svr4.o from the list.
8348 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8350 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8351 Use gdb_assert_not_reached instead of invalid boolean expression.
8353 2013-04-09 Pedro Alves <palves@redhat.com>
8355 * remote.c (unpush_and_perror): New function.
8356 (readchar, remote_serial_write): Use it.
8358 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8360 * NEWS: Mention new btrace RSP packets.
8362 2013-04-08 Tom Tromey <tromey@redhat.com>
8364 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8367 2013-04-08 Tom Tromey <tromey@redhat.com>
8369 * maint.c (print_bfd_section_info): Print the section index.
8370 * symmisc.c (dump_msymbols): Print the section index.
8372 2013-04-08 Tom Tromey <tromey@redhat.com>
8375 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8376 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8377 * breakpoint.c (resolve_sal_pc): Update.
8378 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8379 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8380 (minsym_lookup_iterator_cb): Use it.
8381 (default_read_var_value): Update.
8382 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8384 * infcmd.c (jump_command): Update.
8385 * linespec.c (minsym_found): Update.
8386 * maint.c (maintenance_translate_address): Update.
8387 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8388 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8389 * parse.c (write_exp_msymbol): Update.
8390 * printcmd.c (address_info): Update.
8391 * psymtab.c (find_pc_sect_psymbol): Update.
8392 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8394 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8395 Don't initialize SYMBOL_OBJ_SECTION.
8396 * spu-tdep.c (spu_catch_start): Update.
8397 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8398 * symmisc.c (dump_msymbols, print_symbol): Update.
8399 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8400 how fallback section is computed.
8401 (fixup_symbol_section): Update.
8402 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8404 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8405 Initialize SYMBOL_SECTION.
8406 * symtab.h (struct general_symbol_info) <section>: Update comment.
8407 <obj_section>: Remove.
8408 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8409 (SYMBOL_OBJFILE): New macro.
8411 2013-04-08 Tom Tromey <tromey@redhat.com>
8413 * coffread.c (record_minimal_symbol): Update.
8414 * dbxread.c (record_minimal_symbol): Update.
8415 * elfread.c (record_minimal_symbol): Update.
8416 * machoread.c (macho_symtab_add_minsym): Update.
8417 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8419 * minsyms.c (prim_record_minimal_symbol): Update.
8420 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8422 (prim_record_minimal_symbol_and_info): Likewise.
8423 * minsyms.h (prim_record_minimal_symbol_full)
8424 (prim_record_minimal_symbol_and_info): Update.
8425 * symtab.c (allocate_symbol, initialize_symbol)
8426 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8427 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8430 2013-04-08 Tom Tromey <tromey@redhat.com>
8433 * solib-som.c (som_solib_section_offsets): Use BFD section
8434 indices. Set offsets for all sections.
8435 * somread.c (som_symtab_read): Compute BFD section for
8436 symbol. Use prim_record_minimal_symbol_and_info.
8437 (som_symfile_read): Fix comment.
8438 (struct find_section_offset_arg): New.
8439 (find_section_offset, set_section_index): New functions.
8440 (som_symfile_offsets): Use set_section_index to compute
8443 2013-04-08 Tom Tromey <tromey@redhat.com>
8445 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8446 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8447 gdb_bfd_section_index.
8448 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8450 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8452 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8454 * objfiles.c (add_to_objfile_sections_full): New function.
8455 (add_to_objfile_sections): Use it.
8456 (build_section_table): Rewrite.
8457 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8458 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8459 (struct objfile) <sections>: Update comment.
8460 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8462 (ALL_OBJSECTIONS): Use it.
8463 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8464 * solib-frv.c (frv_relocate_main_executable): Update.
8465 * solib-target.c (solib_target_relocate_section_addresses):
8466 Use gdb_bfd_section_index.
8467 * symfile.c (build_section_addr_info_from_section_table):
8468 Use gdb_bfd_section_index.
8469 (build_section_addr_info_from_bfd, place_section): Likewise.
8470 * symtab.c (fixup_section): Update.
8471 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8473 2013-04-08 Tom Tromey <tromey@redhat.com>
8475 * minsyms.h (struct bound_minimal_symbol): New.
8476 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8477 Remove objfile argument.
8478 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8479 Return bound_minimal_symbol.
8480 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8481 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8482 Return bound_minimal_symbol.
8483 (in_gnu_ifunc_stub): Update.
8484 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8485 Remove 'objfile_p' argument.
8486 (lookup_solib_trampoline_symbol_by_pc): Update.
8487 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8488 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8489 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8490 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8491 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8492 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8493 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8494 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8495 stack.c, symtab.c, tui/tui-disasm.c: Update.
8497 2013-04-08 Tom Tromey <tromey@redhat.com>
8499 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8500 Use symbol's obstack, not an objfile.
8501 * coffread.c (process_coff_symbol): Update.
8502 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8503 * jv-lang.c (add_class_symbol): Update.
8504 * mdebugread.c (new_symbol): Update.
8505 * minsyms.c (prim_record_minimal_symbol_full)
8506 (terminate_minimal_symbol_table): Update.
8507 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8508 * stabsread.c (define_symbol, read_enum_type): Update.
8509 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8510 Handle Ada specially.
8511 (symbol_set_language): Add 'obstack' argument.
8512 (symbol_set_names): Update.
8513 (symbol_natural_name, symbol_demangled_name): Always use
8515 * symtab.h (struct general_symbol_info)
8516 <language_specific::obstack>: New field.
8517 <ada_mangled>: New field.
8518 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8519 (symbol_set_language): Update.
8521 2013-04-08 Tom Tromey <tromey@redhat.com>
8523 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8524 Take an obstack, not an objfile.
8525 (symbol_set_names): Update.
8526 * symtab.h (symbol_set_demangled_name): Update.
8528 2013-04-08 Tom Tromey <tromey@redhat.com>
8530 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8532 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8533 (read_func_scope): Call allocate_template_symbol.
8534 (new_symbol_full): Call allocate_symbol.
8535 * jit.c (finalize_symtab): Call allocate_symbol.
8536 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8537 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8538 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8539 (common_block_end): Call allocate_symbol.
8540 * symtab.c (allocate_symbol, initialize_symbol)
8541 (allocate_template_symbol): New functions.
8542 * symtab.c (allocate_symbol, initialize_symbol)
8543 (allocate_template_symbol): Declare.
8544 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8546 2013-04-08 Pedro Alves <palves@redhat.com>
8547 Keith Seitz <keiths@redhat.com>
8549 * breakpoint.c (create_breakpoint): Rename
8550 "parse_condition_and_thread" parameter to "parse_arg". Update
8551 describing comment. If !PARSE_ARG, then error out if ARG is not
8552 the empty string after extracting the location.
8553 * breakpoint.h (create_breakpoint): Rename
8554 "parse_condition_and_thread" parameter to "parse_arg".
8556 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8558 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8560 2013-04-07 Yao Qi <yao@codesourcery.com>
8562 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8563 and 'addr2' to CORE_ADDR.
8564 * target.c (update_current_target): Update.
8565 * target.h (struct target_ops) <to_trace_find>: Change parameter
8567 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8568 'addr2' to CORE_ADDR.
8569 (tfile_trace_find): Likewise.
8570 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8571 Change local variable 'addr' to type CORE_ADDR.
8572 * tracepoint.h (tfind_1): Update declaration.
8574 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8576 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8577 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8580 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8582 * main.h (windows_get_absolute_argv0): ...to here.
8584 2013-04-05 Doug Evans <dje@google.com>
8586 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8587 (read_cutu_die_from_dwo): Add comments.
8588 (read_structure_type): Update comment.
8589 (read_enumeration_type, read_namespace_type): Update comment.
8590 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8592 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8594 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8595 * Makefile.in (gdb.z): Remove.
8596 (install-only): Remove $(man1dir) and gdb.1 installation.
8599 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8601 Fix compatibility with Linux kernel 3.8.3.
8602 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8603 to more inner block. Remove parsing of NUMBER from outer block.
8604 Parse NUMBER only if KEYWORD has been identified.
8606 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8608 Fix variable name shadowing.
8609 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8610 filename to mapsfilename and update its uses.
8612 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8614 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8615 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8616 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8617 details of the problem.
8619 2013-04-04 Pedro Alves <palves@redhat.com>
8620 Hui Zhu <hui@codesourcery.com>
8622 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8623 tracepoint, reset its STEP_COUNT and call validate_actionline.
8625 2013-04-03 Doug Evans <dje@google.com>
8627 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8628 read_die_and_siblings.
8629 (read_die_and_siblings): New function.
8630 (read_cutu_die_from_dwo): Dump die if requested.
8631 (read_die_and_children): Call read_full_die_1 and
8632 read_die_and_siblings_1.
8633 (read_full_die): Dump die if requested.
8635 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8637 * dwarf2read.c (struct dwo_file): New member comp_dir.
8638 Rename member name to dwo_name. All uses updated.
8639 (hash_dwo_file): Include comp_dir in computation.
8640 (eq_dwo_file): Ditto.
8641 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8642 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8644 * psymtab.c (read_psymtabs_with_fullname): Don't call
8645 psymtab_to_fullname if the basenames are different.
8647 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8649 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8650 New entry about "fullname" presence.
8652 2013-04-03 Pedro Alves <palves@redhat.com>
8654 * NEWS: Mention x86_64/Cygwin as new native configuration.
8656 2013-04-02 Doug Evans <dje@google.com>
8658 * dwarf2read.c (read_structure_type): Fix typo in comment.
8660 2013-04-02 Pedro Alves <palves@redhat.com>
8662 * NEWS: Mention "set/show debug aarch64", "set/show debug
8663 coff-pe-read" and "set/show debug mach-o".
8665 2013-04-02 Pedro Alves <palves@redhat.com>
8667 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8669 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8671 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8672 gdb_string.h is now in common/.
8674 2013-04-02 Pedro Alves <palves@redhat.com>
8676 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8677 under "New options".
8679 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8683 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8685 2013-04-02 Pedro Alves <palves@redhat.com>
8689 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8690 (remote_serial_write): New function.
8691 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8693 2013-04-01 Jiong Wang <jiwang@tilera.com>
8695 * NEWS: Mention TILE-Gx in "New native configurations" and
8696 "New targets" sections.
8698 2013-04-01 Doug Evans <dje@google.com>
8700 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8701 (process_enumeration_scope): Simplify.
8703 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8705 (struct signatured_type): ... to here.
8706 (sig_type_ptr): New typedef.
8707 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8708 out of union 't'. All uses updated.
8709 (dw2_get_file_names_reader): Assert not called for a type unit.
8710 (dw2_get_file_names): Assert not called for a type unit or type
8712 (build_type_psymtabs_reader): Assert called for a type unit.
8713 (build_type_psymtab_dependencies): Assert called for a type unit group.
8715 * dwarf2read.c (free_dwo_file): Add comment.
8716 (dwarf2_per_objfile_free): Unref dwp bfd.
8718 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8720 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8721 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8722 (read_pe_exported_syms): Remove unused 'exportix'.
8723 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8724 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8725 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8727 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8729 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8730 (print_it_watchpoint): Remove unused 'bl'.
8731 (say_where): Remove unused 'uiout'.
8732 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8733 (bkpt_breakpoint_hit): Remove unused 'b'.
8734 (internal_bkpt_print_it): Remove unused 'uiout'.
8735 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8737 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8739 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8740 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8742 2013-03-29 Doug Evans <dje@google.com>
8744 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8745 Delete arg is_dwp. All callers updated.
8746 (open_dwp_file): New function.
8747 (open_and_init_dwp_file): Call it.
8748 (get_dwp_file): New function.
8749 (lookup_dwo_cutu): Call it.
8751 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8752 unnecessary, cleanup.
8754 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8756 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8757 (lookup_dwo_unit): New function.
8758 (init_cutu_and_read_dies): Move DWO handling to new functions.
8760 * dwarf2read.c (struct signatured_type): Tweak comment.
8761 (struct dwo_unit): Tweak comment.
8762 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8763 (create_dwo_debug_info_hash_table): Tweak comment.
8764 (dwarf2_per_cu_offset_and_type): Tweak comment.
8766 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8767 missing .debug_types section.
8769 2013-03-29 Yao Qi <yao@codesourcery.com>
8771 * corelow.c: Include "completer.h".
8772 (_initialize_corelow): Call add_target_with_completer with
8773 argument 'filename_completer'.
8774 * tracepoint.c: Likewise.
8775 * exec.c (_initialize_exec): Likewise.
8776 * target.c (add_target): Rename to ...
8777 (add_target_with_completer): ... this. Call set_cmd_completer
8778 if parameter completer is not NULL.
8780 * target.h: Include "command.h".
8781 (add_target_with_completer): Declare it.
8783 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8785 * coffread.c (is_import_fixup_symbol): New function.
8786 (record_minimal_symbol): Use is_import_fixup_symbol to
8787 detect import fixup symbols, and discard them.
8789 2013-03-28 Doug Evans <dje@google.com>
8791 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8792 types hash table until we know we need it.
8794 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8797 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8798 All callers updated.
8799 (dw2_print_stats): Print #read CUs too.
8800 (dump_die_shallow): Print signatured types better.
8802 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8803 info_or_types_section to section. All uses updated.
8804 (struct dwo_unit): Ditto.
8806 2013-03-28 Pedro Alves <palves@redhat.com>
8808 * NEWS (New options): New section.
8809 (New options): Mention set/show remote trace-status-packet.
8810 * remote.c (PACKET_qTStatus): New enumeration value.
8811 (remote_get_trace_status): Skip sending qTStatus if the packet is
8812 disabled. Use packet_ok.
8813 (_initialize_remote): Register a configuration command for
8816 2013-03-28 Doug Evans <dje@google.com>
8818 * symfile.c (find_separate_debug_file): Add comment.
8819 (terminate_after_last_dir_separator): Tweak comment.
8821 * dwarf2read.c (create_partial_symtab): Add forward decl.
8822 (create_partial_symtab): Move to be closer to other psymtab functions.
8823 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8825 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8826 (compute_symtab_includes): Remove unnecessary forward declaration.
8827 (die_needs_namespace): Add comment marking group of functions for
8828 dwarf2 name computation.
8830 * typeprint.c (_initialize_typeprint): Improve type help text.
8832 * python/python.c (finish_python_initialization): Provide suggestion
8833 for how to tell gdb to find its python files.
8835 2013-03-28 Pedro Alves <palves@redhat.com>
8839 * source.c (_initialize_source): Change back "set listsize" to an
8842 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8845 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8847 2013-03-27 Pedro Alves <palves@redhat.com>
8849 * top.c (history_size): Rename to ...
8850 (history_size_setshow_var): ... this. Add comment.
8851 (show_commands): Use readline's 'history_length' instead of
8852 computing the history length by calling history_get in a loop.
8853 (set_history_size_command): Error out for sizes over INT_MAX.
8854 Restore previous history size on invalid size.
8855 (init_history): If HISTSIZE is negative, leave the history size as
8857 (init_main): Adjust.
8859 2013-03-27 Pedro Alves <palves@redhat.com>
8861 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8862 coff_pe_read" command to "set debug coff-pe-read".
8864 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8866 * record.c (command_size_to_target_size): Fix size comparison.
8867 Change parameter type from pointer to integer to integer.
8870 2013-03-27 Pierre Muller <muller@sourceware.org>
8872 * windows-nat.c (handle_output_debug_string): Avoid typecast
8873 from integer of different size warning.
8875 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8877 * windows-nat.c (handle_output_debug_string): Add empty line
8878 after local block variable definition.
8880 2013-03-26 Pedro Alves <palves@redhat.com>
8882 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8883 (net_open): Make 'polls' local unsigned.
8885 2013-03-26 Pedro Alves <palves@redhat.com>
8887 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8888 a zuinteger command instead of uinteger.
8890 2013-03-26 Pedro Alves <palves@redhat.com>
8892 * record-full.c (record_full_insn_num): Make it unsigned.
8893 (record_full_check_insn_num, record_full_message)
8894 (record_full_registers_change, record_full_xfer_partial): Remove
8895 record_full_insn_max_num check (it's always != 0).
8896 (record_full_info, record_full_restore): Use %u as format string.
8897 (): Use %u as format string.
8898 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8899 check (it's always != 0).
8901 2013-03-26 Pedro Alves <palves@redhat.com>
8903 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8904 and "set dcache size" commands zuinteger instead of uinteger.
8906 2013-03-26 Pedro Alves <palves@redhat.com>
8908 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8909 command zuinteger instead of uinteger.
8911 2013-03-26 Pedro Alves <palves@redhat.com>
8913 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8914 zuinteger instead of uinteger.
8916 2013-03-26 Pedro Alves <palves@redhat.com>
8918 * record.c (record_insn_history_size_setshow_var)
8919 (record_call_history_size_setshow_var): New globals.
8920 (command_size_to_target_size): New function.
8921 (cmd_record_insn_history, cmd_record_call_history): Use
8922 command_size_to_target_size instead of cast.
8923 (validate_history_size, set_record_insn_history_size)
8924 (set_record_call_history_size): New functions.
8925 (_initialize_record): Install set_record_insn_history_size and
8926 set_record_call_history_size as "set" hooks of "set record
8927 instruction-history-size" and "set record
8928 function-call-history-size".
8930 2013-03-26 Pedro Alves <palves@redhat.com>
8932 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8933 use with history_max_entries use. Remove FIXME note.
8935 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8937 * record-btrace.c (record_btrace_close): Call
8938 record_btrace_auto_disable.
8940 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8942 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8944 2013-03-25 Doug Evans <dje@google.com>
8946 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8948 2013-03-25 Tom Tromey <tromey@redhat.com>
8951 * c-exp.y (exp): Add new productions for destructors after '.' and
8953 (write_destructor_name): New function.
8955 2013-03-25 Tom Tromey <tromey@redhat.com>
8958 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8959 value_struct_elt, not lookup_struct_elt_type.
8960 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8961 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8962 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8964 2013-03-25 Yao Qi <yao@codesourcery.com>
8966 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8967 instead of '_mkdir'.
8969 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8971 * windows-nat.c (windows_get_absolute_argv0): New function.
8972 * windows-nat.h: Add its prototype.
8974 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8975 Use IS_DIR_SEPARATOR instead of looking for a character inside
8976 SLASH_STRING. Include filenames.h.
8977 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8978 relocate_gdb_directory works when passed gdb_program_name.
8979 Include windows-nat.h.
8981 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8983 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8984 * remote.c (trace_error): Remove the special handling of '2'.
8985 (readchar) <SERIAL_EOF>
8986 (readchar) <SERIAL_ERROR>
8987 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8988 (remote_get_trace_status): Call throw_exception if EX is
8990 * utils.c (perror_with_name): Rename to ...
8991 (throw_perror_with_name): ... here. New parameter errcode, describe it
8992 in the function comment.
8993 (perror_with_name): New function wrapper.
8994 * utils.h (enum errors): New stub declaration.
8995 (throw_perror_with_name): New declaration.
8997 2013-03-22 Pedro Alves <palves@redhat.com>
8998 Yao Qi <yao@codesourcery.com>
8999 Mark Kettenis <kettenis@gnu.org>
9001 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9002 Don't let the user set the value to UINT_MAX directly.
9003 <var_integer>: Don't let the user set the value to INT_MAX
9006 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9008 * remote.c (remote_unpush_target): New function.
9009 (remote_open_1): Remove two pop_target calls, update one comment, add
9010 comment to target_preopen call. Replace pop_target call by
9011 remote_unpush_target call.
9012 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9013 pop_target calls by remote_unpush_target calls.
9015 2013-03-22 Pedro Alves <palves@redhat.com>
9017 * linux-nat.c (linux_child_follow_fork): Don't call
9018 linux_enable_event_reporting.
9019 (linux_handle_extended_wait): Don't call
9020 linux_enable_event_reporting.
9022 2013-03-22 Pedro Alves <palves@redhat.com>
9024 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9025 use it to rewrite the trampoline buffers with type gdb_byte[], and
9026 undefine the macro. Remove char* cast.
9028 2013-03-21 Doug Evans <dje@google.com>
9030 New commands "mt set per-command {space,time,symtab} {on,off}".
9032 * event-top.c: #include "maint.h".
9033 * main.c: #include "maint.h".
9034 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9035 timeval-utils.h, maint.h, cli/cli-setshow.h.
9036 (per_command_time, per_command_space): New static globals.
9037 (per_command_symtab): New static global.
9038 (per_command_setlist, per_command_showlist): New static globals.
9039 (struct cmd_stats): Move here from utils.c.
9040 (set_per_command_time): Renamed from set_display_time in utils.c
9041 and moved here. All callers updated.
9042 (set_per_command_space): Renamed from set_display_space in utils.c
9043 and moved here. All callers updated.
9044 (count_symtabs_and_blocks): New function.
9045 (report_command_stats): Moved here from utils.c. Add support for
9046 printing symtab stats. Only print data if enabled before command
9048 (make_command_stats_cleanup): Ditto.
9049 (sert_per_command_cmd, show_per_command_cmd): New functions.
9050 (_initialize_maint_cmds): Add new commands
9051 mt set per-command {space,time,symtab} {on,off}.
9052 * maint.h: New file.
9053 * top.c: #include "maint.h".
9054 * utils.c (reset_prompt_for_continue_wait_time): New function.
9055 (get_prompt_for_continue_wait_time): New function.
9056 * utils.h (reset_prompt_for_continue_wait_time): Declare
9057 (get_prompt_for_continue_wait_time): Declare.
9058 (make_command_stats_cleanup): Moved to maint.h.
9059 (set_display_time, set_display_space): Moved to maint.h and renamed
9060 to set_per_command_time, set_per_command_space.
9061 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9062 parse_binary_operation and made non-static. Don't call error,
9063 just return an error marker. All callers updated.
9064 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9066 2013-03-21 Tom Tromey <tromey@redhat.com>
9068 * symfile.c (alloc_section_addr_info): Update header. Don't set
9069 'num_sections' field.
9070 (build_section_addr_info_from_section_table): Set 'num_sections'.
9071 (build_section_addr_info_from_bfd): Likewise.
9072 (build_section_addr_info_from_objfile): Remove dead loop
9074 (free_section_addr_info): Unconditionally call xfree.
9075 (relative_addr_info_to_section_offsets, addrs_section_sort)
9076 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9078 (syms_from_objfile_1): Remove dead 'if' condition. Check
9080 (add_symbol_file_command): Set 'num_sections'.
9081 * symfile-mem.c (symbol_file_add_from_memory): Set
9083 * somread.c (som_symfile_offsets): Remove dead loop condition.
9084 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9085 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9087 2013-03-21 Tom Tromey <tromey@redhat.com>
9089 * tracepoint.h (decode_agent_options): Add 'trace_string'
9091 * tracepoint.c (decode_agent_options): Add 'trace_string'
9093 (validate_actionline): Update.
9094 (collect_symbol): Add 'trace_string' argument.
9095 (struct add_local_symbols_data) <trace_string>: New field.
9096 (do_collect_symbol): Update.
9097 (add_local_symbols): Add 'trace_string' argument.
9098 (encode_actions_1): Update.
9099 (trace_dump_actions): Update.
9100 * dwarf2loc.c (access_memory): Update.
9101 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9102 * ax-general.c (new_agent_expr): Update.
9103 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9104 (gen_trace_for_return_address): Add argument.
9105 (trace_kludge, trace_string_kludge): Remove.
9106 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9107 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9108 (gen_trace_for_var): Add 'trace_string' argument.
9109 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9110 (gen_printf, agent_eval_command_one): Update.
9112 2013-03-21 Tom Tromey <tromey@redhat.com>
9115 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9116 Handle FILENAME token.
9118 2013-03-21 Tom Tromey <tromey@redhat.com>
9120 * c-exp.y (YYPRINT): Define.
9121 (c_print_token): New function.
9123 2013-03-21 Tom Tromey <tromey@redhat.com>
9125 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9127 2013-03-21 Yao Qi <yao@codesourcery.com>
9129 * ctf.c: Include "gdb_stat.h".
9130 [USE_WIN32API]: New macro 'mkdir'.
9131 (ctf_start): Use permission bits macros if they are defined.
9133 2013-03-20 Keith Seitz <keiths@redhat.com>
9135 * breakpoint.h (struct breakpoint): Add comment to
9136 extra_string indicating that this member is mallod'd.
9137 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9139 2013-03-20 Pedro Alves <palves@redhat.com>
9143 * cli/cli-setshow.c (do_set_command)
9144 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9145 the result of parsing the command argument. Throw error if the
9146 value is greater than UINT_MAX. Print the invalid value with
9148 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9149 result of parsing the command argument. Throw error if the value
9150 is greater than INT_MAX, not greater or equal. Also throw error
9151 if the value is less than INT_MIN. Print the invalid value with
9153 <var_zuinteger_unlimited>: Throw error if the value is greater
9154 than INT_MAX, not greater or equal.
9155 (do_show_command) <var_integer, var_zinteger,
9156 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9158 2013-03-20 Tom Tromey <tromey@redhat.com>
9160 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9162 * dwarf2read.c (read_func_scope): Remove old FIXME.
9163 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9165 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9166 Unconditionally call via computed ops, if possible.
9167 * printcmd.c (address_info): Unconditionally call via computed ops,
9169 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9171 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9172 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9175 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9176 Tom Tromey <tromey@redhat.com>
9179 * coffread.c (coff_register_index): New global.
9180 (process_coff_symbol, coff_read_enum_type): Set
9181 SYMBOL_ACLASS_INDEX.
9182 (_initialize_coffread): Initialize new global.
9183 * dwarf2loc.c (locexpr_find_frame_base_location)
9184 (dwarf2_block_frame_base_locexpr_funcs)
9185 (loclist_find_frame_base_location)
9186 (dwarf2_block_frame_base_loclist_funcs): New.
9187 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9188 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9189 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9190 (dwarf2_block_frame_base_loclist_funcs): New.
9191 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9192 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9194 (read_func_scope): Update.
9195 (fixup_go_packaging, mark_common_block_symbol_computed)
9196 (var_decode_location, new_symbol_full, dwarf2_const_value):
9197 Set SYMBOL_ACLASS_INDEX.
9198 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9199 (_initialize_dwarf2_read): Initialize new globals.
9200 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9201 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9202 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9204 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9205 (_initialize_mdebugread): Initialize new globals.
9206 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9207 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9208 (stab_register_index, stab_regparm_index): New globals.
9209 (define_symbol, read_enum_type, common_block_end): Set
9210 SYMBOL_ACLASS_INDEX.
9211 (_initialize_stabsread): Initialize new globals.
9212 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9214 (MAX_SYMBOL_IMPLS): New define.
9215 (register_symbol_computed_impl, register_symbol_block_impl)
9216 (register_symbol_register_impl)
9217 (initialize_ordinary_address_classes): New functions.
9218 (_initialize_symtab): Call initialize_ordinary_address_classes.
9219 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9220 (struct symbol_impl): New.
9221 (SYMBOL_ACLASS_BITS): New define.
9222 (struct symbol) <aclass, ops>: Remove fields.
9223 <aclass_index>: New field.
9224 (symbol_impls): Declare.
9225 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9226 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9227 (register_symbol_computed_impl, register_symbol_block_impl)
9228 (register_symbol_register_impl): Declare.
9229 (struct symbol_computed_ops): Add location_has_loclist.
9230 (struct symbol_block_ops): New.
9231 (SYMBOL_BLOCK_OPS): New.
9232 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9234 2013-03-20 Tom Tromey <tromey@redhat.com>
9236 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9237 (print_partial_symbols, recursively_search_psymtabs): Use
9240 2013-03-20 Pierre Muller <muller@sourceware.org>
9242 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9243 addtion, subtraction, multiplication and division binary operator.
9245 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9248 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9249 * bsd-kvm.c (bsd_kvm_close): Likewise.
9250 * bsd-uthread.c (bsd_uthread_close): Likewise.
9251 * corelow.c (core_close): Likewise.
9252 (core_close_cleanup): Remove parameter quitting from a caller.
9253 * event-top.c (async_disconnect): Likewise.
9254 * exec.c (exec_close_1): Remove parameter quitting.
9255 * go32-nat.c (go32_close): Likewise.
9256 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9257 parameter quitting from a caller.
9258 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9260 (mips_linux_close): Remove parameter quitting. Remove parameter
9261 quitting from a caller.
9262 * monitor.c (monitor_close): Remove parameter quitting.
9263 * monitor.h (monitor_close): Likewise.
9264 * record-btrace.c (record_btrace_close): Likewise.
9265 * record-full.c (record_full_close): Likewise.
9266 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9267 it also from fprintf_unfiltered.
9268 * remote-mips.c (mips_close): Remove parameter quitting.
9269 (mips_detach): Remove parameter quitting from a caller.
9270 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9271 (gdbsim_close): Remove duplicate function comment. Remove parameter
9272 quitting and remove it also from printf_filtered.
9273 * remote.c (remote_close): Remove parameter quitting.
9274 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9275 * target.c (update_current_target): Remove parameter int from to_close
9277 (push_target, unpush_target, pop_target): Remove parameter quitting from
9279 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9280 Remove parameter quitting from a caller.
9281 (target_preopen): Remove parameter quitting from a caller.
9282 (target_close): Remove parameter quitting. Remove parameter quitting
9283 from a caller two times. Remove parameter quitting also from
9285 * target.h (struct target_ops): Remove parameter quitting and as int
9286 from fields to_xclose and to_close.
9287 (extern struct target_ops current_target):
9288 (target_close, pop_all_targets): Remove parameter quitting. Update the
9290 (pop_all_targets_above): Remove parameter quitting.
9291 * top.c (quit_target): Remove parameter quitting from a caller.
9292 * tracepoint.c (tfile_close): Remove parameter quitting.
9293 * windows-nat.c (windows_close): Remove parameter quitting.
9295 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9297 * windows-nat.c (handle_output_debug_string): Replace call
9298 to string_to_core_addr with call to strtoull.
9300 2013-03-20 Yao Qi <yao@codesourcery.com>
9302 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9303 and write it to CTF metadata.
9305 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9307 * windows-nat.c (handle_output_debug_string): Change type of n to
9308 SIZE_T to avoid crash on 64 bit systems.
9310 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9312 * python/python-internal.h (HAVE_SNPRINTF)
9313 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9314 about redefinition of snprintf by pyerrors.h.
9316 2013-03-15 Steve Ellcey <sellcey@mips.com>
9318 * remote-sim.c (sim_command_completer): Make char arguments const.
9320 2013-03-15 Tom Tromey <tromey@redhat.com>
9323 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9325 2013-03-14 Tom Tromey <tromey@redhat.com>
9327 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9329 (get_file_crc): Move from symfile.c.
9330 (gdb_bfd_crc): New function.
9331 * gdb_bfd.h (gdb_bfd_crc): Declare.
9332 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9333 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9334 (separate_debug_file_exists): Use gdb_bfd_crc.
9336 2013-03-14 Tom Tromey <tromey@redhat.com>
9338 * symfile.c (get_debug_link_info): Remove.
9339 (find_separate_debug_file_by_debuglink): Use
9340 bfd_get_debug_link_info.
9342 2013-03-14 Tom Tromey <tromey@redhat.com>
9344 * symtab.c (error_in_psymtab_expansion): New function.
9345 (lookup_symbol_aux_quick)
9346 (basic_lookup_transparent_type_quick): Remove "last resort"
9347 code. Use error_in_psymtab_expansion.
9349 2013-03-14 Doug Evans <dje@google.com>
9350 Jan Kratochvil <jan.kratochvil@redhat.com>
9352 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9353 any successful compare_filenames_for_search or FILENAME_CMP.
9354 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9355 * symtab.c (iterate_over_some_symtabs): Likewise.
9357 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9359 * source.c (print_source_lines_base): Make a local copy of
9362 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9363 Jan Kratochvil <jan.kratochvil@redhat.com>
9365 * source.c (print_source_lines_base): Suppress "file" for TUI.
9367 2013-03-14 Keith Seitz <keiths@redhat.com>
9368 Alan Matsuoka <alanm@redhat.com>
9372 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9374 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9377 2013-03-14 Yao Qi <yao@codesourcery.com>
9379 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9380 status to tfile if trace is stopped by command 'tstop'.
9382 2013-03-14 Yao Qi <yao@codesourcery.com>
9384 * tracepoint.c (tfile_write_status): Write trace notes and user
9385 name into tfile if they are not NULL.
9387 2013-03-14 Hui Zhu <hui@codesourcery.com>
9388 Yao Qi <yao@codesourcery.com>
9390 * Makefile.in (REMOTE_OBS): Add ctf.o.
9391 (SFILES): Add ctf.c.
9392 (HFILES_NO_SRCDIR): Add ctf.h.
9393 * ctf.c, ctf.h: New files.
9394 * tracepoint.c: Include 'ctf.h'.
9395 (collect_pseudocommand): Remove static.
9396 (trace_save_command): Parse option "-ctf".
9397 Produce different trace file writers per option.
9398 Adjust output message.
9399 (trace_save_tfile, trace_save_ctf): New.
9400 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9401 * mi/mi-main.c: Include 'ctf.h'.
9402 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9403 trace_save_tfile or trace_save_ctf.
9404 * NEWS: Mention these changes.
9406 2013-03-14 Yao Qi <yao@codesourcery.com>
9408 * tracepoint.c (trace_file_writer_xfree): New.
9409 (struct tfile_writer_data): New.
9410 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9411 (tfile_write_header, tfile_write_regblock_type): New.
9412 (tfile_write_status, tfile_write_uploaded_tsv): New.
9413 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9414 (tfile_write_raw_data, (tfile_end): New.
9415 (tfile_write_ops): New global variable.
9416 (TRACE_WRITE_R_BLOCK): New macro.
9417 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9418 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9419 (TRACE_WRITE_V_BLOCK): New macro.
9420 (trace_save): Add extra one parameter WRITER. Make it static.
9421 Use WRITER to writer trace.
9422 (tfile_trace_file_writer_new): New.
9423 (trace_save_command): Caller update.
9424 (trace_save_tfile): Write trace data in TFILE format.
9425 * tracepoint.h (struct trace_frame_write_ops): New.
9426 (struct trace_file_write_ops): New.
9427 (struct trace_file_writer): New.
9428 (trace_save): Remove its declaration.
9429 (trace_save_tfile): Declare it.
9430 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9431 instead of trace_save.
9433 2013-03-13 Pedro Alves <palves@redhat.com>
9435 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9437 2013-03-13 Pedro Alves <palves@redhat.com>
9439 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9441 * demangle.c (current_demangling_style_string): Make it const.
9442 (set_demangling_command): Assert the demangling style is known.
9443 Remove all handling of unknown styles. Set
9444 'current_demangling_style_string' to an element of the
9445 demangling_style_names array.
9446 (set_demangling_style): Delete.
9447 (_initialize_demangler): Set current_demangling_style_string to the
9448 element of the demangling_style_names array that corresponds to
9449 the default demangling style. Remove FIXME note. Don't call
9450 set_demangling_style.
9451 * gdb-demangle.h (set_demangling_style): Remove declaration.
9453 2013-03-13 Pedro Alves <palves@redhat.com>
9455 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9457 (ada_make_symbol_completion_list): Make "text0" parameter const.
9458 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9459 * breakpoint.c (condition_completer): Make "text" and "word"
9460 parameters const. Adjust.
9461 (check_tracepoint_command): Adjust to validate_actionline
9463 (catch_syscall_completer): Make "text" and "word" parameters
9465 * cli/cli-cmds.c (show_user): Make "comname" local const.
9466 (valid_command_p): Make "command" parameter const.
9467 (alias_command): Make "alias_prefix" and "command_prefix" locals
9469 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9470 (add_alias_cmd): Make "name" and "oldname" parameters const.
9471 Adjust. No longer make copy of OLDNAME.
9472 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9473 (add_setshow_cmd_full, add_setshow_enum_cmd)
9474 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9475 (add_setshow_filename_cmd, add_setshow_string_cmd)
9476 (add_setshow_string_noescape_cmd)
9477 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9478 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9479 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9480 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9481 Make "name" parameter const.
9482 (help_cmd): Rename "command" parameter to "arg". New const local
9484 (find_cmd): Make "command" parameter const.
9485 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9486 deprecated_cmd_warning prototype change.
9487 (undef_cmd_error): Make "cmdtype" parameter const.
9488 (lookup_cmd): Make "line" parameter const.
9489 (deprecated_cmd_warning): Change type of "text" parameter to
9490 pointer to const char, from pointer to pointer to char. Adjust.
9491 (lookup_cmd_composition): Make "text" parameter const.
9492 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9494 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9496 * cli/cli-script.c (validate_comname): Make "tem" local const.
9497 (define_command): New const local "tem_c". Use it in calls to
9499 (document_command): Make "tem" and "comfull" locals const.
9500 (show_user_1): Make "prefix" and "name" parameters const.
9501 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9503 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9504 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9505 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9506 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9507 (complete_on_enum, add_setshow_enum_cmd)
9508 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9509 (add_setshow_filename_cmd, add_setshow_string_cmd)
9510 (add_setshow_string_noescape_cmd)
9511 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9512 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9513 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9514 Change prototypes, constifying strings.
9515 * completer.c (noop_completer, filename_completer): Make "text"
9516 and "prefix" parameters const.
9517 (location_completer, expression_completer)
9518 (complete_line_internal): Make "text" and "prefix" parameters
9520 (command_completer, signal_completer): Make "text" and "prefix"
9522 * completer.h (noop_completer, filename_completer)
9523 (expression_completer, location_completer, command_completer)
9524 (signal_completer): Change prototypes.
9525 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9527 * cp-abi.c (cp_abi_completer): Likewise.
9528 * expression.h (parse_expression_for_completion): Change
9530 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9532 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9533 * infrun.c (handle_completer): Make "text" and "word" parameters
9535 * interps.c (interpreter_completer): Make "text" and "word"
9537 * language.h (struct language_defn)
9538 <la_make_symbol_completion_list>: Make "text" and "word"
9540 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9541 (parse_exp_in_context): Rename to ...
9542 (parse_exp_in_context_1): ... this.
9543 (parse_exp_in_context): Reimplement, with const hack from
9545 (parse_expression_for_completion): Make "string" parameter const.
9546 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9547 to pointer to const char. Adjust.
9548 (print_command_1): Make "exp" parameter const.
9549 (output_command): Rename to ...
9550 (output_command_const): ... this. Make "exp" parameter const.
9551 (output_command): Reimplement.
9552 (x_command): Adjust.
9553 (display_command): Rename "exp" parameter to "arg". New "exp"
9554 local, const version of "arg".
9555 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9556 "cmd_name" local const.
9557 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9559 (cmdpy_completer): Make "text" and "word" parameters const.
9560 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9561 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9563 * remote.c (_initialize_remote): Make "cmd_name" local const.
9564 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9565 parameters const. Adjust.
9566 (completion_list_add_fields): Make "sym_text", "text" and "word"
9568 (struct add_name_data) <sym_text, text, word>: Make fields const.
9569 (default_make_symbol_completion_list_break_on): Make "text" and
9570 "word" parameters const. Adjust locals.
9571 (default_make_symbol_completion_list)
9572 (make_symbol_completion_list, make_symbol_completion_type)
9573 (make_symbol_completion_list_fn): Make "text" and "word"
9575 (make_file_symbol_completion_list): Make "text", "word" and
9576 "srcfile" parameters const. Adjust locals.
9577 (add_filename_to_list): Make "text" and "word" parameters const.
9578 (struct add_partial_filename_data) <text, word>: Make fields
9580 (make_source_files_completion_list): Make "text" and "word"
9582 * symtab.h (default_make_symbol_completion_list_break_on)
9583 (default_make_symbol_completion_list, make_symbol_completion_list)
9584 (make_symbol_completion_type enum type_code)
9585 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9586 (make_source_files_completion_list): Change prototype.
9587 * top.c (execute_command): Adjust to pass pointer to pointer to
9588 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9590 (set_verbose): Make "cmdname" local const.
9591 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9593 (validate_actionline): Make "line" parameter a pointer to const
9595 (encode_actions_1): Make "action_exp" local const, and adjust.
9596 (encode_actions): Adjust.
9597 (replace_comma): Delete.
9598 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9599 const, and adjust. Don't frob the action string while splitting
9600 it at commas. Instead, make a copy of each split substring in
9602 (trace_dump_command): Adjust to validate_actionline prototype
9604 * tracepoint.h (decode_agent_options, decode_agent_options)
9605 (encode_actions, validate_actionline): Change prototypes.
9606 * valprint.h (output_command): Delete declaration.
9607 (output_command_const): Declare.
9608 * value.c (function_destroyer): Cast const away in xfree call.
9610 2013-03-13 Pedro Alves <palves@redhat.com>
9612 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9613 rather than casting 'const char * const *' to 'const char **'.
9614 * ada-lex.l (processInt): Make "trailer" local const. Remove
9615 'const char **' cast.
9616 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9617 locals, and use those as strtol output pointer, instead than doing
9618 invalid casts to from 'const char **' to 'char **'.
9619 (_initialize_demangle): Remove cast.
9620 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9621 locals, and use those as strtol output pointer, instead than doing
9622 invalid casts to from 'const char **' to 'char **'.
9623 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9625 * stap-probe.c (stap_parse_register_operand)
9626 (stap_parse_single_operand): Likewise.
9628 2013-03-13 Yao Qi <yao@codesourcery.com>
9630 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9631 the last matched 'V' blcok in trace frame.
9633 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9635 * NEWS: Create a new section for the next release branch.
9636 Rename the section of the current branch, now that it has
9639 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9641 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9642 * version.in: Bump version to 7.6.50.20130312-cvs.
9644 2013-03-12 Keith Seitz <keiths@redhat.com>
9646 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9647 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9648 Remove temporary copy of input string.
9649 (mi_execute_command_wrapper): Make "cmd" const.
9650 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9651 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9653 (mi_parse): Make "cmd" const.
9655 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9657 2013-03-12 Keith Seitz <keiths@redhat.com>
9659 * ada-lang.c (ada_read_renaming_var_value): Pass const
9660 pointer to expression string to parse_exp_1.
9661 (create_excep_cond_exprs): Likewise.
9662 * ax-gdb.c (agent_eval_command_one): Likewise.
9663 (maint_agent_printf_command): Likewise.
9664 Constify much of the string handling/parsing.
9665 * breakpoint.c (set_breakpoint_condition): Pass const
9666 pointer to expression string to parse_exp_1.
9667 (update_watchpoint): Likewise.
9668 (parse_cmd_to_aexpr): Constify string handling.
9669 Pass const pointer to parse_exp_1.
9670 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9671 (find_condition_and_thread): Likewise.
9673 (watch_command_1): Make "arg" const.
9674 Constify string handling.
9675 Copy the expression string instead of changing the input
9677 (update_breakpoint_location): Pass const pointer to
9679 * eval.c (parse_and_eval_address): Make "exp" const.
9680 (parse_to_comma_and_eval): Make "expp" const.
9681 (parse_and_eval): Make "exp" const.
9682 * expression.h (parse_expression): Make argument const.
9683 (parse_exp_1): Make first argument const.
9684 * findcmd.c (parse_find_args): Treat "args" as const.
9685 * linespec.c (parse_linespec): Pass const pointer to
9686 linespec_expression_to_pc.
9687 (linespec_expression_to_pc): Make "exp_ptr" const.
9688 * parse.c (parse_exp_1): Make "stringptr" const.
9689 Make a copy of the expression to pass to parse_exp_in_context until
9690 this whole interface can be constified.
9691 (parse_expression): Make "string" const.
9692 * printcmd.c (ui_printf): Treat "arg" as const.
9693 Handle const strings.
9694 * tracepoint.c (validate_actionline): Pass const pointer to
9695 all calls to parse_exp_1.
9696 (encode_actions_1): Likewise.
9697 * value.h (parse_to_comma_and_eval): Make argument const.
9698 (parse_and_eval_address): Likewise.
9699 (parse_and_eval): Likewise.
9700 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9701 (varobj_set_value): Likewise.
9702 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9703 constify string handling.
9704 Pass const pointers to parse_and_eval_address and
9705 parse_to_comman_and_eval.
9706 * cli/cli-utils.c (skip_to_space): Rename to ...
9707 (skip_to_space_const): ... this. Handle const strings.
9708 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9709 skip_to_space_const.
9710 (skip_to_space_const): Declare.
9711 * common/format.c (parse_format_string): Make "arg" const.
9712 Handle const strings.
9713 * common/format.h (parse_format_string): Make "arg" const.
9714 * gdbserver/ax.c (ax_printf): Make "format" const.
9715 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9716 of the expression string.
9718 2013-03-12 Hui Zhu <hui@codesourcery.com>
9720 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9722 2013-03-12 Yao Qi <yao@codesourcery.com>
9723 Hui Zhu <hui@codesourcery.com>
9725 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9726 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9729 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9731 * ada-lex.l (rules): Only recognize 'thread' as a
9732 delimiter when followed by numerals, as for c-exp.y.
9733 Use new rewind_to_char function to rewind the input for
9734 expression-delimiting tokens.
9735 (rewind_to_char): New function.
9737 2013-03-11 Pedro Alves <palves@redhat.com>
9738 Jan Kratochvil <jan.kratochvil@redhat.com>
9740 * configure: Regenerate.
9741 * configure.ac (check dynamic export flag): Link python test with
9744 2013-03-11 Doug Evans <dje@google.com>
9745 Keith Seitz <keiths@redhat.com>
9747 * linespec.c (find_linespec_symbols): Call find_function_symbols
9748 first, and then call lookup_prefix_sym/find_method.
9750 2013-03-11 Pedro Alves <palves@redhat.com>
9752 * charset.c (convert_between_encodings): Don't cast between
9753 different pointer to pointer types. Instead, make the 'inp' local
9754 be of the type iconv expects.
9755 (wchar_iterate): Don't cast between different pointer to pointer
9756 types. Instead, use new pointer local of the type iconv expects.
9757 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9758 Add new local of type char pointer, and use it to get a
9759 char/string view of the byte buffer, instead of casting between
9760 pointer to pointer types.
9762 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9764 * remote.c (remote_set_trace_buffer_size): Move != operator
9765 to the start of next line to fix an ARI warning.
9767 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9769 * NEWS: Add record changes.
9771 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9773 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9774 the instruction history disassembly.
9775 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9776 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9778 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9780 * Makefile.in (SFILES): Add record-btrace.c
9781 (COMMON_OBS): Add record-btrace.o
9782 * record-btrace.c: New.
9783 * objfiles.c: Include btrace.h.
9784 (free_objfile): call btrace_free_objfile.
9786 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9788 * target.c (target_call_history, target_call_history_from,
9789 target_call_history_range): New.
9790 * target.h (target_ops) <to_call_history, to_call_history_from,
9791 to_call_history_range>: New fields.
9792 (target_call_history, target_call_history_from,
9793 target_call_history_range): New declaration.
9794 * record.c (get_call_history_modifiers, cmd_record_call_history,
9795 record_call_history_size): New.
9796 (_initialize_record): Add the "record function-call-history" command.
9797 Add "set/show record function-call-history-size" commands.
9798 * record.h (record_print_flag): New.
9800 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9802 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9803 to_insn_history_range>: New fields.
9804 (target_insn_history): New.
9805 (target_insn_history_from): New.
9806 (target_insn_history_range): New.
9807 * target.c (target_insn_history): New.
9808 (target_insn_history_from): New.
9809 (target_insn_history_range): New.
9810 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9811 (record_insn_history_size): New.
9812 (get_insn_number): New.
9813 (get_context_size): New.
9815 (get_insn_history_modifiers): New.
9816 (cmd_record_insn_history): New.
9817 (_initialize_record): Add "set/show record instruction-history-size"
9818 command. Add "record instruction-history" command.
9820 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9822 * record.h (record_disconnect): New.
9823 (record_detach): New.
9824 (record_mourn_inferior): New.
9826 * record-full.c (record_disconnect, record_detach,
9827 record_mourn_inferior, record_kill): Move to...
9828 * record.c: ...here.
9831 (record_unpush): New.
9832 (cmd_record_stop): Call record_stop. Replace unpush_target
9833 call with record_unpush call.
9834 (record_disconnect, record_detach): Assert that the target
9835 is of record stratum. Call record_unpush, record_stop, and
9837 (record_mourn_inferior, record_kill): Assert that the target
9838 is of record stratum. Call record_unpush and DEBUG.
9840 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9842 * record-full.h, record-full.c (record_memory_query): Rename
9844 (record_full_memory_query): ...this. Update all users.
9845 (record_arch_list_add_reg): Rename to ...
9846 (record_full_arch_list_add_reg): ...this. Update all users.
9847 (record_arch_list_add_mem): Rename to ...
9848 (record_full_arch_list_add_mem): ...this. Update all users.
9849 (record_arch_list_add_end): Rename to ...
9850 (record_full_arch_list_add_end): ...this. Update all users.
9851 (record_gdb_operation_disable_set): Rename to ...
9852 (record_full_gdb_operation_disable_set): ...this.
9855 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9857 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9858 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9859 (RECORD_IS_REPLAY): Renamed to ...
9860 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9861 (RECORD_FILE_MAGIC): Renamed to ...
9862 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9863 (record_mem_entry): Renamed to ...
9864 (record_full_mem_entry): ... this. Updated all users.
9865 (record_reg_entry): Renamed to ...
9866 (record_full_reg_entry): ... this. Updated all users.
9867 (record_end_entry): Renamed to ...
9868 (record_full_end_entry): ... this. Updated all users.
9869 (record_type) <record_end, record_reg, record_mem>: Renamed
9871 (record_full_type) <record_full_end, record_full_reg,
9872 record_full_mem>: ... this. Updated all users.
9873 (record_entry): Renamed to ...
9874 (record_full_entry): ... this. Updated all users.
9875 (record_core_buf_entry): Renamed to ...
9876 (record_full_core_buf_entry): ... this. Updated all users.
9877 (record_core_regbuf): Renamed to ...
9878 (record_full_core_regbuf): ... this. Updated all users.
9879 (record_core_start): Renamed to ...
9880 (record_full_core_start): ... this. Updated all users.
9881 (record_core_end): Renamed to ...
9882 (record_full_core_end): ... this. Updated all users.
9883 (record_core_buf_list): Renamed to ...
9884 (record_full_core_buf_list): ... this. Updated all users.
9885 (record_first): Renamed to ...
9886 (record_full_first): ... this. Updated all users.
9887 (record_list): Renamed to ...
9888 (record_full_list): ... this. Updated all users.
9889 (record_arch_list_head): Renamed to ...
9890 (record_full_arch_list_head): ... this. Updated all users.
9891 (record_arch_list_tail): Renamed to ...
9892 (record_full_arch_list_tail): ... this. Updated all users.
9893 (record_stop_at_limit): Renamed to ...
9894 (record_full_stop_at_limit): ... this. Updated all users.
9895 (record_insn_max_num): Renamed to ...
9896 (record_full_insn_max_num): ... this. Updated all users.
9897 (record_insn_num): Renamed to ...
9898 (record_full_insn_num): ... this. Updated all users.
9899 (record_insn_count): Renamed to ...
9900 (record_full_insn_count): ... this. Updated all users.
9901 (record_ops): Renamed to ...
9902 (record_full_ops): ... this. Updated all users.
9903 (record_core_ops): Renamed to ...
9904 (record_full_core_ops): ... this. Updated all users.
9905 (set_record_cmdlist): Renamed to ...
9906 (set_record_full_cmdlist): ... this. Updated all users.
9907 (show_record_cmdlist): Renamed to ...
9908 (show_record_full_cmdlist): ... this. Updated all users.
9909 (record_cmdlist): Renamed to ...
9910 (record_full_cmdlist): ... this. Updated all users.
9911 (record_beneath_to_resume_ops): Renamed to ...
9912 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9913 (record_beneath_to_resume): Renamed to ...
9914 (record_full_beneath_to_resume): ... this. Updated all users.
9915 (record_beneath_to_wait_ops): Renamed to ...
9916 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9917 (record_beneath_to_wait): Renamed to ...
9918 (record_full_beneath_to_wait): ... this. Updated all users.
9919 (record_beneath_to_store_registers_ops): Renamed to ...
9920 (record_full_beneath_to_store_registers_ops): ... this.
9922 (record_beneath_to_store_registers): Renamed to ...
9923 (record_full_beneath_to_store_registers): ... this.
9925 (record_beneath_to_xfer_partial_ops): Renamed to ...
9926 (record_full_beneath_to_xfer_partial_ops): ... this.
9928 (record_beneath_to_xfer_partial): Renamed to ...
9929 (record_full_beneath_to_xfer_partial): ... this.
9931 (record_beneath_to_insert_breakpoint): Renamed to ...
9932 (record_full_beneath_to_insert_breakpoint): ... this.
9934 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9935 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9937 (record_beneath_to_stopped_data_address): Renamed to ...
9938 (record_full_beneath_to_stopped_data_address): ... this.
9940 (record_beneath_to_async): Renamed to ...
9941 (record_full_beneath_to_async): ... this. Updated all users.
9942 (record_goto_insn): Renamed to ...
9943 (record_full_goto_insn): ... this. Updated all users.
9944 (record_save): Renamed to ...
9945 (record_full_save): ... this. Updated all users.
9946 (record_reg_alloc): Renamed to ...
9947 (record_full_reg_alloc): ... this. Updated all users.
9948 (record_reg_release): Renamed to ...
9949 (record_full_reg_release): ... this. Updated all users.
9950 (record_mem_alloc): Renamed to ...
9951 (record_full_mem_alloc): ... this. Updated all users.
9952 (record_mem_release): Renamed to ...
9953 (record_full_mem_release): ... this. Updated all users.
9954 (record_end_alloc): Renamed to ...
9955 (record_full_end_alloc): ... this. Updated all users.
9956 (record_end_release): Renamed to ...
9957 (record_full_end_release): ... this. Updated all users.
9958 (record_entry_release): Renamed to ...
9959 (record_full_entry_release): ... this. Updated all users.
9960 (record_list_release): Renamed to ...
9961 (record_full_list_release): ... this. Updated all users.
9962 (record_list_release_following): Renamed to ...
9963 (record_full_list_release_following): ... this.
9965 (record_list_release_first): Renamed to ...
9966 (record_full_list_release_first): ... this. Updated all users.
9967 (record_arch_list_add): Renamed to ...
9968 (record_full_arch_list_add): ... this. Updated all users.
9969 (record_get_loc): Renamed to ...
9970 (record_full_get_loc): ... this. Updated all users.
9971 (record_check_insn_num): Renamed to ...
9972 (record_full_check_insn_num): ... this. Updated all users.
9973 (record_arch_list_cleanups): Renamed to ...
9974 (record_full_arch_list_cleanups): ... this. Updated all users.
9975 (record_message): Renamed to ...
9976 (record_full_message): ... this. Updated all users.
9977 (record_message_wrapper): Renamed to ...
9978 (record_full_message_wrapper): ... this. Updated all users.
9979 (record_message_wrapper_safe): Renamed to ...
9980 (record_full_message_wrapper_safe): ... this. Updated all users.
9981 (record_gdb_operation_disable): Renamed to ...
9982 (record_full_gdb_operation_disable): ... this. Updated all users.
9983 (record_hw_watchpoint): Renamed to ...
9984 (record_full_hw_watchpoint): ... this. Updated all users.
9985 (record_exec_insn): Renamed to ...
9986 (record_full_exec_insn): ... this. Updated all users.
9987 (record_restore): Renamed to ...
9988 (record_full_restore): ... this. Updated all users.
9989 (record_async_inferior_event_token): Renamed to ...
9990 (record_full_async_inferior_event_token): ... this.
9992 (record_async_inferior_event_handler): Renamed to ...
9993 (record_full_async_inferior_event_handler): ... this.
9995 (record_core_open_1): Renamed to ...
9996 (record_full_core_open_1): ... this. Updated all users.
9997 (record_open_1): Renamed to ...
9998 (record_full_open_1): ... this. Updated all users.
9999 (record_open): Renamed to ...
10000 (record_full_open): ... this. Updated all users.
10001 (record_close): Renamed to ...
10002 (record_full_close): ... this. Updated all users.
10003 (record_resume_step): Renamed to ...
10004 (record_full_resume_step): ... this. Updated all users.
10005 (record_resumed): Renamed to ...
10006 (record_full_resumed): ... this. Updated all users.
10007 (record_execution_dir): Renamed to ...
10008 (record_full_execution_dir): ... this. Updated all users.
10009 (record_resume): Renamed to ...
10010 (record_full_resume): ... this. Updated all users.
10011 (record_get_sig): Renamed to ...
10012 (record_full_get_sig): ... this. Updated all users.
10013 (record_sig_handler): Renamed to ...
10014 (record_full_sig_handler): ... this. Updated all users.
10015 (record_wait_cleanups): Renamed to ...
10016 (record_full_wait_cleanups): ... this. Updated all users.
10017 (record_wait_1): Renamed to ...
10018 (record_full_wait_1): ... this. Updated all users.
10019 (record_wait): Renamed to ...
10020 (record_full_wait): ... this. Updated all users.
10021 (record_stopped_by_watchpoint): Renamed to ...
10022 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10023 (record_disconnect): Renamed to ...
10024 (record_full_disconnect): ... this. Updated all users.
10025 (record_detach): Renamed to ...
10026 (record_full_detach): ... this. Updated all users.
10027 (record_mourn_inferior): Renamed to ...
10028 (record_full_mourn_inferior): ... this. Updated all users.
10029 (record_kill): Renamed to ...
10030 (record_full_kill): ... this. Updated all users.
10031 (record_stopped_data_address): Renamed to ...
10032 (record_full_stopped_data_address): ... this. Updated all users.
10033 (record_registers_change): Renamed to ...
10034 (record_full_registers_change): ... this. Updated all users.
10035 (record_store_registers): Renamed to ...
10036 (record_full_store_registers): ... this. Updated all users.
10037 (record_xfer_partial): Renamed to ...
10038 (record_full_xfer_partial): ... this. Updated all users.
10039 (record_breakpoint): Renamed to ...
10040 (record_full_breakpoint): ... this. Updated all users.
10041 (record_breakpoint_p): Renamed to ...
10042 (record_full_breakpoint_p): ... this. Updated all users.
10043 (record_breakpoints): Renamed to ...
10044 (record_full_breakpoints): ... this. Updated all users.
10045 (record_sync_record_breakpoints): Renamed to ...
10046 (record_full_sync_record_breakpoints): ... this.
10048 (record_init_record_breakpoints): Renamed to ...
10049 (record_full_init_record_breakpoints): ... this.
10051 (record_insert_breakpoint): Renamed to ...
10052 (record_full_insert_breakpoint): ... this. Updated all users.
10053 (record_remove_breakpoint): Renamed to ...
10054 (record_full_remove_breakpoint): ... this. Updated all users.
10055 (record_can_execute_reverse): Renamed to ...
10056 (record_full_can_execute_reverse): ... this. Updated all users.
10057 (record_get_bookmark): Renamed to ...
10058 (record_full_get_bookmark): ... this. Updated all users.
10059 (record_goto_bookmark): Renamed to ...
10060 (record_full_goto_bookmark): ... this. Updated all users.
10061 (record_async): Renamed to ...
10062 (record_full_async): ... this. Updated all users.
10063 (record_can_async_p): Renamed to ...
10064 (record_full_can_async_p): ... this. Updated all users.
10065 (record_is_async_p): Renamed to ...
10066 (record_full_is_async_p): ... this. Updated all users.
10067 (record_execution_direction): Renamed to ...
10068 (record_full_execution_direction): ... this. Updated all users.
10069 (record_info): Renamed to ...
10070 (record_full_info): ... this. Updated all users.
10071 (record_delete): Renamed to ...
10072 (record_full_delete): ... this. Updated all users.
10073 (record_is_replaying): Renamed to ...
10074 (record_full_is_replaying): ... this. Updated all users.
10075 (record_goto_entry): Renamed to ...
10076 (record_full_goto_entry): ... this. Updated all users.
10077 (record_goto_begin): Renamed to ...
10078 (record_full_goto_begin): ... this. Updated all users.
10079 (record_goto_end): Renamed to ...
10080 (record_full_goto_end): ... this. Updated all users.
10081 (record_goto): Renamed to ...
10082 (record_full_goto): ... this. Updated all users.
10083 (init_record_ops): Renamed to ...
10084 (init_record_full_ops): ... this. Updated all users.
10085 (record_core_resume): Renamed to ...
10086 (record_full_core_resume): ... this. Updated all users.
10087 (record_core_kill): Renamed to ...
10088 (record_full_core_kill): ... this. Updated all users.
10089 (record_core_fetch_registers): Renamed to ...
10090 (record_full_core_fetch_registers): ... this. Updated all users.
10091 (record_core_prepare_to_store): Renamed to ...
10092 (record_full_core_prepare_to_store): ... this. Updated all users.
10093 (record_core_store_registers): Renamed to ...
10094 (record_full_core_store_registers): ... this. Updated all users.
10095 (record_core_xfer_partial): Renamed to ...
10096 (record_full_core_xfer_partial): ... this. Updated all users.
10097 (record_core_insert_breakpoint): Renamed to ...
10098 (record_full_core_insert_breakpoint): ... this. Updated all users.
10099 (record_core_remove_breakpoint): Renamed to ...
10100 (record_full_core_remove_breakpoint): ... this. Updated all users.
10101 (record_core_has_execution): Renamed to ...
10102 (record_full_core_has_execution): ... this. Updated all users.
10103 (init_record_core_ops): Renamed to ...
10104 (init_record_full_core_ops): ... this. Updated all users.
10105 (cmd_record_restore): Renamed to ...
10106 (cmd_record_full_restore): ... this. Updated all users.
10107 (record_save_cleanups): Renamed to ...
10108 (record_full_save_cleanups): ... this. Updated all users.
10109 (cmd_record_start): Renamed to ...
10110 (cmd_record_full_start): ... this. Updated all users.
10111 (set_record_insn_max_num): Renamed to ...
10112 (set_record_full_insn_max_num): ... this. Updated all users.
10113 (set_record_command): Renamed to ...
10114 (set_record_full_command): ... this. Updated all users.
10115 (show_record_command): Renamed to ...
10116 (show_record_full_command): ... this. Updated all users.
10117 (_initialize_record): Renamed to ...
10118 (_initialize_record_full): ... this. Updated all users.
10120 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10122 * record.h: Split into this and ...
10123 * record-full.h: ... this.
10124 * record.c: Split into this and ...
10125 * record-full.c: ... this.
10126 * target.h (target_ops): Add new fields to_info_record,
10127 to_save_record, to_delete_record, to_record_is_replaying,
10128 to_goto_record_begin, to_goto_record_end, to_goto_record.
10129 (target_info_record): New.
10130 (target_save_record): New.
10131 (target_supports_delete_record): New.
10132 (target_delete_record): New.
10133 (target_record_is_replaying): New.
10134 (target_goto_record_begin): New.
10135 (target_goto_record_end): New.
10136 (target_goto_record): New.
10137 * target.c (target_info_record): New.
10138 (target_save_record): New.
10139 (target_supports_delete_record): New.
10140 (target_delete_record): New.
10141 (target_record_is_replaying): New.
10142 (target_goto_record_begin): New.
10143 (target_goto_record_end): New.
10144 (target_goto_record): New.
10145 * record.h: Declare struct cmd_list_element.
10146 (record_cmdlist): New declaration.
10147 (set_record_cmdlist): New declaration.
10148 (show_record_cmdlist): New declaration.
10149 (info_record_cmdlist): New declaration.
10150 (cmd_record_goto): New declaration.
10151 * record.c: Remove unnecessary includes.
10152 Include inferior.h.
10153 (cmd_record_goto): Remove declaration.
10154 (record_cmdlist): Now extern. Initialize.
10155 (set_record_cmdlist): Now extern. Initialize.
10156 (show_record_cmdlist): Now extern. Initialize.
10157 (info_record_cmdlist): Now extern. Initialize.
10158 (find_record_target): New.
10159 (require_record_target): New.
10160 (cmd_record_start): Update.
10161 (cmd_record_delete): Remove target-specific code.
10162 Call target_delete_record.
10163 (cmd_record_stop): Unpush any record target.
10164 (set_record_insn_max_num): Move to record-full.c
10165 (set_record_command): Add comment.
10166 (show_record_command): Add comment.
10167 (info_record_command): Update comment.
10168 Remove target-specific code.
10169 Call the record target's to_info_record.
10170 (cmd_record_start): New.
10171 (cmd_record_goto): Now extern.
10172 Remove target-specific code.
10173 Call target_goto_begin, target_goto_end, or target_goto.
10174 (_initialize_record): Move record target ops initialization to
10176 Change "record" command help text.
10177 Move "record restore", "record set", and "record show" commands to
10179 * Makefile.in (SFILES): Add record-full.c.
10180 (HFILES_NO_SRCDIR): Add record-full.h.
10181 (COMMON_OBS): Add record-full.o.
10182 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10183 * arm-tdep.c: Include record-full.h.
10184 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10185 * i386-tdep.c: Include record-full.h.
10186 * infrun.c: Include record-full.h.
10187 * linux-record.c: Include record-full.h.
10188 * moxie-tdep.c: Include record-full.h.
10189 * record-full.c: Include record-full.h.
10190 Change module comment.
10191 (set_record_full_cmdlist): New.
10192 (show_record_full_cmdlist): New.
10193 (record_full_cmdlist): New.
10194 (record_goto_insn): New declaration.
10195 (record_save): New declaration.
10196 (record_check_insn_num): Change query string.
10197 (record_info): New.
10198 (record_delete): New.
10199 (record_is_replaying): New.
10200 (record_goto_entry): New.
10201 (record_goto_begin): New.
10202 (record_goto_end): New.
10203 (record_goto): New.
10204 (init_record_ops): Update.
10205 (init_record_core_ops): Update.
10206 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10207 (cmd_record_start): New.
10208 (set_record_insn_max_num): Moved from record.c
10209 (set_record_full_command): New.
10210 (show_record_full_command): New.
10211 (_initialize_record_full): New.
10213 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10215 * target.h (add_deprecated_target_alias): New.
10216 * target.c (add_deprecated_target_alias): New.
10218 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10220 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10222 (linux_supports_btrace): Add kernel and
10224 (kernel_supports_btrace): New function.
10225 (cpu_supports_btrace): New function.
10226 (intel_supports_btrace): New function.
10228 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10230 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10231 * remote.c: Include btrace.h.
10232 (struct btrace_target_info): New struct.
10233 (remote_supports_btrace): New function.
10234 (send_Qbtrace): New function.
10235 (remote_enable_btrace): New function.
10236 (remote_disable_btrace): New function.
10237 (remote_teardown_btrace): New function.
10238 (remote_read_btrace): New function.
10239 (init_remote_ops): Add btrace ops.
10240 (enum <unnamed>): Add btrace packets.
10241 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10242 (_initialize_remote): Add packet configuration for branch tracing.
10244 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10246 * features/btrace.dtd: New file.
10247 * Makefile.in (XMLFILES): Add btrace.dtd.
10248 * btrace.h (parse_xml_btrace): New declaration.
10249 * btrace.c: Include xml-support.h.
10250 (parse_xml_btrace): New function.
10251 (parse_xml_btrace_block): New function.
10252 (block_attributes): New struct.
10253 (btrace_attributes): New struct.
10254 (btrace_children): New struct.
10255 (btrace_elements): New struct.
10257 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10259 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10260 (amd64_linux_enable_btrace): New.
10261 (amd64_linux_disable_btrace): New.
10262 (amd64_linux_teardown_btrace): New.
10263 (_initialize_amd64_linux_nat): Initialize btrace ops.
10264 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10265 (i386_linux_enable_btrace): New.
10266 (i386_linux_disable_btrace): New.
10267 (i386_linux_teardown_btrace): New.
10268 (_initialize_i386_linux_nat): Initialize btrace ops.
10269 * config/i386/linux.mh: Add linux-btrace.o.
10270 * config/i386/linux64.mh: Add linux-btrace.o.
10272 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10274 * common/linux_btrace.h: New file.
10275 * common/linux_btrace.c: New file.
10276 * Makefile.in (SFILES): Add btrace.c.
10277 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10278 (COMMON_OBS): Add btrace.o.
10279 (linux-btrace.o): New rule.
10281 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10283 * target.h: Include btrace.h.
10284 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10285 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10286 * target.c (target_supports_btrace): New function.
10287 (target_enable_btrace): New function.
10288 (target_disable_btrace): New function.
10289 (target_teardown_btrace): New function.
10290 (target_read_btrace): New function.
10291 * btrace.h: New file.
10292 * btrace.c: New file.
10293 * Makefile.in: Add btrace.c.
10294 * gdbthread.h: Include btrace.h.
10295 (struct thread_info): Add btrace field.
10296 * thread.c: Include btrace.h.
10297 (clear_thread_inferior_resources): Call target_teardown_btrace.
10298 * common/btrace-common.h: New file.
10300 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10302 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10303 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10304 kill_status to outer block.
10306 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10308 Fix entry-values if the callee called a noreturn function.
10309 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10310 get_frame_address_in_block. Add new comment.
10312 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10314 Fix entry-values in C++ across CUs.
10315 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10316 lookup_minimal_symbol. Add a comment.
10318 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10319 DW_AT_linkage_name.
10321 2013-03-08 Yao Qi <yao@codesourcery.com>
10323 * tracepoint.c (_initialize_tracepoint): Indent the code.
10325 2013-03-08 Pedro Alves <palves@redhat.com>
10327 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10328 (parse_find_args, find_command): Change type of pattern buffer
10329 locals to 'gdb_byte *'.
10331 2013-03-08 Stan Shebs <stan@codesourcery.com>
10332 Hafiz Abid Qadeer <abidh@codesourcery.com>
10334 * NEWS: Mention set and show trace-buffer-size commands.
10335 Mention new packet.
10336 * target.h (struct target_ops): New method
10337 to_set_trace_buffer_size.
10338 (target_set_trace_buffer_size): New macro.
10339 * target.c (update_current_target): Set up new method.
10340 * tracepoint.c (trace_buffer_size): New global.
10341 (start_tracing): Send it to the target.
10342 (set_trace_buffer_size): New function.
10343 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10344 * remote.c (remote_set_trace_buffer_size): New function.
10345 (_initialize_remote): Use it.
10346 (QTBuffer:size) New remote command.
10347 (PACKET_QTBuffer_size): New enum.
10348 (remote_protocol_features): Add an entry for
10349 PACKET_QTBuffer_size.
10351 2013-03-08 Tom Tromey <tromey@redhat.com>
10353 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10356 2013-03-07 Pedro Alves <palves@redhat.com>
10358 * target.c (target_read_stralloc, target_fileio_read_alloc):
10359 *Cast pointer to 'gdb_byte *' in target call.
10361 2013-03-07 Pedro Alves <palves@redhat.com>
10363 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10366 2013-03-07 Keith Seitz <keiths@redhat.com>
10368 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10369 (trace_pass_command): Likewise.
10370 * cli/cli-cmds.c: Include cli/cli-utils.h.
10371 (source_command): Use skip-spaces.
10372 (disassemble_command): Likewise.
10373 * findcmd.c: Include cli/cli-utils.h.
10374 (parse_find_args): Use skip_spaces.
10375 * go32-nat.c: Include cli/cli-utils.h.
10376 (go32_sldt): Use skip_spaces.
10377 (go32_sgdt): Likewise.
10378 (go32_sidt): Likewise.
10379 (go32_pde): Likewise.
10380 (go32_pte): Likewise.
10381 (go32_pte_for_address): Likewise.
10382 * infcmd.c: Include cli/cli-utils.h.
10383 (registers_info): Use skip_spaces.
10384 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10385 (linux_info_proc): Likewise.
10386 * linux-thread-db.c: Include cli/cli-utils.h.
10387 (info_auto_load_libthread_db): Use skip_spaces_const.
10388 * m32r-rom.c: Include cli/cli-utils.h.
10389 (m32r_upload_command): Use skip_spaces.
10390 * maint.c: Include cli/cli-utils.h.
10391 (maintenance_translate_address): Use skip_spaces.
10392 * mi/mi-parse.c: Include cli/cli-utils.h.
10393 (mi_parse_argv): Use skip_spaces.
10394 (mi_parse): Likewise.
10395 * minsyms.c: Include cli/cli-utils.h.
10396 (msymbol_hash_iw): Use skip_spaces_const.
10397 * objc-lang.c: Include cli/cli-utils.h.
10398 (parse_selector): Use skip_spaces.
10399 (parse_method): Likewise.
10400 * python/python.c: Include cli/cli-utils.h.
10401 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10402 (python_command)[HAVE_PYTHON]: Likewise.
10403 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10404 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10405 (m32r_load): Use skip_spaces.
10406 * serial.c: Include cli/cli-utils.h.
10407 (serial_open): Use skip_spaces_const.
10408 * stack.c: Include cli/cli-utils.h.
10409 (parse_frame_specification_1): Use skip_spaces_const.
10410 * symfile.c: Include cli/cli-utils.h.
10411 (set_ext_lang_command): Use skip_spaces.
10412 * symtab.c: Include cli/cli-utils.h.
10413 (rbreak_command): Use skip_spaces.
10414 * thread.c (thread_name_command): Use skip_spaces.
10415 * tracepoint.c (validate_actionline): Use skip_spaces.
10416 (encode_actions_1): Likewise.
10417 (trace_find_range_command): Likewise.
10418 (trace_find_outside_command): Likewise.
10419 (trace_dump_actions): Likewise.
10421 2013-03-07 Pedro Alves <palves@redhat.com>
10423 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10424 * expprint.c (print_subexp_standard): Likewise.
10425 * utils.c (host_char_to_target): Likewise.
10426 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10427 * varobj.c (value_get_print_value): Change type of local to char*.
10428 Cast it gdb_byte * in call to language printer.
10430 2013-03-07 Pedro Alves <palves@redhat.com>
10432 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10434 (make_wchar_iterator): Remove cast to char*.
10435 (wchar_iterate): Change type of local.
10437 2013-03-07 Pedro Alves <palves@redhat.com>
10439 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10440 for 'regcache->register_status'.
10442 2013-03-07 Pedro Alves <palves@redhat.com>
10444 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10447 2013-03-07 Pedro Alves <palves@redhat.com>
10449 * stap-probe.c (handle_stap_probe): Add cast to char*.
10451 2013-03-07 Pedro Alves <palves@redhat.com>
10453 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10454 RECORD_MSGRCV>: Pass a signed variable to
10455 regcache_raw_read_signed, instead of an unsigned one.
10457 2013-03-07 Pedro Alves <palves@redhat.com>
10459 * remote-notif.c (notif_debug): Change type to int.
10460 * remote-notif.h (notif_debug): Likewise.
10462 2013-03-07 Pedro Alves <palves@redhat.com>
10464 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10466 2013-03-07 Pedro Alves <palves@redhat.com>
10468 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10469 * remote.h (hex2bin, bin2hex): ... here.
10470 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10472 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10474 * utils.c (initialize_utils): Improve doc strings of "set/show
10475 width", "set/show height", and "set/show pagination".
10477 2013-03-06 Keith Seitz <keiths@redhat.com>
10479 * ax-gdb.c (gen_printf): Make FORMAT const.
10480 * ax-gdb.h (gen_printf): Likewise.
10481 * ax-general.c (ax_string): Make STR const.
10482 * ax.h (ax_string): Likewise.
10484 2013-03-06 Doug Evans <dje@google.com>
10486 * elfread.c (elf_symfile_read): Move debugging printf to more
10489 2013-03-06 Pedro Alves <palves@redhat.com>
10491 * python/py-utils.c (target_string_to_unicode): Delete function.
10492 * python/python-internal.h (target_string_to_unicode): Delete
10495 2013-03-06 Pierre Muller <muller@sourceware.org>
10497 * linespec.c (get_current_search_block): ARI fix, use (void)
10498 for empty parameter list.
10500 2013-03-05 Doug Evans <dje@google.com>
10502 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10503 of old ada_lookup_symbol_list. In !full_search case, don't
10504 search superblocks.
10505 (ada_lookup_symbol_list): Delete arg full_search, all callers
10506 updated. Call ada_lookup_symbol_list_worker.
10507 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10508 * ada-lang.h (ada_lookup_symbol_list): Update.
10509 * language.h (language_defn): Update comment for
10510 la_iterate_over_symbols.
10511 * linespec.c (iterate_over_file_blocks): New function.
10512 (iterate_over_all_matching_symtabs): Call it.
10513 (lookup_prefix_sym): Ditto.
10514 (get_current_search_block): New function.
10515 (get_search_block): Delete.
10516 (find_label_symbols): Call get_current_search_block.
10517 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10518 * symtab.c (iterate_over_symbols): Don't search superblocks.
10520 2013-03-05 Yao Qi <yao@codesourcery.com>
10522 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10523 parameter VAR's type from "unsigned int" to "int".
10524 * command.h (var_zuinteger_unlimited): Update its comments.
10525 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10527 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10529 * NEWS: Mention new target x86_64-*-cygwin*.
10531 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10533 * configure.host: Add x86_64-*-cygwin* as host.
10534 * configure.tgt: Add x86_64-*-cygwin* as target.
10535 * config/i386/cygwin64.mh: New file.
10537 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10539 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10541 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10543 * linespec.c (struct linespec_canonical_name): New.
10544 (struct linespec_state): Change canonical_names type to it.
10545 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10546 xrealloc element size. Initialize the different CANONICAL fields.
10547 (canonical_to_fullform): New.
10548 (filter_results): Use it. Add variables canonical, fullform and
10550 (struct decode_line_2_item, decode_line_2_compare_items): New.
10551 (decode_line_2): Remove variables iter and item_names, add variables
10552 items and items_count. Modify the code for these new variables.
10554 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10556 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10557 calling do_cleanup.
10559 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10561 * tracepoint.c (build_traceframe_info): Add code for byte order.
10563 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10565 * v850-tdep.c: (v850e2_register_name): Revise system register
10566 names to match current V850E2M architecture specifications.
10567 Update register number enum comments too.
10569 2013-03-01 Jiong Wang <jiwang@tilera.com>
10570 Pedro Alves <palves@redhat.com>
10572 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10574 (tilegx_skip_prologue): Limit prologue analysis to section end.
10576 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10578 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10581 2013-03-01 Pedro Alves <palves@redhat.com>
10583 Use gdb_byte for bytes from the program being debugged.
10585 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10586 Change type of local 'buf' to gdb_byte.
10587 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10588 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10589 * cris-tdep.c (cris_sigcontext_addr)
10590 (cris_sigtramp_frame_unwind_cache): Likewise.
10591 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10592 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10594 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10595 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10596 (hppa32_hpux_search_dummy_call_sequence)
10597 (hppa_hpux_supply_save_state): Likewise.
10598 * hppa-linux-tdep.c (insns_match_pattern)
10599 (hppa_linux_find_global_pointer): Likewise.
10600 * hppa-tdep.c (hppa_in_function_epilogue_p)
10601 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10602 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10603 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10604 (i386fbsd_collect_uthread): Likewise.
10605 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10606 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10607 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10608 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10609 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10610 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10611 (ia64_libunwind_frame_prev_register)
10612 (ia64_libunwind_sigtramp_frame_this_id)
10613 (ia64_find_global_pointer_from_dynamic_section)
10614 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10615 (ia64_unwind_pc): Likewise.
10616 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10617 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10618 (m68hc11_extract_return_value): Likewise.
10619 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10620 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10621 (mep_get_insn, mep_push_dummy_call): Likewise.
10622 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10623 (mips_linux_in_dynsym_stub): Likewise.
10624 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10625 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10626 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10628 * remote-mips.c (mips_set_register): Likewise.
10629 * remote-sim.c (gdbsim_fetch_register): Likewise.
10630 * score-tdep.c (score7_fetch_inst): Change type of parameter
10631 'memblock' and local 'buf' to gdb_byte.
10632 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10633 Change type of local 'buf' to gdb_byte. Adjust.
10634 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10636 (score7_analyze_prologue): Change type of 'memblock' and
10637 'memblock_ptr' locals to gdb_byte*.
10638 * sh64-tdep.c (sh64_extract_return_value)
10639 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10640 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10641 * solib-pa64.c (pa64_solib_create_inferior_hook)
10642 (pa64_open_symbol_file_object): Remove local 'buf'.
10643 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10644 (som_open_symbol_file_object): Likewise.
10645 * solib-spu.c (spu_current_sos): Likewise.
10646 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10647 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10648 (spu_store_registers): Likewise.
10649 * target.c (debug_print_register): Likewise.
10650 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10651 * xstormy16-tdep.c (xstormy16_store_return_value)
10652 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10653 (xstormy16_find_jmp_table_entry): Likewise.
10655 2013-03-01 Jiong Wang <jiwang@tilera.com>
10657 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10658 (tilegx_gdbarch_init): Install it.
10660 2013-02-28 Tom Tromey <tromey@redhat.com>
10662 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10665 2013-02-28 Doug Evans <dje@google.com>
10667 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10668 * python/python.c (gdbpy_find_pc_line): Ditto.
10670 2013-02-28 Tom Tromey <tromey@redhat.com>
10672 * contrib/excheck.py: New file.
10673 * contrib/exsummary.py: New file.
10674 * contrib/gcc-with-excheck: New file.
10676 2013-02-28 Tom Tromey <tromey@redhat.com>
10678 * python/python.c (gdbpy_print_stack): Call begin_line and
10679 fprintf_filtered inside TRY_CATCH.
10681 2013-02-28 Tom Tromey <tromey@redhat.com>
10683 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10686 2013-02-28 Tom Tromey <tromey@redhat.com>
10688 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10689 frame_object_to_frame_info inside TRY_CATCH.
10691 2013-02-28 Tom Tromey <tromey@redhat.com>
10693 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10696 2013-02-28 Tom Tromey <tromey@redhat.com>
10698 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10700 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10702 * windows-nat.c: Throughout, fix format strings and casts of
10703 printf-like functions to avoid type related warnings on all
10705 (handle_output_debug_string): Fetch context information address
10706 from debug string using string_to_core_addr.
10708 2013-02-27 Jiong Wang <jiwang@tilera.com>
10710 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10711 * regformats/reg-tilegx32.dat: New.
10713 2013-02-27 Jiong Wang <jiwang@tilera.com>
10715 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10717 2013-02-27 Jiong Wang <jiwang@tilera.com>
10719 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10721 2013-02-27 Yao Qi <yao@codesourcery.com>
10722 Pedro Alves <palves@redhat.com>
10724 * tracepoint.c (tfile_trace_find): For tfind
10725 pc/tp/range/outside, look for the next trace frame instead of
10726 always starting from frame 0.
10728 2013-02-26 Anthony Green <green@moxielogic.com>
10730 * configure.tgt: Add support for moxie-*-rtems* target.
10732 2013-02-25 Pedro Alves <palves@redhat.com>
10734 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10737 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10739 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10740 if $fp is used as the virtual frame pointer.
10742 2013-02-23 Alan Modra <amodra@gmail.com>
10744 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10746 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10747 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10748 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10749 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10751 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10754 * elfread.c (build_id_bfd_get): Make the return type const.
10755 (build_id_verify): Make the check parameter const.
10756 (build_id_to_debug_filename): Make the build_id parameter and variable
10758 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10760 2013-02-21 Alan Modra <amodra@gmail.com>
10762 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10764 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10766 Add a new method 'disassemble' to gdb.Architecture class.
10767 * python/py-arch.c (archpy_disassmble): Implementation of the
10768 new method gdb.Architecture.disassemble.
10769 (arch_object_methods): Add entry for the new method.
10771 2013-02-20 Jiong Wang <jiwang@tilera.com>
10773 * MAINTAINERS (Write After Approval): Add myself to the list.
10775 2013-02-19 Pedro Alves <palves@redhat.com>
10777 Garbage collect 'struct monitor_ops'::load_routine.
10779 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10780 * monitor.c (monitor_load): No longer call
10781 current_monitor->load_routine.
10782 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10783 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10784 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10786 2013-02-19 Pedro Alves <palves@redhat.com>
10790 Harmonize with generic_load.
10792 * monitor.c: Include "readline/readline.h".
10793 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10794 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10795 long/strtol for the 'load_offset' local. Error out if no argument
10796 is given or if too many arguments are given. Tilde expand the
10797 passed in file name.
10799 2013-02-19 Kai Tietz <ktietz@redhat.com>
10802 * symfile.c (load_section_data): Change type of load_offset
10804 (generic_load): User strtoulst instead of strtoul for conversion
10807 2013-02-19 Jiong Wang <jiwang@tilera.com>
10809 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10810 for return address, "lr" register, saved on stack.
10811 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10812 after we invoke tilegx_analyze_prologue.
10814 2013-02-19 Jiong Wang <jiwang@tilera.com>
10816 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10818 2013-02-19 Jiong Wang <jiwang@tilera.com>
10820 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10822 2013-02-19 Jiong Wang <jiwang@tilera.com>
10824 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10825 (tilegx_write_pc): New function.
10826 (tilegx_cannot_reference_register): Return zero if REGNO
10827 is TILEGX_FAULTNUM_REGNUM.
10828 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10829 (tilegx_register_name): Add handling of "faultnum" register.
10830 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10831 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10832 handling of TILEGX_FAULTNUM_REGNUM.
10833 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10835 2013-02-19 Jiong Wang <jiwang@tilera.com>
10837 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10838 should be aligned to 64bit.
10840 2013-02-19 Kai Tietz <ktietz@redhat.com>
10842 * windows-nat.c (windows_xfer_memory): Fix debug-output
10845 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10847 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10848 Don't check DSP register number if HAVE_DSP is not set.
10850 2013-02-19 Alan Modra <amodra@gmail.com>
10852 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10853 throughout file instead.
10854 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10855 Don't xmalloc return value.
10856 (build_id_verify): Similarly. Don't xfree.
10857 (build_id_to_debug_filename): Update.
10858 (find_separate_debug_file_by_buildid): Update, don't xfree.
10860 2013-02-18 Tom Tromey <tromey@redhat.com>
10863 * dwarf2read.c (read_subrange_type): Use result of
10866 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10868 * frame.c: Remove one extra white space after #include
10871 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10873 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10875 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10877 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10878 and dir commands into an if block.
10880 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10882 * python/py-breakpoint (struct pybp_code): Use int instead of
10885 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10886 Hafiz Abid Qadeer <abidh@codesourcery.com>
10888 * NEWS: Mention new field "trace-file".
10889 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10890 (tfile_open): Record the trace file's filename in the trace
10892 (tfile_files_info): Mention the name of the trace file.
10893 Check the "filename" field explicitely.
10894 (trace_status_command): Explicitely check "filename" field.
10895 (trace_find_command): Ditto.
10896 (trace_find_pc_command): Ditto.
10897 (trace_find_tracepoint_command): Ditto.
10898 (trace_find_line_command): Ditto.
10899 (trace_find_range_command): Ditto.
10900 (trace_find_outside_command): Ditto.
10901 * tracepoint.h (struct trace_status) <from_file>: Rename it
10902 to "filename" and make it hold the trace file's filename
10903 instead of a boolean.
10904 * remote.c (remote_get_trace_status): Initialize "filename"
10905 field with NULL instead of 0.
10907 2013-02-15 Yao Qi <yao@codesourcery.com>
10909 * remote.c: Fix a typo.
10911 2013-02-14 Pierre Muller <muller@sourceware.org>
10913 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10915 2013-02-14 Pedro Alves <palves@redhat.com>
10917 * utils.c (savestring): Don't #undef it. Move function to
10918 common/common-utils.c.
10919 * common/common-utils.c: Include gdb_string.h.
10920 (savestring): Move here from utils.c.
10921 * common/common-utils.h (savestring): Declare.
10923 2013-02-14 Pedro Alves <palves@redhat.com>
10925 * utils.c (savestring): Rename parameter 'size' to 'len'.
10927 2013-02-14 Pedro Alves <palves@redhat.com>
10928 Yufeng Zhang <yufeng.zhang@arm.com>
10930 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10931 (aarch64_inferior_data, struct aarch64_inferior_data):
10933 (struct aarch64_process_info): New.
10934 (aarch64_process_list): New global.
10935 (aarch64_find_process_pid, aarch64_add_process)
10936 (aarch64_process_info_get): New functions.
10937 (aarch64_inferior_data_get): Delete.
10938 (aarch64_process_info_get): New function.
10939 (aarch64_forget_process): New function.
10940 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10941 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10942 aarch64_get_debug_reg_state.
10943 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10944 instead of linux_nat_iterate_watchpoint_lwps.
10945 (aarch64_linux_new_fork): New function.
10946 (aarch64_linux_child_post_startup_inferior): Use
10947 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10948 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10949 (aarch64_linux_remove_hw_breakpoint)
10950 (aarch64_handle_aligned_watchpoint)
10951 (aarch64_handle_unaligned_watchpoint)
10952 (aarch64_linux_insert_watchpoint)
10953 (aarch64_linux_remove_watchpoint)
10954 (aarch64_linux_stopped_data_address): Adjust to pass the current
10955 process id to aarch64_debug_reg_state.
10956 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10957 linux_nat_new_fork hook, and aarch64_forget_process as
10958 linux_nat_forget_process hook; remove the call to
10959 register_inferior_data_with_cleanup.
10961 2013-02-14 Pedro Alves <palves@redhat.com>
10963 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10964 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10967 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10968 Hafiz Abid Qadeer <abidh@codesourcery.com>
10970 * tracepoint.h (validate_trace_state_variable_name): Declare.
10971 * tracepoint.c (validate_trace_state_variable_name): New.
10972 (trace_variable_command): Parse the trace state variable's name
10973 without using parse_expression. Do several validations.
10974 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10975 trace state variable's name with parse_expression. Validate it.
10977 2013-02-14 Yao Qi <yao@codesourcery.com>
10979 * infcmd.c (breakpoint_proceeded): Remove it.
10981 2013-02-14 Yao Qi <yao@codesourcery.com>
10983 * tracepoint.c (end_actions_pseudocommand): Make it static.
10984 (while_stepping_pseudocommand): Likewise.
10985 * tracepoint.h (end_actions_pseudocommand): Remove the
10987 (while_stepping_pseudocommand): Likewise.
10989 2013-02-14 Yao Qi <yao@codesourcery.com>
10991 * cli/cli-decode.c (help_cmd): Remove the declaration of
10993 (help_all): Likewise.
10995 2013-02-13 Pedro Alves <palves@redhat.com>
10997 * amd64-linux-nat.c (update_debug_registers_callback):
10999 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11001 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11002 i386_debug_reg_state.
11003 (amd64_linux_new_fork): New function.
11004 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11005 linux_nat_new_fork hook, and i386_forget_process as
11006 linux_nat_forget_process hook.
11007 * i386-linux-nat.c (update_debug_registers_callback):
11009 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11011 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11012 i386_debug_reg_state.
11013 (i386_linux_new_fork): New function.
11014 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11015 linux_nat_new_fork hook, and i386_forget_process as
11016 linux_nat_forget_process hook.
11017 * i386-nat.c (i386_init_dregs): Delete.
11018 (i386_inferior_data, struct i386_inferior_data):
11020 (struct i386_process_info): New.
11021 (i386_process_list): New global.
11022 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11024 (i386_inferior_data_get): Delete.
11025 (i386_process_info_get): New function.
11026 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11027 (i386_forget_process): New function.
11028 (i386_cleanup_dregs): Rewrite.
11029 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11030 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11031 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11032 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11033 to i386_debug_reg_state.
11034 (i386_use_watchpoints): Don't register inferior data.
11035 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11037 (i386_forget_process): Declare.
11038 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11039 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11040 New static globals.
11041 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11042 (add_initial_lwp): New, factored out from ...
11043 (add_lwp): ... this. Don't check the number of lwps before
11044 calling linux_nat_new_thread.
11045 (linux_nat_iterate_watchpoint_lwps): Delete.
11046 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11047 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11049 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11051 (linux_nat_kill, linux_nat_mourn_inferior): Call
11052 linux_nat_forget_process.
11053 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11054 (linux_nat_forget_process): New functions.
11055 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11057 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11058 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11060 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11061 (linux_nat_forget_process): New declarations.
11063 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11064 (amd64fbsd_mourn_inferior): New function.
11065 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11066 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11068 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11070 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11073 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11075 * aarch64-linux-nat.c (debug_reg_change_callback)
11076 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11079 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11081 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11084 2013-02-13 Pedro Alves <palves@redhat.com>
11085 Hafiz Abid Qadeer <abidh@codesourcery.com>
11087 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11089 2013-02-12 Tom Tromey <tromey@redhat.com>
11092 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11094 (classify_inner_name): Remove 'first_name' argument, add
11095 'context'. Remove unused variable.
11096 (yylex): Explicitly maintain the context type. Exit loop earlier
11097 if NAME result is seen.
11099 2013-02-12 Pedro Alves <palves@redhat.com>
11101 * amd64-darwin-tdep.c: Add (C) after Copyright.
11102 * cli/cli-cmds.h: Ditto.
11103 * cli/cli-decode.c: Ditto.
11104 * cli/cli-decode.h: Ditto.
11105 * cli/cli-dump.c: Ditto.
11106 * cli/cli-dump.h: Ditto.
11107 * cli/cli-interp.c: Ditto.
11108 * cli/cli-logging.c: Ditto.
11109 * cli/cli-script.c: Ditto.
11110 * cli/cli-script.h: Ditto.
11111 * cli/cli-setshow.c: Ditto.
11112 * cli/cli-setshow.h: Ditto.
11113 * cli/cli-utils.c: Ditto.
11114 * cli/cli-utils.h: Ditto.
11115 * config/alpha/nm-osf3.h: Ditto.
11116 * config/djgpp/djconfig.sh: Ditto.
11117 * config/i386/nm-fbsd.h: Ditto.
11118 * config/i386/nm-i386gnu.h: Ditto.
11119 * config/nm-linux.h: Ditto.
11120 * config/nm-nto.h: Ditto.
11121 * config/rs6000/nm-rs6000.h: Ditto.
11122 * config/sparc/nm-sol2.h: Ditto.
11123 * darwin-nat-info.c: Ditto.
11126 * gdb-demangle.h: Ditto.
11127 * i386-darwin-nat.c: Ditto.
11128 * i386-darwin-tdep.c: Ditto.
11129 * linux-fork.h: Ditto.
11130 * m32c-tdep.c: Ditto.
11131 * microblaze-linux-tdep.c: Ditto.
11132 * microblaze-rom.c: Ditto.
11133 * microblaze-tdep.c: Ditto.
11134 * microblaze-tdep.h: Ditto.
11135 * mips-linux-tdep.h: Ditto.
11136 * ppc-ravenscar-thread.c: Ditto.
11137 * ppc-ravenscar-thread.h: Ditto.
11138 * prologue-value.c: Ditto.
11139 * prologue-value.h: Ditto.
11140 * ravenscar-thread.c: Ditto.
11141 * ravenscar-thread.h: Ditto.
11142 * sparc-ravenscar-thread.c: Ditto.
11143 * sparc-ravenscar-thread.h: Ditto.
11144 * tilegx-linux-tdep.c: Ditto.
11145 * unwind_stop_reasons.def: Ditto.
11146 * windows-nat.h: Ditto.
11147 * xtensa-linux-tdep.c: Ditto.
11148 * xtensa-xtregs.c: Ditto.
11149 * regformats/regdat.sh: Ditto.
11150 * regformats/regdef.h: Ditto.
11152 2013-02-12 Pedro Alves <palves@redhat.com>
11154 * break-catch-sig.c: Update copyright years.
11156 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11158 Add support for a destructor for ui_out data and use it to
11159 provide a ui_out destructor.
11160 * ui-out.h: Declare the new ui_out destructor.
11161 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11162 * ui-out.c (default_data_destroy): Add a default data destructor
11163 which does nothing.
11164 (default_ui_out_impl): Set the new data_destroy field to
11165 default_data_destroy
11166 (uo_data_destroy): Local function which invokes the data
11167 destructor if present.
11168 (clear_table): Local function which clears the table data of a
11170 (ui_out_destroy): Public function which frees a ui_out object.
11171 (ui_out_table_end): Use the new clear_table function.
11172 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11174 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11177 2013-02-11 Doug Evans <dje@google.com>
11179 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11180 (printf_decfloat): New function. Broken out from ui_printf.
11181 Remove unnecessary code to shift the entire format string down.
11182 (printf_pointer): New function.
11183 (ui_printf): Code to print C strings, wide C strings, decfloats,
11184 and pointers moved to separate functions.
11186 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11188 * valops.c (value_assign): Handling bitfield offset in
11189 `lval_internalvar_component' case.
11191 2013-02-08 Doug Evans <dje@google.com>
11193 * common/format.c (parse_format_string): Fix whitespace.
11195 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11197 * stack.c (return_command): Work around uninitialized variable
11200 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11202 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11203 number of the registers from 36 to 34.
11205 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11207 * NEWS: Mention new AArch64 native and target support.
11209 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11211 * MAINTAINERS (Write After Approval): Add myself.
11213 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11214 Marcus Shawcroft <marcus.shawcroft@arm.com>
11215 Nigel Stephens <nigel.stephens@arm.com>
11216 Yufeng Zhang <yufeng.zhang@arm.com>
11218 * aarch64-linux-nat.c: New file.
11219 * config/aarch64/linux.mh: New file.
11220 * configure.host: Add AArch64.
11221 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11223 2013-02-07 Doug Evans <dje@google.com>
11225 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11226 disassemble command.
11228 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11230 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11231 set_gdbarch_fetch_tls_load_module_address.
11233 2013-02-06 David S. Miller <davem@davemloft.net>
11235 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11236 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11237 * value.c (struct_return_convention): New function.
11238 (using_struct_return): Implement in terms of struct_return_convention.
11239 * value.h (struct_return_convention): Declare.
11240 * stack.c (return_command): Allow successful overriding of the return
11241 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11243 2013-02-06 Tom Tromey <tromey@redhat.com>
11245 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11246 outside of TRY_CATCH.
11248 2013-02-06 Yao Qi <yao@codesourcery.com>
11250 * mi/mi-interp.c: Include "tracepoint.h".
11251 (mi_tsv_modified): Declare.
11252 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11253 (mi_interpreter_init): Call observer_attach_tsv_modified.
11254 (mi_tsv_modified): New.
11255 (mi_tsv_created, mi_tsv_deleted): Update.
11256 * tracepoint.c (trace_variable_command): Call
11257 observer_notify_tsv_modified if the initial value of tsv is
11259 (delete_trace_state_variable): Call
11260 observer_notify_tsv_deleted earlier.
11261 (trace_variable_command): Caller update.
11262 (create_tsv_from_upload): Likewise.
11263 * observer.sh: Declare "struct trace_state_variable".
11265 * NEWS: Mention the new MI notification "=tsv-modified".
11267 2013-02-05 Doug Evans <dje@google.com>
11269 * completer.c (location_completer): Fix typo in comment.
11271 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11273 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11276 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11278 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11279 Refactor if statement to avoid trailing || operator.
11281 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11283 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11285 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11287 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11288 * configure.host: Add powerpc*-*-freebsd* target.
11289 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11290 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11291 * config/powerpc/fbsd.mh: New file.
11293 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11294 Denys Vlasenko <dvlasenk@redhat.com>
11295 Pedro Alves <palves@redhat.com>
11297 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11298 (struct elf_internal_linux_prpsinfo): Forward declare.
11299 * gdbarch.h, gdbarch.c: Regenerate.
11300 * linux-tdep.c: Include `cli/cli-utils.h'.
11301 (linux_fill_prpsinfo): New function.
11302 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11303 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11304 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11305 depending on gdbarch pointer bitness.
11306 * ppc-linux-tdep.c: Include elf-bfd.h.
11307 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11310 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11311 Marcus Shawcroft <marcus.shawcroft@arm.com>
11312 Nigel Stephens <nigel.stephens@arm.com>
11313 Yufeng Zhang <yufeng.zhang@arm.com>
11315 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11317 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11318 Marcus Shawcroft <marcus.shawcroft@arm.com>
11319 Nigel Stephens <nigel.stephens@arm.com>
11320 Yufeng Zhang <yufeng.zhang@arm.com>
11322 * aarch64-newlib-tdep.c: New file.
11323 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11325 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11326 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11327 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11328 * osabi.c (gdb_osabi_names): Add "Newlib".
11330 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11331 Marcus Shawcroft <marcus.shawcroft@arm.com>
11332 Nigel Stephens <nigel.stephens@arm.com>
11333 Yufeng Zhang <yufeng.zhang@arm.com>
11335 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11336 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11337 * aarch64-linux-tdep.c: New file.
11338 * aarch64-linux-tdep.h: New file.
11339 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11340 * configure.tgt: Add aarch64-none-linux-gnu.
11342 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11343 Marcus Shawcroft <marcus.shawcroft@arm.com>
11344 Nigel Stephens <nigel.stephens@arm.com>
11345 Yufeng Zhang <yufeng.zhang@arm.com>
11347 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11348 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11349 (ALLDEPFILES): Add aarch64-tdep.c.
11350 * aarch64-tdep.c: New file.
11351 * aarch64-tdep.h: New file.
11352 * configure.tgt: Add AArch64.
11353 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11354 (aarch64-expedite): New definition.
11355 * features/aarch64-core.xml: New file.
11356 * features/aarch64-fpu.xml: New file.
11357 * features/aarch64-without-fpu.c: New file (generated).
11358 * features/aarch64-without-fpu.xml: New file.
11359 * features/aarch64.c: New file (generated).
11360 * features/aarch64.xml: New file.
11361 * regformats/aarch64-without-fpu.dat: New file (generated).
11362 * regformats/aarch64.dat: New file (generated).
11364 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11366 * contrib/expect-read1.c: New file.
11367 * contrib/expect-read1.sh: New file.
11369 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11371 * dwarf2read.c (file_file_name): New function with code from
11373 (file_full_name): Move most of the code to file_file_name.
11374 (macro_start_file): Rename variable full_name to file_name and use
11375 file_file_name for it. Add comp_dir parameter to new_macro_table.
11376 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11377 macro_source_file->filename access by macro_source_fullname call.
11378 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11380 * macrotab.c (struct macro_table): New field comp_dir.
11381 (macro_include): New variables link_fullname and source_fullname.
11382 Replace any macro_source_file->filename access by macro_source_fullname
11384 (macro_lookup_inclusion): Remove the partial filenames checking code.
11385 (check_for_redefinition): New variables source_fullname and
11386 found_key_fullname. Replace any macro_source_file->filename access by
11387 macro_source_fullname call.
11388 (macro_undef): New variables source_fullname and key_fullname. Replace
11389 any macro_source_file->filename access by macro_source_fullname call.
11390 (macro_lookup_definition): New variables retval and source_fullname.
11391 Replace any macro_source_file->filename access by macro_source_fullname
11393 (foreach_macro): New variable key_fullname. Replace any
11394 macro_source_file->filename access by macro_source_fullname call.
11395 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11396 macro_source_file->filename access by macro_source_fullname call.
11397 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11398 (macro_source_fullname): New function.
11399 * macrotab.h (struct macro_source_file): Extent the filename field
11401 (new_macro_table): New parameter comp_dir, add a comment for it.
11402 (macro_source_fullname): new declaration.
11404 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11406 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11407 this_real_name to outer block. Use it also for
11408 compare_filenames_for_search.
11409 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11410 with dw2_get_real_path for file_matcher, considering also
11411 BASENAMES_MAY_DIFFER.
11412 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11414 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11416 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11417 to the file_matcher parameter. Pass 0 to it.
11418 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11419 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11420 NULL psymtab_to_fullname result.
11421 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11422 an expected filename instead.
11423 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11424 file_matcher parameter. Call also psymtab_to_fullname, after newly
11425 considering BASENAMES_MAY_DIFFER.
11426 * source.c (rewrite_source_path): Remove static.
11427 * source.h (rewrite_source_path): New declaration.
11428 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11429 the expand_symtabs_matching field. Comment it.
11430 * symtab.c (file_matches): New function comment. Add parameter
11431 basenames, implement it.
11432 (search_symbols_file_matches): Add basenames parameter. Update the
11433 file_matches caller.
11434 (search_symbols): Match FILES also against symtab_to_fullname.
11435 Optimize it for BASENAMES_MAY_DIFFER.
11437 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11439 * source.c (print_source_lines_base): Print for TUI also "fullname".
11440 * tui/tui-data.c (init_content_element): Change tui_locator_element
11441 field to full_name.
11442 * tui/tui-data.h (struct tui_locator_element): Likewise.
11443 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11444 tui_update_locator_filename calls to tui_update_locator_fullname.
11445 Replace symtab->filename refererence by symtab_to_fullname call.
11446 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11447 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11448 field to full_name. Replace symtab->filename refererence by
11449 symtab_to_fullname call.
11450 (tui_show_symtab_source): Rename parameter to fullname. Change
11451 tui_locator_element field to full_name.
11452 * tui/tui-stack.c: Include source.h.
11453 (tui_set_locator_filename): Rename the declaration to ...
11454 (tui_set_locator_fullname): ... here. Rename its parameter to
11455 fullname, updates its comment.
11456 (tui_set_locator_info): Rename its parameter to fullname.
11457 (tui_set_locator_filename): Rename the definition to ...
11458 (tui_set_locator_fullname): ... here. Rename its parameter to
11459 fullname, updates its comment. Change tui_locator_element field to
11461 (tui_set_locator_info): Rename its parameter to fullname.
11462 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11463 (tui_update_locator_filename): Rename to ...
11464 (tui_update_locator_fullname): ... here. Rename callee to
11465 tui_set_locator_fullname.
11466 (tui_show_frame_info): Replace symtab->filename refererence by
11467 symtab_to_fullname call.
11468 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11469 (tui_update_locator_fullname): ... here.
11470 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11471 tui_update_locator_fullname. Replace symtab->filename refererence by
11472 symtab_to_fullname call.
11473 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11474 Rename the callee to tui_update_locator_fullname.
11475 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11477 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11479 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11480 by symtab_to_filename_for_display calls.
11481 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11482 (clear_command): New variable sal_fullname, initialize it. Replace
11483 compare_filenames_for_search by filename_cmp with sal_fullname.
11484 (say_where, update_static_tracepoint): Replace symtab->filename
11485 refererences by symtab_to_filename_for_display calls.
11486 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11488 * dwarf2read.c: Include source.h.
11489 (fixup_go_packaging): Replace symtab->filename refererences by
11490 symtab_to_filename_for_display calls.
11491 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11492 Replace symtab->filename refererences by symtab_to_filename_for_display
11494 (create_sals_line_offset, convert_linespec_to_sals): New variable
11495 fullname, initialize it, replace symtab->filename reference by the
11497 * linux-fork.c: Include source.h.
11498 (info_checkpoints_command): Replace symtab->filename refererences by
11499 symtab_to_filename_for_display calls.
11500 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11501 by symtab_to_filename_for_display calls.
11502 * mdebugread.c: Include source.h.
11503 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11504 symtab_to_filename_for_display calls.
11505 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11506 (mi_cmd_file_list_exec_source_files): Likewise.
11507 * printcmd.c: Include source.h.
11508 (build_address_symbolic): Replace symtab->filename refererences by
11509 symtab_to_filename_for_display calls.
11510 * psymtab.c (partial_map_symtabs_matching_filename)
11511 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11512 with psymtab_to_fullname.
11513 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11514 by symtab_to_filename_for_display calls.
11515 (stpy_get_filename): New variable filename, initialize it, use instead
11516 of symtab->filename refererences.
11517 (salpy_str): Make variable filename const char *. Replace
11518 symtab->filename refererences by symtab_to_filename_for_display calls.
11519 * skip.c: Include source.h and filenames.h.
11520 (skip_file_command): Remove const from the symtab variable. Replace
11521 symtab->filename refererences by symtab_to_fullname call.
11522 (function_name_is_marked_for_skip): New variables searched_for_fullname
11523 and fullname. Use them to search also with symtab's fullname.
11524 * source.c (find_source_lines): Replace symtab->filename refererences
11525 by symtab_to_filename_for_display calls.
11526 (print_source_lines_base): New variable filename, use it instead of
11527 symtab->filename. Replace symtab->filename refererences by
11528 symtab_to_filename_for_display calls.
11529 (line_info, forward_search_command): Replace symtab->filename
11530 refererences by symtab_to_filename_for_display calls.
11531 (reverse_search_command): Replace symtab->filename refererences by
11532 symtab_to_filename_for_display calls. New variable filename for it.
11533 * stack.c (frame_info): Likewise.
11534 * symmisc.c: Include source.h.
11535 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11536 (maintenance_info_symtabs): Replace symtab->filename refererences by
11537 symtab_to_filename_for_display calls.
11538 * symtab.c (iterate_over_some_symtabs): Call
11539 compare_filenames_for_search also with symtab_to_fullname.
11540 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11541 symtab->filename refererences by symtab_to_filename_for_display calls.
11542 (find_line_symtab): Replace symtab->filename refererences by
11543 symtab_to_filename_for_display calls.
11544 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11545 (print_symbol_info): Make the last parameter const char *. New
11546 variable s_filename. Use it in the function.
11547 (symtab_symbol_info): Make the last_filename variable const char *.
11548 Replace symtab->filename refererences by symtab_to_filename_for_display
11550 (rbreak_command): New variable fullname. Use it. Replace
11551 symtab->filename refererence by symtab_to_filename_for_display call.
11552 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11553 (print_one_static_tracepoint_marker): Replace symtab->filename
11554 refererences by symtab_to_filename_for_display calls.
11555 * tui/tui-source.c (tui_set_source_content): New variables filename and
11556 s_filename. Replace symtab->filename refererences by this variable.
11557 Replace other symtab->filename refererences by
11558 symtab_to_filename_for_display calls.
11560 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11561 Jan Kratochvil <jan.kratochvil@redhat.com>
11563 Add a new variable that controls a way in which filenames are
11565 * NEWS (set filename-display): New entry.
11566 * source.c (filename_display_basename, filename_display_relative)
11567 (filename_display_absolute, filename_display_kind_names)
11568 (filename_display_string, show_filename_display_string)
11569 (symtab_to_filename_for_display): New.
11570 (_initialize_source): Added initialization of 'filename-display'
11572 * source.h (symtab_to_filename_for_display): Added declaration.
11573 * stack.c (print_frame): Added new variable and calling of a new
11574 function and condition with this variable. Changed third argument of
11575 calling of a function.
11577 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11579 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11580 Rename field reference filename to fullname.
11581 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11582 fullname. New comment for it.
11583 * tui/tui-source.c (tui_set_source_content): Rename field reference
11584 filename to fullname. Initialize field by symtab_to_fullname now.
11585 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11586 reference filename to fullname. Use symtab_to_fullname during
11589 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11592 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11593 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11594 filename to fullname. Rename variable this_name to this_fullname.
11595 Lowercase FILENAME_CMP call.
11596 (dw2_find_symbol_file): New comment for the returned string.
11597 (dwarf2_gdb_index_functions): Rename the function to
11598 dw2_expand_symtabs_with_fullname.
11599 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11600 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11602 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11603 * symfile.h (struct quick_symbol_functions): Rename field
11604 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11605 parameter filename to fullname. Document returned string meaning for
11607 * symtab.c (find_line_symtab): Rename the called function to
11608 expand_symtabs_with_fullname.
11610 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11613 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11614 call of filename_cmp with compare_filenames_for_search.
11615 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11616 is_abs, unify the call of FILENAME_CMP with
11617 compare_filenames_for_search. New gdb_asserts for real_path and name.
11618 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11619 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11620 * symfile.h (struct quick_symbol_functions): Extend the comment for
11621 map_symtabs_matching_filename.
11622 * symtab.c (compare_filenames_for_search): Remove the function comment
11623 relative path requirement. Handle absolute filenames, with a comment.
11624 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11625 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11626 real_path and name. Unify the call of compare_filenames_for_search
11628 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11630 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11633 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11634 source_file references by symtab field references. Remove variables
11636 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11637 (clear_command, say_where): Replace bp_location field source_file
11638 references by symtab field references.
11639 (bp_location_dtor): Remove the source_file reference.
11640 (update_static_tracepoint): Replace bp_location field source_file
11641 references by symtab field references.
11642 (breakpoint_free_objfile): New function.
11643 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11644 Replace the field source_file by field symtab, extend its comment.
11645 (breakpoint_free_objfile): New declaration.
11646 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11647 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11648 field source_file references by symtab field references.
11650 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11652 Replace xfullpath calls by gdb_realpath calls.
11653 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11655 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11656 Remove it from the iterate_over_some_symtabs call.
11657 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11658 Remove it from the dw2_map_expand_apply calls, remove a block handling
11660 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11661 Remove it from the iterate_over_some_symtabs call.
11662 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11663 Remove it from the partial_map_expand_apply calls, remove a block
11664 handling it. Drop gdb_realpath call and cleanups from the real_path
11666 * source.c (openp): Drop the comment part about xfullpath. Replace
11667 xfullpath calls by gdb_realpath calls.
11668 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11669 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11670 from method map_symtabs_matching_filename and its comment.
11671 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11673 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11674 remove it also from the function comment, remove a block handling it.
11675 Drop gdb_realpath call and cleanups from the real_path handling.
11676 (iterate_over_symtabs): Drop variable full_path and its use.
11677 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11678 * utils.c (xfullpath): Remove.
11679 * utils.h (xfullpath): Remove.
11681 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11683 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11684 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11685 (ALLDEPFILES): Add ppc64-tdep.c.
11686 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11687 ppc64-tdep.o to gdb_target_obs.
11688 * ppc64-tdep.h: New file.
11689 * ppc64-tdep.c: New file.
11690 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11691 ppc-linux-tdep.c to here.
11692 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11693 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11694 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11695 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11696 from ppc-linux-tdep.c to here.
11697 (ppc64_convert_from_func_ptr_addr): Rename from
11698 ppc64_linux_convert_from_func_ptr_addr to
11699 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11702 (read_insn): Move from ppc-linux-tdep.c to here.
11703 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11704 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11705 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11706 Removed above functions.
11707 (ppc_linux_init_abi): Adjust.
11709 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11711 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11713 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11715 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11717 2013-02-01 Pedro Alves <palves@redhat.com>
11719 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11720 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11722 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11724 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11725 files with no separate debug info.
11726 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11727 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11728 only for files with no separate debug info.
11730 2013-01-31 Tom Tromey <tromey@redhat.com>
11732 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11734 (struct jit_program_space_data): Rename from jit_inferior_data.
11736 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11737 Change return type. Attach data to program space.
11738 (jit_program_space_data_cleanup): Rename from
11739 jit_inferior_data_cleanup; change argument type.
11740 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11742 (jit_register_code): Update.
11743 (jit_update_inferior_cache): Remove.
11744 (jit_breakpoint_deleted): Get jit data from the location's program
11746 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11747 'ps_data', change type.
11748 (jit_inferior_init, jit_breakpoint_re_set_internal)
11749 (jit_event_handler): Update.
11750 (free_objfile_data): Get data from objfile's program space.
11751 (_initialize_jit): Update.
11753 2013-01-31 Tom Tromey <tromey@redhat.com>
11756 * jit.c (struct jit_inferior_data) <cached_code_address,
11757 jit_breakpoint>: New fields.
11758 (jit_breakpoint_re_set_internal): Fix logging. Only create
11759 breakpoint if cached address has changed.
11760 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11762 (_initialize_jit): Register breakpoint deleted observer.
11764 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11766 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11767 (save_infcall_suspend_state): Ifdef out unused inf.
11768 (restore_infcall_suspend_state): Ifdef out unused inf.
11769 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11770 (jit_frame_sniffer): Remove unused inf_data.
11772 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11774 * c-exp.y (classify_inner_name): Remove unused type.
11775 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11776 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11778 (c_get_string): Remove unused kind.
11779 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11781 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11783 * charset.c (intermediate_encoding): Remove unused i.
11784 * completer.c (signal_completer): Remove unused i.
11785 * continuations.c (discard_my_continuations_1): Remove unused
11787 * corelow.c (core_close): Remove unuseD name.
11788 (get_core_siginfo): Remove unused pid.
11789 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11791 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11792 (loclist_describe_location): Remove unused first.
11793 * event-top.c (command_line_handler): Remove unused got_eof.
11794 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11795 (resize_section_table): Remove unused old_value.
11796 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11797 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11798 * i386-tdep.c (i386_process_record): Remove unused rex.
11799 * infcmd.c (get_return_value): Remove unused uiout.
11800 * jv-lang.c (type_from_class): Remove unused is_array.
11801 * jv-valprint.c (java_val_print): Remove unused i.
11802 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11803 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11804 * m2-typeprint.c (m2_print_type): Remove unused code.
11805 * macroexp.c (get_character_constant): Remove unused body_start.
11806 (macro_stringify): Remove unused result.
11807 * objc-lang.c (find_methods): Remove unused gdbarch.
11808 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11809 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11810 * stack.c (print_frame_args): Remove unused summary.
11811 * thread.c (thread_apply_command): Remove unused p.
11812 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11813 * valops.c (search_struct_method): Remove unused skip.
11814 * valprint.c (generic_val_print): Remove unused byte_order.
11815 * varobj.c (varobj_update): Remove unused changed.
11816 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11817 (alias_command): Remove unused c.
11818 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11819 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11821 (mi_cmd_data_write_memory): Remove unused word_format.
11822 (mi_cmd_data_write_memory_bytes): Remove unused r.
11823 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11825 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11826 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11829 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11831 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11832 * symtab.c (iterate_over_symtabs): Remove unused s.
11833 (find_pc_sect_symtab): Remove unused pspAce.
11834 (find_pc_sect_line): Remove unused alt_symtab.
11835 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11836 (completion_list_add_name): Remove unused newsize.
11838 2013-01-31 Tom Tromey <tromey@redhat.com>
11841 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11844 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11846 * target.c (target_read_string): Remove unused origlen.
11848 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11850 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11851 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11852 * ax-general.c (ax_print): Remove unused is_float.
11853 * blockframe.c (block_innermost_frame): Remove unused start, end.
11854 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11856 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11858 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11859 (svr4_read_so_list): Remove unused lmo.
11860 * solib-target.c (solib_target_relocate_section_addresses): Remove
11863 2013-01-30 Tom Tromey <tromey@redhat.com>
11865 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11867 2013-01-30 Tom Tromey <tromey@redhat.com>
11869 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11870 * utils.c (gnu_debuglink_crc32): Remove.
11871 * utils.h (gnu_debuglink_crc32): Don't declare.
11873 2013-01-30 Tom Tromey <tromey@redhat.com>
11875 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11876 (read_structure_type, read_enumeration_type): Remove cast.
11878 2013-01-30 Tom Tromey <tromey@redhat.com>
11880 * dwarf2read.c (read_namespace_type): Remove cast.
11881 (read_typedef): Likewise.
11883 2013-01-29 Tom Tromey <tromey@redhat.com>
11885 * dwarf2read.c (free_dwo_file): Remove assert.
11887 2013-01-29 Tom Tromey <tromey@redhat.com>
11889 * value.c (deprecated_set_value_modifiable): Remove.
11890 * value.h (deprecated_set_value_modifiable): Remove.
11892 2013-01-28 Doug Evans <dje@google.com>
11894 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11895 to addresses from dwo files.
11897 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11899 * valops.c (find_overload_match): Remove unused argument 'lax'.
11900 * value.h: Remove unused argument 'lax' from the declaration of
11901 find_overload_match.
11902 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11903 to find_overload_match.
11904 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11905 argument to find_overload_match.
11907 2013-01-25 Tom Tromey <tromey@redhat.com>
11909 * dwarf2read.c (processing_has_namespace_info): Remove.
11910 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11911 (process_die, read_func_scope, dwarf2_start_symtab)
11912 (new_symbol_full): Update.
11914 2013-01-25 Tom Tromey <tromey@redhat.com>
11916 * cp-namespace.c (cp_set_block_scope): Remove.
11917 * cp-support.h (cp_set_block_scope): Remove.
11918 * dbxread.c: Include block.h.
11919 (cp_set_block_scope): New function.
11920 (process_one_symbol): Update.
11921 * dwarf2read.c (read_func_scope): Use block_set_scope.
11923 2013-01-25 Pedro Alves <palves@redhat.com>
11925 * remote.c (add_current_inferior_and_thread): Tweak comment.
11927 2013-01-25 Tom Tromey <tromey@redhat.com>
11929 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11930 (cp_add_using_directive): Add 'copy_names' argument.
11931 * cp-support.h (cp_add_using_directive): Update.
11932 (struct using_direct) <import_src, import_dest, alias,
11933 declaration>: Now const.
11934 * dwarf2read.c (read_import_statement): Use obconcat.
11935 Don't copy names passed to cp_add_using_directive.
11937 2013-01-25 Tom Tromey <tromey@redhat.com>
11939 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11941 2013-01-25 Pedro Alves <palves@redhat.com>
11943 * remote.c (stop_reply_extract_thread): New.
11944 (add_current_inferior_and_thread): New parameter 'wait_status'.
11946 (remote_start_remote): Pass wait status to
11947 add_current_inferior_and_thread.
11948 (extended_remote_run): Update comment.
11949 (extended_remote_create_inferior_1): Pass wait status to
11950 add_current_inferior_and_thread.
11952 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11953 Ulrich Weigand <uweigand@de.ibm.com>
11955 * valarith.c (value_vector_widen): New function for replicating a
11956 scalar into a vector.
11957 (value_binop): Use value_vector_widen to widen scalar to vector
11958 rather than casting, this better matches gcc C behaviour.
11959 * valops.c (value_casst): Update logic for casting between vector
11960 types, and for casting from scalar to vector, try to match gcc C
11962 * value.h (value_vector_widen): Declare.
11963 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11964 function, handle special case for casting scalar to vector.
11965 (opencl_relop): Use opencl_value_cast.
11966 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11967 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11968 in order to use opencl_value_cast.
11970 2013-01-25 Yao Qi <yao@codesourcery.com>
11972 * event-loop.c: Include "queue.h".
11973 (gdb_event_p): New typedef.
11974 (DECLARE_QUEUE_P): Use.
11975 (DEFINE_QUEUE_P): Use.
11976 (async_queue_event): Remove.
11977 (gdb_event_xfree): New.
11978 (initialize_event_loop): New.
11979 (process_event): Use QUEUE macros.
11980 (event_queue): Remove.
11981 (gdb_wait_for_event): Caller update.
11982 (check_async_event_handlers): Likewise.
11983 (poll_timers): Likewise.
11984 * event-loop.h (initialize_event_loop): Declare.
11985 * event-loop.c (gdb_event_xfree): New.
11986 * top.c (gdb_init): Call initialize_event_loop.
11988 2013-01-25 Yao Qi <yao@codesourcery.com>
11990 * event-loop.c (async_queue_event): Remove one parameter
11991 'position'. Remove code handling 'position' == TAIL.
11992 (gdb_wait_for_event): Caller update.
11993 (check_async_event_handlers): Caller update.
11994 (poll_timers): Caller update.
11995 * event-loop.h (enum queue_position): Remove.
11997 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11999 * MAINTAINERS: Update my email.
12001 2013-01-25 Yao Qi <yao@codesourcery.com>
12003 * main.c (print_gdb_help): Remove "--epoch" from the help
12006 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
12008 * symtab.c (skip_prologue_using_sal): Consider a file
12009 change the same as an increased line number
12011 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12013 * MAINTAINERS (Write After Approval): Add myself to the list.
12015 2013-01-24 Tom Tromey <tromey@redhat.com>
12017 * ada-lang.h (ada_decode_symbol): Make return type const.
12018 * ada-lang.c (ada_decode_symbol): Likewise.
12020 2013-01-23 Doug Evans <dje@google.com>
12022 * linespec.c (find_linespec_symbols): Make static.
12024 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12026 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12027 type on float conversion for complex type.
12029 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12031 Add a new class gdb.Architecture which exposes GDB's
12032 internal representation of architecture via GDB Python API.
12033 * Makefile.in: Add entries corresponding to the new file
12035 * NEWS (Python Scripting): Add entries for the new class
12036 gdb.Architecture and the new method gdb.Frame.architecture.
12037 * python/py-arch.c: Implement gdb.Architecture class.
12038 * python/py-frame.c (frapy_arch): Implement the method
12039 gdb.Frame.architecture().
12040 (frame_object_methods): Add 'architecture' to the method table.
12041 * python/python-internal.h: Add declarations of new utility
12043 * python/python.c (_initialize_python): Initialize
12044 gdb.Architecture class.
12046 2013-01-23 Doug Evans <dje@google.com>
12048 Work around binutils/15021.
12049 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12050 type_unit_group out of union s. All uses updated.
12051 (read_index_from_section): Watch for index version 8.
12052 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12053 an imported symtab.
12054 (write_psymtabs_to_index): Increment version number to 8.
12056 2013-01-22 Pedro Alves <palves@redhat.com>
12058 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12061 2013-01-22 Pedro Alves <palves@redhat.com>
12063 * annotate.c (annotate_breakpoints_changed): Rename to ...
12064 (annotate_breakpoints_invalid): ... this. Make static.
12065 (breakpoint_changed): Adjust.
12066 (_initialize_annotate): Always install the observers. Install a
12067 "breakpoint_created" observer.
12068 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12069 * breakpoint.c (set_breakpoint_condition)
12070 (breakpoint_set_commands, do_map_commands_command)
12071 (init_raw_breakpoint, clear_command, set_ignore_count)
12072 (enable_breakpoint_disp): No longer call
12073 annotate_breakpoints_changed.
12075 2013-01-22 Pedro Alves <palves@redhat.com>
12077 * annotate.c: Include "inferior.h".
12078 (frames_invalid_emitted)
12079 (breakpoints_invalid_emitted): New globals.
12080 (async_background_execution_p): New function.
12081 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12082 emitting the annotation if it has already been emitted.
12083 (annotate_display_prompt): New function.
12084 * annotate.h (annotate_display_prompt): New declaration.
12085 * event-top.c: Include annotate.h.
12086 (display_gdb_prompt): Call annotate_display_prompt.
12088 2013-01-22 Pedro Alves <palves@redhat.com>
12090 * annotate.c (ignore_count_changed): Delete.
12091 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12092 (annotate_ignore_count_change): Delete.
12093 (annotate_stopped): Don't emit a delayed breakpoints-changed
12095 * annotate.h (annotate_ignore_count_change): Delete.
12096 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12097 annotate_ignore_count_change.
12099 2013-01-22 Tom Tromey <tromey@redhat.com>
12101 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12102 require_rvalue for a register location.
12104 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12106 * breakpoint.c (print_one_breakpoint_location): Add MI
12107 field 'thread-groups' when printing a breakpoint.
12108 (output_thread_groups): New function.
12110 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12112 * python/lib/gdb/commands/explore.py
12113 (CompoundExplorer.explore_expr): Correct the name of a method
12115 (ExploreTypeCommand.invoke): Add a missing 'return'.
12117 2013-01-21 Tom Tromey <tromey@redhat.com>
12119 * gdb_obstack.h (obconcat): Move declaration here, from...
12120 * symfile.h (obconcat): ... here.
12121 * gdb_obstack.c: New file.
12122 (obconcat): Move from...
12123 * symfile.c (obconcat): ... here.
12124 * Makefile.in (SFILES): Add gdb_obstack.c.
12125 (COMMON_OBS): Add gdb_obstack.o.
12127 2013-01-21 Tom Tromey <tromey@redhat.com>
12129 * symfile.h (obsavestring): Don't declare.
12130 * symfile.c (obsavestring): Remove.
12131 * ada-exp.y: Use obstack_copy0, not obsavestring.
12132 * ada-lang.c: Use obstack_copy0, not obsavestring.
12133 * coffread.c: Use obstack_copy0, not obsavestring.
12134 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12135 * dbxread.c: Use obstack_copy0, not obsavestring.
12136 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12137 * jit.c: Use obstack_copy0, not obsavestring.
12138 * mdebugread.c: Use obstack_copy0, not obsavestring.
12139 * psymtab.c: Use obstack_copy0, not obsavestring.
12140 * stabsread.c: Use obstack_copy0, not obsavestring.
12141 * xcoffread.c: Use obstack_copy0, not obsavestring.
12143 2013-01-21 Tom Tromey <tromey@redhat.com>
12145 * dwarf2read.c (fixup_go_packaging): Save package name
12146 on objfile obstack.
12147 * gdbtypes.c (init_type): Don't copy name.
12149 2013-01-21 Tom Tromey <tromey@redhat.com>
12151 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12153 (struct attribute) <u.str>: Now const.
12154 (struct fnfieldlist) <name>: Now const.
12155 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12156 (partial_die_parent_scope): Make return type const.
12157 (partial_die_full_name, add_partial_symbol): Update.
12158 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12160 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12161 (read_file_scope, read_func_scope, dwarf2_add_field)
12162 (dwarf2_add_member_fn, read_structure_type)
12163 (process_enumeration_scope, read_array_type, read_module_type)
12164 (read_base_type, read_subrange_type): Update.
12165 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12166 (new_symbol_full, guess_full_die_structure_name): Update.
12167 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12168 (dwarf2_name): Return const type.
12169 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12172 2013-01-21 Tom Tromey <tromey@redhat.com>
12174 * gdbtypes.c (init_type): Make 'name' const.
12175 * gdbtypes.h (init_type): Update.
12177 2013-01-21 Tom Tromey <tromey@redhat.com>
12179 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12180 (start_symtab): Make 'name' and 'dirname' const. Use
12181 set_last_source_file.
12182 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12183 (last_source_file): Define. Now static.
12184 (set_last_source_file, get_last_source_file): New functions.
12185 * buildsym.h (last_source_file): Don't declare.
12186 (start_symtab): Update.
12187 (set_last_source_file, get_last_source_file): Declare.
12188 * coffread.c (complete_symtab): Use set_last_source_file.
12189 (coff_end_symtab): Likewise.
12190 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12191 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12192 set_last_source_file.
12193 (process_one_symbol): Use get_last_source_file.
12194 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12195 (psymtab_to_symtab_1): Use get_last_source_file.
12196 * xcoffread.c (process_linenos): Use get_last_source_file.
12197 (complete_symtab): Use set_last_source_file.
12198 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12199 (scan_xcoff_symtab): Use set_last_source_file.
12201 2013-01-21 Tom Tromey <tromey@redhat.com>
12203 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12204 (symbol_set_names): Remove casts. Handle field const-ness.
12206 2013-01-21 Tom Tromey <tromey@redhat.com>
12208 * dwarf2read.c (new_symbol_full): Remove cast.
12209 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12210 * symtab.h (symbol_set_demangled_name): Update.
12212 2013-01-21 Tom Tromey <tromey@redhat.com>
12214 * main.c (captured_main): Call bfd_init.
12216 2013-01-21 Tom Tromey <tromey@redhat.com>
12218 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12219 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12220 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12223 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12225 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12227 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12229 Fix gdb.fortran/common-block.exp crash in PIE mode.
12230 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12232 * f-valprint.c (info_common_command_for_block): Expect
12233 LOC_COMMON_BLOCK in gdb_assert.
12234 * symtab.h (struct general_symbol_info): Update comment for the
12235 common_block member.
12236 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12237 (enum address_class): New member LOC_COMMON_BLOCK.
12239 2013-01-18 David Blaikie <dblaikie@gmail.com>
12241 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12243 2013-01-18 Tom Tromey <tromey@redhat.com>
12246 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12247 Call require_rvalue.
12249 2013-01-18 Yao Qi <yao@codesourcery.com>
12251 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12252 (dbx_read_symtab): New declaration.
12253 (dbx_psymtab_to_symtab): Delete.
12254 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12255 Rename parameter PST to SELF. Exchanged two parameters.
12256 (start_psymtab): Caller update.
12257 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12258 (dwarf2_read_symtab): New declaration.
12259 (dwarf2_psymtab_to_symtab): Delete.
12260 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12261 Rename parameter PST to SELF. Exchanged two parameters.
12262 (create_partial_symtab): Caller update.
12263 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12264 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12265 Rename parameter PST to SELF. Exchanged two parameters.
12266 (parse_partial_symbols, new_psymtab): Caller update.
12267 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12269 * psymtab.c (psymtab_to_symtab): Caller update.
12270 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12271 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12272 Rename parameter PST to SELF. Exchanged two parameters.
12273 (xcoff_start_psymtab): Caller update.
12275 2013-01-18 Yao Qi <yao@codesourcery.com>
12277 * infrun.c (proceed): Rename local variable 'oneproc' to
12280 2013-01-17 Doug Evans <dje@google.com>
12282 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12283 (dw2_build_type_unit_groups): Delete. All uses updated.
12285 * symtab.h (struct symbol_search): Add comment.
12287 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12289 * symtab.c (compare_filenames_for_search): New comment for
12292 2013-01-17 Tom Tromey <tromey@redhat.com>
12294 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12296 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12298 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12299 initialize it by existing make_cleanup. Call new do_cleanups.
12301 2013-01-17 Tom Tromey <tromey@redhat.com>
12303 * cp-abi.c (cp_abi_completer): New function.
12304 (_initialize_cp_abi): Set completer for "set cp-abi".
12306 2013-01-17 Tom Tromey <tromey@redhat.com>
12308 * mem-break.c: Remove obsolete comment.
12309 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12311 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12313 * jit.c (jit_reader_load_command): Interpret the jit reader name
12314 as an absolute path if it begins with a forward slash.
12316 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12320 * jit.c (finalize_symtab): Ensure that only the global block has a
12323 2013-01-17 Pedro Alves <palves@redhat.com>
12325 * acinclude.m4: Include ../config/plugins.m4,
12326 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12327 * Makefile.in (aclocal_m4_deps): Update.
12328 * aclocal.m4: Renegerate.
12330 2013-01-16 Doug Evans <dje@google.com>
12332 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12334 2013-01-16 Pedro Alves <palves@redhat.com>
12335 Tom Tromey <tromey@redhat.com>
12338 * NEWS: Add "catch signal".
12339 * breakpoint.c (base_breakpoint_ops): No longer static.
12340 (bpstat_explains_signal): New function.
12341 (init_catchpoint): No longer static.
12342 (base_breakpoint_explains_signal): New function.
12343 (base_breakpoint_ops): Initialize new field.
12344 * breakpoint.h (enum bpstat_signal_value): New.
12345 (struct breakpoint_ops) <explains_signal>: New field.
12346 (bpstat_explains_signal): Remove macro, declare as function.
12347 (base_breakpoint_ops, init_catchpoint): Declare.
12348 * break-catch-sig.c: New file.
12349 * inferior.h (signal_catch_update): Declare.
12350 * infrun.c (signal_catch): New global.
12351 (handle_syscall_event): Update for change to
12352 bpstat_explains_signal.
12353 (handle_inferior_event): Likewise. Always handle random signals
12355 (signal_cache_update): Check signal_catch.
12356 (signal_catch_update): New function.
12357 (_initialize_infrun): Initialize signal_catch.
12358 * Makefile.in (SFILES): Add break-catch-sig.c.
12359 (COMMON_OBS): Add break-catch-sig.o.
12361 2013-01-16 Tom Tromey <tromey@redhat.com>
12363 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12364 (print_one_catch_solib, print_one_catch_syscall)
12365 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12368 2013-01-16 Yao Qi <yao@codesourcery.com>
12370 * printcmd.c (current_display_number): Make it static.
12372 2013-01-16 Yao Qi <yao@codesourcery.com>
12374 * infcmd.c (step_once): Don't check '!single_inst' as it was
12377 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12379 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12381 2013-01-14 Tom Tromey <tromey@redhat.com>
12383 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12385 * command.h (add_setshow_string_noescape_cmd): Update.
12386 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12387 (complete_set_gnutarget): New function.
12388 (_initialize_core): Set the "set gnutarget" completer.
12390 2013-01-14 Tom Tromey <tromey@redhat.com>
12393 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12394 (c_type_print_modifier): Likewise.
12395 * dwarf2read.c (read_tag_restrict_type): New function.
12396 (read_type_die_1): Handle DW_TAG_restrict_type.
12397 * gdbtypes.c (make_restrict_type): New function.
12398 (recursive_dump_type): Handle TYPE_RESTRICT.
12399 * gdbtypes.h (enum type_flag_values): Renumber.
12400 (enum type_instance_flag_value): Add
12401 TYPE_INSTANCE_FLAG_RESTRICT.
12402 (TYPE_RESTRICT): New macro.
12403 (make_restrict_type): Declare.
12405 2013-01-14 Tom Tromey <tromey@redhat.com>
12408 * psymtab.c (struct psymtab_state): New.
12409 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12411 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12412 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12414 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12415 Pedro Alves <palves@redhat.com>
12419 * remote.c (remote_threads_info): Make a copy of the reply from
12420 qfThreadInfo and use that instead of rs->buf.
12422 2013-01-14 Yao Qi <yao@codesourcery.com>
12424 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12425 (dbx_psymtab_to_symtab): Likewise.
12426 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12427 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12428 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12430 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12432 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12433 make_cleanup_restore_current_language. Call set_language. Move
12434 OLD_CHAIN and INNER_CHAIN cleanups.
12435 * utils.c (do_restore_current_language)
12436 (make_cleanup_restore_current_language): New functions.
12437 * utils.h (make_cleanup_restore_current_language): New declaration.
12439 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12441 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12442 non-existing files.
12444 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12445 non-existing files if FILENAME is already absolute.
12447 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12449 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12450 fputs_filtered. Append trailing newline.
12452 2013-01-11 Yao Qi <yao@codesourcery.com>
12453 Stan Shebs <stan@codesourcery.com>
12455 * psymtab.c (init_psymbol_list): Clarify the comment.
12457 2013-01-11 Yao Qi <yao@codesourcery.com>
12459 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12460 (update_dprintf_command_list): Assert that 'printf_line' is
12461 non-null. Remove condition check.
12463 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12466 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12468 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12470 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12472 2013-01-09 Anthony Green <green@moxielogic.com>
12474 * cp-abi.c (cplus_print_vtable): Don't return value from void
12476 * ada-lang.c (re_set_catch_assert): Ditto.
12478 2013-01-09 Doug Evans <dje@google.com>
12480 * symfile.h (quick_symbol_functions): Delete member
12481 pre_expand_symtabs_matching. All uses removed.
12482 * dwarf2read.c (dw2_lookup_symbol): Implement.
12483 (dw2_do_expand_symtabs_matching): Delete.
12484 (dw2_pre_expand_symtabs_matching): Delete.
12485 (struct dw2_symtab_iterator): New type.
12486 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12487 (dw2_expand_symtabs_for_function): Rewrite.
12488 (dwarf2_gdb_index_functions): Update.
12489 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12490 (psym_functions): Update.
12492 2013-01-09 Tom Tromey <tromey@redhat.com>
12494 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12495 * configure: Rebuild.
12496 * configure.ac: Add somread.o to the build if BFD has SOM
12498 * somread.c: Include som/aout.h, not syms.h.
12499 (som_symtab_read): Use som_external_symbol_dictionary_record.
12500 Unpack records manually.
12501 (_initialize_somread): Declare.
12503 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12505 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12506 Cast return_address to 64bits.
12508 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12510 * printcmd.c: Remove define of function output_command.
12511 * tracepoint.c: Remove extern of function output_command.
12512 * valprint.h: (output_command): New extern.
12514 2013-01-07 Tom Tromey <tromey@redhat.com>
12516 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12518 (objc_language_defn): Use c_printchar, c_printstr,
12521 2013-01-07 Tom Tromey <tromey@redhat.com>
12525 * ada-valprint.c (printstr, print_field_values): Remove
12527 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12529 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12531 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12532 * main.c (captured_main): Remove "epoch" argument.
12533 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12534 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12535 * p-valprint.c (pascal_object_print_value_fields): Remove
12537 * printcmd.c (print_command_1): Remove 'inspect' argument.
12538 (print_command, call_command): Update.
12539 (inspect_command): Remove.
12540 (_initialize_printcmd): Make "inspect" an alias for "print".
12541 * top.c (epoch_interface): Remove.
12542 * top.h (epoch_interface): Remove.
12543 * valprint.c (user_print_options): Update.
12544 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12545 * valprint.h (struct value_print_options) <inspect_it>: Remove
12548 2013-01-04 Tom Tromey <tromey@redhat.com>
12550 * valprint.h (read_string): Add 'extern'.
12552 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12554 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12555 used to decide whether to define darwin_read_dyld_info or not.
12557 2013-01-03 Pierre Muller <muller@sourceware.org>
12559 * main.c (relocate_gdb_directory): Avoid calling stat function
12562 2013-01-03 Yao Qi <yao@codesourcery.com>
12564 * psymtab.c (fixup_psymbol_section): Update declaration.
12565 (fixup_psymbol_section): Remove code returning value.
12567 2013-01-03 Yao Qi <yao@codesourcery.com>
12569 * symtab.h: Remove some out of date comments.
12570 (enum exception_event_kind): Move it ...
12571 * breakpoint.c: ... here.
12573 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12576 * darwin-nat.c (darwin_read_dyld_info): Only build if
12577 TASK_DYLD_INFO_COUNT is defined.
12578 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12579 TASK_DYLD_INFO_COUNT is defined.
12581 2013-01-02 Tom Tromey <tromey@redhat.com>
12583 * symfile.h (struct ecoff_debug_hack): Remove.
12584 * objfiles.c: Don't include mdebugread.h.
12586 2013-01-02 Tom Tromey <tromey@redhat.com>
12588 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12589 * configure.ac: Check for Mach-O support in BFD. Update
12591 * configure: Rebuild.
12593 2013-01-02 Tom Tromey <tromey@redhat.com>
12595 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12596 * configure.ac: Use GDB_AC_CHECK_BFD.
12597 * configure: Rebuild.
12599 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12601 * MAINTAINERS: Update my email.
12603 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12605 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12607 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12609 * rs6000-nat.c (bss_data_overlap): New function.
12610 (vmap_symtab): Use it to adjust the .bss section's offset.
12612 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12614 Update year range in copyright notice of all files.
12616 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12618 * top.c (print_gdb_version): Update copyright year.
12620 For older changes see ChangeLog-2012.
12626 version-control: never