00369e98f20b0dca5411b3dcc2da1fda02869e0d
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-27 Pedro Alves <palves@redhat.com>
2
3 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
4 register in the previous frame's arch.
5
6 2013-11-27 Pedro Alves <palves@redhat.com>
7
8 * frame-unwind.c (frame_unwind_got_optimized): Return
9 an lval_register value instead of a not_lval value.
10
11 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
12
13 * frame.c: Include "valprint.h".
14 (frame_unwind_register_value): Use value_optimized_out.
15 * value.c (value_fetch_lazy): Likewise.
16
17 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
18
19 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
20
21 2013-11-26 Tom Tromey <tromey@redhat.com>
22
23 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
24 2013-11-22.
25
26 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
27
28 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
29 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
30 (HAS_MPX): New macro.
31 (HAS_AVX): New macro.
32 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
33
34 2013-11-25 Keith Seitz <keiths@redhat.com>
35
36 PR c++/14819
37 * c-exp.y (classify_inner_name): If no matching symbol was
38 found, try looking up the token as a base class.
39 Likewise if a constructor was found.
40 * cp-namespace.c (find_type_baseclass_by_name): New function.
41 * cp-support.h (find_type_baseclass_by_name): Declare.
42 * valops.c (value_struct_elt_for_reference): If we get
43 a non-static field, try to get a value based on the
44 current instance, if any.
45
46 2013-11-24 Yao Qi <yao@codesourcery.com>
47
48 * disasm.c (dis_asm_read_memory): Call target_read_code
49 instead of target_read_memory.
50
51 2013-11-24 Yao Qi <yao@codesourcery.com>
52
53 * NEWS: Add note on new "set code-cache" option.
54 * target-dcache.c (code_cache_enabled_1): New variable.
55 (code_cache_enabled): New variable.
56 (show_code_cache, set_code_cache): New function.
57 (code_cache_enabled_p): New function.
58 (_initialize_target_dcache): Register command.
59 * target-dcache.h (code_cache_enabled_p): Declare.
60 * target.c (memory_xfer_partial_1):Handle
61 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
62 (target_read_code): New function.
63 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
64 New.
65 (target_read_code): Declare.
66
67 2013-11-24 Yao Qi <yao@codesourcery.com>
68
69 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
70 (stack_cache_enabled_1): ... this. New variable.
71 (stack_cache_enabled_p): Rename to ...
72 (stack_cache_enabled): ... this. New variable.
73 (set_stack_cache_enabled_p): Rename to ...
74 (set_stack_cache): ... this. Update caller.
75 (show_stack_cache_enabled_p): Rename to ...
76 (show_stack_cache): ... this. Update caller.
77 (stack_cache_enabled): Rename to ...
78 (stack_cache_enabled_p): ... this. Update caller.
79 (_initialize_target_dcache): Replace "data cache" with
80 "target memory cache".
81 * target-dcache.h (stack_cache_enabled): Remove declaration.
82 (stack_cache_enabled_p): Add declaration.
83
84 2013-11-23 Doug Evans <xdje42@gmail.com>
85
86 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
87 superfluous.
88
89 2013-11-23 Doug Evans <xdje42@gmail.com>
90
91 * python/py-frame.c (frapy_block): Fix error message text.
92
93 2013-11-23 Doug Evans <xdje42@gmail.com>
94
95 * cli/cli-script.c (multi_line_command_p): New function.
96 (recurse_read_control_structure, read_command_lines_1): Call it.
97 (execute_control_command): Consistently have a blank line between
98 each case.
99
100 2013-11-22 Sterling Augustine <saugustine@google.com>
101
102 PR gdb/16196:
103 * valprint.c (read_string): Set new variable fetchlen based on
104 fetchlimit and size. Use it in call to partial_memory_read.
105 Update comment.
106
107 2013-11-22 Tom Tromey <tromey@redhat.com>
108
109 PR backtrace/16155:
110 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
111 the return address column is unspecified.
112
113 2013-11-22 Tom Tromey <tromey@redhat.com>
114 Pedro Alves <palves@redhat.com>
115
116 PR backtrace/16155
117 * value.c (value_fetch_lazy): Internal error if
118 get_frame_register_value returns the same register.
119
120 2013-11-22 Pedro Alves <palves@redhat.com>
121 Tom Tromey <tromey@redhat.com>
122
123 * frame.c (frame_stash_add): Now returns whether a frame with the
124 same ID was already known.
125 (compute_frame_id): New function, factored out from get_frame_id.
126 (get_frame_id): No longer lazilly compute the frame id here.
127 (get_prev_frame_if_no_cycle): New function. Detects wider stack
128 cycles.
129 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
130 and checking for stack cycles here.
131
132 2013-11-22 Pedro Alves <palves@redhat.com>
133
134 PR 16155
135 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
136 this frame and the new previous frame, not between this frame and
137 the next frame.
138
139 2013-11-22 Pedro Alves <palves@redhat.com>
140
141 PR 16155
142 * dwarf2-frame.c (struct dwarf2_frame_cache)
143 <checked_tailcall_bottom, entry_cfa_sp_offset,
144 entry_cfa_sp_offset_p>: New fields.
145 (dwarf2_frame_cache): Adjust to use the new cache fields instead
146 of locals. Don't call dwarf2_tailcall_sniffer_first here.
147 (dwarf2_frame_prev_register): Call it here, but only once.
148
149 2013-11-21 Doug Evans <xdje42@gmail.com>
150
151 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
152 (type_equality_entry): Move here from python/py-type.c.
153 (type_equality_entry_d): Ditto.
154 (compare_maybe_null_strings, check_types_equal): Ditto.
155 (check_types_worklist, types_deeply_equal): Ditto.
156 * gdbtypes.h (types_deeply_equal): Declare.
157 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
158 (typy_richcompare): Update.
159
160 2013-11-20 Joel Brobecker <brobecker@adacore.com>
161
162 * python/py-value.c (is_intlike): Delete.
163 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
164 by use of is_integral_type.
165 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
166 by use of is_integral_type and check for TYPE_CODE_PTR.
167
168 2013-11-20 Tom Tromey <tromey@redhat.com>
169
170 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
171 strerror module.
172 * gnulib/aclocal.m4: Update.
173 * gnulib/config.in: Update.
174 * gnulib/configure: Update.
175 * gnulib/import/Makefile.am: Update.
176 * gnulib/import/Makefile.in: Update.
177 * gnulib/import/errno.in.h: Remove.
178 * gnulib/import/intprops.h: Remove.
179 * gnulib/import/m4/errno_h.m4: Remove.
180 * gnulib/import/m4/gnulib-cache.m4: Update.
181 * gnulib/import/m4/gnulib-comp.m4: Update.
182 * gnulib/import/m4/strerror.m4: Remove.
183 * gnulib/import/m4/sys_socket_h.m4: Remove.
184 * gnulib/import/strerror-override.c: Remove.
185 * gnulib/import/strerror-override.h: Remove.
186 * gnulib/import/strerror.c: Remove.
187 * gnulib/update-gnulib.sh: Update.
188
189 2013-11-20 Yao Qi <yao@codesourcery.com>
190
191 * target-dcache.c (target_dcache_get_or_init): Call
192 set_address_space_data if 'dcache' is NULL.
193
194 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
195
196 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
197
198 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
199
200 * python/lib/gdb/command/bound_register.py: New file.
201 * data-directory/Makefile.in: Copy bond_register.py to the right path
202 to be initialized at gdb startup.
203
204 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
205
206 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
207 Add MPX registers.
208 (amd64_linux_read_description): Add initialization for MPX and
209 AVX independently.
210 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
211 (amd64_linux_gregset_reg_offset): Add MPX registers.
212 (amd64_linux_core_read_description): Add initialization for MPX
213 registers.
214 (_initialize_amd64_linux_tdep): Initialize MPX targets.
215 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
216 register on the list.
217 (tdesc_amd64_mpx_linux) Add new target for MPX.
218 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
219 (amd64_mpx_names): MPX register names.
220 (amd64_init_abi): Add MPX register while initializing the ABI.
221 (_initialize_amd64_tdep): Initialize MPX targets.
222 * amd64-tdep.h (amd64_regnum): Add MPX registers.
223 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
224
225 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
226
227 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
228 registers on the range of registers to be read from
229 xsave buffer.
230 (i386_linux_read_description): Add case for MPX.
231 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
232 (i386_linux_gregset_reg_offset): Add MPX registers.
233 (i386_linux_core_read_description): Initialize also MPX.
234 (_initialize_i386_linux_tdep): Add mpx initialization.
235 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
236 mpx_register_names.
237 (i386_regnum): Add MPX registers.
238 (I386_MPX_NUM_REGS): New macro.
239 (i386_bnd_regnum_p): New function.
240 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
241 number of registers to be the number of BNDSTATUS.
242 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
243 * i386-tdep.c: Include features/i386/i386-mpx.c.
244 (i386_mpx_names): Add MPX register names array.
245 (i386_bnd_names): Add bnd pseudo register names array.
246 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
247 registers.
248 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
249 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
250 registers.
251 (i386_bnd_type): New function.
252 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
253 register types.
254 (i386_pseudo_register_read_into_value): Add bnd case.
255 (i386_pseudo_register_write): Add bnd pseudo registers.
256 (i386_register_reggroup_p): Add MPX register to the group all.
257 (i386_validate_tdesc_p): Add MPX to the target description
258 validation.
259 (i386_pseudo_register_name): Add bnd pseudo registers.
260 (i386_gdbarch_init): Add MPX for architecture initialization.
261 (_initia_initialize_i386_tdep): Add mpx initialization.
262 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
263 XSAVE buffer.
264 (XSAVE_MPX_ADDR): New macro.
265 (i387_supply_xsave): Add MPX case.
266 (i387_collect_xsave): Add MPX case.
267 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
268 (I387_BNDCFGU_REGNUM): New macro.
269 (I387_NUM_MPX_REGS): New macro.
270 (I387_NUM_BND_REGS): New macro.
271 (I387_NUM_MPX_CTRL_REGS): New macro.
272 (I387_MPXEND_REGNUM): New macro.
273 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
274 (I386_XSTATE_BNDCFG): Likewise.
275 (I386_XSTATE_MPX_MASK): Likewise.
276 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
277 (I386_XSTATE_BNDREGS_SIZE): New macro.
278 (I386_XSTATE_BNDCFG_SIZE): Likewise.
279 (I386_XSTATE_SIZE): Adapt for MPX.
280 (I386_XSTATE_MAX_SIZE): Likewise.
281
282 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
283
284 * features/i386/Makefile: Adapts for using MPX registers.
285 * features/i386/32bit-mpx.xml: New file.
286 * features/i386/64bit-mpx.xml: Likewise.
287 * features/i386/amd64-mpx-linux.c: Likewise.
288 * features/i386/amd64-mpx-linux.xml: Likewise.
289 * features/i386/amd64-mpx.c: Likewise.
290 * features/i386/amd64-mpx.xml: Likewise.
291 * features/i386/i386-mpx-linux.c: Likewise.
292 * features/i386/i386-mpx-linux.xml: Likewise.
293 * features/i386/i386-mpx.c: Likewise.
294 * features/i386/i386-mpx.xml: Likewise.
295 * regformats/i386/amd64-mpx-linux.dat: New file.
296 * regformats/i386/amd64-mpx.dat: Likewise.
297 * regformats/i386/i386-mpx-linux.dat: Likewise.
298 * regformats/i386/i386-mpx.dat: Likewise.
299
300 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
301
302 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
303 Modified logic of creating a bitfield to be in sync with
304 tdesc_gdb_type.
305
306 2013-11-20 Will Newton <will.newton@linaro.org>
307
308 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
309 error message.
310
311 2013-11-20 Yao Qi <yao@codesourcery.com>
312
313 * progspace.h (struct address_space_data): Declare.
314 * target-dcache.c: Include "progspace.h".
315 (target_dache): Remove.
316 (target_dcache_aspace_key): New.
317 (target_dcache_cleanup): New function.
318 (target_dcache_init_p): Get data through
319 target_dcache_aspace_key.
320 (target_dcache_invalidate): Likewise.
321 (target_dcache_get): Likewise.
322 (target_dcache_get_or_init): Likewise.
323 (_initialize_target_dcache): Initialize
324 target_dcache_aspace_key.
325
326 2013-11-20 Yao Qi <yao@codesourcery.com>
327
328 * progspace.c (struct address_space): Update comments.
329 <REGISTRY_FIELDS>: New fields.
330 DEFINE_REGISTRY for address_space.
331 (new_address_space): Call address_space_alloc_data.
332 (free_address_space): Call address_space_free_data.
333 * progspace.h: Use DECLARE_REGISTRY.
334
335 2013-11-20 Yao Qi <yao@codesourcery.com>
336
337 * Makefile.in (SFILES):Add target-dcache.c.
338 (HFILES_NO_SRCDIR): Add target-dcache.h.
339 (COMMON_OBS): Add target-dcache.o.
340 * dcache.c: Remove inclusion to "target.h". Include
341 "target-dcache.h".
342 * memattr.c: Include "target-dcache.h".
343 * top.c: Likewise.
344 * tracepoint.c: Likewise.
345 * target.c: (stack_cache_enabled_p_1): Move to
346 target-dcache.c.
347 (stack_cache_enabled_p): Likewise.
348 (set_stack_cache_enabled_p): Likewise.
349 (show_stack_cache_enabled_p): Likewise.
350 (target_dcache, target_dcache_init_p): Likewise.
351 (target_dcache_invalidate): Likewise.
352 (target_dcache_get, target_dcache_get_or_init): Likewise.
353 (memory_xfer_partial_1): Call function stack_cache_enabled.
354 (initialize_target): Move code to target-dcache.c.
355 * target.h (target_dcache_invalidate): Move to
356 target-dcache.h.
357 (target_dcache_get): Likewise.
358 * target-dcache.c: New.
359 * target-dcache.h: New.
360
361 2013-11-20 Yao Qi <yao@codesourcery.com>
362
363 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
364 it is initialized.
365
366 2013-11-20 Yao Qi <yao@codesourcery.com>
367
368 * dcache.c (last_cache): Remove.
369 (dcache_free, dcache_init): Update.
370 (dcache_update):
371 (dcache_print_line): Add parameter 'dcache'. Replace
372 'target_dcache' with 'dcache'.
373 (dcache_info): Move code to dcache_info_1. Call
374 'dcache_info_1'.
375 (dcache_info_1): New function.
376 (set_dcache_size): Call target_dcache_invalidate.
377 (set_dcache_line_size): Call target_dcache_invalidate.
378 * target.c (target_dcache_init_p): New function.
379 (target_dcache_invalidate): Check target_dcache_init_p first.
380 (target_dcache_get, target_dcache_get_or_init): New function.
381 (memory_xfer_partial_1): Adjust.
382 (initialize_target): Don't initialize 'target_dcache'.
383 * target.h (struct dcache_struct): Declare.
384 (target_dcache_get): Declare.
385
386 2013-11-19 Yao Qi <yao@codesourcery.com>
387
388 * varobj.c (varobj_get_type): Fix typo.
389
390 2013-11-19 Joel Brobecker <brobecker@adacore.com>
391
392 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
393
394 2013-11-19 Joel Brobecker <brobecker@adacore.com>
395
396 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
397 "stat.h".
398
399 2013-11-18 Tom Tromey <tromey@redhat.com>
400
401 * common/gdb_stat.h: Remove.
402 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
403 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
404 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
405 * corefile.c: Use sys/stat.h, not gdb_stat.h.
406 * ctf.c: Use sys/stat.h, not gdb_stat.h.
407 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
408 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
409 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
410 * exec.c: Use sys/stat.h, not gdb_stat.h.
411 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
412 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
413 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
414 * jit.c: Use sys/stat.h, not gdb_stat.h.
415 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
416 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
417 * main.c: Use sys/stat.h, not gdb_stat.h.
418 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
419 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
420 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
421 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
422 * procfs.c: Use sys/stat.h, not gdb_stat.h.
423 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
424 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
425 * remote.c: Use sys/stat.h, not gdb_stat.h.
426 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
427 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
428 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
429 * source.c: Use sys/stat.h, not gdb_stat.h.
430 * symfile.c: Use sys/stat.h, not gdb_stat.h.
431 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
432 * symtab.c: Use sys/stat.h, not gdb_stat.h.
433 * top.c: Use sys/stat.h, not gdb_stat.h.
434 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
435
436 2013-11-18 Tom Tromey <tromey@redhat.com>
437
438 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
439 sys_stat.
440 * gnulib/aclocal.m4: Update.
441 * gnulib/config.in: Update.
442 * gnulib/configure: Update.
443 * gnulib/import/Makefile.am: Update.
444 * gnulib/import/Makefile.in: Update.
445 * gnulib/import/m4/gnulib-cache.m4: Update.
446 * gnulib/import/m4/gnulib-comp.m4: Update.
447 * gnulib/import/m4/sys_stat_h.m4: New.
448 * gnulib/import/m4/time_h.m4: New.
449 * gnulib/import/sys_stat.in.h: New.
450 * gnulib/import/time.in.h: New.
451
452 2013-11-18 Tom Tromey <tromey@redhat.com>
453
454 * configure: Rebuild.
455 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
456
457 2013-11-18 Tom Tromey <tromey@redhat.com>
458
459 * configure: Rebuild.
460 * configure.ac: Don't check for unistd.h.
461
462 2013-11-18 Tom Tromey <tromey@redhat.com>
463
464 * configure: Rebuild.
465 * configure.ac: Don't check for stdlib.h
466 * defs.h: Include stdlib.h unconditionally.
467
468 2013-11-18 Tom Tromey <tromey@redhat.com>
469
470 * config.in: Rebuild.
471 * configure: Rebuild.
472 * configure.ac: Don't check for stddef.h.
473 * defs.h: Unconditionally include stddef.h. Remove duplicate
474 inclusion.
475
476 2013-11-18 Tom Tromey <tromey@redhat.com>
477
478 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
479 * common/gdb_dirent.h: Remove.
480 * common/filestuff.c: Use dirent.h.
481 * common/linux-osdata.c: Use dirent.h.
482 (NAMELEN): Define.
483 * config.in: Rebuild.
484 * configure: Rebuild.
485 * configure.ac: Don't use AC_HEADER_DIRENT.
486 * linux-fork.c: Use dirent.h
487 * linux-nat.c: Use dirent.h.
488 * nto-procfs.c: Use dirent.h.
489 * procfs.c: Use dirent.h.
490
491 2013-11-18 Tom Tromey <tromey@redhat.com>
492
493 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
494 * gnulib/aclocal.m4: Update.
495 * gnulib/config.in: Update.
496 * gnulib/configure: Update.
497 * gnulib/import/Makefile.am: Update.
498 * gnulib/import/Makefile.in: Update.
499 * gnulib/import/dirent.in.h: New.
500 * gnulib/import/m4/dirent_h.m4: New.
501 * gnulib/import/m4/gnulib-cache.m4: Update.
502 * gnulib/import/m4/gnulib-comp.m4: Update.
503
504 2013-11-18 Tom Tromey <tromey@redhat.com>
505
506 * configure: Rebuild.
507 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
508 strings.h.
509
510 2013-11-18 Tom Tromey <tromey@redhat.com>
511
512 * common/gdb_string.h: Remove.
513 * aarch64-tdep.c: Use string.h, not gdb_string.h.
514 * ada-exp.y: Use string.h, not gdb_string.h.
515 * ada-lang.c: Use string.h, not gdb_string.h.
516 * ada-lex.l: Use string.h, not gdb_string.h.
517 * ada-typeprint.c: Use string.h, not gdb_string.h.
518 * ada-valprint.c: Use string.h, not gdb_string.h.
519 * aix-thread.c: Use string.h, not gdb_string.h.
520 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
521 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
522 * alpha-nat.c: Use string.h, not gdb_string.h.
523 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
524 * alpha-tdep.c: Use string.h, not gdb_string.h.
525 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
526 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
527 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
528 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
529 * amd64-nat.c: Use string.h, not gdb_string.h.
530 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
531 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
532 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
533 * arch-utils.c: Use string.h, not gdb_string.h.
534 * arm-linux-nat.c: Use string.h, not gdb_string.h.
535 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
536 * arm-tdep.c: Use string.h, not gdb_string.h.
537 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
538 * armbsd-tdep.c: Use string.h, not gdb_string.h.
539 * armnbsd-nat.c: Use string.h, not gdb_string.h.
540 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
541 * armobsd-tdep.c: Use string.h, not gdb_string.h.
542 * avr-tdep.c: Use string.h, not gdb_string.h.
543 * ax-gdb.c: Use string.h, not gdb_string.h.
544 * ax-general.c: Use string.h, not gdb_string.h.
545 * bcache.c: Use string.h, not gdb_string.h.
546 * bfin-tdep.c: Use string.h, not gdb_string.h.
547 * breakpoint.c: Use string.h, not gdb_string.h.
548 * build-id.c: Use string.h, not gdb_string.h.
549 * buildsym.c: Use string.h, not gdb_string.h.
550 * c-exp.y: Use string.h, not gdb_string.h.
551 * c-lang.c: Use string.h, not gdb_string.h.
552 * c-typeprint.c: Use string.h, not gdb_string.h.
553 * c-valprint.c: Use string.h, not gdb_string.h.
554 * charset.c: Use string.h, not gdb_string.h.
555 * cli-out.c: Use string.h, not gdb_string.h.
556 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
557 * cli/cli-decode.c: Use string.h, not gdb_string.h.
558 * cli/cli-dump.c: Use string.h, not gdb_string.h.
559 * cli/cli-interp.c: Use string.h, not gdb_string.h.
560 * cli/cli-logging.c: Use string.h, not gdb_string.h.
561 * cli/cli-script.c: Use string.h, not gdb_string.h.
562 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
563 * cli/cli-utils.c: Use string.h, not gdb_string.h.
564 * coffread.c: Use string.h, not gdb_string.h.
565 * common/common-utils.c: Use string.h, not gdb_string.h.
566 * common/filestuff.c: Use string.h, not gdb_string.h.
567 * common/linux-procfs.c: Use string.h, not gdb_string.h.
568 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
569 * common/signals.c: Use string.h, not gdb_string.h.
570 * common/vec.h: Use string.h, not gdb_string.h.
571 * core-regset.c: Use string.h, not gdb_string.h.
572 * corefile.c: Use string.h, not gdb_string.h.
573 * corelow.c: Use string.h, not gdb_string.h.
574 * cp-abi.c: Use string.h, not gdb_string.h.
575 * cp-support.c: Use string.h, not gdb_string.h.
576 * cp-valprint.c: Use string.h, not gdb_string.h.
577 * cris-tdep.c: Use string.h, not gdb_string.h.
578 * d-lang.c: Use string.h, not gdb_string.h.
579 * dbxread.c: Use string.h, not gdb_string.h.
580 * dcache.c: Use string.h, not gdb_string.h.
581 * demangle.c: Use string.h, not gdb_string.h.
582 * dicos-tdep.c: Use string.h, not gdb_string.h.
583 * disasm.c: Use string.h, not gdb_string.h.
584 * doublest.c: Use string.h, not gdb_string.h.
585 * dsrec.c: Use string.h, not gdb_string.h.
586 * dummy-frame.c: Use string.h, not gdb_string.h.
587 * dwarf2-frame.c: Use string.h, not gdb_string.h.
588 * dwarf2loc.c: Use string.h, not gdb_string.h.
589 * dwarf2read.c: Use string.h, not gdb_string.h.
590 * elfread.c: Use string.h, not gdb_string.h.
591 * environ.c: Use string.h, not gdb_string.h.
592 * eval.c: Use string.h, not gdb_string.h.
593 * event-loop.c: Use string.h, not gdb_string.h.
594 * exceptions.c: Use string.h, not gdb_string.h.
595 * exec.c: Use string.h, not gdb_string.h.
596 * expprint.c: Use string.h, not gdb_string.h.
597 * f-exp.y: Use string.h, not gdb_string.h.
598 * f-lang.c: Use string.h, not gdb_string.h.
599 * f-typeprint.c: Use string.h, not gdb_string.h.
600 * f-valprint.c: Use string.h, not gdb_string.h.
601 * fbsd-nat.c: Use string.h, not gdb_string.h.
602 * findcmd.c: Use string.h, not gdb_string.h.
603 * findvar.c: Use string.h, not gdb_string.h.
604 * fork-child.c: Use string.h, not gdb_string.h.
605 * frame.c: Use string.h, not gdb_string.h.
606 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
607 * frv-tdep.c: Use string.h, not gdb_string.h.
608 * gdb.c: Use string.h, not gdb_string.h.
609 * gdb_bfd.c: Use string.h, not gdb_string.h.
610 * gdbarch.c: Use string.h, not gdb_string.h.
611 * gdbtypes.c: Use string.h, not gdb_string.h.
612 * gnu-nat.c: Use string.h, not gdb_string.h.
613 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
614 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
615 * go-exp.y: Use string.h, not gdb_string.h.
616 * go-lang.c: Use string.h, not gdb_string.h.
617 * go32-nat.c: Use string.h, not gdb_string.h.
618 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
619 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
620 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
621 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
622 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
623 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
624 * i386-linux-nat.c: Use string.h, not gdb_string.h.
625 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
626 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
627 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
628 * i386-tdep.c: Use string.h, not gdb_string.h.
629 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
630 * i386gnu-nat.c: Use string.h, not gdb_string.h.
631 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
632 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
633 * i387-tdep.c: Use string.h, not gdb_string.h.
634 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
635 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
636 * inf-child.c: Use string.h, not gdb_string.h.
637 * inf-ptrace.c: Use string.h, not gdb_string.h.
638 * inf-ttrace.c: Use string.h, not gdb_string.h.
639 * infcall.c: Use string.h, not gdb_string.h.
640 * infcmd.c: Use string.h, not gdb_string.h.
641 * inflow.c: Use string.h, not gdb_string.h.
642 * infrun.c: Use string.h, not gdb_string.h.
643 * interps.c: Use string.h, not gdb_string.h.
644 * iq2000-tdep.c: Use string.h, not gdb_string.h.
645 * irix5-nat.c: Use string.h, not gdb_string.h.
646 * jv-exp.y: Use string.h, not gdb_string.h.
647 * jv-lang.c: Use string.h, not gdb_string.h.
648 * jv-typeprint.c: Use string.h, not gdb_string.h.
649 * jv-valprint.c: Use string.h, not gdb_string.h.
650 * language.c: Use string.h, not gdb_string.h.
651 * linux-fork.c: Use string.h, not gdb_string.h.
652 * linux-nat.c: Use string.h, not gdb_string.h.
653 * lm32-tdep.c: Use string.h, not gdb_string.h.
654 * m2-exp.y: Use string.h, not gdb_string.h.
655 * m2-typeprint.c: Use string.h, not gdb_string.h.
656 * m32c-tdep.c: Use string.h, not gdb_string.h.
657 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
658 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
659 * m32r-rom.c: Use string.h, not gdb_string.h.
660 * m32r-tdep.c: Use string.h, not gdb_string.h.
661 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
662 * m68k-tdep.c: Use string.h, not gdb_string.h.
663 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
664 * m68klinux-nat.c: Use string.h, not gdb_string.h.
665 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
666 * m88k-tdep.c: Use string.h, not gdb_string.h.
667 * macrocmd.c: Use string.h, not gdb_string.h.
668 * main.c: Use string.h, not gdb_string.h.
669 * mdebugread.c: Use string.h, not gdb_string.h.
670 * mem-break.c: Use string.h, not gdb_string.h.
671 * memattr.c: Use string.h, not gdb_string.h.
672 * memory-map.c: Use string.h, not gdb_string.h.
673 * mep-tdep.c: Use string.h, not gdb_string.h.
674 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
675 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
676 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
677 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
678 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
679 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
680 * mi/mi-console.c: Use string.h, not gdb_string.h.
681 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
682 * mi/mi-interp.c: Use string.h, not gdb_string.h.
683 * mi/mi-main.c: Use string.h, not gdb_string.h.
684 * mi/mi-parse.c: Use string.h, not gdb_string.h.
685 * microblaze-rom.c: Use string.h, not gdb_string.h.
686 * microblaze-tdep.c: Use string.h, not gdb_string.h.
687 * mingw-hdep.c: Use string.h, not gdb_string.h.
688 * minidebug.c: Use string.h, not gdb_string.h.
689 * minsyms.c: Use string.h, not gdb_string.h.
690 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
691 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
692 * mips-tdep.c: Use string.h, not gdb_string.h.
693 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
694 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
695 * mipsread.c: Use string.h, not gdb_string.h.
696 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
697 * mn10300-tdep.c: Use string.h, not gdb_string.h.
698 * monitor.c: Use string.h, not gdb_string.h.
699 * moxie-tdep.c: Use string.h, not gdb_string.h.
700 * mt-tdep.c: Use string.h, not gdb_string.h.
701 * nbsd-tdep.c: Use string.h, not gdb_string.h.
702 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
703 * nto-procfs.c: Use string.h, not gdb_string.h.
704 * nto-tdep.c: Use string.h, not gdb_string.h.
705 * objc-lang.c: Use string.h, not gdb_string.h.
706 * objfiles.c: Use string.h, not gdb_string.h.
707 * opencl-lang.c: Use string.h, not gdb_string.h.
708 * osabi.c: Use string.h, not gdb_string.h.
709 * osdata.c: Use string.h, not gdb_string.h.
710 * p-exp.y: Use string.h, not gdb_string.h.
711 * p-lang.c: Use string.h, not gdb_string.h.
712 * p-typeprint.c: Use string.h, not gdb_string.h.
713 * parse.c: Use string.h, not gdb_string.h.
714 * posix-hdep.c: Use string.h, not gdb_string.h.
715 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
716 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
717 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
718 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
719 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
720 * printcmd.c: Use string.h, not gdb_string.h.
721 * procfs.c: Use string.h, not gdb_string.h.
722 * prologue-value.c: Use string.h, not gdb_string.h.
723 * python/py-auto-load.c: Use string.h, not gdb_string.h.
724 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
725 * ravenscar-thread.c: Use string.h, not gdb_string.h.
726 * regcache.c: Use string.h, not gdb_string.h.
727 * registry.c: Use string.h, not gdb_string.h.
728 * remote-fileio.c: Use string.h, not gdb_string.h.
729 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
730 * remote-mips.c: Use string.h, not gdb_string.h.
731 * remote-sim.c: Use string.h, not gdb_string.h.
732 * remote.c: Use string.h, not gdb_string.h.
733 * reverse.c: Use string.h, not gdb_string.h.
734 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
735 * ser-base.c: Use string.h, not gdb_string.h.
736 * ser-go32.c: Use string.h, not gdb_string.h.
737 * ser-mingw.c: Use string.h, not gdb_string.h.
738 * ser-pipe.c: Use string.h, not gdb_string.h.
739 * ser-tcp.c: Use string.h, not gdb_string.h.
740 * ser-unix.c: Use string.h, not gdb_string.h.
741 * serial.c: Use string.h, not gdb_string.h.
742 * sh-tdep.c: Use string.h, not gdb_string.h.
743 * sh64-tdep.c: Use string.h, not gdb_string.h.
744 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
745 * skip.c: Use string.h, not gdb_string.h.
746 * sol-thread.c: Use string.h, not gdb_string.h.
747 * solib-dsbt.c: Use string.h, not gdb_string.h.
748 * solib-frv.c: Use string.h, not gdb_string.h.
749 * solib-osf.c: Use string.h, not gdb_string.h.
750 * solib-spu.c: Use string.h, not gdb_string.h.
751 * solib-target.c: Use string.h, not gdb_string.h.
752 * solib.c: Use string.h, not gdb_string.h.
753 * somread.c: Use string.h, not gdb_string.h.
754 * source.c: Use string.h, not gdb_string.h.
755 * sparc-nat.c: Use string.h, not gdb_string.h.
756 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
757 * sparc-tdep.c: Use string.h, not gdb_string.h.
758 * sparc64-tdep.c: Use string.h, not gdb_string.h.
759 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
760 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
761 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
762 * spu-linux-nat.c: Use string.h, not gdb_string.h.
763 * spu-multiarch.c: Use string.h, not gdb_string.h.
764 * spu-tdep.c: Use string.h, not gdb_string.h.
765 * stabsread.c: Use string.h, not gdb_string.h.
766 * stack.c: Use string.h, not gdb_string.h.
767 * std-regs.c: Use string.h, not gdb_string.h.
768 * symfile.c: Use string.h, not gdb_string.h.
769 * symmisc.c: Use string.h, not gdb_string.h.
770 * symtab.c: Use string.h, not gdb_string.h.
771 * target.c: Use string.h, not gdb_string.h.
772 * thread.c: Use string.h, not gdb_string.h.
773 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
774 * tilegx-tdep.c: Use string.h, not gdb_string.h.
775 * top.c: Use string.h, not gdb_string.h.
776 * tracepoint.c: Use string.h, not gdb_string.h.
777 * tui/tui-command.c: Use string.h, not gdb_string.h.
778 * tui/tui-data.c: Use string.h, not gdb_string.h.
779 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
780 * tui/tui-file.c: Use string.h, not gdb_string.h.
781 * tui/tui-layout.c: Use string.h, not gdb_string.h.
782 * tui/tui-out.c: Use string.h, not gdb_string.h.
783 * tui/tui-regs.c: Use string.h, not gdb_string.h.
784 * tui/tui-source.c: Use string.h, not gdb_string.h.
785 * tui/tui-stack.c: Use string.h, not gdb_string.h.
786 * tui/tui-win.c: Use string.h, not gdb_string.h.
787 * tui/tui-windata.c: Use string.h, not gdb_string.h.
788 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
789 * typeprint.c: Use string.h, not gdb_string.h.
790 * ui-file.c: Use string.h, not gdb_string.h.
791 * ui-out.c: Use string.h, not gdb_string.h.
792 * user-regs.c: Use string.h, not gdb_string.h.
793 * utils.c: Use string.h, not gdb_string.h.
794 * v850-tdep.c: Use string.h, not gdb_string.h.
795 * valarith.c: Use string.h, not gdb_string.h.
796 * valops.c: Use string.h, not gdb_string.h.
797 * valprint.c: Use string.h, not gdb_string.h.
798 * value.c: Use string.h, not gdb_string.h.
799 * varobj.c: Use string.h, not gdb_string.h.
800 * vax-tdep.c: Use string.h, not gdb_string.h.
801 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
802 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
803 * windows-nat.c: Use string.h, not gdb_string.h.
804 * xcoffread.c: Use string.h, not gdb_string.h.
805 * xml-support.c: Use string.h, not gdb_string.h.
806 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
807 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
808
809 2013-11-18 Tom Tromey <tromey@redhat.com>
810
811 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
812 and strstr.
813 * gnulib/aclocal.m4: Update.
814 * gnulib/config.in: Update.
815 * gnulib/configure: Update.
816 * gnulib/import/Makefile.am: Update.
817 * gnulib/import/Makefile.in: Update.
818 * gnulib/import/errno.in.h: New.
819 * gnulib/import/intprops.h: New.
820 * gnulib/import/m4/errno_h.m4: New.
821 * gnulib/import/m4/gnulib-cache.m4: Update.
822 * gnulib/import/m4/gnulib-comp.m4: Update.
823 * gnulib/import/m4/strerror.m4: New.
824 * gnulib/import/m4/strstr.m4: New.
825 * gnulib/import/m4/sys_socket_h.m4: New.
826 * gnulib/import/strerror-override.c: New.
827 * gnulib/import/strerror-override.h: New.
828 * gnulib/import/strerror.c: New.
829 * gnulib/import/strstr.c: New.
830
831 2013-11-18 Tom Tromey <tromey@redhat.com>
832
833 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
834 multiple lines.
835
836 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
837
838 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
839 * sparc-tdep.h: And its prototype.
840
841 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
842 function.
843 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
844
845 2013-11-18 Pedro Alves <palves@redhat.com>
846
847 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
848 use unpack_pointer.
849
850 2013-11-18 Joel Brobecker <brobecker@adacore.com>
851
852 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
853 to -list-features output.
854
855 2013-11-17 Joel Brobecker <brobecker@adacore.com>
856
857 * dwarf2expr.h (struct dwarf_expr_context_funcs)
858 <read_addr_from_reg>: Renames "read_reg".
859 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
860 Adjust comment.
861 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
862 Use read_addr_from_reg in place of read_reg.
863 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
864 in place of read_reg.
865 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
866 dwarf_expr_read_reg.
867 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
868 with dwarf_expr_read_addr_from_reg.
869 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
870 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
871 needs_frame_read_addr_from_reg.
872
873 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
874
875 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
876
877 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
878
879 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
880 NULL.
881
882 2013-11-15 Tom Tromey <tromey@redhat.com>
883
884 PR c++/16117:
885 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
886 (classify_name): Likewise. Prefer a field of "this" over a
887 filename.
888 (classify_inner_name, yylex): Update.
889
890 2013-11-15 Joel Brobecker <brobecker@adacore.com>
891
892 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
893 Extend the documentation a bit.
894 <get_reg_value>: New field.
895 * dwarf2loc.c (dwarf_expr_get_reg_value)
896 (needs_frame_get_reg_value): New functions.
897 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
898 callback.
899 * dwarf2-frame.c (get_reg_value): New function.
900 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
901 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
902 Use new callback to compute result_val.
903
904 2013-11-15 Alan Modra <amodra@gmail.com>
905
906 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
907 (ppc64_desc_entry_point): ..this. Update comments here and at
908 call points.
909 (ppc64_standard_linkage1, ppc64_standard_linkage2,
910 ppc64_standard_linkage3): Update comments.
911 (ppc64_standard_linkage4, ppc64_standard_linkage5,
912 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
913 patterns.
914 (ppc64_standard_linkage4_target): New function.
915 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
916 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
917 nop match. Fix comment wrap.
918
919 2013-11-14 Pedro Alves <palves@redhat.com>
920
921 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
922 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
923
924 2013-11-14 Pedro Alves <palves@redhat.com>
925
926 * infrun.c (struct execution_control_state)
927 <stepped_after_stopped_by_watchpoint>: New field.
928 (get_inferior_stop_soon): New function.
929 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
930 moved to struct execution_control_state -- adjust. Use
931 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
932 new function.
933 (handle_signal_stop): New function, factored out from
934 handle_inferior_event.
935
936 2013-11-14 Pedro Alves <palves@redhat.com>
937
938 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
939 return a boolean.
940 * breakpoint.c (bpstat_explains_signal): Adjust to return a
941 boolean.
942 (explains_signal_watchpoint, base_breakpoint_explains_signal):
943 Adjust to return a boolean.
944 * breakpoint.h (enum bpstat_signal_value): Delete.
945 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
946 (bpstat_explains_signal): Likewise.
947 * infrun.c (handle_inferior_event) <random signal checks>:
948 bpstat_explains_signal now returns a boolean - adjust. No longer
949 consider hiding signals.
950
951 2013-11-14 Pedro Alves <palves@redhat.com>
952
953 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
954 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
955 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
956 BPSTAT_SIGNAL_HIDE.
957 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
958 instead of BPSTAT_SIGNAL_HIDE.
959 * infrun.c (handle_inferior_event): Rework random signal checks.
960
961 2013-11-14 Pedro Alves <palves@redhat.com>
962
963 * infrun.c (struct execution_control_state): Remove
964 'random_signal' field.
965 (handle_syscall_event): Use bpstat_causes_stop instead of
966 bpstat_explains_signal. Don't set ecs->random_signal.
967 (handle_inferior_event): New 'random_signal' local.
968 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
969 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
970 bpstat_explains_signal. Don't set ecs->random_signal.
971 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
972 ecs->random_signal.
973
974 2013-11-14 Pedro Alves <palves@redhat.com>
975
976 * infrun.c (handle_inferior_event): Move comment from the
977 function's body to the function's description, adjusted.
978
979 2013-11-14 Pedro Alves <palves@redhat.com>
980
981 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
982 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
983 Assert we never fall through out of the TARGET_WAITKIND_LOADED
984 case.
985
986 2013-11-14 Tom Tromey <tromey@redhat.com>
987
988 * python/py-linetable.c (ltpy_has_line)
989 (ltpy_get_all_source_lines): Fix loop termination condition.
990
991 2013-11-14 Joel Brobecker <brobecker@adacore.com>
992
993 * mi/mi-parse.h (struct mi_parse) <language>: New field.
994 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
995 PARSE->LANGUAGE during command execution, if set.
996 * mi/mi-parse.c: Add "language.h" #include.
997 (mi_parse): Add parsing of "--language" command option.
998
999 * NEWS: Add entry mentioning the new "--language" command option.
1000
1001 2013-11-14 Pedro Alves <palves@redhat.com>
1002 Joel Brobecker <brobecker@adacore.com>
1003
1004 * cli/cli-utils.h (extract_arg_const): Add declaration.
1005 * cli/cli-utils.c (extract_arg_const): New function.
1006 (extract_arg): Reimplement using extract_arg_const.
1007
1008 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1009
1010 * language.h: Add "symtab.h" #include.
1011
1012 2013-11-13 Doug Evans <xdje42@gmail.com>
1013
1014 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1015 specific breakpoints, don't evaluate breakpoint condition if
1016 different thread.
1017
1018 2013-11-13 Keith Seitz <keiths@redhat.com>
1019
1020 PR c++/7935
1021 PR c++/10541
1022 * cp-support.c (insepct_type): Add support for substituting
1023 namespace aliases, too.
1024 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1025 for DW_TAG_imported_declaration.
1026 (add_partial_symbol): Likewise.
1027 (process_die): Handle namespace aliases with
1028 read_namespace_alias.
1029 (die_needs_namespace): Add DW_TAG_imported_declaration.
1030 (read_namespace_alias): New function.
1031 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1032 (new_symbol_full): Handle DW_TAG_imported_declaration.
1033
1034 2013-11-13 Keith Seitz <keiths@redhat.com>
1035
1036 * p-exp.y (uptok): Make first parameter const.
1037 (yylex): Make `tokstart' and `tokptr' const.
1038 Don't copy the lexer input to a temporary buffer.
1039 Make `p' const.
1040 Remove const workaround for parse_escape.
1041 Create a temporary buffer for a convenience variable instead
1042 of doing in-place modification of the input.
1043 If a match is found with a different case from the input,
1044 do not change the input at all.
1045 Use `tmp' to construct the resultant stoken instead of
1046 `tokstart'.
1047
1048 2013-11-13 Doug Evans <xdje42@gmail.com>
1049
1050 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1051
1052 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1053
1054 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1055 entry with "ada-exceptions".
1056
1057 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1058
1059 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1060 after re-initialization of OBJFILE's obstack.
1061
1062 2013-11-12 Doug Evans <xdje42@gmail.com>
1063
1064 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1065 bs->stop != 0 on entry. Update function comment. Simplify early
1066 exit for frame mismatch. Reindent rest of function.
1067
1068 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069
1070 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1071 NULL.
1072
1073 2013-11-12 Doug Evans <dje@google.com>
1074
1075 Work around gold/15646.
1076 * dwarf2read.c (read_index_from_section): Update comment.
1077 (struct dw2_symtab_iterator): New member global_seen.
1078 (dw2_symtab_iter_init): Initialize it.
1079 (dw2_symtab_iter_next): Skip duplicate global symbols.
1080 (dw2_expand_symtabs_matching): Ditto.
1081
1082 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1083
1084 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1085 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1086 command.
1087 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1088 (mi_cmd_info_ada_exceptions): New function.
1089 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1090
1091 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1092
1093 * ada-lang.h: #include "vec.h".
1094 (struct ada_exc_info): New.
1095 (ada_exc_info): New typedef.
1096 (DEF_VEC_O(ada_exc_info)): New vector.
1097 (ada_exceptions_list): Add declaration.
1098 * ada-lang.c (ada_is_exception_sym)
1099 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1100 (sort_remove_dups_ada_exceptions_list)
1101 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1102 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1103 (ada_exceptions_list_1, ada_exceptions_list)
1104 (info_exceptions_command): New function.
1105 (_initialize_ada_language): Add "info exception" command.
1106
1107 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1108
1109 PR python/15629
1110 * NEWS: Add linetable feature.
1111 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1112 * python/py-linetable.c: New file.
1113 * python/py-symtab.c (stpy_get_linetable): New function.
1114 * python/python-internal.h (symtab_to_linetable_object): Declare.
1115 (gdbpy_initialize_linetable): Ditto.
1116 * python/python.c (_initialize_python): Call
1117 gdbpy_initialize_linetable.
1118
1119 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1120
1121 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1122 the documentation of fields "except_string" and "condition".
1123 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1124 CONDITION on the heap before passing it to
1125 create_ada_exception_catchpoint.
1126 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1127 CONDITION.
1128
1129 2013-11-11 Tom Tromey <tromey@redhat.com>
1130
1131 * config.in, configure: Rebuild.
1132 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1133
1134 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1135
1136 * remote-sim.c (gdbsim_detach): Break declaration into
1137 shorter lines. No code change.
1138
1139 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1140
1141 * remote-sim.c (gdbsim_detach): Fix prototype.
1142
1143 2013-11-08 Doug Evans <dje@google.com>
1144
1145 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1146 (create_debug_types_hash_table): Only print debugging messages for
1147 each TU if dwarf2-read >= 2.
1148 (process_queue): Ditto.
1149 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1150 Update doc string.
1151
1152 2013-11-08 Tom Tromey <tromey@redhat.com>
1153
1154 * configure: Rebuild.
1155 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1156
1157 2013-11-08 Tom Tromey <tromey@redhat.com>
1158
1159 * configure, config.in: Rebuild.
1160 * configure.ac: Remove unused configury.
1161
1162 2013-11-08 Tom Tromey <tromey@redhat.com>
1163
1164 * m32c-tdep.c: Use gdb_string.h.
1165
1166 2013-11-08 Tom Tromey <tromey@redhat.com>
1167
1168 * configure, config.in: Rebuild.
1169 * configure.ac: Remove all link.h-related checks.
1170
1171 2013-11-08 Tom Tromey <tromey@redhat.com>
1172
1173 * acinclude.m4: Include common.m4.
1174 * common/common.m4: New file.
1175 * configure, config.in: Rebuild.
1176 * configure.ac: Use GDB_AC_COMMON.
1177
1178 2013-11-08 Doug Evans <dje@google.com>
1179
1180 * NEWS: Mention that "set debug symtab-create" now accepts a
1181 verbosity level.
1182 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1183 to set the symtab's primary flag.
1184 * jit.c (finalize_symtab): Ditto.
1185 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1186 * symfile.c (allocate_symtab): Only print debugging messages for
1187 symtab_create_debug levels 2 and higher.
1188 * symtab.c (symtab_create_debug): Change type to unsigned int.
1189 (set_symtab_primary): New function.
1190 (_initialize_symtab): Change "set debug symtab-create" to a
1191 zuinteger option.
1192 * symtab.h (set_symtab_primary): Declare.
1193 (symtab_create_debug): Update decl.
1194
1195 2013-11-08 Tom Tromey <tromey@redhat.com>
1196
1197 * aix-thread.c (aix_thread_detach): Update.
1198 * corelow.c (core_detach): Update.
1199 * darwin-nat.c (darwin_detach): Update.
1200 * dec-thread.c (dec_thread_detach): Update.
1201 * gnu-nat.c (gnu_detach): Update.
1202 * go32-nat.c (go32_detach): Update.
1203 * inf-ptrace.c (inf_ptrace_detach): Update.
1204 * inf-ttrace.c (inf_ttrace_detach): Update.
1205 * linux-fork.c (linux_fork_detach): Update.
1206 * linux-fork.h (linux_fork_detach): Update.
1207 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1208 local for const-correctness.
1209 * linux-thread-db.c (thread_db_detach): Update.
1210 * monitor.c (monitor_detach): Update.
1211 * nto-procfs.c (procfs_detach): Update.
1212 * procfs.c (procfs_detach): Update.
1213 * record.c (record_detach): Update.
1214 * record.h (record_detach): Update.
1215 * remote-m32r-sdi.c (m32r_detach): Update.
1216 * remote-mips.c (mips_detach): Update.
1217 * remote-sim.c (gdbsim_detach): Update.
1218 * remote.c (remote_detach_1, remote_detach)
1219 (extended_remote_detach): Update.
1220 * sol-thread.c (sol_thread_detach): Update.
1221 * target.c (target_detach): Make "args" const.
1222 (init_dummy_target): Update.
1223 * target.h (struct target_ops) <to_detach>: Make argument const.
1224 (target_detach): Likewise.
1225 * windows-nat.c (windows_detach): Update.
1226
1227 2013-11-07 Doug Evans <dje@google.com>
1228
1229 PR 11786
1230 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1231 and align fields for PT_GNU_RELRO segments.
1232
1233 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1234
1235 PR python/15747
1236 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1237
1238 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1239
1240 * NEWS: Document Python temporary breakpoint support.
1241 * python/py-breakpoint.c (bppy_get_temporary): New function.
1242 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1243 to temporary if True.
1244
1245 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1246
1247 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1248 removed to allow analyzing unconditional branch instructions
1249 with PC-relative offsets of zero.
1250
1251 2013-11-07 Yao Qi <yao@codesourcery.com>
1252
1253 * mi/mi-cmd-var.c: Include "language.h".
1254 (mi_cmd_var_info_expression): Get language name from
1255 language_defn.
1256 * varobj.c (varobj_language_string): Remove.
1257 (variable_language): Remove declaration.
1258 (languages): Remove.
1259 (varobj_get_language): Change the type of return value.
1260 (variable_language): Remove.
1261 * varobj.h (enum varobj_languages): Remove.
1262 (varobj_language_string): Remove declaration.
1263 (varobj_get_language): Update declaration.
1264
1265 2013-11-07 Yao Qi <yao@codesourcery.com>
1266
1267 * language.h (struct language_defn) <la_natural_name>: New
1268 field.
1269 * ada-lang.c (ada_language_defn): Initialize field
1270 'la_natural_name'.
1271 * c-lang.c (c_language_defn): Likewise.
1272 (cplus_language_defn, asm_language_defn): Likewise.
1273 * d-lang.c (d_language_defn): Likewise.
1274 * f-lang.c (f_language_defn): Likewise.
1275 * go-lang.c (go_language_defn): Likewise.
1276 * jv-lang.c (java_language_defn): Likewise.
1277 * language.c (unknown_language_defn ): Likewise.
1278 (auto_language_defn): Likewise.
1279 * m2-lang.c (m2_language_defn): Likewise.
1280 * objc-lang.c (objc_language_defn): Likewise.
1281 * opencl-lang.c (opencl_language_defn): Likewise.
1282 * p-lang.c (pascal_language_defn): Likewise.
1283
1284 2013-11-07 Yao Qi <yao@codesourcery.com>
1285
1286 * language.c (language_str): Return const char *.
1287 (add_language): Add const to 'language_names'
1288 * language.h (struct language_defn) <la_name>: Add const.
1289 (language_str: Update declaration.
1290
1291 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292
1293 * s390-linux-nat.c (s390_read_description): Consider the TE field
1294 in the HWCAP for determining 'have_regset_tdb'.
1295
1296 2013-11-06 Will Newton <will.newton@linaro.org>
1297
1298 PR gdb/12866
1299 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1300 values. (read_partial_die): Likewise.
1301
1302 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1303
1304 PR cli/16122
1305 * top.c (command_line_input): Unify interactivity tests to use
1306 input_from_terminal_p.
1307 * event-top.c (command_line_handler): Likewise.
1308
1309 2013-11-06 Yao Qi <yao@codesourcery.com>
1310
1311 * Makefile.in (check-perf): New target.
1312
1313 2013-11-05 Will Newton <will.newton@linaro.org>
1314
1315 PR gdb/7670
1316 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1317 (arm_print_float_info): Likewise.
1318
1319 2013-11-04 Anton Blanchard <anton@samba.org>
1320
1321 * target.c (memory_xfer_partial): Cap write to 4KB.
1322
1323 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1324
1325 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1326 probe scan even when the arch provides no get_longjmp_target.
1327
1328 2013-10-31 Pedro Alves <palves@redhat.com>
1329
1330 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1331 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1332 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1333 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1334 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1335 <bpstat handling>: If the bpstat chain wants the signal to be
1336 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1337 GDB_SIGNAL_TRAP.
1338
1339 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1340
1341 * breakpoint.c (update_watchpoint): Update error message and add
1342 an additional error message.
1343
1344 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345
1346 * s390-tdep.h: Rename to...
1347 * s390-linux-tdep.h: ...here.
1348 * s390-tdep.c: Rename to...
1349 * s390-linux-tdep.c: ...here. Adjust #include.
1350 * s390-nat.c: Rename to...
1351 * s390-linux-nat.c: ...here. Adjust #include.
1352 * config/s390/s390.mh: Rename to...
1353 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1354 s390-linux-nat.o.
1355 * configure.host: Reflect host rename "s390" -> "linux".
1356 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1357 * Makefile.in (ALL_TARGET_OBS): Likewise.
1358 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1359 s390-linux-tdep.h.
1360 (ALLDEPFILES): Reflect rename of .c files.
1361
1362 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1363
1364 * s390-nat.c: Whitespace cleanup.
1365 * s390-tdep.c: Likewise.
1366 * s390-tdep.h: Remove empty line at end of file.
1367
1368 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1369
1370 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1371 siginfo_size.
1372
1373 2013-10-29 Tom Tromey <tromey@redhat.com>
1374
1375 * utils.c (reg): Move undefinition...
1376 * gdb_curses.h: ... here. Update comment to mention AIX.
1377
1378 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1379
1380 * exec.h (add_target_sections_of_objfile): New declaration.
1381 * exec.c (add_target_sections_of_objfile): New function.
1382 * symfile.c (add_symbol_file_command): Update current target sections.
1383 (remove_symbol_file_command): New command.
1384 (symfile_free_objfile): New function.
1385 (_initialize_symfile): Register observer for free_objfile events.
1386 * NEWS: Add description of the remove-symbol-file command.
1387 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1388 * objfiles.c (free_objfile): Notify free_objfile.
1389 (is_addr_in_objfile): New function.
1390 * objfiles.h (is_addr_in_objfile): New declaration.
1391 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1392 events instead of solib_unloaded events.
1393 (_initialize_printcmd): Register observer for free_objfile instead
1394 of solib_unloaded notifications.
1395 * solib.c (remove_user_added_objfile): New function.
1396 (_initialize_symfile): Add remove-symbol-file.
1397
1398 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1399
1400 * infcmd.c (default_print_one_register_info): Use val_print to
1401 print all values even optimized out or unavailable ones. Don't
1402 try to print a raw form of optimized out or unavailable values.
1403
1404 2013-10-29 Yao Qi <yao@codesourcery.com>
1405
1406 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1407 parameter 'arg' instead of from program_space_data.
1408 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1409 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1410 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1411 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1412 * inflow.c (inflow_inferior_data_cleanup): Get data from
1413 parameter 'arg' instead of inferior_data.
1414 * registry.h: Add comments.
1415
1416 2013-10-28 Pedro Alves <palves@redhat.com>
1417
1418 * breakpoint.c (watchpoints_triggered)
1419 <!target_stopped_data_address>: Hardcode return 1.
1420
1421 2013-10-28 Pedro Alves <palves@redhat.com>
1422
1423 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1424 level and reindent.
1425
1426 2013-10-28 Pedro Alves <palves@redhat.com>
1427
1428 * infrun.c (process_event_stop_test): New function, factored out
1429 from handle_inferior_event.
1430 (handle_inferior_event): 'process_event_stop_test' is now a
1431 function instead of a goto label -- adjust.
1432
1433 2013-10-28 Pedro Alves <palves@redhat.com>
1434
1435 * infrun.c (handle_inferior_event): Move process_event_stop_test
1436 goto label to the else branch of the ecs->random_signal check,
1437 along with FRAME and GDBARCH re-fetching.
1438
1439 2013-10-28 Pedro Alves <palves@redhat.com>
1440
1441 * infrun.c (switch_back_to_stepped_thread): New function, factored
1442 out from handle_inferior_event.
1443 (handle_inferior_event): Adjust to call
1444 switch_back_to_stepped_thread. Call it also at the tail of the
1445 random signal handling, and return, instead of also handling
1446 random signals just before the stepping tests.
1447
1448 2013-10-28 Pedro Alves <palves@redhat.com>
1449
1450 * infrun.c (clear_stop_func): Delete.
1451 (handle_inferior_event): Don't call clear_stop_func and don't
1452 clear 'ecs->random_signal'.
1453
1454 2013-10-27 Yao Qi <yao@codesourcery.com>
1455
1456 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1457 (varobj_create, varobj_get_path_expr): Update.
1458 (varobj_value_has_mutated, varobj_update): Likewise.
1459 (create_child_with_value, new_root_variable): Likewise.
1460 (number_of_children, name_of_variable): Likewise.
1461 (value_of_child, my_value_of_variable): Likewise.
1462 (varobj_value_is_changeable_p): Likewise.
1463
1464 2013-10-25 Yao Qi <yao@codesourcery.com>
1465
1466 * language.h (struct lang_varobj_ops): Declare.
1467 (struct language_defn) <la_varobj_ops>: New field.
1468 * ada-lang.c: Include "varobj.h"
1469 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1470 ada_varobj_ops.
1471 * c-lang.c: Include "varobj.h"
1472 (c_language_defn): Initialize field 'la_varobj_ops' with
1473 c_varobj_ops.
1474 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1475 cplus_varobj_ops.
1476 (asm_language_defn): Initialize field 'la_varobj_ops' with
1477 default_varobj_ops.
1478 (minimal_language_defn): Likewise.
1479 * d-lang.c (d_language_defn): Likewise.
1480 * f-lang.c (f_language_defn): Likewise.
1481 * go-lang.c (go_language_defn): Likewise.
1482 * m2-lang.c (m2_language_defn): Likewise.
1483 * objc-lang.c (objc_language_defn): Likewise.
1484 * opencl-lang.c (opencl_language_defn): Likewise.
1485 * p-lang.c (pascal_language_defn): Likewise.
1486 * language.c (unknown_language_defn): Likewise.
1487 (auto_language_defn): Likewise.
1488 (local_language_defn): Likewise.
1489 * jv-lang.c (java_language_defn): Initialize field
1490 'la_varobj_ops' with java_varobj_ops.
1491 * varobj.c (varobj_create): Update.
1492 * varobj.h (default_varobj_ops): Define macro.
1493
1494 2013-10-25 Pedro Alves <palves@redhat.com>
1495
1496 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1497 static field value.
1498 (cp_print_static_field): If the value is entirely optimized out,
1499 print <optimized out> here.
1500 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1501 static field value.
1502 * p-valprint.c (pascal_object_print_static_field): If the value is
1503 entirely optimized out, print <optimized out> here.
1504 * valops.c (do_search_struct_field)
1505 (value_struct_elt_for_reference): No longer handle a NULL static
1506 field value.
1507 * value.c (value_static_field): Return an optimized out value
1508 instead of NULL.
1509
1510 2013-10-25 Yao Qi <yao@codesourcery.com>
1511
1512 * remote.c (remote_traceframe_info): Return early if
1513 traceframe is not selected.
1514
1515 2013-10-25 Yao Qi <yao@codesourcery.com>
1516
1517 * tracepoint.c (traceframe_fun): Remove.
1518 (traceframe_sal): Remove.
1519 (set_traceframe_context): Add local variables.
1520
1521 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1522
1523 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1524 and parameter name.
1525
1526 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1527
1528 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1529 failure from register information collection.
1530
1531 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1532
1533 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1534 member.
1535 (linux_corefile_thread_callback): Update accordingly.
1536 (linux_make_corefile_notes): Likewise.
1537
1538 2013-10-24 Pedro Alves <palves@redhat.com>
1539
1540 * NEWS (New options): Mention set/show startup-with-shell.
1541 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1542 instead of 3.
1543 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1544 startup-with-shell'.
1545 (show_startup_with_shell): New function.
1546 (_initialize_fork_child): Register the set/show startup-with-shell
1547 commands.
1548 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1549 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1550 * procfs.c (procfs_init_inferior): Remove comment.
1551 * infcmd.c (startup_with_shell): New global.
1552 * inferior.h (startup_with_shell): Declare global.
1553 (STARTUP_WITH_SHELL): Delete.
1554 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1555
1556 2013-10-23 Pedro Alves <palves@redhat.com>
1557
1558 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1559 * common/signals.c: Include "gdb_assert.h".
1560 (signals): New field 'symbol'.
1561 (SET): Use the 'symbol' parameter.
1562 (gdb_signal_to_symbol_string): New function.
1563 * infrun.c (handle_inferior_event) <random signal>: In debug
1564 output, print the random signal enum as string in addition to its
1565 number.
1566 * target/waitstatus.c (target_waitstatus_to_string): Print the
1567 signal's enum value as string instead of the (POSIX) signal name.
1568
1569 2013-10-23 Gary Benson <gbenson@redhat.com>
1570
1571 PR 16013
1572 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1573 from 32 to 18. Adjusted fscanf format string accordingly.
1574 (Avoids leaving cmd unterminated.)
1575 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1576 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1577 that local_address and remote_address will not overflow.
1578 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1579 leaving dependencies unterminated. Parse size as "%u" to match
1580 definition.
1581
1582 2013-10-22 Pedro Alves <palves@redhat.com>
1583
1584 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1585 set ecs->random signal.
1586
1587 2013-10-22 Pedro Alves <palves@redhat.com>
1588
1589 * infrun.c (keep_going): Update comments.
1590
1591 2013-10-22 Pedro Alves <palves@redhat.com>
1592
1593 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1594 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1595
1596 2013-10-22 Pedro Alves <palves@redhat.com>
1597
1598 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1599 GDB_EXC_BAD_ACCESS.
1600 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1601 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1602 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1603 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1604 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1605 (GDB_SIGNAL_LAST): Change description string.
1606 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1607 Adjust to signal renaming.
1608 * darwin-nat.c (darwin_decode_message): Likewise.
1609
1610 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1611
1612 * MAINTAINERS (Write After Approval): Add myself to the list.
1613
1614 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1615
1616 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1617 forced off, downgrade them to software watchpoints if possible,
1618 and error out if not possible.
1619 (watch_command_1): Move watchpoint type selection closer to
1620 watchpoint creation, and extend the comments.
1621
1622 2013-10-18 Pedro Alves <palves@redhat.com>
1623
1624 PR gdb/16062
1625 * infrun.c (handle_inferior_event): Keep going if we got a random
1626 signal we should not stop for, instead of falling through to the
1627 step tests.
1628
1629 2013-10-18 Yao Qi <yao@codesourcery.com>
1630
1631 * c-varobj.c (cplus_number_of_children): Fix indentation.
1632
1633 2013-10-17 Tom Tromey <tromey@redhat.com>
1634
1635 PR gdb/15995:
1636 * printcmd.c (printcmd): Call gdb_flush.
1637
1638 2013-10-17 Tom Tromey <tromey@redhat.com>
1639
1640 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1641 (elf_locate_sections): Update.
1642
1643 2013-10-17 Yao Qi <yao@codesourcery.com>
1644
1645 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1646 * ada-varobj.c: Remove the include of ada-varobj.h.
1647 (ada_varobj_get_number_of_children): Declare.
1648 (ada_varobj_get_name_of_child): Make it static.
1649 (ada_varobj_get_path_expr_of_child): Likewise.
1650 (ada_varobj_get_value_of_child): Likewise.
1651 (ada_varobj_get_type_of_child): Likewise.
1652 (ada_varobj_get_value_of_array_variable): Likewise.
1653 * ada-varobj.h: Remove.
1654
1655 2013-10-17 Yao Qi <yao@codesourcery.com>
1656
1657 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1658 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1659 * ada-varobj.c: Include "varobj.h".
1660 (ada_number_of_children): New. Moved from varobj.c.
1661 (ada_name_of_variable, ada_name_of_child): Likewise.
1662 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1663 (ada_type_of_child, ada_value_of_variable): Likewise.
1664 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1665 (ada_varobj_ops): New.
1666 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1667 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1668 * gdbtypes.h (get_target_type): Declare.
1669 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1670 "ada-lang.h".
1671 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1672 (ANONYMOUS_UNION_NAME): Likewise.
1673 (get_type, get_value_type, get_target_type): Remove declarations.
1674 (value_get_print_value, varobj_value_get_print_value): Likewise.
1675 (c_number_of_children, c_name_of_variable): Likewise.
1676 (c_name_of_child, c_path_expr_of_child): Likewise.
1677 (c_value_of_child, c_type_of_child): Likewise.
1678 (c_value_of_variable, cplus_number_of_children): Likewise.
1679 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1680 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1681 (cplus_value_of_child, cplus_type_of_child): Likewise.
1682 (cplus_value_of_variable, java_number_of_children): Likewise.
1683 (java_name_of_variable, java_name_of_child): Likewise.
1684 (java_path_expr_of_child, java_value_of_child): Likewise.
1685 (java_type_of_child, java_value_of_variable): Likewise.
1686 (ada_number_of_children, ada_name_of_variable): Likewise.
1687 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1688 (ada_value_of_child, ada_type_of_child): Likewise.
1689 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1690 (ada_value_has_mutated): Likewise.
1691 (struct language_specific): Move it to varobj.h.
1692 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1693 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1694 Callers update.
1695 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1696 Make it extern.
1697 (is_anonymous_child): Move it to c-varobj.c and rename to
1698 varobj_is_anonymous_child. Caller update.
1699 (get_type): Move it to c-varobj.c.
1700 (get_value_type): Rename it varobj_get_value_type. Make it
1701 extern.
1702 (get_target_type): Move it gdbtypes.c.
1703 (varobj_formatted_print_options): New function.
1704 (value_get_print_value): Rename it to
1705 varobj_value_get_print_value and make it extern.
1706 (varobj_value_is_changeable_p): Make it extern.
1707 (adjust_value_for_child_access): Move it to c-varobj.c.
1708 (default_value_is_changeable_p): Rename it to
1709 varobj_default_value_is_changeable_p. Make it extern.
1710 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1711 (c_name_of_child, c_path_expr_of_child): Likewise.
1712 (c_value_of_child, c_type_of_child): Likewise.
1713 (c_value_of_variable, cplus_number_of_children): Likewise.
1714 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1715 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1716 (cplus_value_of_child, cplus_type_of_child): Likewise.
1717 (cplus_value_of_variable): Likewise.
1718 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1719 (java_name_of_child, java_path_expr_of_child): Likewise.
1720 (java_value_of_child, java_type_of_child): Likewise.
1721 (java_value_of_variable): Likewise.
1722 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1723 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1724 (ada_value_of_child, ada_type_of_child): Likewise.
1725 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1726 (ada_value_has_mutated): Likewise.
1727 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1728 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1729 (c_varobj_ops, cplus_varobj_ops): Declare.
1730 (java_varobj_ops, ada_varobj_ops): Declare.
1731 (varobj_default_value_is_changeable_p): Declare.
1732 (varobj_value_is_changeable_p): Declare.
1733 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1734 (varobj_get_path_expr_parent): Declare.
1735 (varobj_value_get_print_value): Declare.
1736 (varobj_formatted_print_options): Declare.
1737 (varobj_restrict_range): Declare.
1738
1739 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1740
1741 * target/waitstatus.h (target_waitkind): Remove spurious
1742 character from the comments.
1743
1744 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1745
1746 * gdbarch.sh (get_longjmp_target): Add method documentation.
1747 * gdbarch.h: Regenerate.
1748
1749 2013-10-16 Tom Tromey <tromey@redhat.com>
1750
1751 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1752 label.
1753
1754 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1755
1756 * gcore.in: Call GDB using the full path to the gcore script.
1757 Error out if the GDB binary is not found.
1758
1759 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1760
1761 PR gdb/16014
1762 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1763 sizeof.
1764
1765 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1766
1767 PR gdb/16042
1768 * target.c (target_disable_btrace): Fix invalid return value for
1769 void function.
1770 (target_teardown_btrace): Likewise.
1771
1772 2013-10-14 Yao Qi <yao@codesourcery.com>
1773
1774 * varobj.c (struct varobj): Move most of the fields to
1775 varobj.h.
1776 (struct varobj_dynamic): New struct.
1777 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1778 (varobj_has_more): Likewise.
1779 (dynamic_varobj_has_child_method): Likewise.
1780 (update_dynamic_varobj_children): Likewise.
1781 (varobj_get_num_children): Likewise.
1782 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1783 (install_new_value_visualizer): Likewise.
1784 (install_new_value_visualizer, install_new_value): Likewise.
1785 (varobj_update, new_variable, free_variable): Likewise.
1786 (my_value_of_variable, value_get_print_value): Likewise.
1787 (install_visualizer): Change the type of parameter 'var' to
1788 'struct varobjd_dynamic *'. Callers update.
1789 * varobj.h (struct varobj): Moved from varobj.c.
1790 (struct varobj) <dynamic>: New field.
1791
1792 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1793
1794 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1795 as the preferred name of r30.
1796 * nios2-linux-tdep.c (reg_offsets): Likewise.
1797 * features/nios2-cpu.xml: Likewise.
1798 * features/nios2-linux.c: Regenerated.
1799 * features/nios2.c: Regenerated.
1800 * regformats/nios2-linux.dat: Regenerated.
1801
1802 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 Canonicalize directories for EXEC_FILENAME.
1805 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1806 exec_filename.
1807 * utils.c (gdb_realpath_keepfile): New function.
1808 * utils.h (gdb_realpath_keepfile): New declaration.
1809
1810 2013-10-11 Doug Evans <dje@google.com>
1811
1812 * Makefile.in (GDBFLAGS): New variable.
1813 (run): New rule.
1814
1815 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1816
1817 * NEWS: Add entry documenting the new "-catch-assert" and
1818 "-catch-exception" GDB/MI commands.
1819
1820 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1821
1822 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1823 "enabled".
1824 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1825 "enabled". Set B->ENABLE_STATE accordingly.
1826 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1827 ada-lang.c.
1828 (create_ada_exception_catchpoint): Add declaration.
1829 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1830 (create_ada_exception_catchpoint): Make non-static. Add new
1831 parameter "disabled". Use it in call to
1832 init_ada_exception_breakpoint.
1833 (catch_ada_exception_command): Add parameter "enabled" in call
1834 to create_ada_exception_catchpoint.
1835 (catch_assert_command): Likewise.
1836
1837 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1838 Add declarations.
1839 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1840 "catch-exception" commands.
1841 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1842 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1843
1844 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1845
1846 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1847 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1848 of all its enumerates with "ada_". Update the rest of this
1849 file throughout.
1850
1851 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1852
1853 * ada-lang.c (ada_decode_exception_location): Delete.
1854 (create_ada_exception_catchpoint): Remove arguments "sal",
1855 "addr_string" and "ops". Add argument "ex_kind" instead.
1856 Adjust implementation accordingly, calling ada_exception_sal
1857 to get the entities it no longer gets passed as arguments.
1858 Document the function's arguments.
1859 (catch_ada_exception_command): Use catch_ada_exception_command_split
1860 instead of ada_decode_exception_location, and update call to
1861 create_ada_exception_catchpoint.
1862 (catch_ada_assert_command_split): Renames
1863 ada_decode_assert_location. Remove parameters "addr_string" and
1864 "ops", and now returns void. Adjust implementation accordingly.
1865 Update the function documentation.
1866 (catch_assert_command): Use catch_ada_assert_command_split
1867 instead of ada_decode_assert_location. Update call to
1868 create_ada_exception_catchpoint.
1869
1870 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1871
1872 * utils.h (perror_warning_with_name): Add declaration.
1873 * utils.c (perror_warning_with_name): New function.
1874 * cli/cli-cmds.c (source_script_with_search): Add call to
1875 perror_warning_with_name if from_tty is nul.
1876
1877 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1878
1879 * utils.c (perror_string): New function, extracted out of
1880 throw_perror_with_name.
1881 (throw_perror_with_name): Rework to use perror_string.
1882
1883 2013-10-11 Yao Qi <yao@codesourcery.com>
1884
1885 * remote.c (discard_pending_stop_replies_in_queue): Update
1886 declaration.
1887 (struct stop_reply) <rs>: New field.
1888 (remove_stop_reply_of_remote_state): New function.
1889 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1890 Callers update. Pass remove_stop_reply_of_remote_state to
1891 QUEUE_iterate.
1892 (remote_parse_stop_reply): Initialize field 'rs'.
1893
1894 2013-10-10 Will Newton <will.newton@linaro.org>
1895
1896 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1897 linux_init_abi.
1898
1899 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1900
1901 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1902 serial_baud_show_cmd.
1903 (_initialize_cli_cmds): Delete the code creating the
1904 "set/show remotebaud" commands.
1905 * serial.c (baud_rate): Move here from top.c.
1906 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1907 (_initialize_serial): Create "set/show serial baud" commands.
1908 Add "set/show remotebaud" command aliases.
1909 * top.c (baud_rate): Moved to serial.c.
1910 * NEWS: Document the new "set/show serial baud" commands,
1911 replacing "set/show remotebaud".
1912
1913 2013-10-09 Pedro Alves <palves@redhat.com>
1914
1915 * breakpoint.c (insert_bp_location): Use memory_error_message to
1916 build the memory error string.
1917 * c-lang.c: Include "gdbcore.h".
1918 (c_get_string): Use memory_error to throw error.
1919 (target_xfer_memory_error): Delete.
1920 (memory_error_message): New, factored out from
1921 target_xfer_memory_error.
1922 (memory_error): Change parameter type to target_xfer_error.
1923 Rewrite.
1924 (read_memory): Use memory_error instead of
1925 target_xfer_memory_error.
1926 * gdbcore.h: Include "target.h".
1927 (memory_error): Change parameter type to target_xfer_error.
1928 (memory_error_message): Declare function.
1929 * target.c (target_read_memory, target_read_stack)
1930 (target_write_memory, target_write_raw_memory): Return
1931 TARGET_XFER_E_IO on error. Adjust comments.
1932 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1933 instead of EIO.
1934 * target.h (target_read, target_insert_breakpoint)
1935 (target_remove_breakpoint): Adjust comments.
1936 * valprint.c (partial_memory_read): Rename parameter, and adjust
1937 comment.
1938 (val_print_string): Use memory_error_message to build the memory
1939 error string.
1940
1941 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1942
1943 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1944 result variable. Rename variable fopen_e_ever_failed to
1945 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1946
1947 2013-10-09 Pedro Alves <palves@redhat.com>
1948
1949 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1950 (monitor_write_memory_longlongs, monitor_write_memory_block):
1951 Constify 'myaddr' parameter.
1952 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1953 helper.
1954 (monitor_xfer_partial): New function.
1955 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1956 hook. Install a to_xfer_partial hook.
1957
1958 2013-10-09 Tom Tromey <tromey@redhat.com>
1959
1960 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1961 bfd_get_alt_debug_link_info.
1962
1963 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1964
1965 New flag OBJF_NOT_FILENAME.
1966 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1967 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1968 allocate_objfile.
1969 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1970 symbol_file_add_from_bfd.
1971 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1972 allocate_objfile.
1973 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1974 NULL.
1975 * objfiles.h (OBJF_NOT_FILENAME): New.
1976
1977 2013-10-08 Tom Tromey <tromey@redhat.com>
1978
1979 * Makefile.in (SFILES): Add build-id.c.
1980 (HFILES_NO_SRCDIR): Add build-id.h.
1981 * build-id.c: New file, largely from elfread.c. Modified
1982 most functions.
1983 * build-id.h: New file.
1984 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1985 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1986 Search for dwz file using build-id.
1987 * elfread.c (build_id_bfd_get, build_id_verify)
1988 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1989
1990 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1991
1992 * ada-lang.c (compare_names_with_case): Renamed from
1993 compare_names, adding a new parameter "casing" and its handling.
1994 New function documentation.
1995 (compare_names): New function, implemented using
1996 compare_names_with_case.
1997
1998 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1999
2000 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2001
2002 2013-10-07 Tom Tromey <tromey@redhat.com>
2003
2004 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2005 demangled_names_hash.
2006 (free_objfile): Don't delete the demangled_names_hash.
2007 * objfiles.h (struct objfile_per_bfd_storage)
2008 <demangled_names_hash>: New field.
2009 (struct objfile) <demangled_names_hash>: Move to
2010 objfile_per_bfd_storage.
2011 * symfile.c (reread_symbols): Don't delete the
2012 demangled_names_hash.
2013 * symtab.c (create_demangled_names_hash): Update.
2014 (symbol_set_names): Update.
2015
2016 2013-10-07 Tom Tromey <tromey@redhat.com>
2017
2018 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2019 needs_relocations>: New fields.
2020 (gdb_bfd_requires_relocations): New function.
2021 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2022 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2023 the BFD needs relocations applied.
2024
2025 2013-10-07 Pedro Alves <palves@redhat.com>
2026
2027 PR breakpoints/11568
2028 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2029 the thread list" instead of "gone".
2030
2031 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2032
2033 * NEWS: Mention new convenience variable $_exitsignal.
2034 * corelow.c (core_open): Reset exit convenience variables. Set
2035 $_exitsignal to the uncaught signal which generated the corefile.
2036 * infrun.c (handle_inferior_event): Reset exit convenience
2037 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2038 (clear_exit_convenience_vars): New function.
2039 * inferior.h (clear_exit_convenience_vars): New prototype.
2040
2041 2013-10-06 Yao Qi <yao@codesourcery.com>
2042
2043 * varobj.h: Add comments to enum varobj_languages.
2044
2045 2013-10-04 Doug Evans <dje@google.com>
2046
2047 Add support for DWP file format version 2.
2048 * NEWS: Mention support for DWP file format version 2.
2049 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2050 union of asection, containing_section. New fields virtual_offset
2051 and is_virtual. Change type of readin filed from int to char.
2052 (dwo_sections, dwo_file): Tweak comments.
2053 (dwp_v2_section_ids): New enum.
2054 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2055 str_offsets, types.
2056 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2057 All uses updated.
2058 (virtual_v2_dwo_sections): New struct.
2059 (dwp_hash_table): New fields version, nr_columns. Change type of
2060 section_pool field to a union.
2061 (dwp_file): New field version.
2062 (dwarf2_has_info): Check for virtual sections.
2063 (get_containing_section): New function.
2064 (get_section_bfd_owner, get_section_bfd_section): Call it.
2065 (dwarf2_locate_sections): Update.
2066 (dwarf2_section_empty_p): Update.
2067 (dwarf2_read_section): Handle virtual sections.
2068 (locate_dwz_sections): Update.
2069 (create_dwp_hash_table): Document and handle V2 format.
2070 (locate_v1_virtual_dwo_sections): Renamed from
2071 locate_virtual_dwo_sections and update. All callers updated.
2072 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2073 Delete arg htab. Rename arg section_index to unit_index.
2074 All callers updated.
2075 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2076 All uses updated.
2077 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2078 (lookup_dwo_unit_in_dwp): Add V2 support.
2079 (dwarf2_locate_dwo_sections): Update.
2080 (dwarf2_locate_common_dwp_sections): Renamed from
2081 dwarf2_locate_dwp_sections and update. All callers updated.
2082 (dwarf2_locate_v2_dwp_sections): New function.
2083 (open_and_init_dwp_file): Add V2 support.
2084 (read_str_index): New locals str_section, str_offsets_section.
2085
2086 2013-10-04 Pedro Alves <palves@redhat.com>
2087
2088 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2089 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2090 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2091 describing comments with references to ptid.h.
2092 * common/ptid.h: Remove intro description of constructors,
2093 accessors and predicates.
2094 (struct ptid): Reformat.
2095 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2096 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2097 describing comments.
2098
2099 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2100
2101 * aix-thread.c (sync_threadlists): Add missing ')' in call
2102 to ptid_build.
2103
2104 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2105
2106 * procfs.c (procfs_init_inferior): Fix typo causing the build
2107 to fail.
2108
2109 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2110
2111 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2112
2113 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2114
2115 * mi/mi-main.c (run_one_inferior): Add function description.
2116 Make ARG a pointer to an integer whose value determines whether
2117 we should "run" or "start" the program.
2118 (mi_cmd_exec_run): Add handling of the "--start" option.
2119 Reject all other command-line options.
2120 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2121
2122 2013-10-04 Yao Qi <yao@codesourcery.com>
2123
2124 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2125 (struct notif_client) <pending_event>: Moved
2126 to struct remote_notif_state.
2127 <id>: New field.
2128 (struct remote_notif_state) <pending_event>: New field.
2129 (notif_event_xfree): Declare.
2130 * remote-notif.c (handle_notification): Adjust.
2131 (notif_event_xfree): New function.
2132 (do_notif_event_xfree): Call notif_event_xfree.
2133 (remote_notif_state_xfree): Call notif_event_xfree to free
2134 each element in field pending_event.
2135 * remote.c (discard_pending_stop_replies): Remove declaration.
2136 (discard_pending_stop_replies_in_queue): Declare.
2137 (remote_close): Call discard_pending_stop_replies_in_queue
2138 instead of discard_pending_stop_replies.
2139 (remote_start_remote): Adjust.
2140 (stop_reply_xfree): Call notif_event_xfree.
2141 (notif_client_stop): Adjust initialization.
2142 (remote_notif_remove_all): Rename it to ...
2143 (remove_stop_reply_for_inferior): ... this. Update comments.
2144 Don't check INF is NULL.
2145 (discard_pending_stop_replies): Return early if notif_state is
2146 NULL. Adjust. Don't check INF is NULL.
2147 (remote_notif_get_pending_events): Adjust.
2148 (discard_pending_stop_replies_in_queue): New function.
2149 (remote_wait_ns): Likewise.
2150
2151 2013-10-04 Yao Qi <yao@codesourcery.com>
2152
2153 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2154 (notif_queue): Remove.
2155 (remote_notif_process): Add one parameter 'notif_queue'.
2156 Update comments. Callers update.
2157 (remote_async_get_pending_events_token): Remove.
2158 (remote_notif_register_async_event_handler): Remove.
2159 (remote_notif_unregister_async_event_handler): Remove.
2160 (handle_notification): Add parameter 'notif_queue'. Update
2161 comments. Callers update.
2162 (notif_xfree): Remove.
2163 (remote_notif_state_allocate): New function.
2164 (remote_notif_state_xfree): New function.
2165 (_initialize_notif): Remove code to allocate queue.
2166 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2167 (struct remote_notif_state): New.
2168 (handle_notification): Update declaration.
2169 (remote_notif_process): Likewise.
2170 (remote_notif_register_async_event_handler): Remove.
2171 (remote_notif_unregister_async_event_handler): Remove.
2172 (remote_notif_state_allocate): Declare.
2173 (remote_notif_state_xfree): Declare.
2174 * remote.c (struct remote_state) <notif_state>: New field.
2175 (remote_close): Don't call
2176 remote_notif_unregister_async_event_handler. Call
2177 remote_notif_state_xfree.
2178 (remote_open_1): Don't call
2179 remote_notif_register_async_event_handler. Call
2180 remote_notif_state_allocate.
2181
2182 2013-10-04 Yao Qi <yao@codesourcery.com>
2183
2184 * varobj.c (create_child_with_value): Remove 'const' from the
2185 type of parameter 'name'.
2186 (varobj_add_child): Likewise.
2187 (install_dynamic_child): Remove 'const' from the type of
2188 parameter 'name'.
2189 (varobj_add_child): Likewise.
2190 (create_child_with_value): Likewise. Update comments. Don't
2191 duplicate 'name'.
2192 (update_dynamic_varobj_children): Duplicate 'name'
2193 and pass it to install_dynamic_child.
2194
2195 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2196
2197 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2198 conversion logic to occur after PyLong_Check. Comment on order
2199 change significance.
2200 * python/py-arch.c (archpy_disassemble): Comment on order of
2201 conversion for integers and longs.
2202
2203 2013-10-03 Pedro Alves <palves@redhat.com>
2204
2205 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2206 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2207 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2208 PTRACE_O_TRACEFORK is not supported.
2209 (linux_test_for_tracesysgood): New function.
2210 (linux_test_for_tracefork): New function, factored out from
2211 linux_check_ptrace_features, and also don't kill child_pid here.
2212
2213 2013-10-03 Tristan Gingold <gingold@adacore.com>
2214
2215 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2216 Remove verbose error reporting. Use detected state to
2217 thread_set_state call.
2218 (i386_darwin_dr_get): Fix return type. Remove verbose error
2219 report.
2220 Remove trailing spaces.
2221
2222 2013-10-02 Pedro Alves <palves@redhat.com>
2223
2224 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2225 val_print_optimized_out.
2226 * jv-valprint.c (java_print_value_fields): Likewise.
2227 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2228 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2229 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2230 new optimized out value.
2231 * findvar.c (address_from_register): Likewise.
2232 * frame.c (put_frame_register): Tweak error string to say the
2233 register was not saved, rather than optimized out.
2234 * infcmd.c (default_print_one_register_info): Adjust call to
2235 val_print_optimized_out. Use value_of_register instead of
2236 get_frame_register_value.
2237 * mi/mi-main.c (output_register): Use value_of_register instead of
2238 get_frame_register_value.
2239 * valprint.c (valprint_check_validity): Likewise.
2240 (val_print_optimized_out): New value parameter. If the value is
2241 lval_register, print <not saved> instead.
2242 (value_check_printable, val_print_scalar_formatted): Adjust calls
2243 to val_print_optimized_out.
2244 * valprint.h (val_print_optimized_out): New value parameter.
2245 * value.c (struct value) <optimized_out>: Extend comment.
2246 (error_value_optimized_out): New function.
2247 (require_not_optimized_out): Use it. Use a different string for
2248 lval_register values.
2249 * value.h (error_value_optimized_out): New declaration.
2250 * NEWS: Mention <not saved>.
2251
2252 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2253
2254 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2255 strcmp to compare two symtab filenames.
2256
2257 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2258
2259 * symtab.c (search_symbols_equal): Delete.
2260 (sort_search_symbols_remove_dups): Replace call to
2261 search_symbols_equal by call to compare_search_syms,
2262 adjusting as necessary.
2263
2264 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2265
2266 PR python/15579
2267 * python/python.c: Document gdb.execute command in Python help.
2268
2269 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2270
2271 * python/py-frame.c (frame_info_to_frame_object): Use
2272 gdbpy_convert_exception. Clean up Python object on failure.
2273
2274 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2275
2276 * python/lib/gdb/command/frame_filters.py
2277 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2278 (ShowFrameFilterPriority.invoke): Ditto.
2279
2280 2013-10-01 Keith Seitz <keiths@redhat.com>
2281
2282 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2283 (parse_linespec): Make 'argptr' const.
2284 Remove temporary cast of 'argptr' to const char **.
2285 (decode_line_full): Pass const pointer to parse_linespec.
2286 (decode_line_1): Likewise.
2287 (decode_objc): Make local variable 'new_argptr' const.
2288 (find_function_symbols): Remove temporary cast to char *
2289 to find_imps.
2290 * objc-lang.c (find_imps): Make argument 'method' const.
2291 Return const.
2292 * objc-lang.h (find_imps): Likewise.
2293
2294 2013-10-01 Keith Seitz <keiths@redhat.com>
2295
2296 * completer.c (skip_quoted_chars): Make all arguments const.
2297 Return const.
2298 (skip_quoted): Likewise.
2299 * completer.h (skip_quoted_chars): Likewise.
2300 (skip_quoted): Likewise.
2301 * defs.h (skip_quoted): Remove duplicate declaration.
2302 * jv-exp.y: Include completer.h.
2303 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2304 * p-exp.y: Include completer.h.
2305
2306 2013-10-01 Keith Seitz <keiths@redhat.com>
2307
2308 * c-exp.y (parse_number): Make first argument const.
2309 Make a copy of the input to manipulate.
2310 (c_parse_escape): Make first argument const.
2311 Make local variable 'tokptr' const.
2312 (parse_string_or_char): Make first two arguments const.
2313 (macro_original_text): Make const.
2314 (lex_one_token): Make local variable 'tokstart' const.
2315 Likewise for local variables named 'p'.
2316 Cast away const for struct stoken (temporary).
2317 * c-lang.h (c_parse_escpae): Make first argument const.
2318 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2319 const.
2320 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2321 var_string case.
2322 * f-exp.y (parse_number): Make first argument const.
2323 (match_string_literal): Make local variable 'tokstart'
2324 const.
2325 (yylex): Make local variable 'p' const.
2326 Cast away const for struct stoken (temporary).
2327 * go-exp.y (parse_number): Make first argument const.
2328 (parse_string_or_char): Likewise.
2329 Make local variable 'tokstart' const.
2330 (lex_one_token): Likewise for numerous locals called 'p'.
2331 Cast away const for struct stoken (temporary).
2332 * jv-exp.y (parse_number): Make first argument const.
2333 Make local variables 'tokstart' and 'tokptr' const.
2334 Cast away const for call to skip_quoted (temporary).
2335 (yylex): Make local variable 'p' const.
2336 Cast away const for struct stoken (temporary).
2337 * m2-exp.y (parse_number): Make local variable 'p' const.
2338 (yylex): Likewise for 'tokstart'.
2339 Cast away const for struct stoken (temporary).
2340 Make local variable 'p' const.
2341 * macroexp.c (get_character_constant): Pass a const string
2342 to c_parse_escape.
2343 (get_string_literal): Likewise.
2344 (macro_expand_next): Make first argument const.
2345 Cast away const for init_shared_buffer.
2346 * macroexp.h (macro_expand_next): Make first argument const.
2347 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2348 Pass a const string to c_parse_escape.
2349 Make local variables 'p' and 'namestart' const.
2350 * parse.c (lexptr): Make const.
2351 (prev_lexptr): Likewise.
2352 (find_template_name_end): Return const.
2353 Make argument const, too.
2354 (parse_exp_in_context): Make first argument const.
2355 Remove the entire const_hack.
2356 (parse_exp_in_context_1): Make first argument const.
2357 * parser-defs.h (find_template_name_end): Return const.
2358 Make argument const, too.
2359 (lexptr): Make const.
2360 (prev_lexptr): Likewise.
2361 * utils.c (parse_escape): Make second argument const.
2362 * utils.h (parse_escape): Likewise.
2363
2364 2013-10-01 Keith Seitz <keiths@redhat.com>
2365
2366 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2367 is now const.
2368 (block_lookup): Make 'raw_name' and 'name' const.
2369 * ada-lex.l (processString): Update for struct stoken.ptr.
2370 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2371 (operator_stoken): Likewise.
2372 (lex_one_token): Remove temporary cast to char * for
2373 'yylval.sval.ptr'.
2374 * f-exp.y (yylex): Likewise.
2375 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2376 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2377 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2378 'yylval.sval.ptr'.
2379 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2380 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2381 * linespec.c (struct ls_parser): Make 'stream' const.
2382 (find_parameter_list_end): Make argument 'input' and local
2383 variable 'p' const.
2384 (linespec_lexer_lex_string): Make local variables 'start' and
2385 'p' const.
2386 Use skip_spaces_const instead of skip_spaces.
2387 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2388 const.
2389 (parse_linespec): Temporarily cast 'argptr' to const for
2390 'parser->lexer.stream'.
2391 * m2-exp.y (yylex): Remove temporary cast to char * for
2392 'yylval.sval.ptr'.
2393 * objc-lang.c (add_msglist): Make local variable 'p' const.
2394 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2395 (exp : STRING): Make 'sp' const.
2396 (parse_number): Make argument 'p' const.
2397 * parser-defs.h (struct stoken): Make 'ptr' const.
2398
2399 2013-10-01 Doug Evans <dje@google.com>
2400
2401 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2402
2403 2013-10-01 Yao Qi <yao@codesourcery.com>
2404
2405 * varobj.c (c_value_of_root): Remove declaration.
2406 (cplus_value_of_root, java_value_of_root): Likewise.
2407 (ada_value_of_root): Likewise.
2408 (struct language_specific) <value_of_root>: Remove.
2409 (languages): Update initialization.
2410 (check_scope): Move earlier.
2411 (c_value_of_root): Move earlier and rename to ...
2412 (value_of_root_1): ... this.
2413 (value_of_root): Caller update.
2414 (cplus_value_of_root, java_value_of_root): Remove.
2415 (ada_value_of_root): Remove.
2416
2417 2013-10-01 Yao Qi <yao@codesourcery.com>
2418
2419 * varobj.c (varobj_format_string): Remove "unknown".
2420 (languages): Remove the first element.
2421 * varobj.h (enum varobj_languages): Remove vlang_c.
2422
2423 2013-10-01 Yao Qi <yao@codesourcery.com>
2424
2425 * varobj.c (struct language_specific) <language>: Remove.
2426 (languages): Update the initialization.
2427
2428 2013-10-01 Yao Qi <yao@codesourcery.com>
2429
2430 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2431 "solib-target.h". Include "windows-tdep.h".
2432 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2433 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2434 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2435 windows-tdep.o to gdb_target_obs.
2436
2437 2013-10-01 Yao Qi <yao@codesourcery.com>
2438
2439 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2440 "solib-target.h".
2441 (amd64_windows_init_abi): Don't call set_solib_ops and
2442 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2443 windows_init_abi instead.
2444 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2445 "solib-target.h".
2446 (i386_cygwin_init_abi): Don't call set_solib_ops,
2447 set_gdbarch_has_dos_based_file_system and
2448 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2449 windows_init_abi instead.
2450 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2451 (windows_init_abi): New function.
2452 (windows_iterate_over_objfiles_in_search_order): Make it
2453 static.
2454 * windows-tdep.h (windows_init_abi): Declare.
2455 (windows_iterate_over_objfiles_in_search_order): Remove
2456 declaration.
2457
2458 2013-10-01 Jerome Guitton <guitton@adacore.com>
2459
2460 Checked in by Joel Brobecker <brobecker@adacore.com>
2461 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2462 incomplete dictionnary instead of None in case of missing
2463 environment variables.
2464 (elinos_init): in case of an incomplete environment, best
2465 effort to load system libraries instead of abort.
2466
2467 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2468
2469 * ada-lang.c (ada_has_this_exception_support): Ignore
2470 mst_solib_trampoline minimal symbols.
2471
2472 2013-09-30 Tristan Gingold <gingold@adacore.com>
2473
2474 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2475 hardware watchpoint.
2476 (i386_darwin_dr_set): Support 32 and 64 bit states.
2477 (i386_darwin_dr_get): Likewise.
2478 (i386_darwin_dr_set_control): Make static.
2479 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2480 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2481
2482 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2483
2484 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2485 Replace TIDGET with ptid_get_lwp.
2486 Replace GET_LWP with ptid_get_lwp.
2487 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2488 Replace BUILD_THREAD with ptid_build.
2489 Replace BUILD_LWP with ptid_build.
2490 Replace PIDGET with ptid_get_pid.
2491 Replace TIDGET with ptid_get_lwp.
2492 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2493 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2494 Replace TIDGET with ptid_get_lwp.
2495 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2496 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2497 Replace TIDGET with ptid_get_lwp.
2498 Replace GET_LWP with ptid_get_lwp.
2499 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2500 * auxv.c: Likewise.
2501 * breakpoint.c: Likewise.
2502 * common/ptid.c (ptid_is_pid): Condense check for
2503 null_ptid and minus_one_ptid.
2504 (ptid_lwp_p): New function.
2505 (ptid_tid_p): New function.
2506 * common/ptid.h: Update comments for accessors.
2507 (ptid_lwp_p): New prototype.
2508 (ptid_tid_p): New prototype.
2509 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2510 * gcore.c: Replace PIDGET with ptid_get_pid.
2511 * gdbthread.h: Likewise.
2512 * gnu-nat.c: Likewise.
2513 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2514 Replace TIDGET with ptid_get_lwp.
2515 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2516 * hppanbsd-nat.c: Likewise.
2517 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2518 Replace TIDGET with ptid_get_lwp.
2519 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2520 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2521 * infcmd.c: Likewise.
2522 * inferior.h: Likewise.
2523 * inflow.c: Likewise.
2524 * infrun.c: Likewise.
2525 * linux-fork.c: Likewise.
2526 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2527 Replace GET_PID with ptid_get_pid.
2528 Replace is_lwp with ptid_lwp_p.
2529 Replace GET_LWP with ptid_get_lwp.
2530 Replace BUILD_LWP with ptid_build.
2531
2532 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2533
2534 * common/linux-btrace.c: Move sys/syscall.h out of the
2535 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2536 Also check for SYS_perf_event_open before attempting to buid.
2537
2538 2013-09-27 Doug Evans <dje@google.com>
2539
2540 * dwarf2read.c (dwarf2_section_info): Add comment.
2541 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2542 All uses updated.
2543 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2544 (dwarf2_read_section): Delete unused local "header". Add section
2545 name to error message.
2546 (create_dwo_in_dwp): Tweak comment.
2547 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2548
2549 * dwarf2read.c (die_reader_specs): Tweak comment.
2550 (get_section_bfd_owner, get_section_bfd_section): New functions.
2551 (get_section_name, get_section_file_name): New functions.
2552 (get_section_id, get_section_flags): New functions.
2553 (*): Use new functions to access section fields.
2554
2555 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2556 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2557 arg "htab". All callers updated.
2558 (create_debug_types_hash_table): Remove redundant copy of
2559 abbrev_section.
2560 (create_dwo_in_dwp): Tweak comments.
2561 (read_str_index): Tweak comment. Record dwarf form name in static
2562 local.
2563
2564 2013-09-27 Pedro Alves <palves@redhat.com>
2565
2566 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2567 (remote_filename_p): Add comment.
2568 * remote.c (remote_filename_p): Adjust to use
2569 REMOTE_SYSROOT_PREFIX.
2570 * solib.c (solib_find): When deciding whether we need to add a
2571 directory separator, check whether the sysroot is "remote:"
2572 instead of checking whether the patch has a drive spec. Add
2573 comments.
2574
2575 2013-09-27 Pedro Alves <palves@redhat.com>
2576
2577 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2578 Delete fields.
2579 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2580 directly.
2581
2582 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2583
2584 Fix set debug frame output.
2585 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2586 SENTINEL_FRAME entry lower to match enum frame_type order.
2587
2588 2013-09-26 Pierre Muller <muller@sourceware.org>
2589
2590 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2591 AMD64_R15_REGNUM when a register index is expected.
2592 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2593 Substitute in array.
2594 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2595 (amd64_push_arguments): Substitute in integer_regnum array.
2596
2597 2013-09-25 Doug Evans <dje@google.com>
2598
2599 * objfiles.c (allocate_objfile): Move comment to better place.
2600
2601 New option "set debug symfile on".
2602 * NEWS: Mention "set debug symfile".
2603 * Makefile.in (SFILES): Add symfile-debug.c.
2604 (COMMON_OBS): Add symfile-debug.o.
2605 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2606 objfile's symbol functions.
2607 * objfiles.h (objfile_set_sym_fns): Declare.
2608 * symfile-debug.c: New file.
2609 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2610 objfile's symbol functions.
2611 (reread_symbols): Ditto.
2612
2613 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2614 All uses updated.
2615 (add_symtab_fns): Update prototype.
2616 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2617 (registered_sym_fns): ... this.
2618 (symtab_fns): Update.
2619 (add_symtab_fns): New arg "flavour". All callers updated.
2620 (find_sym_fns): Rewrite to use new sym_fns registry.
2621
2622 * symfile.h (struct sym_fns): Add "objfile" argument to
2623 sym_read_linetable. All uses updated.
2624
2625 * symtab.c (domain_name, search_domain_name): New functions.
2626 * symtab.h (domain_name, search_domain_name): Declare.
2627
2628 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2629 map_matching_symbols so objfile is first. All uses updated.
2630 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2631 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2632
2633 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2634
2635 PR shlibs/8882
2636 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2637 link map entries.
2638
2639 2013-09-24 Doug Evans <dje@google.com>
2640
2641 * objfiles.c (free_objfile): Move comment.
2642
2643 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2644
2645 * ada-exp.y (string_to_operator): Delete.
2646 (dummy_string_to_ada_operator): Delete.
2647
2648 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2649
2650 Revert:
2651 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2652 amd64-tdep.c.
2653 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2654 call_dummy_integer_regs, and classify.
2655 * amd64-tdep.h (amd64_classify): Add declaration.
2656 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2657 (amd64_reg_class): Delete, moved to i386-tdep.h.
2658 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2659 Replace call to amd64_classify by call to tdep->classify.
2660 (amd64_push_arguments): Get the list of registers to use for
2661 passing integer parameters from the gdbarch tdep structure,
2662 rather than using a hardcoded one. Replace calls to amd64_classify
2663 by calls to tdep->classify.
2664 (amd64_push_dummy_call): Get the register number used for
2665 the "hidden" argument from tdep->call_dummy_integer_regs.
2666 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2667 and tdep->call_dummy_integer_regs. Set tdep->classify.
2668
2669 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2670
2671 Revert:
2672 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2673 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2674 where tdep->memory_args_by_pointer is non-zero.
2675
2676 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2677
2678 Revert:
2679 * i386-tdep.h (struct gdbarch_tdep): Add new field
2680 integer_param_regs_saved_in_caller_frame.
2681 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2682 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2683
2684 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2685
2686 * amd64-windows-tdep.c: #include "value.h"
2687 (amd64_windows_classify): Delete.
2688 (amd64_windows_passed_by_integer_register)
2689 (amd64_windows_passed_by_xmm_register)
2690 (amd64_windows_passed_by_pointer)
2691 (amd64_windows_adjust_args_passed_by_pointer)
2692 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2693 (amd64_windows_push_dummy_call): New functions.
2694 (amd64_windows_init_abi): Remove setting of
2695 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2696 tdep->classify, tdep->memory_args_by_pointer and
2697 tdep->integer_param_regs_saved_in_caller_frame.
2698 Add call to set_gdbarch_push_dummy_call.
2699
2700 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2701
2702 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2703 objfile->original_name.
2704
2705 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2706
2707 Pass down original filename for objfile.
2708 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2709 * elfread.c (elf_symfile_read): Likewise.
2710 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2711 longer set ORIGINAL_NAME.
2712 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2713 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2714 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2715 symbol_file_add_from_bfd call.
2716 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2717 (macho_check_dsym): Add parameter filenamep. Change function comment.
2718 Set *filenamep.
2719 (macho_symfile_read): New variable dsym_filename. Update
2720 macho_check_dsym call. Use it for symbol_file_add_separate.
2721 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2722 it. Use it for objfile->original_name.
2723 (objfile_name): Return OBFD's filename, if available.
2724 * objfiles.h (allocate_objfile): Add new parameter name.
2725 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2726 * symfile-mem.c (symbol_file_add_from_memory): Update
2727 symbol_file_add_from_bfd call.
2728 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2729 comment for it.
2730 (symbol_file_add_with_addrs): New parameter name, add function comment
2731 for it. Remove variable name. Update allocate_objfile call.
2732 (symbol_file_add_separate): New parameter name, add function comment
2733 for it. Update symbol_file_add_with_addrs call.
2734 (symbol_file_add_from_bfd): New parameter name. Update
2735 symbol_file_add_with_addrs call.
2736 (symbol_file_add): Update symbol_file_add_from_bfd call.
2737 (reread_symbols): New variable original_name. Save
2738 objfile->original_name by it.
2739 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2740 second parameter.
2741
2742 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2743
2744 Code cleanup: Add objfile_name accessor function.
2745 * ada-lang.c (is_known_support_routine): Use objfile_name.
2746 * auto-load.c (source_gdb_script_for_objfile)
2747 (auto_load_objfile_script): Likewise.
2748 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2749 * dbxread.c (dbx_symfile_read): Likewise.
2750 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2751 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2752 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2753 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2754 (lookup_dwp_signatured_type, lookup_dwo_unit)
2755 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2756 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2757 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2758 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2759 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2760 (read_subrange_type, load_partial_dies, read_partial_die)
2761 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2762 (die_containing_type, build_error_marker_type, lookup_die_type)
2763 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2764 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2765 (get_DW_AT_signature_type, write_psymtabs_to_index)
2766 (save_gdb_index_command): Likewise.
2767 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2768 Likewise.
2769 * expprint.c (dump_subexp_body_standard): Likewise.
2770 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2771 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2772 original_name.
2773 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2774 obj_name, use objfile_name for it, use the variable.
2775 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2776 Use objfile_name.
2777 * machoread.c (macho_symtab_read, macho_check_dsym)
2778 (macho_symfile_relocate): Likewise.
2779 * maint.c (maintenance_translate_address): Likewise.
2780 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2781 * minsyms.c (install_minimal_symbols): Likewise.
2782 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2783 original_name.
2784 (filter_overlapping_sections): Use objfile_name.
2785 (objfile_name): New function.
2786 * objfiles.h (struct objfile): Rename field name to original_name.
2787 (objfile_name): New prototype.
2788 * printcmd.c (sym_info, address_info): Use objfile_name.
2789 * probe.c (parse_probes, collect_probes, compare_probes)
2790 (info_probes_for_ops): Likewise.
2791 * progspace.c (clone_program_space): Likewise.
2792 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2793 (maintenance_info_psymtabs): Likewise.
2794 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2795 (source_section_scripts): Likewise.
2796 * python/py-objfile.c (objfpy_get_filename): Likewise.
2797 * python/py-progspace.c (pspy_get_filename): Likewise.
2798 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2799 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2800 * solib.c (solib_read_symbols): Likewise.
2801 * stabsread.c (scan_file_globals): Likewise.
2802 * stap-probe.c (handle_stap_probe): Likewise.
2803 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2804 (find_separate_debug_file_by_debuglink): Likewise.
2805 (reread_symbols): Likewise. Use the objfile field name renamed to
2806 original_name.
2807 (allocate_symtab): Use objfile_name.
2808 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2809 (dump_objfile, dump_msymbols, dump_symtab_1)
2810 (maintenance_print_msymbols, maintenance_print_objfiles)
2811 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2812 * target.c (target_translate_tls_address, target_info): Likewise.
2813 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2814 objfile_name.
2815
2816 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2817
2818 Code cleanup.
2819 * probe.c (parse_probes): Rename variable objfile_name to
2820 objfile_namestr.
2821
2822 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2823
2824 Remove solib-sunos.c.
2825 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2826 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2827 * objfiles.c (rt_common_objfile): Remove.
2828 (free_objfile): Remove rt_common_objfile comparison.
2829 * objfiles.h (rt_common_objfile): Remove.
2830 * solib-sunos.c: Remove.
2831 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2832
2833 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 Remove a.out NetBSD and OpenBSD hosts.
2836 * NEWS (Removed native configurations): New.
2837 * config/arm/nbsdaout.mh: Remove.
2838 * config/i386/nbsdaout.mh: Remove.
2839 * config/i386/obsdaout.mh: Remove.
2840 * config/m68k/nbsdaout.mh: Remove.
2841 * config/sparc/nbsdaout.mh: Remove.
2842 * config/vax/nbsdaout.mh: Remove.
2843 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2844 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2845 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2846 error.
2847 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2848 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2849 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2850
2851 2013-09-23 Tom Tromey <tromey@redhat.com>
2852
2853 * linespec.c (struct minsym_and_objfile): Remove.
2854 (minsym_and_objfile_d): Remove.
2855 (struct linespec, struct collect_info, linespec_parse_basic)
2856 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2857 (compare_msymbols, find_method, find_function_symbols)
2858 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2859 (add_minsym, search_minsyms_for_name): Update.
2860
2861 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2862
2863 * regcache.c: Add include of valprint.h.
2864 (dump_endian_bytes): Delete.
2865 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2866
2867 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2868
2869 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2870
2871 2013-09-19 Pedro Alves <palves@redhat.com>
2872
2873 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2874 breakpoints.
2875
2876 2013-09-19 Pedro Alves <palves@redhat.com>
2877 Thomas Schwinge <thomas@codesourcery.com>
2878 Yue Lu <hacklu.newborn@gmail.com>
2879
2880 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2881 Take a gdb_byte pointer instead of a char pointer.
2882
2883 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2884 gnu_xfer_partial helper.
2885 (gnu_xfer_partial): New function.
2886 (gnu_target): Don't install a deprecated_xfer_memory hook.
2887 Install a to_xfer_partial hook.
2888
2889 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2890
2891 Constification.
2892 * main.c (captured_main): Replace catch_command_errors by
2893 catch_command_errors_const. Twice.
2894 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2895 (symbol_file_add): Make name parameter const.
2896 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2897 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2898 variable name. Change their usage accordingly.
2899 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2900 const.
2901 (symbol_file_add_main): Make args parameter const.
2902
2903 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2904 Ulrich Weigand <uweigand@de.ibm.com>
2905
2906 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2907 of c_value member.
2908 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2909
2910 2013-09-18 Pedro Alves <palves@redhat.com>
2911 Yue Lu <hacklu.newborn@gmail.com>
2912
2913 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2914 (gnu_create_inferior)
2915 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2916 (set_sig_thread_cmd): Use the lwpid field of ptids to
2917 store/extract thread ids instead of the tid field.
2918 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2919
2920 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2921
2922 * infcmd.c (default_print_one_register_info): Add detection of
2923 optimized out values.
2924 (default_print_registers_info): Switch to using
2925 get_frame_register_value.
2926
2927 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2928
2929 * infrun.c (handle_inferior_event): Check if we know the
2930 function start address before setting a resume breakpoint.
2931
2932 2013-09-18 Pedro Alves <palves@redhat.com>
2933
2934 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2935 minus_one_ptid instead of looking at the ptid's tid field and
2936 comparing that to -1.
2937
2938 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2939
2940 * main.h (get_gdb_program_name): Remove extra whitespace.
2941
2942 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2943
2944 * main.h (get_gdb_program_name): Add declaration.
2945 * main.c (get_gdb_program_name): Add definition.
2946
2947 2013-09-17 Doug Evans <dje@google.com>
2948
2949 * dwarf2read.c: Move definitions of complaint functions to after
2950 forward declarations of local functions.
2951
2952 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2953 Pedro Alves <palves@redhat.com>
2954
2955 PR gdb/11568
2956 * breakpoint.c (remove_threaded_breakpoints): New function.
2957 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2958 as thread_exit observer.
2959
2960 2013-09-17 Pedro Alves <palves@redhat.com>
2961
2962 PR gdb/15911
2963 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2964 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2965 * corelow.c (core_open):
2966 * frame.h (print_stack_frame, print_frame_info): New
2967 'set_current_sal' parameter.
2968 * infcmd.c (finish_command, kill_command): Adjust call to
2969 print_stack_frame.
2970 * inferior.c (inferior_command): Likewise.
2971 * infrun.c (normal_stop): Likewise.
2972 * linux-fork.c (linux_fork_context): Likewise.
2973 * record-full.c (record_full_goto_entry, record_full_restore):
2974 Likewise.
2975 * remote-mips.c (common_open): Likewise.
2976 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2977 Use it.
2978 (print_frame_info): New 'set_current_sal' parameter. Set the last
2979 displayed sal depending on the new paremeter instead of looking at
2980 print_what.
2981 (backtrace_command_1, select_and_print_frame, frame_command)
2982 (current_frame_command, up_command, down_command): Adjust call to
2983 print_stack_frame.
2984 * thread.c (print_thread_info, restore_selected_frame)
2985 (do_captured_thread_select): Adjust call to print_stack_frame.
2986 * tracepoint.c (tfind_1): Likewise.
2987 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2988 (mi_cmd_stack_info_frame): Likewise.
2989 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2990 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2991
2992 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2993
2994 * value.c (isvoid_internal_fn): Replace "parameter" with
2995 "argument".
2996
2997 2013-09-16 Stan Shebs <stan@codesourcery.com>
2998
2999 * README: Update references to writing code for GDB.
3000 * configure.ac (build_warnings): Remove obsolete comment.
3001 * configure: Regenerate.
3002 * gdbarch.sh: Remove references to gdbint.texinfo.
3003 * gdbarch.h: Regenerate.
3004 * gdbtypes.c (objfile_type): Remove comments referencing internals
3005 manual and D10V.
3006
3007 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3008
3009 * NEWS: Mention new convenience function $_isvoid.
3010 * value.c (isvoid_internal_fn): New function.
3011 (_initialize_values): Add new convenience function $_isvoid.
3012
3013 2013-09-16 Pierre Muller <muller@sourceware.org>
3014
3015 * arm-linux-tdep.c: Add "elf/common.h" header.
3016 Remove AT_HWCAP macro definintion as it is provided in
3017 added include file.
3018 * s390-tdep.c: Remove system header <elf.h>
3019 Add "elf/common.h" header for AT_HWCAP definition.
3020 (s390_core_read_description): Use correct CORE_ADDR
3021 for hwcap local variable used as third parameter
3022 of function target_auxv_search.
3023
3024 2013-09-14 Pierre Muller <muller@sourceware.org>
3025 Tom Tromey <tromey@redhat.com>
3026 Pedro Alves <palves@redhat.com>
3027
3028 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3029 mode if operating system doesn't know O_CLOEXEC.
3030
3031 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3032
3033 Code cleanup.
3034 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3035 inner block.
3036
3037 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3038
3039 * NEWS: Mention TDB support.
3040 * features/s390-tdb.xml: New file.
3041 * features/s390-te-linux64.xml: New file.
3042 * features/s390x-te-linux64.xml: New file.
3043 * features/Makefile (WHICH): Add new tdescs above.
3044 (s390-te-linux64-expedite): Set.
3045 (s390x-te-linux64-expedite): Set.
3046 * features/s390-te-linux64.c: New file (generated).
3047 * features/s390x-te-linux64.c: New file (generated).
3048 * regformats/s390-te-linux64.dat: New file (generated).
3049 * regformats/s390x-te-linux64.dat: New file (generated).
3050 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3051 (HWCAP_S390_TE): Likewise.
3052 (S390_TDB_DWORD0_REGNUM): Likewise.
3053 (S390_TDB_DWORD0_REGNUM): Likewise.
3054 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3055 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3056 (S390_TDB_ATIA_REGNUM): Likewise.
3057 (S390_TDB_R0_REGNUM): Likewise.
3058 (S390_TDB_R1_REGNUM): Likewise.
3059 (S390_TDB_R2_REGNUM): Likewise.
3060 (S390_TDB_R3_REGNUM): Likewise.
3061 (S390_TDB_R4_REGNUM): Likewise.
3062 (S390_TDB_R5_REGNUM): Likewise.
3063 (S390_TDB_R6_REGNUM): Likewise.
3064 (S390_TDB_R7_REGNUM): Likewise.
3065 (S390_TDB_R8_REGNUM): Likewise.
3066 (S390_TDB_R9_REGNUM): Likewise.
3067 (S390_TDB_R10_REGNUM): Likewise.
3068 (S390_TDB_R11_REGNUM): Likewise.
3069 (S390_TDB_R12_REGNUM): Likewise.
3070 (S390_TDB_R13_REGNUM): Likewise.
3071 (S390_TDB_R14_REGNUM): Likewise.
3072 (S390_TDB_R15_REGNUM): Likewise.
3073 (S390_NUM_REGS): Increase.
3074 (S390_IS_TDBREGSET_REGNUM): New macro.
3075 (s390_regmap_tdb): Declare.
3076 (s390_sizeof_tdbregset): Define.
3077 (tdesc_s390_te_linux64): Declare.
3078 (tdesc_s390x_te_linux64): Likewise.
3079 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3080 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3081 (s390_regmap_tdb): New regmap.
3082 (s390_supply_tdb_regset): New function.
3083 (s390_tdb_regset): New regset.
3084 (s390_linux64v2_regset_sections): Add TDB regset to list.
3085 (s390x_linux64v2_regset_sections): Likewise.
3086 (s390_regset_from_core_section): Recognize TDB core note section.
3087 (s390_core_read_description): If HWCAP indicates TE support,
3088 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3089 (s390_gdbarch_init): Handle TDB regset.
3090 (_initialize_s390_tdep): Initialize new tdescs.
3091 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3092 (have_regset_tdb): New variable.
3093 (s390_native_supply): Support register invalidation.
3094 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3095 (check_regset): Treat ENODATA as "regset exists".
3096 (s390_linux_fetch_inferior_registers): Add TDB.
3097 (s390_read_description): Check for TDB existence and select
3098 appropriate tdesc.
3099 * gdbserver/Makefile.in (clean): Add removal of new makefile
3100 targets.
3101 (s390-te-linux64.c): New makefile target.
3102 (s390x-te-linux64.c): Likewise.
3103 * gdbserver/configure.srv (srv_regobj): Append new objects
3104 s390-te-linux64.o and s390x-te-linux64.o.
3105 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3106 s390x-te-linux64.xml, and s390-tdb.xml.
3107 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3108 declaration.
3109 (tdesc_s390_te_linux64): Likewise.
3110 (init_registers_s390x_te_linux64): Likewise.
3111 (tdesc_s390x_te_linux64): Likewise.
3112 (s390_check_regset): Treat ENODATA as "regset exists".
3113 (s390_arch_setup): Add TDB regset support.
3114 (initialize_low_arch): Initialize registers for new tdescs.
3115
3116 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3119 (S390_IS_FPREGSET_REGNUM): New macro.
3120 * s390-tdep.c (s390_dwarf_regmap): Make const.
3121 (regnum_is_gpr_full): New function for replacing repeated code.
3122 (s390_pseudo_register_name): Use it.
3123 (s390_pseudo_register_type): Likewise.
3124 (s390_pseudo_register_read): Likewise.
3125 (s390_pseudo_register_write): Likewise.
3126 (s390_unwind_pseudo_register): Likewise.
3127 (s390_regmap_gregset): New format for regmap.
3128 (s390x_regmap_gregset): Likewise.
3129 (s390_regmap_fpregset): Likewise.
3130 (s390_regmap_upper): Likewise.
3131 (s390_regmap_last_break): Likewise.
3132 (s390_regmap_system_call): Likewise.
3133 (s390_supply_regset): Adjust to new regmap format.
3134 (s390_collect_regset): Likewise.
3135 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3136 (s390_native_collect): Likewise.
3137 (supply_gregset): Likewise.
3138 (fill_gregset): Likewise.
3139 (supply_fpregset): Likewise.
3140 (fill_fpregset): Likewise.
3141 (fetch_regset): Likewise.
3142 (store_regset): Likewise.
3143 (s390_linux_fetch_inferior_registers): Likewise.
3144 (s390_linux_fetch_inferior_registers): Likewise.
3145
3146 2013-09-12 Andrew Pinski <apinski@cavium.com>
3147
3148 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3149
3150 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3151
3152 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3153
3154 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3155
3156 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3157
3158 2013-09-06 Pedro Alves <palves@redhat.com>
3159
3160 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3161 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3162 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3163 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3164 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3165 gdb_stdlog.
3166
3167 2013-09-06 Pedro Alves <palves@redhat.com>
3168
3169 * remote-sim.c (dump_mem): Constify buf parameter.
3170 gdbsim_xfer_inferior_memory): Rename to ...
3171 (gdbsim_xfer_memory): ... this. Adjust interface as
3172 target_xfer_partial helper.
3173 (gdbsim_xfer_partial): New function.
3174 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3175 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3176
3177 2013-09-06 Pedro Alves <palves@redhat.com>
3178
3179 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3180 host_address_to_string, and send debug output to gdb_stdlog.
3181
3182 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3183
3184 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3185 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3186 gdb_target_obs for cris target.
3187 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3188 (cris_gdbarch_init): Move calls to
3189 set_gdbarch_fetch_tls_load_module_address and
3190 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3191 Add call to gdbarch_init_osabi.
3192 * cris-linux-tdep.c: New file.
3193 * cris-tdep.h: New file.
3194
3195 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3196
3197 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3198 to deprecated_init_ui_hook.
3199
3200 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3201
3202 * cli/cli-interp.c (_initialize_cli_interp): Add a
3203 command_loop_proc to interp_procs.
3204 * event-top.c (cli_command_loop): Change signature to match
3205 interp_command_loop_ftype.
3206 * event-top.h (cli_command_loop): Same.
3207 * interps.c (interp_new): Require every interpreter to have a
3208 command_loop_proc.
3209 (current_interp_command_loop): Just call the command_loop_proc on
3210 the current interpreter.
3211 * tui/tui-interp.c (_initialize_tui_interp): Add a
3212 command_loop_proc to interp_procs.
3213
3214 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3215
3216 * cris-tdep.c (cris_gdbarch_init): Add call to
3217 get_gdbarch_fetch_tls_load_module_address.
3218
3219 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3220
3221 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3222 (cris_elf_gregset_t): Rename from elf_gregset_t.
3223 (crisv32_elf_gregset_t): Adjust.
3224 (cris_supply_gregset, fetch_core_registers): Adjust.
3225
3226 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3227
3228 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3229
3230 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3231
3232 * defs.h (deprecated_command_loop_hook): Remove, including
3233 references in comments.
3234 * interps.c (current_interp_command_loop): No longer use
3235 deprecated_command_loop_hook.
3236 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3237 setup.
3238 * top.c (deprecated_command_loop_hook): Remove.
3239
3240 2013-09-05 Pedro Alves <palves@redhat.com>
3241
3242 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3243 local is now int instead of ULONGEST. Print it with %d
3244 instead of paddress.
3245
3246 2013-09-05 Tristan Gingold <gingold@adacore.com>
3247
3248 * MAINTAINERS: Remove avr maintainership.
3249
3250 2013-09-05 Pedro Alves <palves@redhat.com>
3251
3252 * findvar.c (value_of_register): Rework in terms of
3253 value_of_register_lazy.
3254
3255 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3256
3257 * symfile.c (add_symbol_file_command): Remove trailing
3258 whitespaces and blank line after comment.
3259
3260 2013-09-05 Pedro Alves <palves@redhat.com>
3261
3262 * tui/tui-regs.c (tui_register_format): Don't look at the
3263 register's name here. Return string representing register
3264 value instead of storing it in the data element.
3265 (tui_get_register): Compare register string representations
3266 instead of register value states and contents.
3267
3268 2013-09-05 Pedro Alves <palves@redhat.com>
3269
3270 PR tui/15933
3271 * tui/tui-regs.c (tui_show_registers): Show registers of the
3272 selected frame, not the current frame.
3273
3274 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3275
3276 * MAINTAINERS (Write After Approval): Add myself to the list.
3277
3278 2013-09-04 Doug Evans <dje@google.com>
3279
3280 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3281 (queue_and_load_dwo_tu): New function.
3282 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3283 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3284 Make dependent_cu optional.
3285 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3286 and an older .gdb_index is in use, queue and load all its TUs too.
3287
3288 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3289
3290 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3291 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3292 variable search_flags.
3293 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3294 (OPF_RETURN_REALPATH): ... here.
3295 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3296 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3297 call. Twice.
3298 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3299 openp call.
3300 * solib.c (solib_find): Likewise. Four times.
3301 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3302 in the function comment and for the realpath_fptr variable.
3303 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3304 (find_and_open_source): Likewise. Twice.
3305 * symfile.c (symfile_bfd_open): Likewise, also twice.
3306
3307 2013-09-04 Doug Evans <dje@google.com>
3308
3309 * progspace.c (save_current_space_and_thread): Remove unnecessary
3310 call to save_current_inferior.
3311
3312 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3313
3314 * sh64-tdep.c (sh64_do_register): Return after printing message
3315 about unavailable register contents.
3316
3317 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3318 Pedro Alves <palves@redhat.com>
3319
3320 * symfile.c (add_symbol_file_command): Error out on unknown
3321 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3322 options and collapse into single conditional branch.
3323
3324 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3325
3326 * inf-child.c (inf_child_follow_fork): New parameter
3327 detach_fork.
3328 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3329 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3330 * inferior.h (detach_fork): Remove.
3331 * infrun.c (detach_fork): Adjust comment and make it
3332 static.
3333 (follow_fork): Pass detach_fork parameter to
3334 target_follow_fork.
3335 * linux-nat.c (linux_child_follow_fork): New parameter
3336 detach_fork.
3337 * target.c (target_follow_fork): New parameter detach_fork.
3338 Pass detach_fork as parameter and print its value.
3339 * target.h (struct target_ops) <to_follow_fork>: New int
3340 parameter.
3341 (target_follow_fork): New parameter detach_fork.
3342
3343 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3344
3345 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3346 Replace sec->bfd by sec->the_bfd_section->owner.
3347
3348 2013-09-03 Yao Qi <yao@codesourcery.com>
3349
3350 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3351 from linux_has_shared_address_space.
3352 (linux_has_shared_address_space): Call linux_is_uclinux.
3353 * linux-tdep.h (linux_is_uclinux): Declare.
3354 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3355 linux_is_uclinux.
3356
3357 2013-09-03 Yao Qi <yao@codesourcery.com>
3358
3359 * config/djgpp/fnchange.lst: Remove entry of
3360 i386-interix-nat.c and i386-interix-tdep.c.
3361 * configure.ac: Remove '*-*-interix*'.
3362 * configure: Re-generated.
3363 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3364 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3365 obsolete comments.
3366 * osabi.c (gdb_osabi_names): Remove "Interix".
3367
3368 2013-09-03 Yao Qi <yao@codesourcery.com>
3369
3370 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3371
3372 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3373
3374 * record.h (record_print_flag) <record_print_src_line,
3375 record_print_insn_range>: Rename into ...
3376 (record_print_flag) <record_print_src_line,
3377 record_print_insn_range>: ... this. Update all users.
3378
3379 2013-09-02 Pierre Muller <muller@sourceware.org>
3380
3381 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3382 error code.
3383
3384 2013-09-02 Pierre Muller <muller@sourceware.org>
3385
3386 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3387 by use of plongest function.
3388
3389 2013-09-02 Tristan Gingold <gingold@adacore.com>
3390
3391 * NEWS: Add entry mentioning support for native Windows x64
3392 SEH data.
3393
3394 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3395 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3396 (struct amd64_windows_frame_cache): New struct.
3397 (amd64_windows_w2gdb_regnum): New global.
3398 (pc_in_range, amd64_windows_frame_decode_epilogue)
3399 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3400 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3401 (amd64_windows_frame_this_id): New functions.
3402 (amd64_windows_frame_unwind): New static global.
3403 (amd64_windows_skip_prologue): New function.
3404 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3405 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3406 with amd64_windows_skip_prologue.
3407
3408 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3409
3410 GDB 7.6.1 released.
3411
3412 2013-08-30 Pedro Alves <palves@redhat.com>
3413
3414 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3415 SRC_AND_LOC.
3416
3417 2013-08-30 Pedro Alves <palves@redhat.com>
3418
3419 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3420 warning text.
3421
3422 2013-08-30 Pedro Alves <palves@redhat.com>
3423
3424 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3425 Adjust arguments to print_stack_frame.
3426
3427 2013-08-30 Pedro Alves <palves@redhat.com>
3428
3429 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3430
3431 2013-08-30 Pedro Alves <palves@redhat.com>
3432
3433 * frame.h (show_and_print_stack_frame): Delete declaration.
3434
3435 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3436
3437 PR python/15461
3438 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3439 (archpy_name): Check for valid architecture.
3440 (archpy_disassemble): Ditto.
3441
3442 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3443
3444 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3445 instead of "long long" in call to ptrace64.
3446
3447 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3448
3449 * mi/mi-interp.c (mi_command_loop): Change signature to match
3450 interp_command_loop_ftype.
3451 (mi1_command_loop): Remove.
3452 (mi2_command_loop): Remove.
3453 (mi3_command_loop): Remove.
3454 (mi_interpreter_resume): Remove setting of
3455 deprecated_command_loop_hook.
3456 (_initialize_mi_interp): Set mi_command_loop as the command loop
3457 callback.
3458
3459 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3460
3461 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3462 value_type.
3463
3464 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3465
3466 * value.c (allocate_value_contents): Make static.
3467 * value.h (allocate_value_contents): Remove prototype.
3468
3469 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3470
3471 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3472 of assembling value via allocate_value_lazy and attribute setter.
3473 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3474 assembling value via allocate_value_lazy and attribute setter.
3475 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3476 assembling value via allocate_value_lazy and attribute setter.
3477
3478 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3479
3480 * value.c (value_from_contents_and_address): Replace allocate_value and
3481 memcpy with value_from_contents.
3482
3483 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3484
3485 * python/py-framefilter.c (py_print_frame): Remove usage of
3486 PyString_AsString. Use python_string_to_host_string instead.
3487 Refactor function to work with a string as a new allocation
3488 instead of a pointer.
3489 (py_print_frame): Ditto.
3490 * python/lib/gdb/frames.py (return_list): Cain iterators together
3491 instead of adding them as a list.
3492 (_sort_list): Call return_list, and remove duplicate code.
3493 (execute_frame_filters): Convert iterator to a list with list().
3494 * python/lib/gdb/command/frame_filters.py
3495 (SetFrameFilterPriority._set_filter_priority): Convert priority
3496 attribute to an integer.
3497 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3498 wrapper function __next__.
3499 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3500 define as "str".
3501
3502 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3503
3504 PR python/15752
3505 * python/py-framefilter.c (apply_frame_filter): Check
3506 gdb_python_initialized. Exit if the Python frame-filter code
3507 cannot be initialized.
3508
3509 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3510
3511 PR cli/15842
3512 * top.c (print_gdb_version): Remove erroneous newline after help
3513 text.
3514
3515 2013-08-29 Yao Qi <yao@codesourcery.com>
3516
3517 * varobj.c (install_dynamic_child): Remove trailing space.
3518 Add one blank line after variable declaration.
3519
3520 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3521
3522 PR gdb/15415
3523 * corefile.c (get_exec_file): Use exec_filename.
3524 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3525 * exec.c (exec_close): Free EXEC_FILENAME.
3526 (exec_file_attach): New variable canonical_pathname. Use
3527 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3528 EXEC_FILENAME.
3529 * exec.h (exec_filename): New.
3530 * inferior.c (print_inferior, inferior_command): Use
3531 PSPACE_EXEC_FILENAME.
3532 * mi/mi-main.c (print_one_inferior): Likewise.
3533 * progspace.c (clone_program_space, print_program_space): Likewise.
3534 * progspace.h (struct program_space): New field pspace_exec_filename.
3535 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3536 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3537
3538 2013-08-28 Will Newton <will.newton@linaro.org>
3539
3540 * common/linux-ptrace.c: Include stdint.h unconditionally.
3541
3542 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3543
3544 Code cleanup.
3545 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3546
3547 2013-08-28 Yao Qi <yao@codesourcery.com>
3548 Pedro Alves <palves@redhat.com>
3549
3550 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3551 instead of stdio_fileopen.
3552 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3553 .Call stderr_fileopen instead of stdio_fileopen.
3554 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3555 [__MINGW32__] (stderr_file_fputs): New function.
3556 (stderr_fileopen): New function.
3557 * ui-file.h (stderr_fileopen): Declare.
3558
3559 2013-08-27 Doug Evans <dje@google.com>
3560
3561 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3562 (struct dwarf2_per_cu_data): Ditto.
3563 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3564 (process_imported_unit_die): Ditto.
3565 (follow_die_sig_1): Simplify assert.
3566
3567 2013-08-27 Pedro Alves <palves@redhat.com>
3568
3569 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3570 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3571 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3572 windows_xfer_memory directly.
3573 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3574
3575 2013-08-27 Pedro Alves <palves@redhat.com>
3576
3577 * darwin-nat.c (darwin_xfer_memory): Delete.
3578 (_initialize_darwin_inferior): Don't install a
3579 deprecated_xfer_memory method.
3580
3581 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3582 Yao Qi <yao@codesourcery.com>
3583
3584 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3585 (parse_no_frames_option): Remove.
3586 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3587 (mi_cmd_stack_list_args): Adjust.
3588 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3589 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3590 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3591 Caller update.
3592 (list_args_or_locals): New parameter 'skip_unavailable'.
3593 Handle it.
3594 * valprint.c (scalar_type_p): Rename to ...
3595 (val_print_scalar_type_p): ... this. Make extern.
3596 (val_print, value_check_printable): Adjust.
3597 * valprint.h (val_print_scalar_type_p): Declare.
3598 * value.c (value_entirely_unavailable): New function.
3599 * value.h (value_entirely_unavailable): Declare.
3600
3601 * NEWS: Mention the new option "--skip-unavailable" to MI
3602 commands '-stack-list-locals', '-stack-list-arguments' and
3603 '-stack-list-variables'.
3604
3605 2013-08-27 Yao Qi <yao@codesourcery.com>
3606
3607 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3608 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3609 options.
3610 * mi/mi-getopt.c (mi_getopt): Remove.
3611 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3612 'error_on_unknown'.
3613 (mi_getopt): Call mi_getopt_1.
3614 (mi_getopt_silent): New.
3615 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3616
3617 2013-08-26 Doug Evans <dje@google.com>
3618
3619 PR symtab/15885
3620 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3621 .gdb_index is in use.
3622 * symfile.c (reread_symbols): Reset objfile->sf.
3623
3624 * NEWS: Document "mt print objfiles" now takes optional regexp.
3625 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3626 regexp of objfiles to print.
3627 (_initialize_symmisc): Update doc string for "mt print objfiles".
3628
3629 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3630 missing debug info checks.
3631
3632 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3633 Ulrich Weigand <uweigand@de.ibm.com>
3634
3635 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3636 line tables generated by XLC compiled binaries.
3637
3638 2013-08-23 Doug Evans <dje@google.com>
3639
3640 * symmisc.c (dump_symtab): Delete prototype.
3641 (dump_msymbols, dump_objfile): Ditto.
3642 (maintenance_info_symtabs): Mark as dont_repeat.
3643 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3644
3645 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3646 debugging printf to better location.
3647
3648 2013-08-23 Pedro Alves <palves@redhat.com>
3649
3650 * target.c (target_read_live_memory): Change type of 'ret' local
3651 to LONGEST.
3652
3653 2013-08-23 Pedro Alves <palves@redhat.com>
3654
3655 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3656 (remote_read_bytes): Change return type to LONGEST, and adjust to
3657 return a target_xfer_error on error.
3658 (remote_xfer_memory): Delete.
3659 (remote_flash_write): Change type of 'ret' local to LONGEST.
3660 (remote_xfer_partial, remote_xfer_partial): Adjust.
3661 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3662
3663 2013-08-23 Pierre Muller <muller@sourceware.org>
3664
3665 ARI fix: Push # directives to start of line.
3666 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3667
3668 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3669
3670 PR gdb/15501
3671 * breakpoint.c (enable_command, disable_command): Iterate over
3672 all specified breakpoint locations.
3673
3674 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3675
3676 * common/linux-ptrace.c (linux_fork_to_function): Push #
3677 directives to the start of the line.
3678 (linux_check_ptrace_features): Fix warning message to use
3679 the "_" markup.
3680
3681 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3682
3683 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3684 nat/linux-waitpid.h.
3685 (linux-waitpid.o): New object file rule.
3686 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3687 (current_ptrace_options): Moved from linux-nat.c.
3688 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3689 parameters.
3690 (linux_fork_to_function): New function.
3691 (linux_grandchild_function): Likewise.
3692 (linux_child_function): Likewise.
3693 (linux_check_ptrace_features): New function, heavily
3694 based on linux-nat.c:linux_test_for_tracefork.
3695 (linux_enable_event_reporting): New function.
3696 (ptrace_supports_feature): Likewise.
3697 (linux_supports_tracefork): Likewise.
3698 (linux_supports_traceclone): Likewise.
3699 (linux_supports_tracevforkdone): Likewise.
3700 (linux_supports_tracesysgood): Likewise.
3701 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3702 gdbserver/linux-low.c.
3703 (linux_enable_event_reporting): New declaration.
3704 (linux_supports_tracefork): Likewise.
3705 (linux_supports_traceclone): Likewise.
3706 (linux_supports_tracevforkdone): Likewise.
3707 (linux_supports_tracesysgood): Likewise.
3708 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3709 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3710 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3711 * config/arm/linux.mh (NATDEPFILES): Likewise.
3712 * config/i386/linux.mh (NATDEPFILES): Likewise.
3713 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3714 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3715 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3716 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3717 * config/mips/linux.mh (NATDEPFILES): Likewise.
3718 * config/pa/linux.mh (NATDEPFILES): Likewise..
3719 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3720 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3721 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3722 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3723 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3724 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3725 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3726 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3727 ptrace's 4th argument's types.
3728 Check the type of PTRACE_TYPE_ARG4.
3729 * configure: Regenerate.
3730 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3731 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3732 (linux_supports_tracefork_flag): Remove.
3733 (linux_supports_tracesysgood_flag): Likewise.
3734 (linux_supports_tracevforkdone_flag): Likewise.
3735 (current_ptrace_options): Moved to
3736 common/linux-ptrace.c.
3737 (linux_tracefork_child): Remove.
3738 (my_waitpid): Remove.
3739 (linux_test_for_tracefork): Renamed to
3740 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3741 (linux_test_for_tracesysgood): Remove.
3742 (linux_supports_tracesysgood): Remove.
3743 (linux_supports_tracefork): Remove.
3744 (linux_supports_tracevforkdone): Remove.
3745 (linux_enable_tracesysgood): Remove.
3746 (linux_enable_event_reporting): Remove.
3747 (linux_init_ptrace): New function.
3748 (linux_child_post_attach): Call linux_init_ptrace.
3749 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3750 (linux_child_follow_fork): Call linux_supports_tracefork
3751 and linux_supports_tracevforkdone.
3752 (linux_child_insert_fork_catchpoint): Call
3753 linux_supports_tracefork.
3754 (linux_child_insert_vfork_catchpoint): Likewise.
3755 (linux_child_set_syscall_catchpoint): Call
3756 linux_supports_tracesysgood.
3757 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3758 * nat/linux-nat.h: New file.
3759 * nat/linux-waitpid.c: New file.
3760 * nat/linux-waitpid.h: New file.
3761
3762 2013-08-22 Samuel Bronson <naesten@gmail.com>
3763
3764 ARM Linux support for `catch syscall'.
3765 * syscalls/arm-linux.py: New file.
3766 * syscalls/arm-linux.xml: Likewise.
3767 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3768 (arm_linux_init_abi): Register the new function and syscall xml file.
3769 * data-directory/Makefile.in: Install the new syscall xml file.
3770 * NEWS: Brag about this.
3771
3772 2013-08-22 Pedro Alves <palves@redhat.com>
3773
3774 PR gdb/15871
3775 * corefile.c (target_xfer_memory_error): New function.
3776 (memory_error): Defer EIO to target_memory_error.
3777 (read_memory): Use target_xfer_partial, and handle finer-grained
3778 target xfer errors.
3779 * target.c (target_xfer_error_to_string): New function.
3780 (memory_xfer_partial_1): If memory is known to be
3781 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3782 (target_xfer_partial): Make extern.
3783 * target.h (enum target_xfer_error): New enum.
3784 (target_xfer_error_to_string): Declare function.
3785 (target_xfer_partial): Declare function.
3786 (struct target_ops) <xfer_partial>: Adjust describing comment.
3787
3788 2013-08-22 Alan Modra <amodra@gmail.com>
3789
3790 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3791 * configure.tgt: Likewise as targets.
3792
3793 2013-08-20 Doug Evans <dje@google.com>
3794
3795 * buildsym.c (subfile_stack): Move here from buildsym.h.
3796 (pending_macros): Ditto.
3797 (get_macro_table): New function.
3798 (buildsym_init): Initialize subfile_stack.
3799 * coffread.c (type_vector,type_vector_length): Moved here from
3800 buildsym.h.
3801 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3802 (coff_symtab_read): Use it.
3803 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3804 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3805 with call to get_macro_table.
3806 * stabsread.c (type_vector,type_vector_length): Moved here from
3807 buildsym.h.
3808 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3809 * buildsym.h (get_macro_table): Declare.
3810
3811 2013-08-20 Tom Tromey <tromey@redhat.com>
3812
3813 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3814 Update.
3815 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3816
3817 2013-08-20 Doug Evans <dje@google.com>
3818
3819 * blockframe.c: Remove #include "psymtab.h".
3820 * cp-support.c: Ditto.
3821 * source.c: Ditto.
3822 * stack.c: Ditto.
3823
3824 2013-08-20 Tom Tromey <tromey@redhat.com>
3825
3826 PR python/15816:
3827 * exceptions.h (return_mask): Now an enum.
3828 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3829 enum constants.
3830
3831 2013-08-20 Tom Tromey <tromey@redhat.com>
3832
3833 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3834 get_objfile_arch.
3835 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3836 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3837 * jit.c (jit_object_close_impl): Update.
3838 * jv-lang.c (get_dynamics_objfile): Update.
3839 * linespec.c (add_minsym): Use get_dynamics_objfile.
3840 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3841 (allocate_objfile): Don't initialize 'gdbarch' field.
3842 (get_objfile_arch): Update.
3843 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3844 moved from...
3845 (struct objfile) <gdbarch>: ... here. Remove.
3846 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3847 get_objfile_arch.
3848 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3849
3850 2013-08-20 Alan Modra <amodra@gmail.com>
3851
3852 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3853 for IBM long double nan and inf.
3854 (floatformat_is_negative, floatformat_classify,
3855 floatformat_mantissa): Similarly.
3856 (floatformat_ieee_single, floatformat_ieee_double,
3857 floatformat_ieee_quad, floatformat_arm_ext,
3858 floatformat_ia64_spill): Delete unused vars.
3859 (_initialize_doublest): Delete unused function.
3860 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3861 little-endian variants of floatformat_ibm_long_double.
3862
3863 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3864
3865 * Makefile.in (SFILES): Remove common/target-common.c and
3866 add target/waitstatus.c.
3867 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3868 target/resume.h, target/wait.h and target/waitstatus.h.
3869 (COMMON_OBS): Remove target-common.o and add
3870 waitstatus.o.
3871 (target-common.o): Remove.
3872 (waitstatus.o): New target object file.
3873 * common/target-common.c: Move contents to
3874 target/waitstatus.c and remove.
3875 * common/target-common.h: Move contents to other files and
3876 remove.
3877 (enum resume_kind: Move to target/resume.h.
3878 (TARGET_WNOHANG): Move to target/wait.h.
3879 (enum target_waitkind): Move to target/waitstatus.h.
3880 (struct target_waitstatus): Likewise.
3881 * target.h: Do not include target-common.h and
3882 include target/resume.h, target/wait.h and
3883 target/waitstatus.h.
3884 * target/resume.h: New file.
3885 * target/wait.h: New file.
3886 * target/waitstatus.h: New file.
3887 * target/waitstatus.c: New file.
3888
3889 2013-08-19 Pedro Alves <palves@redhat.com>
3890
3891 * linux-nat.c (linux_test_for_tracefork)
3892 (linux_test_for_tracesysgood, linux_child_follow_fork)
3893 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3894 (linux_nat_wait_1): Extend comment.
3895 (linux_async_pipe): Add comment.
3896
3897 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3898
3899 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3900 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3901 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3902 Update to account for fact that PC is now a pseudo-register.
3903 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3904 cases for RL78_PC_REGNUM.
3905
3906 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3907
3908 PR cli/15841
3909 * top.c (quit_force): Skip writing history file
3910 if input is not from terminal.
3911
3912 2013-08-14 Tom Tromey <tromey@redhat.com>
3913
3914 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3915 resultthreadlist>: New fields.
3916 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3917 (remote_get_threadlist, remote_threadlist_iterator): Use
3918 new fields. Remove static variables.
3919
3920 2013-08-14 Tom Tromey <tromey@redhat.com>
3921
3922 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3923 remote_watch_data_address>: New fields.
3924 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3925 (process_stop_reply, remote_wait_as)
3926 (remote_check_watch_resources, remote_stopped_data_address): Update.
3927
3928 2013-08-14 Tom Tromey <tromey@redhat.com>
3929
3930 * remote.c (struct remote_state) <async_client_callback,
3931 async_client_context>: New fields.
3932 (async_client_callback, async_client_context): Remove.
3933 (remote_async_serial_handler, remote_async): Update.
3934
3935 2013-08-14 Tom Tromey <tromey@redhat.com>
3936
3937 * remote.c (sizeof_pkt): Remove.
3938 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3939
3940 2013-08-14 Tom Tromey <tromey@redhat.com>
3941
3942 * remote.c (struct remote_state) <use_threadinfo_query,
3943 use_threadextra_query>: New fields.
3944 (remote_threads_info, remote_threads_extra_info)
3945 (remote_open_1): Update.
3946
3947 2013-08-14 Tom Tromey <tromey@redhat.com>
3948
3949 * remote.c (struct remote_state) <finished_object,
3950 finished_annex, finished_offset>: New fields.
3951 (remote_read_qxfer): Use remote_state fields; remove static
3952 variables.
3953
3954 2013-08-14 Tom Tromey <tromey@redhat.com>
3955
3956 * remote.c (struct remote_state) <last_sent_step>:
3957 New field.
3958 (last_sent_step): Remove.
3959 (remote_resume, remote_wait_as): Update.
3960
3961 2013-08-14 Tom Tromey <tromey@redhat.com>
3962
3963 * remote.c (struct remote_state) <last_sent_signal>:
3964 New field.
3965 (last_sent_signal): Remove.
3966 (new_remote_state, remote_resume, remote_wait_as): Update.
3967
3968 2013-08-14 Tom Tromey <tromey@redhat.com>
3969
3970 * remote.c (struct remote_state) <last_program_signals_packet>:
3971 New field.
3972 (last_program_signals_packet): Remove.
3973 (remote_program_signals, remote_open_1): Update.
3974
3975 2013-08-14 Tom Tromey <tromey@redhat.com>
3976
3977 * remote.c (struct remote_state) <last_pass_packet>:
3978 New field.
3979 (last_pass_packet): Remove.
3980 (remote_pass_signals, remote_open_1): Update.
3981
3982 2013-08-14 Tom Tromey <tromey@redhat.com>
3983
3984 * remote.c (struct remote_state) <remote_traceframe_number>:
3985 New field.
3986 (remote_traceframe_number): Remove.
3987 (new_remote_state, remote_open_1, set_remote_traceframe)
3988 (remote_trace_find): Update.
3989
3990 2013-08-14 Tom Tromey <tromey@redhat.com>
3991
3992 * remote.c (struct remote_state) <general_thread, continue_thread>:
3993 New fields.
3994 (general_thread, continue_thread): Remove.
3995 (record_currthread, set_thread, set_general_process)
3996 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3997 (extended_remote_mourn_1): Update.
3998
3999 2013-08-14 Tom Tromey <tromey@redhat.com>
4000
4001 * remote.c (struct remote_state) <remote_desc>: New field.
4002 (remote_desc): Remove.
4003 (remote_threads_info, remote_threads_extra_info, remote_close)
4004 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4005 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4006 (remote_hostio_send_command, remote_file_put, remote_file_get)
4007 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4008 (remote_async, remote_new_objfile, set_range_stepping): Update.
4009
4010 2013-08-14 Tom Tromey <tromey@redhat.com>
4011
4012 * remote.c (remote_state): Now a pointer.
4013 (get_remote_state_raw): Update.
4014 (new_remote_state): New function.
4015 (_initialize_remote): Use new_remote_state.
4016
4017 2013-08-14 Tom Tromey <tromey@redhat.com>
4018
4019 * remote.c (remote_protocol_features): Now const.
4020
4021 2013-08-14 Tom Tromey <tromey@redhat.com>
4022
4023 * remote.c (crc32_table, crc32): Remove.
4024 (remote_verify_memory): Use xcrc32.
4025
4026 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4027
4028 * value.h (create_internalvar_type_lazy): Adjust prototype
4029 declaration.
4030
4031 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4032
4033 * common/format.c (parse_format_string): Don't allow '#' flag for
4034 pointer arguments in format string.
4035
4036 2013-08-13 Pierre Muller <muller@sourceware.org>
4037
4038 * utils.c (init_page_info): Only call tgetnum function
4039 if rl_get_screen_size did not return useful values.
4040
4041 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4042
4043 PR breakpoints/15117
4044 * linespec.c (linespec_parse_basic): Check for convenience
4045 variable or history value while parsing.
4046
4047 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4048
4049 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4050 AVR.
4051 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4052 different signals between the generic Linux kernel implementation
4053 and AVR's.
4054 (avr_linux_gdb_signal_from_target): Delete.
4055 (avr_linux_gdb_signal_to_target): Delete.
4056 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4057
4058 2013-08-09 Doug Evans <dje@google.com>
4059
4060 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4061 entries.
4062
4063 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4064
4065 * linux-tdep.c: Define enum with generic signal numbers.
4066 (linux_gdb_signal_from_target): New function.
4067 (linux_gdb_signal_to_target): Likewise.
4068 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4069 methods to the functions above.
4070 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4071 (linux_gdb_signal_to_target): Likewise.
4072 * alpha-linux-tdep.c: Define new enum with signals different
4073 from generic Linux kernel.
4074 (alpha_linux_gdb_signal_from_target): New function.
4075 (alpha_linux_gdb_signal_to_target): Likewise.
4076 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4077 with the functions mentioned above.
4078 * avr-tdep.c: Define enum with differences between Linux kernel
4079 and AVR signals.
4080 (avr_linux_gdb_signal_from_target): New function.
4081 (avr_linux_gdb_signal_to_target): Likewise.
4082 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4083 the functions mentioned above.
4084 * sparc-linux-tdep.c: Define enum with differences between SPARC
4085 and generic Linux kernel signal numbers.
4086 (sparc32_linux_gdb_signal_from_target): New function.
4087 (sparc32_linux_gdb_signal_to_target): Likewise.
4088 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4089 to the functions defined above.
4090 * xtensa-linux-tdep.c: Define enum with differences between
4091 Xtensa and Linux kernel generic signals.
4092 (xtensa_linux_gdb_signal_from_target): New function.
4093 (xtensa_linux_gdb_signal_to_target): Likewise.
4094 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4095 to the functions defined above.
4096 * mips-linux-tdep.c: Define enum with differences between
4097 signals in MIPS and Linux kernel generic ones.
4098 (mips_gdb_signal_to_target): New function.
4099 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4100 only different signals from the Linux kernel generic.
4101 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4102 the functions defined above.
4103 * mips-linux-tdep.h (enum mips_signals): Remove.
4104
4105 2013-08-09 Pedro Alves <palves@redhat.com>
4106
4107 * avr-tdep.c (XMALLOC): Delete macro.
4108 * cli/cli-dump.c (XMALLOC): Delete macro.
4109
4110 2013-08-09 Pedro Alves <palves@redhat.com>
4111
4112 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4113 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4114 (fopen_with_cleanup, add_dump_command): Make static.
4115 * cli/cli-dump.h: Delete file.
4116 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4117 cli/cli-dump.h.
4118
4119 2013-08-09 Pedro Alves <palves@redhat.com>
4120
4121 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4122 error message.
4123
4124 2013-08-09 Pedro Alves <palves@redhat.com>
4125
4126 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4127 error message.
4128
4129 2013-08-09 Pedro Alves <palves@redhat.com>
4130
4131 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4132 (gcore_command): Use tilde_expand here, and when showing the
4133 filename to the user, show the expanded version.
4134
4135 2013-08-09 Yao Qi <yao@codesourcery.com>
4136
4137 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4138 'entryval' is set.
4139
4140 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4141
4142 * gcore.c (create_gcore_bfd): Use tilde_expand.
4143
4144 2013-08-08 Yao Qi <yao@codesourcery.com>
4145
4146 * frame.h (read_frame_local): Declare.
4147 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4148 read_frame_local.
4149 * stack.c (read_frame_local): New.
4150
4151 2013-08-08 Yao Qi <yao@codesourcery.com>
4152
4153 * mi/mi-cmd-stack.c: Update comments to function
4154 list_args_or_locals.
4155
4156 2013-08-07 Tom Tromey <tromey@redhat.com>
4157
4158 PR symtab/15028:
4159 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4160 (process_psymtab_comp_unit_reader): Use it.
4161 (process_psymtab_comp_unit): Update. Add "pretend_language"
4162 argument.
4163 (dwarf2_build_psymtabs_hard): Update.
4164 (scan_partial_symbols): Pass CU's language to
4165 process_psymtab_comp_unit.
4166
4167 2013-08-07 Tom Tromey <tromey@redhat.com>
4168
4169 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4170 (dwarf2_gdb_index_functions): Update.
4171 * psymtab.c (find_symbol_file_from_partial): Remove.
4172 (psym_functions): Update.
4173 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4174 Remove.
4175
4176 2013-08-07 Tom Tromey <tromey@redhat.com>
4177
4178 * symfile.c (set_initial_language): Look up "main" symbol
4179 and use its language.
4180 * symtab.c (find_main_filename): Remove.
4181 * symtab.h (find_main_filename): Remove.
4182
4183 2013-08-07 Tom Tromey <tromey@redhat.com>
4184
4185 * dwarf2read.c (recursively_compute_inclusions): Add
4186 "immediate_parent" argument. Set symtab's "user" field
4187 if not set.
4188 (compute_symtab_includes): Update.
4189
4190 2013-08-07 Tom Tromey <tromey@redhat.com>
4191
4192 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4193 when adding label symbols.
4194
4195 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4196 Ulrich Weigand <uweigand@de.ibm.com>
4197
4198 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4199 * configure.host (powerpc64-*-aix*): Likewise.
4200
4201 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4202 Ulrich Weigand <uweigand@de.ibm.com>
4203
4204 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4205 is defined.
4206 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4207 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4208 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4209 * configure.ac: Check for ptrace64.
4210 * configure, config.in: Regenerate.
4211
4212 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4213 Ulrich Weigand <uweigand@de.ibm.com>
4214
4215 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4216 Call ptrace64 instead of ptrace if defined.
4217 Add macro addr_ptr to take care of ptrace address argument.
4218 (pdc_read_regs): Likewise.
4219 (pdc_write_regs): Likewise.
4220 (aix_thread_resume): Likewise.
4221 (fetch_regs_kernel_thread): Likewise.
4222 (store_regs_kernel_thread): Likewise.
4223
4224 2013-08-07 Anton Blanchard <anton@samba.org>
4225
4226 * MAINTAINERS: Add myself to Write After Approval.
4227
4228 2013-08-05 Tom Tromey <tromey@redhat.com>
4229
4230 * aix-thread.c (_initialize_aix_thread): Use
4231 complete_target_initialization.
4232 * bsd-uthread.c (_initialize_bsd_uthread): Use
4233 complete_target_initialization.
4234 * dec-thread.c (_initialize_dec_thread): Use
4235 complete_target_initialization.
4236 * ravenscar-thread.c (_initialize_ravenscar): Use
4237 complete_target_initialization.
4238 * sol-thread.c (_initialize_sol_thread): Use
4239 complete_target_initialization.
4240 * spu-multiarch.c (_initialize_spu_multiarch): Use
4241 complete_target_initialization.
4242
4243 2013-08-05 Tom Tromey <tromey@redhat.com>
4244
4245 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4246 * ada-lang.c (ada_lookup_simple_minsym): Return
4247 bound_minimal_symbol.
4248 * ada-lang.h (ada_lookup_simple_minsym): Update.
4249 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4250 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4251 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4252 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4253 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4254 * minsyms.c (msymbol_objfile): Remove.
4255 (lookup_minimal_symbol_internal): New function, from
4256 lookup_minimal_symbol.
4257 (lookup_minimal_symbol): Rewrite using
4258 lookup_minimal_symbol_internal.
4259 (lookup_bound_minimal_symbol): New function.
4260 * minsyms.h (msymbol_objfile): Remove.
4261 (lookup_bound_minimal_symbol): Declare.
4262 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4263 * parse.c (write_exp_msymbol): Change parameter to a
4264 bound_minimal_symbol.
4265 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4266 * parser-defs.h (write_exp_msymbol): Update.
4267 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4268 * symfile.c (simple_read_overlay_table): Use
4269 lookup_bound_minimal_symbol.
4270 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4271 (search_symbols): Likewise.
4272 (print_msymbol_info): Take a bound_minimal_symbol argument.
4273 (symtab_symbol_info, rbreak_command): Update.
4274 * symtab.h (struct symbol_search) <msymbol>: Change type
4275 to bound_minimal_symbol.
4276 * valops.c (find_function_in_inferior): Use
4277 lookup_bound_minimal_symbol.
4278 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4279
4280 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4281
4282 Code cleanup.
4283 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4284 to ...
4285 (async_cleanup_sigint_signal_handler): ... this.
4286 (initialize_sigint_signal_handler): Remove declaration.
4287 (handle_remote_sigint): Rename the declaration to ...
4288 (async_handle_remote_sigint): ... this.
4289 (handle_remote_sigint_twice): Rename the declaration to ...
4290 (async_handle_remote_sigint_twice): ... this.
4291 (async_remote_interrupt, async_remote_interrupt_twice)
4292 (remote_interrupt): Remove the declarations.
4293 (remote_interrupt_twice): Rename the declaration ...
4294 (sync_remote_interrupt_twice): ... this.
4295 (sigint_remote_twice_token): Rename the variable to ...
4296 (async_sigint_remote_twice_token): ... this.
4297 (sigint_remote_token): Rename the variable to ...
4298 (async_sigint_remote_token): ... this.
4299 (initialize_sigint_signal_handler): Rename the function to ...
4300 (async_initialize_sigint_signal_handler): ... this. Update the name
4301 inside.
4302 (handle_remote_sigint): Rename the function to ...
4303 (async_handle_remote_sigint): ... this. Update the names inside.
4304 (handle_remote_sigint_twice): Rename the function to ...
4305 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4306 (cleanup_sigint_signal_handler): Rename the function to ...
4307 (async_cleanup_sigint_signal_handler): ... this.
4308 (remote_interrupt): Rename the function to ...
4309 (sync_remote_interrupt): this. Update the names inside.
4310 (remote_interrupt_twice): Rename the function to ...
4311 (sync_remote_interrupt_twice): this. Update the names inside.
4312 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4313 (_initialize_remote): Update the names inside.
4314
4315 2013-08-02 Tom Tromey <tromey@redhat.com>
4316
4317 PR symtab/15719:
4318 * breakpoint.c (update_watchpoint, watchpoint_check)
4319 (watch_command_1): Update.
4320 * eval.c (fetch_subexp_value): Add "preserve_errors"
4321 parameter.
4322 * ppc-linux-nat.c (check_condition): Update.
4323 * value.h (fetch_subexp_value): Update.
4324
4325 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4326
4327 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4328 add_file_handler.
4329
4330 2013-08-01 Doug Evans <dje@google.com>
4331
4332 PR symtab/15691
4333 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4334 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4335 Add assert of sig_entry->dwo_unit == NULL.
4336 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4337 had already been read.
4338 (read_signatured_type): Set per_cu.tu_read.
4339
4340 PR symtab/15695
4341 * valops.c (value_struct_elt): Add missing call to check_typedef.
4342 (value_find_oload_method_list): Ditto.
4343
4344 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4345 effectively, struct symbol_search **.
4346 (make_cleanup_free_search_symbols): Change arg to struct
4347 symbol_search **. All callers updated.
4348 (compare_search_syms): Compare symtab file name and block as well.
4349 (search_symbols_equal): New function.
4350 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4351 New args new_head, new_tail. Result is now void. Remove dups after
4352 sorting the symbols.
4353 (search_symbols): Sort all found symbols once, after all have been
4354 found, and remove duplicates. Simplify cleanup tracking of result.
4355 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4356
4357 Further workarounds for binutils/15021.
4358 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4359 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4360 Watch for duplicate symtabs coming from type units.
4361 (compute_symtab_includes): Update call to
4362 recursively_compute_inclusions. Build vector of included symtabs
4363 instead of per_cus.
4364 * symtab.h (symtab_ptr): New typedef.
4365 (DEF_VEC_P (symtab_ptr)): New VEC type.
4366 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4367 instead.
4368
4369 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4370
4371 * cli/cli-script.c (script_from_file): Remove use of
4372 error_pre_print.
4373 * main.c (captured_main): Remove use of error_pre_print and
4374 quit_pre_print.
4375 * utils.c (error_pre_print, quit_pre_print): Remove.
4376 * utils.h (error_pre_print, quit_pre_print): Likewise.
4377
4378 2013-08-01 Yao Qi <yao@codesourcery.com>
4379
4380 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4381 with mi_getopt.
4382 (mi_cmd_stack_list_variables): Likewise.
4383
4384 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4385
4386 * exceptions.c (deprecated_throw_reason): Remove.
4387 * exceptions.h (deprecated_throw_reason): Remove.
4388
4389 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4390
4391 * remote-mips.c (mips_error): Replace use of
4392 deprecated_throw_reason with throw_verror. Use the error message
4393 passed to mips_error as the error message for throw_verror.
4394
4395 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4396
4397 * monitor.c (monitor_interrupt_query): Replace use of
4398 deprecated_throw_reason with quit.
4399 * nto-procfs.c (interrupt_query): Likewise.
4400 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4401 * remote-mips.c (mips_kill): Likewise.
4402 * remote.c (interrupt_query): Likewise.
4403
4404 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4405
4406 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4407 with call to fatal.
4408
4409 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4410 Yao Qi <yao@codesourcery.com>
4411
4412 * tracepoint.c (trace_dump_command): Select the current frame.
4413
4414 2013-07-30 Doug Evans <dje@google.com>
4415
4416 * dwarf2read.c (process_queue): Add type signature to debug output.
4417
4418 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4419
4420 * value.c (value_fetch_lazy): Mark optimized out values as such
4421 rather than raising an error.
4422
4423 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4424
4425 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4426 before checking which bits of the parent, not the child, value are
4427 valid.
4428
4429 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4430
4431 PR gdb/15715
4432 * top.c: Include "filenames.h".
4433 (set_history_filename): New function.
4434 (init_main): Install it as set hook of the "set history filename"
4435 command.
4436
4437 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4438
4439 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4440 attribute parameter.
4441 (dwarf2_const_value_data): Constify struct attribute parameter.
4442 (dwarf2_const_value): Constify struct attribute parameter.
4443 (dwarf2_const_value_attr): Constify struct attribute parameter.
4444 (lookup_die_type): Constify struct attribute parameter.
4445 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4446 (follow_die_ref_or_sig): Constify struct attribute parameter.
4447 (follow_die_ref): Constify struct attribute parameter.
4448 (follow_die_sig): Constify struct attribute parameter.
4449 (get_DW_AT_signature_type): Constify struct attribute parameter.
4450 (get_type_unit_group): Constify struct attribute parameter.
4451 (fill_in_loclist_baton): Constify struct attribute parameter.
4452 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4453 (type_unit_group): Constify struct attribute parameter.
4454
4455 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4456
4457 * dwarf2read.c (attr_form_is_block): Make argument const.
4458 (attr_form_is_section_offset): Make argument const.
4459 (attr_form_is_constant): Make argument const.
4460 (attr_form_is_ref): Make argument const.
4461
4462 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4463
4464 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4465 All uses updated.
4466 (attr_form_is_ref): Moved below attr_form_is_constant.
4467
4468 2013-07-29 Doug Evans <dje@google.com>
4469
4470 * main.c (captured_command_loop): Tweak comment.
4471
4472 * target.c (target_async_permitted_1): Fix comment.
4473
4474 * symtab.c (iterate_over_some_symtabs): Add comment.
4475
4476 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4477
4478 2013-07-27 Yao Qi <yao@codesourcery.com>
4479
4480 * NEWS: Mention that GDBserver now supports hardware
4481 watchpoints on the MIPS GNU/Linux target.
4482
4483 2013-07-27 Yao Qi <yao@codesourcery.com>
4484
4485 * Makefile.in (HFILES_NO_SRCDIR): Add
4486 common/mips-linux-watch.h.
4487 (mips-linux-watch.o): New rule.
4488 * common/mips-linux-watch.c: New.
4489 * common/mips-linux-watch.h: New.
4490 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4491 * mips-linux-nat.c: Include mips-linux-watch.h.
4492 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4493 to common/mips-linux-watch.h.
4494 (MAX_DEBUG_REGISTER): Likewise.
4495 (enum pt_watch_style): Likewise.
4496 (struct mips32_watch_regs): Likewise.
4497 (struct mips64_watch_regs): Likewise.
4498 (struct pt_watch_regs): Likewise.
4499 (struct mips_watchpoint): Likewise.
4500 (mips_linux_watch_get_irw_mask): Move to
4501 common/mips-linux-watch.c.
4502 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4503 (mips_linux_watch_get_watchlo): Likewise.
4504 (mips_linux_watch_set_watchlo): Likewise.
4505 (mips_linux_watch_get_watchhi): Likewise.
4506 (mips_linux_watch_set_watchhi): Likewise.
4507 (mips_linux_read_watch_registers): Likewise.
4508 (mips_linux_watch_type_to_irw): Likewise.
4509 (mips_linux_stopped_data_address, fill_mask): Likewise.
4510 (mips_linux_watch_try_one_watch): Likewise.
4511 (mips_linux_watch_populate_regs): Likewise.
4512
4513 2013-07-27 Yao Qi <yao@codesourcery.com>
4514
4515 * mips-linux-nat.c (get_irw_mask): Rename to ...
4516 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4517 'set' to 'n'. Update function comment. All callers changed.
4518 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4519 function comment. All callers changed.
4520 (get_num_valid): Rename to ...
4521 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4522 'set' to 'n'. Update function comment. All callers changed.
4523 (get_watchlo): Rename to ...
4524 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4525 'set' to 'n'. Update function comment. All callers changed.
4526 (set_watchlo): Rename to ...
4527 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4528 'set' to 'n'. Update function comment. All callers changed.
4529 (get_watchhi): Rename to ...
4530 (mips_linux_watch_get_watchhi): ... this. Update function
4531 comment. All callers changed.
4532 (set_watchhi): Rename to ...
4533 (mips_linux_watch_set_watchhi): ... this. Update function
4534 comment. All callers changed.
4535 (mips_linux_read_watch_registers): Update function comment.
4536 Add new parameters 'lwpid', 'watch_readback', and
4537 'watch_readback_valid'. Update.
4538 (type_to_irw): Rename to ...
4539 (mips_linux_watch_type_to_irw): ... this. Update function
4540 comment. All callers changed.
4541 (fill_mask): Update function comment.
4542 (try_one_watch): Rename to ...
4543 (mips_linux_watch_try_one_watch): ... this. Change the type
4544 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4545 (populate_regs_from_watches): Rename to ...
4546 (mips_linux_watch_populate_regs): ... this. Add parameter
4547 'current_watches'. All callers changed.
4548
4549 2013-07-27 Yao Qi <yao@codesourcery.com>
4550
4551 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4552 the code.
4553 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4554 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4555 (struct pt_watch_regs): Likewise.
4556 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4557 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4558 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4559 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4560 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4561
4562 2013-07-27 Yao Qi <yao@codesourcery.com>
4563
4564 * breakpoint.h: Include break-common.h.
4565 (enum target_hw_bp_type): Move to ...
4566 * common/break-common.h: ... here. New.
4567
4568 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4569
4570 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4571 process group regardless of having tty on stdin.
4572
4573 2013-07-25 Doug Evans <dje@google.com>
4574
4575 * linux-fork.h (detach_fork): Delete.
4576
4577 2013-07-25 Tom Tromey <tromey@redhat.com>
4578
4579 PR remote/15256, PR remote/15266:
4580 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4581 * monitor.c (monitor_detach): Use unpush_target.
4582 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4583 * remote-mips.c (mips_detach): Use unpush_target. Don't
4584 call mips_close.
4585 * remote-sim.c (gdbsim_detach): Use unpush_target.
4586 * target.c (pop_target): Remove.
4587 (pop_all_targets_above): Don't call target_close.
4588 (target_close): Assert that the target is unpushed.
4589 * target.h (pop_target): Don't declare.
4590 * tracepoint.c (tfile_open): Use unpush_target.
4591
4592 2013-07-25 Tom Tromey <tromey@redhat.com>
4593
4594 * linux-thread-db.c (init_thread_db_ops): Call
4595 complete_target_initialization.
4596 (_initialize_thread_db): Don't call add_target.
4597 * target.c (complete_target_initialization): New function.
4598 (add_target_with_completer): Call it.
4599 * target.h (complete_target_initialization): Declare.
4600
4601 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4602
4603 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4604 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4605 (HPPANBSD_SIZEOF_GREGS): New define.
4606 (hppaobsd_supply_gregset): Handle additional registers.
4607 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4608 we provide more registers now.
4609 (hppabsd_supply_gregset): Supply additional registers.
4610 (hppabsd_collect_gregset): Collect additional registers.
4611
4612 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4613
4614 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4615 (hppabsd_dwarf2_frame_init_reg): New function.
4616 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4617
4618 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4619
4620 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4621 'z' format code. Remove error for optimized out values, standard
4622 code will handle these fine.
4623
4624 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4625
4626 * NEWS: Mention new 'z' formatter.
4627 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4628 (_initialize_printcmd): Mention 'z' formatter in help text of the
4629 'x' command.
4630
4631 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4632
4633 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4634 formatting.
4635
4636 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4637
4638 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4639 interface can evaluate arguments. Fallback to the old mode if it
4640 cannot.
4641 (create_exception_master_breakpoint): Likewise.
4642 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4643 (struct sym_probe_fns elf_probe_fns): Export function above to the
4644 probe interface.
4645 * probe.c (can_evaluate_probe_arguments): New function.
4646 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4647 function pointer.
4648 (can_evaluate_probe_arguments): New function prototype.
4649 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4650 probe interface can evaluate arguments. Fallback to the old mode
4651 if it cannot.
4652 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4653 interface can evaluate arguments. Warning the user if it cannot.
4654 (stap_can_evaluate_probe_arguments): New function.
4655 (struct probe_ops stap_probe_ops): Export function above to the
4656 probe interface.
4657 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4658 New function pointer.
4659
4660 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4661
4662 * Makefile.in (SFILES): Add common/target-common.c.
4663 Add common/target-common.h to headers.
4664 (COMMON_OBS): Add target-common.o.
4665 (target-common.o): New target.
4666 * linux-nat.h (resume_kind): Move to common/target-common.h.
4667 * target.c (target_waitstatus_to_string): Move to
4668 common/target-common.c.
4669 * target.h: Include target-common.h.
4670 (target_waitkind): Move to common/target-common.h.
4671 (target_waitstatus): Likewise.
4672 (TARGET_WNOHANG): Likewise.
4673 * common/target-common.c: New file.
4674 * common/target-common.h: New file.
4675
4676 2013-07-24 Doug Evans <dje@google.com>
4677
4678 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4679 a warning.
4680
4681 2013-07-23 Yao Qi <yao@codesourcery.com>
4682
4683 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4684 parameter 'gdbarch'.
4685 (i386_stack_tramp_frame_sniffer): Caller update.
4686 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4687 parameter 'gdbarch' and 'target'.
4688 (i386_linux_core_read_description): Caller update.
4689 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4690 Likewise.
4691 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4692 declaration.
4693
4694 2013-07-23 Tom Tromey <tromey@redhat.com>
4695
4696 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4697 2013-07-22.
4698
4699 2013-07-22 Doug Evans <dje@google.com>
4700
4701 * exec.h (remove_target_sections): Delete arg abfd.
4702 * exec.c (exec_close): Update call to remove_target_sections.
4703 (remove_target_sections): Delete arg abfd.
4704 * solib.c (update_solib_list): Ditto.
4705 (reload_shared_libraries_1): Ditto.
4706 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4707 * target.h (struct target_section): Rename key to owner.
4708 All uses updated.
4709
4710 2013-07-22 Tom Tromey <tromey@redhat.com>
4711
4712 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4713
4714 2013-07-22 Tom Tromey <tromey@redhat.com>
4715
4716 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4717 Simplify cleanup handling.
4718
4719 2013-07-22 Tom Tromey <tromey@redhat.com>
4720
4721 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4722 on all return paths.
4723
4724 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4725
4726 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4727 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4728 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4729
4730 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4731
4732 * top.c (print_gdb_version): Add help, apropos description and
4733 url to online documentation.
4734
4735 2013-07-19 Hui Zhu <hui@codesourcery.com>
4736
4737 PR gdb/15692
4738 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4739
4740 2013-07-19 Yao Qi <yao@codesourcery.com>
4741
4742 * target.c (update_current_target): Change the default action
4743 of 'to_traceframe_info' from tcomplain to return_zero.
4744 * target.h (struct target_ops) <to_traceframe_info>: Add more
4745 comments.
4746 * valops.c (read_value_memory): Call
4747 traceframe_available_memory unconditionally.
4748
4749 2013-07-18 Yao Qi <yao@codesourcery.com>
4750
4751 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4752 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4753 symbol without prefix. If found, set its type to
4754 'mst_solib_trampoline'.
4755
4756 2013-07-17 Doug Evans <dje@google.com>
4757
4758 * NEWS: Mention "set print raw frame-arguments".
4759 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4760 * stack.c (print_raw_frame_arguments): New static global.
4761 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4762 (_initialize_stack): New command "set/show print raw frame-arguments".
4763 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4764 (set_print_raw, show_print_raw): New functions.
4765 (_initialize_valprint): New prefix command "set/show print raw".
4766 * valprint.h (value_print_options): Improve comments.
4767
4768 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4769 of all *list variables.
4770
4771 * gdbcmd.h (togglelist): Delete.
4772 * cli/cli-cmds.c (togglelist): Delete.
4773 (init_cmd_lists): Update.
4774 * cli/cli-cmds.h (togglelist): Delete.
4775
4776 2013-07-17 Tom Tromey <tromey@redhat.com>
4777
4778 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4779 dwarf2_per_objfile.
4780
4781 2013-07-16 Doug Evans <dje@google.com>
4782
4783 * nto-tdep.c (nto_relocate_section_addresses): Update,
4784 target_section.bfd deleted.
4785 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4786 * s390-tdep.c (s390_load): Ditto.
4787 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4788
4789 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4790
4791 * common/format.c (parse_format_string): Add checks for NULL
4792 character before calling strchr.
4793
4794 2013-07-16 Doug Evans <dje@google.com>
4795
4796 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4797 temp_pathname argument.
4798 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4799 when opening the file fails.
4800
4801 * target.h (struct target_section): Delete member bfd.
4802 All users updated to use the_bfd_section->owner instead.
4803 * exec.c (add_to_section_table): Assert bfd is expected value.
4804 Remove initialization of target_section.bfd.
4805 (remove_target_sections): Update.
4806 (section_table_available_memory): Update.
4807 (section_table_xfer_memory_partial): Update.
4808 (print_section_info): Update.
4809 (exec_set_section_address): Update.
4810 * record-full.c (record_full_core_xfer_partial): Update.
4811 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4812 * solib-target.c (solib_target_relocate_section_addresses): Update.
4813 * symfile.c (build_section_addr_info_from_section_table): Update.
4814 * target.c (memory_xfer_live_readonly_partial): Update.
4815 (memory_xfer_partial_1): Update.
4816
4817 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4818
4819 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4820 now available for embedded (BookE) and server (BookS) processors,
4821 correct mentions of 'booke' and adjust comments accordingly in order to
4822 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4823 (have_ptrace_booke_interface): Rename function and variable
4824 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4825 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4826 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4827 'hwdebug_point_cmp'. Update all uses.
4828 (booke_find_thread_points_by_tid): Rename function
4829 'booke_find_thread_points_by_tid' to
4830 'hwdebug_find_thread_points_by_tid'. Update all uses.
4831 (booke_insert_point): Rename function 'booke_insert_point' to
4832 'hwdebug_insert_point'. Update all uses.
4833 (booke_remove_point): Rename function 'booke_remove_point' to
4834 'hwdebug_remove_point'. Update all uses.
4835
4836 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4837
4838 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4839 numbers with enum values.
4840
4841 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4842
4843 PR threads/13217
4844 * thread.c (thread_apply_all_command): Check for valid threads
4845 and thread count.
4846 (thread_array_cleanup): New struct.
4847 (set_thread_refcount): New function.
4848
4849 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4850
4851 * infcmd.c (default_print_one_register_info): Reuse function
4852 print_hex_chars.
4853
4854 2013-07-10 Tom Tromey <tromey@redhat.com>
4855
4856 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4857 (ada-exp.o): New target.
4858
4859 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4860
4861 * mt-tdep.c (mt_registers_info): Call
4862 get_no_prettyformat_print_options instead of
4863 get_raw_print_options (regression by last patch from Doug
4864 Evans).
4865
4866 2013-07-09 Pedro Alves <palves@redhat.com>
4867
4868 Checked in by Joel Brobecker <brobecker@adacore.com>.
4869 * ada-lang.c (coerce_unspec_val_to_type): Use
4870 value_optimized_out_const.
4871 * value.c (value_optimized_out_const): New function.
4872 * value.h (value_optimized_out_const): New declaration.
4873
4874 2013-07-09 Doug Evans <dje@google.com>
4875
4876 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4877 Enum values rename as well. All uses updated.
4878 * valprint.h (value_print_options): Rename member pretty to
4879 pretty format. Rename member prettyprint_arrays to
4880 prettyformat_arrays. Rename member prettyprint_structs to
4881 prettyformat_structs. All uses updated.
4882 (get_no_prettyformat_print_options): Renamed from
4883 get_raw_print_options.
4884 * valprint.c (get_no_prettyformat_print_options): Renamed from
4885 get_raw_print_options. All callers updated.
4886 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4887 All callers updated.
4888 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4889 All callers updated.
4890 (_initialize_valprint): Improve help text for "set print pretty" and
4891 "set print arrays".
4892
4893 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4894
4895 * value.c (value_bits_valid): Revert previous change, and change
4896 by Pedro on 2013-07-04, due to regressions in
4897 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4898
4899 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4900 Pedro Alves <palves@redhat.com>
4901
4902 * value.c (value_bits_valid): If the value is not lval_computed
4903 or has no check validity handler then the answer is the
4904 optimized_out flag, otherwise defer to the handler.
4905
4906 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4907
4908 * top.c (print_gdb_configuration): Explain in output of
4909 --configuration what does "relocatable" mean.
4910
4911 * main.c (print_gdb_help): Regroup options in the --help text.
4912 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4913 the relevant discussions.
4914
4915 2013-07-06 Yao Qi <yao@codesourcery.com>
4916
4917 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4918 Remove parameter 'lsal'.
4919 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4920 to inner block. Caller update.
4921 (base_breakpoint_create_breakpoints_sal): Update.
4922 (bkpt_create_breakpoints_sal): Likewise.
4923 (tracepoint_create_breakpoints_sal): Likewise.
4924 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4925 element 0 of vector 'canonical->sals'.
4926
4927 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4928
4929 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4930 register number instead of the pseudo register one.
4931 (rs6000_dwarf2_reg_to_regnum): Likewise.
4932
4933 2013-07-04 Pedro Alves <palves@redhat.com>
4934
4935 * findvar.c (value_of_register): Use allocate_optimized_out_value
4936 if the register has been optimized out, instead of
4937 set_value_optimized_out.
4938 * frame-unwind.c (frame_unwind_got_optimized): Use
4939 allocate_optimized_out_value.
4940
4941 2013-07-04 Pedro Alves <palves@redhat.com>
4942
4943 * value.c (value_bits_valid): If the value is not lval_computed,
4944 or doesn't have a check_validity hook, assume the value is entirely
4945 valid.
4946
4947 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4948
4949 * stack.c (read_frame_arg): No longer fetch lazy values.
4950 * value.c (value_optimized_out): If the value is not already
4951 marked optimized out, and is lazy then fetch it.
4952 (value_primitive_field): Move optimized out check to later in the
4953 function, after we have loaded any lazy values.
4954 (value_fetch_lazy): Use optimized out flag directly rather than
4955 calling optimized_out method.
4956
4957 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4958
4959 * valops.c: Don't include "user-regs.h".
4960 (value_fetch_lazy): Moved to value.c.
4961 * value.c: Include "user-regs.h".
4962 (value_fetch_lazy): Moved from valops.c.
4963
4964 2013-07-04 Yao Qi <yao@codesourcery.com>
4965
4966 Revert:
4967 2013-06-27 Yao Qi <yao@codesourcery.com>
4968
4969 * common/create-version.sh: Update comments. Handle the case
4970 that TARGET_ALIAS is empty.
4971
4972 2013-07-03 Pedro Alves <palves@redhat.com>
4973
4974 * Makefile.in (config.status): Depend on development.sh.
4975 (aclocal_m4_deps): Add libmcheck.m4.
4976 * acinclude.m4: Include libmcheck.m4.
4977 * configure.ac: Source development.sh instead of setting
4978 'development' here. --enable-libmcheck/--disable-libmcheck code
4979 factored out to GDB_AC_LIBMCHECK. Run it.
4980 * development.sh: New file.
4981 * libmcheck.m4: New file.
4982 * configure: Regenerate.
4983
4984 2013-07-02 Tom Tromey <tromey@redhat.com>
4985
4986 * contrib/ari/update-web-ari.sh: Update for version.in change.
4987
4988 2013-07-02 Tom Tromey <tromey@redhat.com>
4989
4990 * common/ptid.h: Comment fixes.
4991
4992 2013-07-01 Tom Tromey <tromey@redhat.com>
4993
4994 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4995 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4996 (dwarf2_read_index, create_all_comp_units): Update.
4997
4998 2013-07-01 Tom Tromey <tromey@redhat.com>
4999
5000 * configure.ac (build_warnings): Add -Wold-style-definition.
5001 * configure: Rebuild.
5002 * machoread.c (_initialize_machoread): Use "(void)".
5003 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5004 use "(void)".
5005
5006 2013-07-01 Tom Tromey <tromey@redhat.com>
5007
5008 * configure.ac (build_warnings): Add -Wold-style-declaration.
5009 * configure: Rebuild.
5010 * dsrec.c (make_srec): Use "static const", not "const static".
5011 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5012 not "const static".
5013 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5014 Use "static const", not "const static".
5015 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5016 not "const static".
5017 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5018 not "const static".
5019 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5020 not "const static".
5021 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5022 not "const static".
5023 (v850_dbtrap_breakpoint_from_pc): Likewise.
5024 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5025 not "const static".
5026
5027 2013-07-01 Tom Tromey <tromey@redhat.com>
5028
5029 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5030 * configure: Rebuild.
5031
5032 2013-07-01 Pedro Alves <palves@redhat.com>
5033
5034 * defs.h: Include "pathmax.h".
5035 * utils.c: Don't include sys/param.h.
5036 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5037 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5038 instead of MAXPATHLEN.
5039 * solib-sunos.c: Don't include sys/param.h.
5040 * xcoffread.c: Don't include sys/param.h.
5041 * bsd-kvm.c: Don't include sys/param.h.
5042 * darwin-nat.c: Don't include sys/param.h.
5043 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5044 * darwin-nat-info.c: Don't include sys/param.h.
5045 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5046 MAXPATHLEN.
5047 * i386obsd-nat.c: Don't include sys/param.h.
5048 * inf-child.c: Don't include sys/param.h.
5049 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5050 * linux-fork.c: Don't include sys/param.h.
5051 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5052 * linux-nat.c: Don't include sys/param.h.
5053 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5054 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5055 * m68klinux-nat.c: Don't include sys/param.h.
5056 * nbsd-nat.c: Don't include sys/param.h.
5057 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5058 * ppc-linux-nat.c: Don't include sys/param.h.
5059 * rs6000-nat.c: Don't include sys/param.h.
5060 * spu-linux-nat.c. Don't include sys/param.h.
5061 * windows-nat.c: Don't include sys/param.h.
5062 * xtensa-linux-nat.c: Don't include sys/param.h.
5063 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5064
5065 2013-07-01 Pedro Alves <palves@redhat.com>
5066
5067 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5068 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5069 * gnulib/aclocal.m4: Regenerate.
5070 * gnulib/config.in: Regenerate.
5071 * gnulib/configure: Regenerate.
5072 * gnulib/import/pathmax.h: New file.
5073 * gnulib/import/Makefile.am: Regenerate.
5074 * gnulib/import/Makefile.in: Regenerate.
5075 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5076 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5077 * gnulib/import/m4/pathmax.m4: New file.
5078
5079 2013-07-01 Pedro Alves <palves@redhat.com>
5080
5081 * configure.ac (GDBINIT): Define, depending on host.
5082 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5083 * top.c (PATH_MAX): Delete fallback definition.
5084 (GDBINIT_FILENAME): Delete.
5085 (gdbinit): Reimplement as const char array set to the GDBINIT
5086 string constant.
5087 * top.h (gdbinit): Make const.
5088 * configure, config.in: Regenerate.
5089
5090 2013-07-01 Pedro Alves <palves@redhat.com>
5091
5092 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5093 * cli/cli-cmds.h (source_script): Likewise.
5094 * exceptions.c (catch_command_errors_const): New function.
5095 * exceptions.h (catch_command_errors_const): Declare.
5096 * main.c (get_init_files): Make parameters const, and adjust.
5097 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5098 'local_gdbinit' locals const. Adjust to use
5099 catch_command_errors_const.
5100 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5101 'local_gdbinit' locals const.
5102
5103 2013-07-01 Pedro Alves <palves@redhat.com>
5104
5105 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5106 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5107 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5108 <unistd.h>.
5109
5110 2013-07-01 Pedro Alves <palves@redhat.com>
5111
5112 Import the "unistd" gnulib module.
5113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5114 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5115 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5116 import/m4/unistd_h.m4.
5117 * gnulib/aclocal.m4: Renenerate.
5118 * gnulib/config.in: Renenerate.
5119 * gnulib/configure: Renenerate.
5120 * gnulib/import/Makefile.am: Renenerate.
5121 * gnulib/import/Makefile.in: Renenerate.
5122 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5123 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5124 * gnulib/import/m4/off_t.m4: New file.
5125 * gnulib/import/m4/ssize_t.m4: New file.
5126 * gnulib/import/m4/sys_types_h.m4: New file.
5127 * gnulib/import/m4/unistd_h.m4: New file.
5128 * gnulib/import/sys_types.in.h: New file.
5129 * gnulib/import/unistd.c: New file.
5130 * gnulib/import/unistd.in.h: New file.
5131
5132 2013-07-01 Pedro Alves <palves@redhat.com>
5133
5134 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5135 defined instead of checking HAVE_UNISTD_H.
5136
5137 2013-07-01 Pedro Alves <palves@redhat.com>
5138
5139 Reimport gnulib from scratch.
5140 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5141 import/m4/onceonly.m4.
5142 * gnulib/aclocal.m4: Renegerate.
5143 * gnulib/config.in: Renegerate.
5144 * gnulib/configure: Renegerate.
5145 * gnulib/import/Makefile.in: Renegerate.
5146 * gnulib/import/extra/update-copyright: Renegerate.
5147 * gnulib/import/m4/onceonly.m4: Delete.
5148
5149 2013-07-01 Pedro Alves <palves@redhat.com>
5150
5151 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5152
5153 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5154
5155 Code cleanup.
5156 * remote.c (async_remote_interrupt_twice): Make it static.
5157 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5158
5159 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5160
5161 * ia64-linux-tdep.c: Include <ctype.h>.
5162 (ia64_linux_stap_is_single_operand): New function.
5163 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5164
5165 2013-06-28 Tom Tromey <tromey@redhat.com>
5166
5167 * Makefile.in (version.c): Use version.in, not
5168 common/version.in.
5169 * common/create-version.sh: Likewise.
5170 * common/version.in: Move...
5171 * version.in: ...here.
5172
5173 2013-06-28 Pedro Alves <palves@redhat.com>
5174
5175 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5176 here.
5177 * utils.h (pagination_enabled): Declare.
5178
5179 2013-06-28 Pedro Alves <palves@redhat.com>
5180
5181 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5182 Move higher up in file.
5183
5184 2013-06-28 Tom Tromey <tromey@redhat.com>
5185
5186 * tracepoint.c (deprecated_readline_begin_hook)
5187 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5188 declare.
5189
5190 2013-06-28 Pedro Alves <palves@redhat.com>
5191
5192 PR tui/14880
5193 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5194 checking if they're available.
5195 * value.c (value_available_contents_eq): Change comment.
5196 * value.h (value_available_contents_eq): Expand comment.
5197
5198 2013-06-27 Tom Tromey <tromey@redhat.com>
5199
5200 * target.c (find_run_target): Remove.
5201 * target.h (find_run_target): Remove.
5202
5203 2013-06-27 Tom Tromey <tromey@redhat.com>
5204
5205 * corelow.c (core_gdbarch): Now static.
5206
5207 2013-06-27 Tom Tromey <tromey@redhat.com>
5208
5209 * target.c (target_struct_index): Remove.
5210
5211 2013-06-27 Pedro Alves <palves@redhat.com>
5212
5213 * infrun.c: Remove comment describing the 'stepping over runtime
5214 loader dynamic symbol resolution code' mechanism; moved to
5215 gdbint.texinfo.
5216
5217 2013-06-27 Pedro Alves <palves@redhat.com>
5218
5219 * exceptions.c (catch_command_errors): Remove spurious space.
5220 * exceptions.h (catch_command_errors): Second parameter is "arg",
5221 not "command".
5222
5223 2013-06-27 Yao Qi <yao@codesourcery.com>
5224
5225 * common/create-version.sh: Update comments. Handle the case
5226 that TARGET_ALIAS is empty.
5227
5228 2013-06-26 Pedro Alves <palves@redhat.com>
5229
5230 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5231 comment.
5232
5233 2013-06-26 Pedro Alves <palves@redhat.com>
5234
5235 * infrun.c: Update comments on stepping over runtime loader
5236 dynamic symbol resolution code.
5237
5238 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5239
5240 * ax-gdb.h (union exp_element): Forward declare.
5241 * parser-defs.h: Include expression.h.
5242
5243 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5244
5245 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5246
5247 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5248
5249 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5250
5251 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5252
5253 Fix trace-status to output proper start-time and stop-time.
5254 * tracepoint.c (trace_status_command): Fix type of printf arg to
5255 prevent improper type conversion.
5256 (trace_status_mi): Likewise.
5257
5258 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5259
5260 * mips-tdep.c (mips_next_pc): Fix a typo.
5261
5262 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5263
5264 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5265
5266 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5267 Yao Qi <yao@codesourcery.com>
5268
5269 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5270 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5271 * mi/mi-main.c (print_variable_or_computed): New function.
5272 (mi_cmd_trace_frame_collected): New function.
5273 * tracepoint.c (find_trace_state_variable_by_number): New.
5274 (struct traceframe_info): Move to tracepoint.h
5275 (struct collection_list): Likewise.
5276 (do_collect_symbol): Include locals and arguments in the
5277 collected variables list.
5278 (clear_collection_list): Clear wholly collected variables list
5279 and computed variables list.
5280 (append_exp): New function.
5281 (encode_actions_1): Include variables in the wholly
5282 collected variables list. Include memory ranges and
5283 full-fledged expressions in the computed expressions list.
5284 (encode_actions): Move some code to ...
5285 Return the cleanup chain.
5286 (encode_actions_rsp): ... here. New function.
5287 (get_traceframe_location, get_traceframe_info): Remove static.
5288 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5289 (struct collection_list): Moved from tracepoint.c. Add two
5290 new fields 'wholly_collected' and 'computed'.
5291 (find_trace_state_variable_by_number): Declare.
5292 (encode_actions): Adjust declaration.
5293 (encode_actions_rsp): Declare.
5294 (get_traceframe_info, get_traceframe_location): Declare.
5295
5296 * NEWS: Mention new MI command -trace-frame-collected.
5297
5298 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5299 Yao Qi <yao@codesourcery.com>
5300
5301 * ctf.c (ctf_traceframe_info): Push trace state variables
5302 present in the trace data into the traceframe info object.
5303 * breakpoint.c (DEF_VEC_I): Remove.
5304 * common/filestuff.c (DEF_VEC_I): Likewise.
5305 * dwarf2loc.c (DEF_VEC_I): Likewise.
5306 * mi/mi-main.c (DEF_VEC_I): Likewise.
5307 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5308 * features/traceframe-info.dtd: Add tvar element and its
5309 attributes.
5310 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5311 (build_traceframe_info): Push trace state variables present in
5312 the trace data into the traceframe info object.
5313 (traceframe_info_start_tvar): New function.
5314 (tvar_attributes): New.
5315 (traceframe_info_children): Add "tvar" element.
5316 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5317
5318 * NEWS: Mention the change in GDB and GDBserver.
5319
5320 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5321 Yao Qi <yao@codesourcery.com>
5322
5323 * tracepoint.c (trace_dump_command): Move code to ...
5324 (get_traceframe_location): ... here. New.
5325
5326 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5327 Yao Qi <yao@codesourcery.com>
5328
5329 * tracepoint.c (trace_dump_command): GDB emits an error
5330 instead of a warning when a traceframe is not selected.
5331
5332 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5333 Yao Qi <yao@codesourcery.com>
5334
5335 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5336 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5337 in collection_list.
5338 (do_clear_collection_list, init_collection_list): New.
5339 (encode_actions): Add local variables 'tracepoint_list' and
5340 'stepping_list'. Call init_collection_list and make cleanup
5341 which calls do_clear_collection_list. Don't call
5342 clear_collection_list.
5343 (_initialize_tracepoint): Delete references to
5344 'tracepoint_list' and 'stepping_list'.
5345
5346 2013-06-25 Tom Tromey <tromey@redhat.com>
5347
5348 * common/create-version.sh (date): Use "$", not "$$" in sed
5349 expression.
5350
5351 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5352
5353 * NEWS (New targets): Add entry for TI MSP430.
5354
5355 2013-06-25 Yao Qi <yao@codesourcery.com>
5356
5357 * remote.c (remote_start_remote): Move code to upload tsv
5358 earlier.
5359
5360 2013-06-25 Yao Qi <yao@codesourcery.com>
5361 Hui Zhu <hui@codesourcery.com>
5362 Pedro Alves <palves@redhat.com>
5363
5364 PR breakpoints/15075
5365 PR breakpoints/15434
5366 * breakpoint.c (bpstat_stop_status): Call
5367 b->ops->after_condition_true.
5368 (update_dprintf_command_list): Don't append "continue" command
5369 to the command list of dprintf breakpoint.
5370 (base_breakpoint_after_condition_true): New function.
5371 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5372 (dprintf_after_condition_true): New function.
5373 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5374 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5375
5376 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5377
5378 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5379 (ALLDEPFILES): Add msp430-tdep.c.
5380 * configure.tgt (msp430*-*-elf): New target.
5381 * msp430-tdep.c: New file.
5382
5383 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5384
5385 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5386 microMIPS synthetic symbols.
5387
5388 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5389
5390 * objfiles.h (pc_in_section): New prototype.
5391 (in_plt_section): Remove name argument, replace prototype with
5392 static inline function.
5393 * mips-tdep.h: Include "objfiles.h".
5394 (in_mips_stubs_section): New function.
5395 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5396 in_solib_call_trampoline member.
5397 (hppa_in_solib_call_trampoline): Remove name argument.
5398 * objfiles.c (pc_in_section): New function.
5399 (in_plt_section): Remove function.
5400 * mips-linux-tdep.c: Include "objfiles.h".
5401 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5402 name argument. Return 1 rather than the low 16-bit halfword of
5403 any instruction examined.
5404 (mips_linux_in_dynsym_resolve_code): Update
5405 mips_linux_in_dynsym_stub call accordingly.
5406 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5407 rather than an equivalent hand-coded sequence.
5408 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5409 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5410 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5411 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5412 in_opd_section.
5413 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5414 on call to tdep->in_solib_call_trampoline.
5415 (hppa_in_solib_call_trampoline): Remove name argument, update
5416 according to in_plt_section change.
5417 (hppa_skip_trampoline_code): Update according to in_plt_section
5418 change.
5419 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5420 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5421 Likewise.
5422 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5423 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5424 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5425 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5426 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5427 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5428 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5429 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5430 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5431 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5432 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5433 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5434 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5435
5436 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5437
5438 * common/create-version.sh: Fix expansion of $host_alias
5439 and $target_alias in generation of HOST_NAME and TARGET_NAME
5440 (resp.).
5441
5442 2013-06-24 Tom Tromey <tromey@redhat.com>
5443
5444 * common/create-version.sh: New file.
5445 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5446 create-version.sh.
5447 (HFILES_NO_SRCDIR): Use common/version.h.
5448 * version.in: Move to ...
5449 * common/version.in: ... here. Replace date with "DATE".
5450 * version.h: Move to ...
5451 * common/version.h: ... here.
5452
5453 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5454
5455 * gdb/gnulib/Makefile.in: Update date in copyright header.
5456 * gdb/gnulib/configure.ac: Ditto.
5457 * gdb/gnulib/update-gnulib.sh: Ditto.
5458
5459 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5460
5461 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5462 "gdb/gnulib/import".
5463
5464 2013-06-21 Will Newton <will.newton@linaro.org>
5465
5466 * doublest.c (ldfrexp): Remove function.
5467 (convert_doublest_to_floatformat): Call frexpl instead of
5468 ldfrexp.
5469
5470 2013-06-21 Will Newton <will.newton@linaro.org>
5471
5472 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5473 * gnulib/aclocal.m4: Regenerate.
5474 * gnulib/config.in: Regenerate.
5475 * gnulib/configure: Regenerate.
5476 * gnulib/import/Makefile.am: Update.
5477 * gnulib/import/Makefile.in: Update.
5478 * gnulib/import/m4/gnulib-cache.m4: Update.
5479 * gnulib/import/m4/gnulib-comp.m4: Update.
5480 * gnulib/import/float+.h: Import.
5481 * gnulib/import/float.c: Import.
5482 * gnulib/import/float.in.h: Import.
5483 * gnulib/import/fpucw.h: Import.
5484 * gnulib/import/frexp.c: Import.
5485 * gnulib/import/frexpl.c: Import.
5486 * gnulib/import/isnan.c: Import.
5487 * gnulib/import/isnand-nolibm.h: Import.
5488 * gnulib/import/isnand.c: Import.
5489 * gnulib/import/isnanl-nolibm.h: Import.
5490 * gnulib/import/isnanl.c: Import.
5491 * gnulib/import/itold.c: Import.
5492 * gnulib/import/m4/exponentd.m4: Import.
5493 * gnulib/import/m4/exponentl.m4: Import.
5494 * gnulib/import/m4/float_h.m4: Import.
5495 * gnulib/import/m4/fpieee.m4: Import.
5496 * gnulib/import/m4/frexp.m4: Import.
5497 * gnulib/import/m4/frexpl.m4: Import.
5498 * gnulib/import/m4/isnand.m4: Import.
5499 * gnulib/import/m4/isnanl.m4: Import.
5500 * gnulib/import/m4/math_h.m4: Import.
5501 * gnulib/import/math.c: Import.
5502 * gnulib/import/math.in.h: Import.
5503
5504 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5505
5506 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5507 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5508 signature_INTEL_edx comparisons.
5509
5510 2013-06-20 Doug Evans <dje@google.com>
5511
5512 symtab/15652
5513 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5514 All callers updated.
5515 (open_dwp_file): If we can't find the dwp file, search the basename
5516 in debug-file-directory.
5517
5518 * dwarf2read.c (struct dwp_file): Fix comment.
5519 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5520
5521 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5522 better.
5523
5524 2013-06-20 Yao Qi <yao@codesourcery.com>
5525
5526 * breakpoint.c (create_breakpoint): Fix code indentation.
5527
5528 2013-06-20 Yao Qi <yao@codesourcery.com>
5529
5530 * breakpoint.c (create_breakpoints_sal_default): Remove
5531 parameter 'lsal'. Update declaration.
5532 (bkpt_create_breakpoints_sal): Caller update.
5533 (tracepoint_create_breakpoints_sal): Likewise.
5534
5535 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5536 Yao Qi <yao@codesourcery.com>
5537
5538 * NEWS: Mention the new option '--skip-unavailable' of command
5539 -data-list-register-values.
5540 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5541 --skip-unavailable option. Adjust to use output_register.
5542 (output_register): Add new 'skip_unavailable' parameter.
5543 Handle it.
5544
5545 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5546
5547 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5548 common/i386-gcc-cpuid.h.
5549 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5550 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5551 Copy the latest version from upstream gcc.
5552 * common/linux-btrace.c: Include i386-cpuid.h.
5553 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5554 call to i386_cpuid.
5555 (cpu_supports_btrace): Likewise.
5556 * go32-nat.c: Include i386-cpuid.h.
5557 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5558
5559 2013-06-19 Doug Evans <dje@google.com>
5560
5561 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5562 (get_section_index): Ditto.
5563
5564 2013-06-19 Tom Tromey <tromey@redhat.com>
5565
5566 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5567 "dprintf" help.
5568
5569 2013-06-18 Doug Evans <dje@google.com>
5570
5571 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5572 before using it.
5573 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5574 Move test of cu_index closer to use. Print complaint if cu_index
5575 is bad.
5576
5577 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5578
5579 * machoread.c (oso_vector): Delete this global.
5580 (macho_register_oso): Add new parameter "oso_vector_ptr".
5581 Use it instead of the "oso_vector" global.
5582 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5583 (macho_symfile_read): Use a local oso_vector, to be free'ed
5584 at the end of this function, in place of the old "oso_vector"
5585 global. Update various function calls accordingly. Use one
5586 single cleanup chain for the entire function.
5587
5588 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5589
5590 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5591 DWARF2_PER_OBJFILE by uses of DATA instead.
5592
5593 2013-06-18 Tom Tromey <tromey@redhat.com>
5594
5595 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5596 argument.
5597 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5598 Special case signals other than GDB_SIGNAL_TRAP.
5599 (explains_signal_watchpoint): New function.
5600 (base_breakpoint_explains_signal): Add 'sig' argument.
5601 (initialize_breakpoint_ops): Set 'explains_signal' method for
5602 watchpoints.
5603 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5604 signal argument.
5605 (bpstat_explains_signal): Likewise.
5606 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5607
5608 2013-06-18 Tom Tromey <tromey@redhat.com>
5609
5610 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5611
5612 2013-06-18 Tom Tromey <tromey@redhat.com>
5613
5614 * python/python.c (finish_python_initialization): Decref
5615 'pythondir' on failure path as well.
5616
5617 2013-06-18 Tom Tromey <tromey@redhat.com>
5618
5619 PR symtab/15391:
5620 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5621 after taking bits_to_skip into account. Sign extend byte_offset.
5622 * utils.h (gdb_sign_extend): Declare.
5623 * utils.c (gdb_sign_extend): New function.
5624
5625 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5626
5627 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5628
5629 2013-06-17 Pierre Muller <muller@sourceware.org>
5630
5631 * corelow.c (core_open): Print GDB signal name instead of target
5632 signal number.
5633
5634 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5635
5636 * .gitignore: Add /gcore.
5637
5638 2013-06-13 Doug Evans <dje@google.com>
5639
5640 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5641 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5642
5643 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5644
5645 * stack.c (backtrace_command_1): Fix indentation.
5646
5647 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5648
5649 * window-nat.c (thread_rec): Add missing empty line after
5650 local variable declaration.
5651
5652 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5653
5654 * windows-nat.c (thread_rec): Revert format used to print
5655 error code returned by SuspendThread from %d back to %u.
5656
5657 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5658
5659 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5660 ID in debug trace.
5661 (get_windows_debug_event): Likewise, for all debug traces.
5662
5663 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5664
5665 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5666 warning message.
5667
5668 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5669 Yao Qi <yao@codesourcery.com>
5670
5671 * mi/mi-main.c (get_register): Remove declaration.
5672 (output_register): Declare.
5673 (mi_cmd_data_list_register_values): Remove local variable
5674 'tuple_cleanup'. Move some code into output_register.
5675 (get_register): Renamed to ...
5676 (output_register): ... this. Output the register's
5677 "number" ui_out tuple here.
5678
5679 2013-06-07 Pedro Alves <palves@redhat.com>
5680
5681 * darwin-nat.c: Fix formating in copyright header.
5682 * darwin-nat.h: Likewise.
5683 * gnu-nat.c: Likewise.
5684 * machoread.c: Likewise.
5685
5686 2013-06-07 Pedro Alves <palves@redhat.com>
5687
5688 PR server/14823
5689 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5690 static. Output a global target description pointer.
5691 (init_registers_${name}): Adjust to initialize a
5692 target description structure.
5693
5694 2013-06-07 Will Newton <will.newton@linaro.org>
5695
5696 * printcmd.c (build_address_symbolic): Call
5697 gdbarch_addr_bits_remove for text minimal symbols.
5698
5699 2013-06-07 Will Newton <will.newton@linaro.org>
5700
5701 * MAINTAINERS: Add myself to Write After Approval.
5702
5703 2013-06-07 Yao Qi <yao@codesourcery.com>
5704
5705 * tracepoint.c (start_tracing): Move code to ...
5706 (trace_reset_local_state): ... here. New.
5707 (disconnect_tracing): Don't call set_current_traceframe,
5708 set_tracepoint_num, and set_traceframe_context. Call
5709 trace_reset_local_state instead.
5710 (tfile_close): Call trace_reset_local_state.
5711 * ctf.c (ctf_close): Likewise.
5712 * remote.c (remote_close): Likewise.
5713 * tracepoint.h (trace_reset_local_state): Declare.
5714
5715 2013-06-06 Doug Evans <dje@google.com>
5716
5717 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5718 and fix header docs.
5719
5720 2013-06-05 Doug Evans <dje@google.com>
5721 Keith Seitz <keiths@redhat.com>
5722
5723 PR 15519
5724 * cp-namespace.c (find_symbol_in_baseclass): Call
5725 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5726 Check result of call to lookup_symbol_static.
5727 Call lookup_static_symbol_aux unconditionally.
5728 Call check_typedef on base types before accessing them.
5729 (cp_lookup_nested_symbol): Fix comment.
5730
5731 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5732
5733 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5734 minimal symbols pointing to function descriptors.
5735
5736 2013-06-05 Tom Tromey <tromey@redhat.com>
5737
5738 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5739
5740 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5741 Pedro Alves <palves@redhat.com>
5742
5743 * remote.c (remote_wait_as): Restore signal handler before returning
5744 when GDB gets a notification.
5745
5746 2013-06-04 Gary Benson <gbenson@redhat.com>
5747
5748 PR 2328
5749 * breakpoint.h (handle_solib_event): Moved function declaration
5750 to solib.h.
5751 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5752 (bpstat_stop_status): Pass new argument to handle_solib_event.
5753 * solib.h (update_solib_breakpoints): New function declaration.
5754 (handle_solib_event): Moved function declaration from
5755 breakpoint.h.
5756 * solib.c (update_solib_breakpoints): New function.
5757 (handle_solib_event): Moved function from breakpoint.c.
5758 Updated to call solib_ops->handle_event if not NULL.
5759 * solist.h (target_so_ops): New fields "update_breakpoints" and
5760 "handle_event".
5761 * infrun.c (set_stop_on_solib_events): New function.
5762 (_initialize_infrun): Use the above for "set
5763 stop-on-solib-events".
5764 (handle_inferior_event): Pass new argument to handle_solib_event.
5765 * solib-svr4.c (probe.h): New include.
5766 (svr4_free_library_list): New forward declaration.
5767 (probe_action): New enum.
5768 (probe_info): New struct.
5769 (probe_info): New static variable.
5770 (NUM_PROBES): New definition.
5771 (svr4_info): New fields "using_xfer", "probes_table" and
5772 "solib_list".
5773 (free_probes_table): New function.
5774 (free_solib_list): New function.
5775 (svr4_pspace_data_cleanup): Free probes table and solib list.
5776 (svr4_copy_library_list): New function.
5777 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5778 (svr4_read_so_list): New parameter "prev_lm".
5779 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5780 (svr4_current_sos): New function.
5781 (probe_and_action): New struct.
5782 (hash_probe_and_action): New function.
5783 (equal_probe_and_action): Likewise.
5784 (register_solib_event_probe): Likewise.
5785 (solib_event_probe_at): Likewise.
5786 (solib_event_probe_action): Likewise.
5787 (solist_update_full): Likewise.
5788 (solist_update_incremental): Likewise.
5789 (disable_probes_interface_cleanup): Likewise.
5790 (svr4_handle_solib_event): Likewise.
5791 (svr4_update_solib_event_breakpoint): Likewise.
5792 (svr4_update_solib_event_breakpoints): Likewise.
5793 (svr4_create_solib_event_breakpoints): Likewise.
5794 (enable_break): Free probes table before creating breakpoints.
5795 Use svr4_create_solib_event_breakpoints to create breakpoints.
5796 (svr4_solib_create_inferior_hook): Free the solib list.
5797 (_initialize_svr4_solib): Initialise
5798 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5799
5800 2013-06-04 Gary Benson <gbenson@redhat.com>
5801
5802 * target.h (target_ops): New field
5803 "to_augmented_libraries_svr4_read".
5804 (target_augmented_libraries_svr4_read): New macro.
5805 * target.c (update_current_target): Handle
5806 to_augmented_libraries_svr4_read.
5807 * remote.c (remote_state): New field
5808 "augmented_libraries_svr4_read".
5809 (remote_augmented_libraries_svr4_read_feature): New function.
5810 (remote_protocol_features): Add entry for
5811 "augmented-libraries-svr4-read".
5812 (remote_augmented_libraries_svr4_read): New function.
5813 (init_remote_ops): Initialize
5814 remote_ops.to_augmented_libraries_svr4_read.
5815
5816 2013-06-04 Gary Benson <gbenson@redhat.com>
5817
5818 * NEWS: Update.
5819
5820 2013-06-04 Gary Benson <gbenson@redhat.com>
5821
5822 * objfiles.h (inhibit_section_map_updates): New function
5823 declaration.
5824 (resume_section_map_updates): Likewise.
5825 (resume_section_map_updates_cleanup): Likewise.
5826 * objfiles.c (objfile_pspace_info): Removed field
5827 "objfiles_changed_p". New fields "new_objfiles_available",
5828 "section_map_dirty" and "inhibit_updates".
5829 (allocate_objfile): Set new_objfiles_available.
5830 (free_objfile): Set section_map_dirty.
5831 (objfile_relocate1): Likewise.
5832 (in_plt_section): Likewise.
5833 (find_pc_section): Update the conditions under which the
5834 section map will be updated.
5835 (inhibit_section_map_updates): New function.
5836 (resume_section_map_updates): Likewise.
5837 (resume_section_map_updates_cleanup): Likewise.
5838
5839 2013-06-04 Gary Benson <gbenson@redhat.com>
5840
5841 * probe.h (get_probe_argument_count): New declaration.
5842 (evaluate_probe_argument): Likewise.
5843 * probe.c (get_probe_argument_count): New function.
5844 (evaluate_probe_argument): Likewise.
5845 (probe_safe_evaluate_at_pc): Use the above new functions.
5846
5847 2013-06-04 Alan Modra <amodra@gmail.com>
5848
5849 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5850 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5851 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5852 target mem reads on optional insns.
5853 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5854 ppc_insns_match_pattern calls.
5855 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5856 Add match for power7 thread safety insns, and new order of
5857 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5858 invocation in comment, and update rest of comment.
5859 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5860 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5861 (ppc64_standard_linkage2_target): Update insn offsets.
5862 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5863 stubs first. Update calls.
5864
5865 2013-06-04 Yao Qi <yao@codesourcery.com>
5866
5867 * solib.c (solib_find): Don't need dir separator if path has
5868 drive spec.
5869
5870 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5871
5872 Revert (indirectly causes a SIGSEGV):
5873 * machoread.c (macho_symfile_read): Assign first cleanup to
5874 'back_to'.
5875
5876 2013-06-03 Yao Qi <yao@codesourcery.com>
5877
5878 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5879 mi-parse.c. Make them static.
5880 (mi_all_values): Likewise.
5881 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5882 mi_parse_print_values. Make it external.
5883 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5884 Remove the declarations.
5885 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5886 * mi/mi-parse.h (mi_parse_print_values): Declare.
5887 * mi/mi-cmd-stack.c: Include mi-parse.h.
5888 (parse_print_values): Remove
5889 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5890 of parse_print_values.
5891 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5892
5893 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5894 Yao Qi <yao@codesourcery.com>
5895
5896 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5897 (encode_actions): Move code to ...
5898 (all_tracepoint_actions_and_cleanup): ... here. New.
5899 (trace_dump_command): Likewise.
5900
5901 2013-05-30 Tom Tromey <tromey@redhat.com>
5902
5903 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5904
5905 2013-05-30 Tom Tromey <tromey@redhat.com>
5906
5907 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5908 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5909 'old_chain' argument. Add 'parser_result' argument.
5910 (gdb_xml_create_parser_and_cleanup): Remove old version.
5911 (gdb_xml_parse_quick): Update.
5912 (xml_process_xincludes): Update.
5913 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5914 declare.
5915
5916 2013-05-30 Tom Tromey <tromey@redhat.com>
5917
5918 * probe.c (collect_probes): Check arguments for NULL before
5919 calling compile_rx_or_error.
5920 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5921 Remove NULL return.
5922
5923 2013-05-30 Tom Tromey <tromey@redhat.com>
5924
5925 * infrun.c (adjust_pc_after_break): Introduce an outer null
5926 cleanup.
5927
5928 2013-05-30 Tom Tromey <tromey@redhat.com>
5929
5930 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5931
5932 2013-05-30 Tom Tromey <tromey@redhat.com>
5933
5934 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5935 for 'old_chain'. Do not check 'head' before processing
5936 cleanups.
5937
5938 2013-05-30 Tom Tromey <tromey@redhat.com>
5939
5940 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5941 "cleanup_tuple".
5942
5943 2013-05-30 Tom Tromey <tromey@redhat.com>
5944
5945 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5946 inner scope. Unconditionally call do_cleanups.
5947
5948 2013-05-30 Tom Tromey <tromey@redhat.com>
5949
5950 * source.c (find_and_open_source): Call do_cleanups.
5951
5952 2013-05-30 Tom Tromey <tromey@redhat.com>
5953
5954 * linux-thread-db.c (thread_db_load_search): Unconditionally
5955 call do_cleanups.
5956
5957 2013-05-30 Tom Tromey <tromey@redhat.com>
5958
5959 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5960 for 'cleanup'; instead use a later one.
5961
5962 2013-05-30 Tom Tromey <tromey@redhat.com>
5963
5964 * python/py-breakpoint.c (bppy_get_commands): Use
5965 explicit, unconditional return.
5966 * python/py-frame.c (frapy_read_var): Likewise.
5967 * python/python.c (gdbpy_decode_line): Likewise.
5968
5969 2013-05-30 Tom Tromey <tromey@redhat.com>
5970
5971 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5972 do_cleanups on all return paths.
5973
5974 2013-05-30 Tom Tromey <tromey@redhat.com>
5975
5976 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5977
5978 2013-05-30 Tom Tromey <tromey@redhat.com>
5979
5980 * stabsread.c (read_struct_type): Call do_cleanups along
5981 all return paths.
5982
5983 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5984
5985 * mips-linux-tdep.c: Adjust formatting throughout.
5986
5987 2013-05-30 Tom Tromey <tromey@redhat.com>
5988
5989 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5990 along all return paths.
5991
5992 2013-05-30 Tom Tromey <tromey@redhat.com>
5993
5994 * symfile.c (find_separate_debug_file): Call do_cleanups
5995 along all return paths.
5996
5997 2013-05-30 Tom Tromey <tromey@redhat.com>
5998
5999 * symtab.c (search_symbols): Introduce a null cleanup for
6000 'retval_chain'.
6001
6002 2013-05-30 Tom Tromey <tromey@redhat.com>
6003
6004 * python/py-value.c (valpy_binop): Call do_cleanups before
6005 exiting loop.
6006
6007 2013-05-30 Tom Tromey <tromey@redhat.com>
6008
6009 * python/py-prettyprint.c (print_children): Remove extra
6010 do_cleanups call.
6011
6012 2013-05-30 Tom Tromey <tromey@redhat.com>
6013
6014 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6015 all return paths.
6016
6017 2013-05-30 Tom Tromey <tromey@redhat.com>
6018
6019 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6020 along all return paths.
6021
6022 2013-05-30 Tom Tromey <tromey@redhat.com>
6023
6024 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6025 call do_cleanups.
6026
6027 2013-05-30 Tom Tromey <tromey@redhat.com>
6028
6029 * varobj.c (c_value_of_root): Call do_cleanups along all
6030 return paths.
6031
6032 2013-05-30 Tom Tromey <tromey@redhat.com>
6033
6034 * tracepoint.c (trace_dump_command): Unconditionally call
6035 do_cleanups.
6036
6037 2013-05-30 Tom Tromey <tromey@redhat.com>
6038
6039 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6040 do_cleanups earlier.
6041
6042 2013-05-30 Tom Tromey <tromey@redhat.com>
6043
6044 * machoread.c (macho_symfile_read): Assign first cleanup to
6045 'back_to'.
6046
6047 2013-05-30 Tom Tromey <tromey@redhat.com>
6048
6049 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6050
6051 2013-05-30 Tom Tromey <tromey@redhat.com>
6052
6053 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6054
6055 2013-05-30 Tom Tromey <tromey@redhat.com>
6056
6057 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6058 call discard_cleanups.
6059 (inf_ptrace_attach): Likewise.
6060
6061 2013-05-30 Tom Tromey <tromey@redhat.com>
6062
6063 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6064 return paths.
6065 (mips_initialize): Likewise.
6066 (common_open): Call do_cleanups.
6067
6068 2013-05-30 Tom Tromey <tromey@redhat.com>
6069
6070 * utils.c (internal_vproblem): Call do_cleanups.
6071
6072 2013-05-30 Tom Tromey <tromey@redhat.com>
6073
6074 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6075
6076 2013-05-30 Tom Tromey <tromey@redhat.com>
6077
6078 * cli/cli-script.c (setup_user_args): Don't return after error.
6079
6080 2013-05-30 Tom Tromey <tromey@redhat.com>
6081
6082 * somread.c (som_symtab_read): Call do_cleanups.
6083
6084 2013-05-30 Tom Tromey <tromey@redhat.com>
6085
6086 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6087
6088 2013-05-30 Tom Tromey <tromey@redhat.com>
6089
6090 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6091 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6092 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6093 * source.c (show_substitute_path_command): Call do_cleanups.
6094 (unset_substitute_path_command, set_substitute_path_command):
6095 Likewise.
6096 * symfile.c (load_command): Call do_cleanups.
6097
6098 2013-05-30 Tom Tromey <tromey@redhat.com>
6099
6100 * contrib/cleanup_check.py: New file.
6101 * contrib/gcc-with-excheck: Add option parsing.
6102
6103 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6104
6105 * windows-nat.c (windows_delete_thread): Add missing space
6106 in cast expression.
6107
6108 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6109
6110 * inferior.c (top level): Include tilde.h.
6111 (add_inferior_command): Call tilde_expand on the value of 'exec'
6112 argument.
6113
6114 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6115 Yao Qi <yao@codesourcery.com>
6116
6117 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6118 Caller update.
6119 (encode_actions): Likewise.
6120 * remote.c (remote_download_tracepoint): Caller update.
6121 * tracepoint.h (encode_actions): Update declaration.
6122
6123 2013-05-30 Pedro Alves <palves@redhat.com>
6124
6125 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6126 pointer.
6127
6128 2013-05-30 Yao Qi <yao@codesourcery.com>
6129
6130 * remote.c (remote_check_symbols): Remove unused parameter
6131 'objfile'.
6132 Declaration update.
6133 (remote_start_remote, remote_new_objfile): Caller update.
6134
6135 2013-05-30 Yao Qi <yao@codesourcery.com>
6136
6137 * mi/mi-cmds.c (mi_cmds): Define MI command
6138 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6139 DEF_MI_CMD_CLI.
6140
6141 2013-05-29 Pedro Alves <palves@redhat.com>
6142
6143 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6144 (remote_insert_watchpoint, remote_remove_watchpoint)
6145 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6146 (remote_verify_memory, compare_sections_command)
6147 (remote_search_memory): Set the general process/thread on the
6148 remote side.
6149
6150 2013-05-29 Pedro Alves <palves@redhat.com>
6151
6152 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6153 (_initialize_aarch64_tdep): Don't call
6154 initialize_tdesc_aarch64_without_fpu.
6155 * features/Makefile (WHICH): Remove reference to
6156 aarch64-without-fpu.
6157 * features/aarch64-without-fpu.c: Delete file.
6158 * regformats/aarch64-without-fpu.dat: Delete file.
6159
6160 2013-05-28 Yao Qi <yao@codesourcery.com>
6161
6162 * tracepoint.c (stringify_collection_list): Remove parameter
6163 'string'.
6164 (encode_actions): Caller update. Remove local variables.
6165
6166 2013-05-24 Yao Qi <yao@codesourcery.com>
6167
6168 * tracepoint.c (TFILE_PID): Remove.
6169 (tfile_open): Don't add thread and inferior.
6170 (tfile_close): Don't set 'inferior_ptid'. Don't call
6171 exit_inferior_silent.
6172 (tfile_thread_alive): Remove.
6173 (init_tfile_ops): Don't set field 'to_thread_alive' of
6174 tfile_ops.
6175
6176 2013-05-23 Doug Evans <dje@google.com>
6177
6178 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6179
6180 2013-05-23 Pedro Alves <palves@redhat.com>
6181
6182 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6183 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6184 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6185 Only define if HAVE_SOCKETS is defined.
6186 * configure.ac: Check for sys/socket.h.
6187 * config.in, configure: Regenerate.
6188
6189 2013-05-23 Pedro Alves <palves@redhat.com>
6190
6191 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6192 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6193 printing uint32_t variables.
6194
6195 2013-05-23 Pedro Alves <palves@redhat.com>
6196
6197 * NEWS: Mention GDBserver range stepping support.
6198
6199 2013-05-23 Yao Qi <yao@codesourcery.com>
6200 Pedro Alves <palves@redhat.com>
6201
6202 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6203 field.
6204 * infcmd.c (step_once, until_next_command): Enable range stepping.
6205 * infrun.c (displaced_step_prepare): Disable range stepping.
6206 (resume): Disable range stepping if stepping over a breakpoint or
6207 we have software watchpoints. If range stepping is enabled,
6208 assert the thread is in the stepping range.
6209 (clear_proceed_status_thread): Clear may_range_step.
6210 (handle_inferior_event): Disable range stepping as soon as we know
6211 the thread that hit the event. Re-enable it whenever we're going
6212 to step with a step range.
6213 * remote.c (struct vCont_action_support) <r>: New field.
6214 (use_range_stepping): New global.
6215 (remote_vcont_probe): Handle 'r' action.
6216 (append_resumption): Append an 'r' action if the thread may range
6217 step.
6218 (show_range_stepping): New function.
6219 (set_range_stepping): New function.
6220 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6221 'set range-stepping' and 'show range-stepping' commands.
6222 * NEWS: Mention range stepping, the new vCont;r action, and the
6223 new "set/show range-stepping" commands.
6224
6225 2013-05-23 Yao Qi <yao@codesourcery.com>
6226 Pedro Alves <palves@redhat.com>
6227
6228 * remote.c (struct vCont_action_support): New struct.
6229 (struct remote_state) <support_vCont_t>: Remove field.
6230 <vCont_actions_support>: New field.
6231 (remote_vcont_probe, remote_stop_ns): Update.
6232
6233 2013-05-23 Yao Qi <yao@codesourcery.com>
6234 Pedro Alves <palves@redhat.com>
6235
6236 * gdbthread.h (pc_in_thread_step_range): New declaration.
6237 * thread.c (pc_in_thread_step_range): New function.
6238 * infrun.c (handle_inferior_event): Use it.
6239
6240 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6241
6242 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6243 of sprintf.
6244
6245 2013-05-22 Keith Seitz <keiths@redhat.com>
6246
6247 * ada-lang.c (is_known_support_routine): Add explicit free of
6248 'func_name' from find_frame_funname.
6249 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6250 for func_name from find_frame_funname.
6251 * python/py-frame.c (frapy_name): Add explicit free of
6252 'name' from find_frame_funname.
6253 * stack.c (find_frame_funname): Add comment explaining that
6254 funcp must be freed by the caller.
6255 Return copy of symbol names instead of pointers.
6256 (print_frame): Add a cleanup for 'funname' from
6257 find_frame_funname.
6258 * stack.h (find_frame_funname): Remove "const" from
6259 'funname' parameter.
6260
6261 2013-05-22 Tom Tromey <tromey@redhat.com>
6262
6263 PR c++/15401:
6264 * c-valprint.c (c_value_print): Use value_addr for
6265 references. Convert back to reference type with value_ref.
6266
6267 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6268
6269 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6270 unloaded DLL, it will be done by handle_solib_event. See
6271 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6272 details.
6273
6274 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6275
6276 * ui-out.c: Create typedef ui_out_level_p and define vector
6277 operations for that type.
6278 (struct ui_out): Use a vector instead of an array.
6279 (current_level): Return level from a vector.
6280 (push_level): Create a level in a vector.
6281 (pop_level): Delete a level in a vector.
6282 (ui_out_new): Create initial level zero level, and store in a
6283 vector.
6284 (ui_out_destroy): Add vector cleanup.
6285
6286 2013-05-22 Pedro Alves <palves@redhat.com>
6287
6288 * python/python-internal.h (gdb_Py_DECREF): Tag with
6289 "ARI: editCase function".
6290
6291 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6292
6293 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6294
6295 2013-05-21 Pedro Alves <palves@redhat.com>
6296
6297 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6298 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6299 * python/py-utils.c (py_decref): Don't check for NULL before
6300 calling Py_DECREF.
6301
6302 2013-05-21 Pedro Alves <palves@redhat.com>
6303
6304 * python/py-utils.c (py_decref): Remove extra braces.
6305 (gdb_pymodule_addobject): Remove extra braces.
6306 * python-internal.h (gdb_Py_DECREF): New static inline function.
6307 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6308
6309 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6310
6311 * breakpoints.c (detach_breakpoints): Do not
6312 detach breakpoints locations with loc_type bp_loc_other.
6313
6314 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6315
6316 Workaround Python 2.6.
6317 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6318 a block.
6319
6320 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6321
6322 Code cleanup: constification.
6323 * solib.c (solib_ops): Make return type and ops variable type const.
6324 (set_solib_ops): Make the new_ops parameter and ops variable const.
6325 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6326 (solib_add, solib_keep_data_in_core, clear_solib)
6327 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6328 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6329 const.
6330 * solib.h (set_solib_ops): Make the new_ops parameter const.
6331
6332 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6333
6334 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6335 variable.
6336 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6337 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6338 (SYSTEM_GDBINIT_FILES): New variables.
6339 (all): Add stamp-system-gdbinit.
6340 (stamp-system-gdbinit): New rule.
6341 (clean-system-gdbinit, install-system-gdbinit)
6342 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6343 (install-only): Add dependency on install-system-gdbinit.
6344 (uninstall): Add dependency on uninstall-system-gdbinit.
6345 (clean): Add dependency on clean-system-gdbinit.
6346 * system-gdbinit/elinos.py: New file.
6347 * system-gdbinit/wrs-linux.py: New file.
6348
6349 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6350
6351 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6352
6353 2013-05-21 Hui Zhu <hui@codesourcery.com>
6354
6355 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6356 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6357 * mi/mi-cmd-break.c (ctype.h): New include.
6358 (gdb_obstack.h): New include.
6359 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6360 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6361 (mi_cmd_dprintf_insert): New.
6362 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6363 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6364
6365 2013-05-20 Tom Tromey <tromey@redhat.com>
6366
6367 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6368
6369 2013-05-20 Tom Tromey <tromey@redhat.com>
6370
6371 * python/py-value.c (valpy_get_dynamic_type): Simplify
6372 dynamic_type assignment. Use Py_XINCREF.
6373
6374 2013-05-20 Tom Tromey <tromey@redhat.com>
6375
6376 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6377
6378 2013-05-20 Tom Tromey <tromey@redhat.com>
6379
6380 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6381 (gdbpy_selected_frame): Move object-construction code
6382 out of TRY_CATCH.
6383
6384 2013-05-20 Tom Tromey <tromey@redhat.com>
6385
6386 * python/py-arch.c (gdbpy_initialize_arch): Use
6387 gdb_pymodule_addobject.
6388 * python/py-block.c (gdbpy_initialize_blocks): Use
6389 gdb_pymodule_addobject.
6390 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6391 gdb_pymodule_addobject.
6392 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6393 gdb_pymodule_addobject.
6394 * python/py-event.c (gdbpy_initialize_event_generic): Use
6395 gdb_pymodule_addobject.
6396 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6397 gdb_pymodule_addobject.
6398 * python/py-evts.c (add_new_registry): Use
6399 gdb_pymodule_addobject.
6400 (gdbpy_initialize_py_events): Likewise.
6401 * python/py-finishbreakpoint.c
6402 (gdbpy_initialize_finishbreakpoints): Use
6403 gdb_pymodule_addobject.
6404 * python/py-frame.c (gdbpy_initialize_frames): Use
6405 gdb_pymodule_addobject.
6406 * python/py-function.c (gdbpy_initialize_functions): Use
6407 gdb_pymodule_addobject.
6408 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6409 gdb_pymodule_addobject.
6410 * python/py-infthread.c (gdbpy_initialize_thread): Use
6411 gdb_pymodule_addobject.
6412 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6413 gdb_pymodule_addobject.
6414 * python/py-param.c (gdbpy_initialize_parameters): Use
6415 gdb_pymodule_addobject.
6416 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6417 gdb_pymodule_addobject.
6418 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6419 gdb_pymodule_addobject.
6420 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6421 gdb_pymodule_addobject.
6422 * python/py-type.c (gdbpy_initialize_types): Use
6423 gdb_pymodule_addobject.
6424 * python/py-utils.c (gdb_pymodule_addobject): New function.
6425 * python/py-value.c (gdbpy_initialize_values): Use
6426 gdb_pymodule_addobject.
6427 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6428 * python/python.c (_initialize_python): Use
6429 gdb_pymodule_addobject.
6430
6431 2013-05-20 Tom Tromey <tromey@redhat.com>
6432
6433 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6434 * python/py-param.c (get_set_value, get_show_value): Use
6435 explicit decrefs.
6436 * python/python.c (start_type_printers, apply_type_printers):
6437 Use explicit decrefs.
6438
6439 2013-05-20 Tom Tromey <tromey@redhat.com>
6440
6441 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6442 incref the module.
6443
6444 2013-05-20 Tom Tromey <tromey@redhat.com>
6445
6446 * python/python.c (gdbpy_run_events): Decref the result
6447 of PyObject_CallObject.
6448
6449 2013-05-20 Tom Tromey <tromey@redhat.com>
6450
6451 * python/py-symtab.c (set_sal): Use
6452 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6453 (symtab_and_line_to_sal_object): Update.
6454
6455 2013-05-20 Tom Tromey <tromey@redhat.com>
6456
6457 * python/py-param.c (compute_enum_values): Decref 'item'.
6458
6459 2013-05-20 Tom Tromey <tromey@redhat.com>
6460
6461 * mi/mi-main.c: Include python-internal.h.
6462 (mi_cmd_list_features): Check gdb_python_initialized.
6463 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6464 (python_inferior_exit, python_new_objfile, add_thread_object)
6465 (delete_thread_object, py_free_inferior): Check
6466 gdb_python_initialized.
6467 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6468 gdb_python_initialized.
6469 * python/py-type.c (save_objfile_types): Check
6470 gdb_python_initialized.
6471 * python/python-internal.h (gdb_python_initialized): Declare.
6472 * python/python.c (ensure_python_env): Throw exception if
6473 Python not initialized.
6474 (before_prompt_hook, source_python_script_for_objfile)
6475 (start_type_printers, apply_type_printers,
6476 free_type_printers): Check gdb_python_initialized.
6477 * varobj.c (varobj_get_display_hint)
6478 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6479 (install_new_value_visualizer, varobj_set_visualizer)
6480 (value_get_print_value): Check gdb_python_initialized.
6481
6482 2013-05-20 Tom Tromey <tromey@redhat.com>
6483
6484 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6485 Check errors.
6486 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6487 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6488 Check errors.
6489 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6490 Check errors.
6491 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6492 Check errors.
6493 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6494 Check errors.
6495 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6496 init function to return 'int'.
6497 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6498 Return 'int'. Check errors.
6499 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6500 Check errors.
6501 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6502 Return 'int'. Check errors.
6503 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6504 Check errors.
6505 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6506 Check errors.
6507 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6508 Check errors.
6509 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6510 Check errors.
6511 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6512 Check errors.
6513 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6514 Check errors.
6515 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6516 Check errors.
6517 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6518 Check errors.
6519 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6520 Check errors.
6521 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6522 Check errors.
6523 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6524 Check errors.
6525 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6526 Check errors.
6527 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6528 Check errors.
6529 * python/python-internal.h (gdbpy_initialize_auto_load,
6530 gdbpy_initialize_values, gdbpy_initialize_frames,
6531 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6532 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6533 gdbpy_initialize_blocks, gdbpy_initialize_types,
6534 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6535 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6536 gdbpy_initialize_finishbreakpoints,
6537 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6538 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6539 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6540 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6541 gdbpy_initialize_signal_event,
6542 gdbpy_initialize_breakpoint_event,
6543 gdbpy_initialize_continue_event,
6544 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6545 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6546 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6547 * python/python.c (gdb_python_initialized): New global.
6548 (gdbpy_initialize_events): Return 'int'. Check errors.
6549 (_initialize_python): Check errors. Set
6550 gdb_python_initialized.
6551
6552 2013-05-20 Tom Tromey <tromey@redhat.com>
6553
6554 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6555 Decref the reslut of PyObject_CallMethod.
6556
6557 2013-05-20 Tom Tromey <tromey@redhat.com>
6558
6559 * python/py-event.c (gdbpy_initialize_event_generic): Return
6560 early if PyType_Ready fails.
6561
6562 2013-05-20 Tom Tromey <tromey@redhat.com>
6563
6564 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6565 as 'default' in the switch.
6566
6567 2013-05-20 Tom Tromey <tromey@redhat.com>
6568
6569 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6570 get_addr_from_python calls out of TRY_CATCH.
6571 (infpy_write_memory, infpy_search_memory): Likewise.
6572 * python/py-utils.c (get_addr_from_python): Return negative
6573 value on error. Use TRY_CATCH.
6574 * python/python-internal.h (get_addr_from_python): Use
6575 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6576
6577 2013-05-20 Tom Tromey <tromey@redhat.com>
6578
6579 * python/py-event.c (evpy_emit_event): Decref the
6580 result of PyObject_CallFunctionObjArgs.
6581
6582 2013-05-20 Tom Tromey <tromey@redhat.com>
6583
6584 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6585 Correctly decref.
6586
6587 2013-05-20 Tom Tromey <tromey@redhat.com>
6588
6589 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6590
6591 2013-05-20 Tom Tromey <tromey@redhat.com>
6592
6593 * python/py-event.h (gdbpy_initialize_event_generic): Use
6594 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6595 * python/py-evts.c (add_new_registry): Use
6596 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6597 * python/python-internal.h
6598 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6599
6600 2013-05-20 Tom Tromey <tromey@redhat.com>
6601
6602 * python/py-arch.c (archpy_disassemble): Update.
6603 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6604 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6605 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6606 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6607 macro.
6608 (GDB_PY_HANDLE_EXCEPTION): Update.
6609 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6610
6611 2013-05-20 Tom Tromey <tromey@redhat.com>
6612
6613 * python/python-internal.h (events_object_type): Remove.
6614
6615 2013-05-20 Tom Tromey <tromey@redhat.com>
6616
6617 * python/py-event.h (evpy_emit_event): Use
6618 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6619 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6620 New macro.
6621
6622 2013-05-20 Tom Tromey <tromey@redhat.com>
6623
6624 * py-evtregistry.c (create_event_object): Decref
6625 eventregistry_object if PyList_New fails.
6626
6627 2013-05-20 Tom Tromey <tromey@redhat.com>
6628
6629 * py-cmd.c (gdbpy_string_to_argv): Check result of
6630 PyList_New.
6631
6632 2013-05-20 Tom Tromey <tromey@redhat.com>
6633
6634 * python/python.c (before_prompt_hook): Add cleanup to
6635 decref 'hook'.
6636
6637 2013-05-20 Tom Tromey <tromey@redhat.com>
6638
6639 * python/py-function.c (fnpy_init): Decref result of
6640 PyObject_GetAttrString.
6641
6642 2013-05-20 Tom Tromey <tromey@redhat.com>
6643
6644 * python/py-threadevent.c (get_event_thread): Use
6645 CPYCHECKER_RETURNS_BORROWED_REF.
6646 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6647 New define.
6648 (pspace_to_pspace_object, objfile_to_objfile_object)
6649 (find_thread_object): Use it.
6650
6651 2013-05-20 Tom Tromey <tromey@redhat.com>
6652
6653 * python/py-arch.c (arch_object_type): Use
6654 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6655 * python/py-block.c (block_syms_iterator_object_type):
6656 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6657 * python/py-bpevent.c (breakpoint_event_object_type):
6658 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6659 * python/py-cmd.c (cmdpy_object_type): Use
6660 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6661 * python/py-continueevent.c (continue_event_object_type):
6662 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6663 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6664 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6665 * python/py-events.h (thread_event_object_type):
6666 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6667 * python/py-evtregistry.c (eventregistry_object_type): Use
6668 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6669 * python/py-exitedevent.c (exited_event_object_type):
6670 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6671 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6672 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6673 * python/py-function.c (fnpy_object_type): Use
6674 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6675 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6676 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6677 * python/py-infthread.c (thread_object_type): Use
6678 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6679 * python/py-lazy-string.c (lazy_string_object_type):
6680 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6681 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6682 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6683 * python/py-objfile.c (objfile_object_type): Use
6684 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6685 * python/py-param.c (parmpy_object_type):
6686 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6687 * python/py-progspace.c (pspace_object_type):
6688 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6689 * python/py-signalevent.c (signal_event_object_type):
6690 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6691 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6692 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6693 * python/py-type.c (type_object_type, field_object_type)
6694 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6695 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6696 define.
6697 (value_object_type, block_object_type, symbol_object_type)
6698 (event_object_type, stop_event_object_type, breakpoint_object_type)
6699 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6700
6701 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6702
6703 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6704 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6705
6706 2013-05-20 Doug Evans <dje@google.com>
6707
6708 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6709 For Fission.
6710 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6711 reading_dwo_directly.
6712 (struct signatured_type): New member dwo_unit.
6713 (struct die_reader_specs): New member comp_dir.
6714 (create_signatured_type_table_from_index): Use malloc for
6715 all_type_units instead of objfile's obstack.
6716 (create_all_type_units): Ditto.
6717 (fill_in_sig_entry_from_dwo_entry): New function.
6718 (add_type_unit): New function.
6719 (lookup_dwo_signatured_type): New function.
6720 (lookup_dwp_signatured_type): New function.
6721 (lookup_signatured_type): New arg cu. All callers updated.
6722 (init_cu_die_reader): Initialize comp_dir.
6723 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6724 Change assert of matching type signatures to call error on mismatch.
6725 (lookup_dwo_unit): Add assert.
6726 (init_tu_and_read_dwo_dies): New function.
6727 (init_cutu_and_read_dies): Call it.
6728 (build_type_unit_groups): Handle case of no type unit groups created.
6729 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6730 (lookup_dwo_cutu): Tweak complaint.
6731 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6732 (dwarf2_per_objfile_free): Free all_type_units.
6733
6734 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6735
6736 * windows-nat.c (handle_unload_dll): Add missing empty line.
6737
6738 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6739
6740 * dwarf2read.c (prototyped_function_p): New function.
6741 (read_subroutine_type): Use it.
6742
6743 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6744
6745 * rs6000-aix-tdep.c: De-indent some example code provided
6746 as a comment.
6747
6748 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6749
6750 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6751 region is ok for a hardware watchpoint using the new ptrace interface
6752 on Power servers.
6753
6754 2013-05-17 Doug Evans <dje@google.com>
6755
6756 * NEWS: Mention new maintenance commands check-symtabs, and
6757 expand-symtabs, and renamed check-psymtabs.
6758 * psymtab.c (maintenance_check_psymtabs): Renamed from
6759 maintenance_check_symtabs. Only process already-expanded symbol
6760 tables.
6761 (_initialize_psymtab): Update.
6762 * symmisc.c (maintenance_check_symtabs): New function.
6763 (maintenance_expand_name_matcher): New function
6764 (maintenance_expand_file_matcher): New function
6765 (maintenance_expand_symtabs): New function.
6766 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6767 commands.
6768
6769 2013-05-17 Tom Tromey <tromey@redhat.com>
6770
6771 * python/py-inferior.c (infpy_read_memory): Don't call
6772 PyErr_SetString if PyObject_New fails.
6773 * python/py-frame.c (frame_info_to_frame_object): Don't call
6774 PyErr_SetString if PyObject_New fails.
6775
6776 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6777
6778 * acinclude.m4: Add check for dlopen in libdl.
6779 * configure.ac: Ditto.
6780 * configure: Regenerate.
6781
6782 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6783
6784 * frame.c (frame_stash): Convert to htab.
6785 (frame_addr_hash): New function.
6786 (frame_addr_hash_eq): New function.
6787 (frame_stash_create): Convert function to create
6788 a hash table.
6789 (frame_stash_add): Convert function to add an entry to a hash
6790 table.
6791 (frame_stash_find): Convert function to search the hash table.
6792 (frame_stash_invalidate): Convert function to empty the hash
6793 table.
6794 (get_frame_id): Only add to stash if a frame_id is created.
6795 (_initialize_frame): Call frame_stash_create.
6796
6797 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6798
6799 * configure.ac: Ensure MIG is available when building for GNU Hurd
6800 hosts.
6801 * configure: Regenerate.
6802
6803 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6804
6805 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6806
6807 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6808
6809 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6810 all cleanups are done before returning from this function.
6811
6812 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6813
6814 * utils.h: #include "exceptions.h".
6815 (enum errors): Remove partial declaration.
6816
6817 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6818
6819 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6820 * gdbarch.h, gdbarch.c: Regenerate.
6821 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6822 handling.
6823
6824 * rs6000-aix-tdep.h: New file.
6825 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6826 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6827 "xml-utils.h".
6828 (struct field_info, struct ld_info_desc): New types.
6829 (ld_info32_desc, ld_info64_desc): New static constants.
6830 (struct ld_info): New type.
6831 (rs6000_aix_extract_ld_info): New function.
6832 (rs6000_aix_shared_library_to_xml): Likewise.
6833 (rs6000_aix_ld_info_to_xml): Likewise.
6834 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6835 (rs6000_aix_init_osabi): Add call to
6836 set_gdbarch_core_xfer_shared_libraries_aix.
6837 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6838 Remove "xml-utils.h" include.
6839 (LdInfo): Delete typedef.
6840 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6841 Delete macros.
6842 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6843 Adjust code accordingly.
6844 (rs6000_core_ldinfo): Delete, folded into
6845 rs6000_aix_core_xfer_shared_libraries_aix.
6846 (rs6000_xfer_shared_library): Delete.
6847 (rs6000_xfer_shared_libraries): Reimplement.
6848
6849 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6850
6851 * record.c (record_goto_cmdlist): New.
6852 (cmd_record_goto): Split into this ...
6853 (cmd_record_goto_begin): ... this
6854 (cmd_record_goto_end): ... and this.
6855 (_initialize_record): Change "record goto" to prefix command.
6856 Add commands for "record goto begin" and "record goto end".
6857 Add an alias for "record goto start" to "record goto begin".
6858
6859 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6860
6861 * linespec.c (convert_linespec_to_sals): New comment for
6862 SOURCE_FILENAME assignment.
6863
6864 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6867 internal_warning.
6868
6869 2013-05-14 Tom Tromey <tromey@redhat.com>
6870
6871 * eval.c (parse_and_eval_long): Make 'exp' const.
6872 * value.h (parse_and_eval_long): Update.
6873
6874 2013-05-14 Tom Tromey <tromey@redhat.com>
6875
6876 * ui-file.c (gdb_fopen): Make arguments const.
6877 * ui-file.h (gdb_fopen): Make arguments const.
6878
6879 2013-05-14 Tom Tromey <tromey@redhat.com>
6880
6881 * remote.c (remote_set_trace_notes): Make arguments const.
6882 * target.c (update_current_target): Update cast.
6883 * target.h (to_set_trace_notes): Make arguments const.
6884
6885 2013-05-14 Tom Tromey <tromey@redhat.com>
6886
6887 * go32-nat.c (go32_terminal_info): Make 'args' const.
6888 * inferior.h (child_terminal_info): Update.
6889 * inflow.c (child_terminal_info): Make 'args' const.
6890 * target.c (default_terminal_info): Make 'args' const.
6891 (debug_to_terminal_save_ours): Likewise.
6892 * target.h (struct target_ops) <to_terminal_info>: Make argument
6893 const.
6894
6895 2013-05-13 Tom Tromey <tromey@redhat.com>
6896
6897 * gcore.c (create_gcore_bfd): Make 'filename' const.
6898 * gcore.h (create_gcore_bfd): Make 'filename' const.
6899 * record-full.c (record_full_save): Make 'recfilename' const.
6900 * target.c (target_save_record): Make 'filename' const.
6901 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6902 const.
6903 (target_save_record): Likewise.
6904
6905 2013-05-13 Tom Tromey <tromey@redhat.com>
6906
6907 PR gdb/15338:
6908 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6909 ranges section has been read.
6910
6911 2013-05-13 Tom Tromey <tromey@redhat.com>
6912
6913 PR exp/15364:
6914 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6915 STRUCTOP_PTR>: Return a not_lval value for
6916 EVAL_AVOID_SIDE_EFFECTS.
6917 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6918 for EVAL_AVOID_SIDE_EFFECTS.
6919
6920 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6921
6922 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6923 floating point registers to register type before storing
6924 value.
6925 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6926 Likewise.
6927
6928 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6929 Tom Tromey <tromey@redhat.com>
6930
6931 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6932 New functions.
6933 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6934 Declare.
6935 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6936 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6937 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6938 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6939
6940 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6941 Tom Tromey <tromey@redhat.com>
6942
6943 PR build/15414:
6944 * configure: Rebuild.
6945 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6946 with -Wno-format.
6947
6948 2013-05-10 Pedro Alves <palves@redhat.com>
6949
6950 * remote.c (_initialize_remote): Fix spelling of
6951 qXfer:traceframe-info:read packet in packet config command.
6952
6953 2013-05-10 David Taylor <dtaylor@emc.com>
6954
6955 PR remote/15455
6956
6957 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6958 "QTro" at start of packet.
6959
6960 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6961
6962 * solib-aix.c (solib_aix_relocate_section_addresses):
6963 For the .bss section action, apply the same offset as
6964 the .data section.
6965
6966 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6967
6968 * solib-aix.c (solib_aix_relocate_section_addresses):
6969 Remove FIXME comment.
6970
6971 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6972
6973 PR tdep/15420:
6974 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6975 New functions, directly copied from sparc-sol-thread.c.
6976 * sparc-sol-thread.c: Delete.
6977 * configure.ac: Remove code handling sparc-solaris-thread.c.
6978 * configure: Regenerate.
6979
6980 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6981
6982 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6983 filter logic.
6984 (backtrace_command): Add "no-filters" option parsing.
6985 (_initialize_stack): Alter help to reflect "no-filters" option.
6986 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6987 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6988 (py-frame.o): Add target
6989 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6990 filter files.
6991 * python/python.h: Add new frame filter constants, and flag enum.
6992 (apply_frame_filter): Add definition.
6993 * python/python.c (apply_frame_filter): New non-Python
6994 enabled function.
6995 * python/py-utils.c (py_xdecref): New function.
6996 (make_cleanup_py_xdecref): Ditto.
6997 * python/py-objfile.c: Declare frame_filters dictionary.
6998 (objfpy_dealloc): Add frame_filters dealloc.
6999 (objfpy_new): Initialize frame_filters attribute.
7000 (objfile_to_objfile_object): Ditto.
7001 (objfpy_get_frame_filters): New function.
7002 (objfpy_set_frame_filters): New function.
7003 * python/py-progspace.c: Declare frame_filters dictionary.
7004 (pspy_dealloc): Add frame_filters dealloc.
7005 (pspy_new): Initialize frame_filters attribute.
7006 (pspacee_to_pspace_object): Ditto.
7007 (pspy_get_frame_filters): New function.
7008 (pspy_set_frame_filters): New function.
7009 * python/py-framefilter.c: New file.
7010 * python/lib/gdb/command/frame_filters.py: New file.
7011 * python/lib/gdb/frames.py: New file.
7012 * python/lib/gdb/__init__.py: Initialize global frame_filters
7013 dictionary
7014 * python/lib/gdb/FrameDecorator.py: New file.
7015 * python/lib/gdb/FrameIterator.py: New file.
7016 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7017 * mi/mi-cmds.h: Declare.
7018 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7019 --no-frame-filter logic, and Python frame filter logic.
7020 (stack_enable_frame_filters): New function.
7021 (parse_no_frame_option): Ditto.
7022 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7023 filter logic.
7024 (mi_cmd_stack_list_locals): Ditto.
7025 (mi_cmd_stack_list_args): Ditto.
7026 (mi_cmd_stack_list_variables): Ditto.
7027 * NEWS: Add frame filter note.
7028
7029 2013-05-09 Doug Evans <dje@google.com>
7030
7031 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7032 All callers updated.
7033 (syms_from_objfile): Ditto. Make static.
7034 (symbol_file_add_with_addrs): Renamed from
7035 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7036 num_offsets. All callers updated.
7037 * symfile.h (syms_from_objfile): Delete.
7038
7039 * symfile.c (decrement_reading_symtab): Add assert.
7040 (increment_reading_symtab): Ditto.
7041
7042 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7043
7044 * source.c (forward_search_command): Replace call to getc
7045 by call to fgetc.
7046 (reverse_search_command): Likewise.
7047
7048 2013-05-08 Doug Evans <dje@google.com>
7049
7050 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7051 matching test.
7052
7053 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7054
7055 * sol-thread.c (info_cb): Factorize the code a little.
7056
7057 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7058
7059 * sol-thread.c (info_cb): Rework the output of the "maintenance
7060 info sol-threads" command a bit.
7061
7062 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7063
7064 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7065 Replace ti.ti_startfunc by ti.ti_pc.
7066
7067 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7068
7069 * solib-aix.c (solib_aix_free_library_list): New function
7070 for the case where HAVE_LIBEXPAT is not defined.
7071
7072 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7073
7074 PR breakpoints/15413:
7075 * breakpoint.c (condition_completer): Simplify the code to
7076 disconsider multiple locations of breakpoints when completing the
7077 "condition" command.
7078
7079 2013-05-07 Pierre Muller <muller@sourceware.org>
7080
7081 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7082 instead of <sys/wait.h>.
7083
7084 2013-05-07 Pierre Muller <muller@sourceware.org>
7085
7086 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7087 trailing new line from warning message.
7088
7089 2013-05-07 Pierre Muller <muller@sourceware.org>
7090
7091 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7092 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7093
7094 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7095
7096 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7097 error message (ARI fix).
7098
7099 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7100
7101 * features/library-list-aix.dtd: Replace library-list by
7102 library-list-aix.
7103 * rs6000-nat.c: Replace library-list by library-list-aix
7104 throughout.
7105 * solib-aix.c: Likewise.
7106
7107 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7108
7109 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7110 Renames TARGET_OBJECT_AIX_LIBRARIES.
7111 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7112 TARGET_OBJECT_LIBRARIES_AIX throughout.
7113 * solib-aix.c: Likwise.
7114
7115 2013-05-07 Yao Qi <yao@codesourcery.com>
7116
7117 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7118 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7119
7120 2013-05-07 Yao Qi <yao@codesourcery.com>
7121
7122 * solib-dsbt.c (enable_break): Declare.
7123 (dsbt_current_sos): Remove call to enable_break2.
7124 (enable_break2): Rename to enable_break. Set solib breakpoint
7125 on '_dl_debug_state'.
7126 (enable_break): Remove.
7127
7128 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7129
7130 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7131 debug state prior to replicating existing hardware watchpoints or
7132 breakpoints.
7133
7134 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7135
7136 * gcore.c (gcore_create_callback): Ignore sections with
7137 separate_debug_objfile_backlink != NULL.
7138
7139 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7140 Andrew Jenner <andrew@codesourcery.com>
7141 Chung-Lin Tang <cltang@codesourcery.com>
7142 Julian Brown <julian@codesourcery.com>
7143
7144 Based on the nios2-elf port from Altera Corporation.
7145
7146 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7147 nios2-linux-tdep.o.
7148 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7149 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7150 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7151 * nios2-tdep.h: New.
7152 * nios2-tdep.c: New.
7153 * nios2-linux-tdep.c: New.
7154 * features/Makefile (WHICH): Add nios2-linux.
7155 (nios2-linux-expedite): Set.
7156 * features/nios2-cpu.xml: New.
7157 * features/nios2.xml: New.
7158 * features/nios2-linux.xml: New.
7159 * features/nios2.c: New (autogenerated).
7160 * features/nios2-linux.c: New (autogenerated).
7161 * regformats/nios2-linux.dat: New (autogenerated).
7162 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7163 and commands.
7164
7165 2013-05-06 Doug Evans <dje@google.com>
7166
7167 * symfile.c: Whitespace cleanup.
7168
7169 * solist.h (struct target_so_ops): New member clear_so.
7170 * solib-svr4.c (svr4_clear_so): New function.
7171 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7172 * solib.c (clear_so): Renamed from free_so_symbols.
7173 All callers updated. Call target clear_so if it exists.
7174
7175 2013-05-06 Tom Tromey <tromey@redhat.com>
7176
7177 * ada-lang.c (ada_value_primitive_packed_val): Don't
7178 call value_incref.
7179 * value.c (set_value_parent): Incref the new parent and decref
7180 the old parent.
7181 (value_copy, value_primitive_field): Use set_value_parent.
7182
7183 2013-05-06 Tom Tromey <tromey@redhat.com>
7184
7185 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7186 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7187 if needed.
7188 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7189 * dwarf2read.c (write_constant_as_bytes)
7190 (dwarf2_fetch_constant_bytes): New functions.
7191
7192 2013-05-06 Tom Tromey <tromey@redhat.com>
7193
7194 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7195 parameters.
7196 (dwarf2_const_value_attr): Update.
7197
7198 2013-05-06 Tom Tromey <tromey@redhat.com>
7199
7200 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7201 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7202 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7203 Remove declaration.
7204
7205 2013-05-06 Tom Tromey <tromey@redhat.com>
7206
7207 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7208 objfile's obstack.
7209
7210 2013-05-06 Doug Evans <dje@google.com>
7211
7212 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7213 * stabsread.h (process_one_symbol): Update declaration.
7214 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7215 * elfread.c (elf_symfile_relocate_probe): Ditto.
7216 * psymtab.c (relocate_psymtabs): Ditto.
7217 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7218 (objfile_relocate): Ditto.
7219 * objfiles.h (objfile_relocate): Update declaration.
7220 * symfile.c (relative_addr_info_to_section_offsets): Constify
7221 addrs parameter.
7222 (default_symfile_offsets): Ditto.
7223 (syms_from_objfile_1): Constify offsets parameter.
7224 (syms_from_objfile): Ditto.
7225 (symbol_file_add_with_addrs_or_offsets): Ditto.
7226 (symfile_map_offsets_to_segments): Constify data parameter.
7227 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7228 delta parameters of member relocate.
7229 (struct sym_probe_fns): Constify new_offsets,
7230 delta parameters of member sym_relocate_probe.
7231 (struct sym_fns): Constify section_addr_info parameter of member
7232 sym_offsets.
7233 (relative_addr_info_to_section_offsets): Update declaration.
7234 (default_symfile_offsets): Ditto.
7235 (syms_from_objfile): Ditto.
7236 (symfile_map_offsets_to_segments): Ditto.
7237
7238 * symfile.c (syms_from_objfile_1): Use correct section count when
7239 objfile->sf == NULL.
7240
7241 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7242
7243 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7244
7245 2013-05-06 Doug Evans <dje@google.com>
7246
7247 * psympriv.h (struct partial_symtab): Augment comment for member
7248 section_offsets.
7249
7250 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7251
7252 Reimplement shared library support on ppc-aix...
7253 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7254 * features/library-list-aix.dtd: New file.
7255 * solib-aix.h, solib-aix.c: New file.
7256 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7257 (rs6000_find_toc_address_hook): Delete.
7258 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7259 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7260 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7261 "xml-utils.h".
7262 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7263 (vmap_symtab, fixup_breakpoints): Delete.
7264 (rs6000_xfer_shared_libraries): New function.
7265 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7266 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7267 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7268 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7269 (rs6000_xfer_shared_library): New function.
7270 (find_toc_address): Delete.
7271 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7272 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7273 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7274 before creating minimal symbol. Adjust function description
7275 accordingly.
7276 (scan_xcoff_symtab): Replace call to
7277 prim_record_minimal_symbol_and_info by call to
7278 record_minimal_symbol.
7279 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7280 around default_symfile_offsets.
7281 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7282 powerpc-aix targets.
7283 * config/rs6000/nm-rs6000.h: Delete.
7284 * config/powerpc/aix.mh (NAT_FILE): Delete.
7285 (NATDEPFILES): Remove xcoffsolib.o.
7286 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7287 (ALL_TARGET_OBS): Add solib-aix.o.
7288 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7289 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7290 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7291 * xcoffsolib.h, xcoffsolib.c: Delete.
7292
7293 * solib.c (reload_shared_libraries): Remove reference to
7294 SOLIB_CREATE_INFERIOR_HOOK.
7295 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7296 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7297 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7298 comment.
7299 * corelow.c (deprecated_core_resize_section_table): Delete.
7300 * exec.c: Remove include of xcoffsolib.h".
7301 (map_vmap, vmap): Delete.
7302 (exec_close_1): Remove references to vmap.
7303 (exec_file_attach): Remove vmap handling code, and reference
7304 to DEPRECATED_IBM6000_TARGET.
7305 (bfdsec_to_vmap): Delete.
7306 (exec_files_info): Remove block of code handling VMAP.
7307 * infcmd.c (post_create_inferior): Remove reference to
7308 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7309 * infrun.c (follow_exec): Remove reference to
7310 SOLIB_CREATE_INFERIOR_HOOK.
7311 * stack.c (print_frame): Remove reference to PC_SOLIB.
7312 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7313 (dsbt_relocate_main_executable): Likewise.
7314 * solib-frv.c (frv_current_sos): Likewise.
7315
7316 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7317
7318 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7319 to target_write_memory and target_read_memory.
7320
7321 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7322
7323 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7324 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7325
7326 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7327
7328 * darwin-nat.c: Replace all "%x" instances in format strings
7329 into "0x%x" throughout.
7330
7331 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7332
7333 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7334 gdb_assert by call to MACH_CHECK_ERROR.
7335 (darwin_attach_pid): Raise an error rather than a failed
7336 assertion when various system calls failed. Report a warning
7337 instead of raising a failed assertion when PREV_NOT is not NULL
7338 after call to mach_port_request_notification.
7339 (darwin_ptrace_me): Raise an error rather than a failed
7340 assertion when read returns nonzero.
7341
7342 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7343
7344 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7345
7346 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7347
7348 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7349
7350 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7351
7352 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7353 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7354 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7355 a stale cleanup. Fix double free of NAME.
7356
7357 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7358
7359 * windows-nat.c (windows_delete_thread): Accept an additional
7360 argument, the thread's exit code, and announce thread death when
7361 print_thread_events is non-zero and we are deleting a thread that
7362 is not the main thread.
7363 (get_windows_debug_event): Pass thread exit code to
7364 windows_delete_thread.
7365
7366 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7367
7368 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7369 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7370 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7371 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7372 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7373 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7374 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7375 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7376 (gdbarch_tdep): New struct.
7377 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7378 E_NUM_REGS.
7379 (v850e3v5_register_name): New function.
7380 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7381 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7382 code handling the struct return conventions for the RH850 ABI.
7383 Update all callers.
7384 (v850_eight_byte_align_p): New function.
7385 (v850_push_call_dummy): Push structs by value, not by reference
7386 for the RH850 ABI. Add support for eight byte alignment.
7387 (v850_dbtrap_breakpoint_from_pc): New function.
7388 (v850_gdbarch_init): Add ABI detection code. Register
7389 v850e3v5_register_name for the v850e3v5 architecture. Set the
7390 number of registers for v850e3v5. Register
7391 v850_dbtrap_breakpoint_from_pc as appropriate.
7392 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7393
7394 2013-05-03 Doug Evans <dje@google.com>
7395
7396 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7397 of bfd_count_sections.
7398 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7399 * symfile.c (default_symfile_offsets): Ditto.
7400 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7401 one entry, not bfd_count_sections entries.
7402
7403 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7404
7405 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7406 `save' and `restore' register groups. Don't include SPL
7407 or SPH in these groups.
7408 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7409 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7410 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7411 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7412 dwarf2_append_unwinders().
7413
7414 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7415
7416 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7417 ignore SIGINT and SIGTRAP in case these internal signals are
7418 caught explicitely.
7419
7420 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7421
7422 * darwin-nat.c (darwin_read_write_inferior): Change types
7423 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7424 of copy_count to "mach_msg_type_number_t".
7425 (darwin_read_dyld_info): Change type of parameter
7426 rdaddr to "gdb_byte *".
7427
7428 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7429
7430 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7431 of &info->load_map from "char *" to "gdb_byte *".
7432
7433 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7434
7435 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7436 from "char *" to "gdb_byte *".
7437 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7438
7439 2013-04-30 Doug Evans <dje@google.com>
7440
7441 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7442 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7443 DWO stub. If DWO isn't found, just use stub.
7444 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7445
7446 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7447 calling init_cutu_and_read_dies.
7448
7449 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7450
7451 * target-descriptions.c (maint_print_c_tdesc_cmd):
7452 Add case to parse structures as register types and
7453 bitfields.
7454
7455 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7456
7457 * MAINTAINERS (Write After Approval): Add myself to the list.
7458
7459 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7460
7461 * sol-thread.c (rw_common): Change type of parameter "buf"
7462 to "gdb_byte *".
7463 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7464 rw_common to "gdb_byte *" instead of "char *".
7465
7466 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7467
7468 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7469 of local variable msym to const struct bound_minimal_symbol.
7470 Adjust use accordingly.
7471 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7472
7473 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7474
7475 * i386gnu-nat.c (CREG_OFFSET): New macro.
7476 (creg_offset): New array.
7477 (CREG_ADDR): Use creg_offset instead of reg_offset.
7478
7479 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7480
7481 * mep-tdep.c (mep_write_pc): Delete.
7482 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7483 Add call to set_gdbarch_pc_regnum.
7484
7485 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7486
7487 * common/filestuff.c: Replace #include <dirent.h> by
7488 #include "gdb_dirent.h".
7489
7490 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7491
7492 * common/filestuff.c: Replace #include <sys/stat.h> by
7493 #include "gdb_stat.h".
7494
7495 2013-04-29 Pierre Muller <muller@sourceware.org>
7496
7497 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7498 editCase function rule.
7499 (get_DW_AT_signature_type): Likewise.
7500
7501 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7502
7503 * m32r-tdep.c (m32r_write_pc): Delete.
7504 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7505 Add call to set_gdbarch_pc_regnum.
7506
7507 2013-04-29 Pierre Muller <muller@sourceware.org>
7508
7509 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7510
7511 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7512
7513 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7514
7515 2013-04-28 Yao Qi <yao@codesourcery.com>
7516
7517 * solib-dsbt.c (fetch_loadmap): Re-indent.
7518 (displacement_from_map, enable_break2): Likewise.
7519 (dsbt_relocate_section_addresses): Likewise.
7520
7521 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7522
7523 GDB 7.6 released.
7524
7525 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7526
7527 PR corefiles/14983:
7528 * dwarf2read.c (process_full_comp_unit): Always create a static
7529 block.
7530
7531 2013-04-25 Hui Zhu <hui@codesourcery.com>
7532
7533 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7534 to loc->cmd_bytecode.
7535
7536 2013-04-24 Doug Evans <dje@google.com>
7537
7538 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7539
7540 2013-04-22 Keith Seitz <keiths@redhat.com>
7541
7542 * tracepoint.c (trace_save): Call the writer's start method.
7543
7544 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7545
7546 PR gdb/10462
7547 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7548 before argument.
7549
7550 2013-04-23 Tom Tromey <tromey@redhat.com>
7551
7552 * common/filestuff.c: Check USE_WIN32API before including
7553 sys/socket.h.
7554 (HAVE_F_GETFD): New define.
7555 (mark_cloexec): Check HAVE_F_GETFD.
7556 (gdb_open_cloexec): Change 'mode' to unsigned long.
7557 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7558 (gdb_pipe_cloexec): Check HAVE_PIPE.
7559 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7560 long.
7561
7562 2013-04-23 Hui Zhu <hui@codesourcery.com>
7563
7564 PR gdb/15293
7565 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7566
7567 2013-04-23 Hui Zhu <hui@codesourcery.com>
7568
7569 PR gdb/15165
7570 * breakpoint.c (dprintf_print_recreate): New.
7571 (save_breakpoints): Let it not save dprintf commands.
7572 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7573
7574 2013-04-22 Tom Tromey <tromey@redhat.com>
7575
7576 PR gdb/7912:
7577 * Makefile.in (SFILES): Add filestuff.c
7578 (COMMON_OBS): Add filestuff.o.
7579 (filestuff.o): New target.
7580 * auto-load.c (auto_load_objfile_script_1): Use
7581 gdb_fopen_cloexec.
7582 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7583 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7584 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7585 * common/agent.c (gdb_connect_sync_socket): Use
7586 gdb_socket_cloexec.
7587 * common/filestuff.c: New file.
7588 * common/filestuff.h: New file.
7589 * common/linux-osdata.c (linux_common_core_of_thread)
7590 (command_from_pid, commandline_from_pid, print_source_lines)
7591 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7592 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7593 gdb_fopen_cloexec.
7594 * common/linux-procfs.c (linux_proc_get_int)
7595 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7596 * config.in, configure: Rebuild.
7597 * configure.ac: Don't check for sys/socket.h. Check for
7598 fdwalk, pipe2.
7599 * corelow.c (core_open): Use gdb_open_cloexec.
7600 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7601 * fork-child.c (fork_inferior): Call close_most_fds.
7602 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7603 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7604 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7605 Use gdb_fopen_cloexec.
7606 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7607 gdb_open_cloexec.
7608 (linux_async_pipe): Use gdb_pipe_cloexec.
7609 * remote-fileio.c (remote_fileio_func_open): Use
7610 gdb_open_cloexec.
7611 * remote.c (remote_file_put, remote_file_get): Use
7612 gdb_fopen_cloexec.
7613 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7614 close_most_fds.
7615 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7616 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7617 * solib.c (solib_find): Use gdb_open_cloexec.
7618 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7619 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7620 (tfile_open): Use gdb_open_cloexec.
7621 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7622 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7623 * xml-support.c (xml_fetch_content_from_file): Use
7624 gdb_fopen_cloexec.
7625 * main.c (captured_main): Call notice_open_fds.
7626
7627 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7628
7629 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7630 'char *' to 'gdb_byte *'.
7631 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7632 'gdb_byte'.
7633
7634 2013-04-22 Yao Qi <yao@codesourcery.com>
7635
7636 * infrun.c: Fix typo in comment.
7637
7638 2013-04-22 Andrew Haley <aph@redhat.com>
7639
7640 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7641 instead of "long".
7642
7643 2013-04-20 Yao Qi <yao@codesourcery.com>
7644
7645 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7646 'char *' to 'gdb_byte *'. Cast the return value of
7647 'bt_ctf_get_char_array' to 'gdb_byte *'.
7648
7649 2013-04-19 Pedro Alves <palves@redhat.com>
7650
7651 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7652 -Wpointer-sign.
7653 * configure: Regenerate.
7654
7655 2013-04-19 Pedro Alves <palves@redhat.com>
7656
7657 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7658 'void *'.
7659
7660 2013-04-19 Pedro Alves <palves@redhat.com>
7661
7662 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7663 Change type of 'myaddr' parameter to gdb_byte pointer.
7664 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7665 to 'long long' pointer instead of to 'unsigned long long'.
7666 (monitor_write_memory_block, monitor_read_memory_single)
7667 (monitor_read_memory): Change type of 'myaddr' parameter to
7668 gdb_byte pointer.
7669
7670 2013-04-19 Pedro Alves <palves@redhat.com>
7671
7672 * record.c (validate_history_size): Make parameter 'setting'
7673 unsigned.
7674
7675 2013-04-19 Pedro Alves <palves@redhat.com>
7676
7677 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7678 to 'gdb_byte *'.
7679
7680 2013-04-19 Pedro Alves <palves@redhat.com>
7681
7682 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7683 local to int.
7684
7685 2013-04-19 Pedro Alves <palves@redhat.com>
7686
7687 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7688 * ada-tasks.c (read_fat_string_value): Likewise.
7689
7690 2013-04-19 Pedro Alves <palves@redhat.com>
7691
7692 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7693 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7694 'offset', and adjust.
7695
7696 2013-04-19 Pedro Alves <palves@redhat.com>
7697
7698 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7699 (read_index_from_section): Add cast to 'char *'.
7700
7701 2013-04-19 Pedro Alves <palves@redhat.com>
7702
7703 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7704
7705 2013-04-19 Pedro Alves <palves@redhat.com>
7706
7707 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7708
7709 2013-04-19 Pedro Alves <palves@redhat.com>
7710
7711 * record-full.c (record_full_get_bookmark): Change local 'ret'
7712 type to char * and add cast to gdb_byte *.
7713 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7714 string.
7715 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7716
7717 2013-04-19 Pedro Alves <palves@redhat.com>
7718
7719 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7720 * python/py-prettyprint.c (print_string_repr): Change type of
7721 'output' local to char *. Add cast to gdb_byte * in
7722 LA_PRINT_STRING call.
7723 (print_children): Change type of 'output' local to char *.
7724 * python/py-value.c (valpy_string): Add cast to const char * in
7725 PyUnicode_Decode call.
7726
7727 2013-04-19 Pedro Alves <palves@redhat.com>
7728
7729 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7730 and change its type to 'const char *'. Adjust.
7731 (mips_send_packet): Add cast to 'char *', and remove cast to
7732 'unsigned char *'.
7733 (mips_receive_packet): Remove cast to 'unsigned char *'.
7734 (mips_load_srec): Use bfd_byte.
7735 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7736 (pmon_checkset): Make 'value' parameter unsigned.
7737
7738 2013-04-19 Pedro Alves <palves@redhat.com>
7739
7740 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7741
7742 2013-04-19 Pedro Alves <palves@redhat.com>
7743
7744 * remote.c (remote_write_bytes_aux, compare_sections_command)
7745 (remote_read_qxfer)
7746 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7747 (remote_hostio_readlink, remote_bfd_iovec_pread)
7748 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7749 binary buffer, and char when buffer is used as string.
7750 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7751 (trace_save, tfile_open, traceframe_walk_blocks)
7752 (tfile_fetch_registers): Likewise.
7753
7754 2013-04-19 Pedro Alves <palves@redhat.com>
7755
7756 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7757 buffer and size_t size. Adjust.
7758 * ser-base.h (ser_base_write): Adjust.
7759 * ser-go32.c (cnts): Change type to size_t.
7760 (dos_write): Change prototype -- take 'void *'
7761 buffer and size_t size. Adjust.
7762 (dos_info): Print elements of 'cnts' as unsigned long.
7763 * serial.c (serial_write): Likewise.
7764 * serial.h (serial_write): Adjust.
7765 (struct serial_ops) <write>: Change prototype -- take 'void *'
7766 buffer and size_t size. Adjust.
7767
7768 2013-04-19 Pedro Alves <palves@redhat.com>
7769
7770 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7771 gdb_byte *.
7772 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7773
7774 2013-04-19 Pedro Alves <palves@redhat.com>
7775
7776 * alpha-tdep.c (alpha_extract_return_value): Use
7777 regcache_cooked_read_unsigned to read 'v0'.
7778
7779 2013-04-19 Pedro Alves <palves@redhat.com>
7780
7781 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7782 parameters 'at', 'as' and 'offset' to uint32_t.
7783
7784 2013-04-19 Pedro Alves <palves@redhat.com>
7785
7786 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7787 'is64' to signed 'int'.
7788
7789 2013-04-19 Pedro Alves <palves@redhat.com>
7790
7791 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7792 parameter to int *.
7793
7794 2013-04-19 Pedro Alves <palves@redhat.com>
7795
7796 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7797 'insnbuf' buffer type to unsigned int[].
7798
7799 2013-04-19 Pedro Alves <palves@redhat.com>
7800
7801 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7802
7803 2013-04-19 Pedro Alves <palves@redhat.com>
7804
7805 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7806 unsigned long *.
7807
7808 2013-04-19 Pedro Alves <palves@redhat.com>
7809
7810 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7811 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7812 UINT_MAX.
7813 * mips-tdep.c (heuristic_fence_post): Change type to int.
7814 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7815
7816 2013-04-19 Pedro Alves <palves@redhat.com>
7817
7818 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7819 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7820 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7821
7822 2013-04-19 Pedro Alves <palves@redhat.com>
7823
7824 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7825 it to get a string view of the byte buffer.
7826 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7827 type to gdb_byte *. Adjust.
7828 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7829 Change local to char *.
7830 * solib-darwin.c (find_program_interpreter): Change return type to
7831 char *. Adjust.
7832 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7833 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7834 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7835 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7836 * solib-svr4.c (find_program_interpreter): Change return type to
7837 char *. Adjust.
7838 (enable_break): Change local 'interp_name' to char *.
7839 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7840 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7841 (spu_pseudo_register_write_spu): Use char for string buffer.
7842 Adjust.
7843 (info_spu_event_command, info_spu_signal_command): Add casts to
7844 'char *'.
7845
7846 2013-04-19 Pedro Alves <palves@redhat.com>
7847
7848 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7849 gdb_byte[].
7850 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7851 * ada-lang.c (ada_value_assign): Use gdb_byte.
7852 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7853 (alphanbsd_sigtramp_offset): Use gdb_byte.
7854 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7855 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7856 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7857 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7858 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7859 * arm-tdep.c (arm_stub_unwind_sniffer)
7860 (arm_displaced_init_closure): Use gdb_byte.
7861 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7862 (arm_default_thumb_le_breakpoint)
7863 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7864 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7865 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7866 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7867 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7868 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7869 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7870 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7871 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7872 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7873 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7874 (cris_store_return_value, cris_extract_return_value): Use
7875 gdb_byte.
7876 (constraint): Change type of parameter to char * from signed
7877 char*. Use gdb_byte.
7878 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7879 of local buffer to gdb_byte *.
7880 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7881 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7882 (add_address_entry): Change type of local buffer to gdb_byte[].
7883 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7884 (frv_push_dummy_call): Use gdb_byte.
7885 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7886 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7887 (hppa_hpux_supply_save_state): Use gdb_byte.
7888 * hppa-tdep.c (hppa32_push_dummy_call)
7889 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7890 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7891 (slotN_contents, replace_slotN_contents): Change type of parameter
7892 to gdb_byte *.
7893 (fetch_instruction, ia64_pseudo_register_write)
7894 (ia64_register_to_value, ia64_value_to_register)
7895 (ia64_extract_return_value, ia64_store_return_value)
7896 (ia64_push_dummy_call): Use gdb_byte.
7897 * m32c-tdep.c (m32c_return_value): Remove cast.
7898 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7899 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7900 gdb_byte.
7901 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7902 * mn10300-tdep.c (mn10300_store_return_value)
7903 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7904 gdb_byte.
7905 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7906 (moxie_process_record): Remove casts.
7907 * ppc-ravenscar-thread.c (supply_register_at_address)
7908 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7909 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7910 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7911 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7912 * remote.c (compare_sections_command): Use gdb_byte.
7913 * score-tdep.c (score7_free_memblock): Change type of parameter to
7914 gdb_byte *.
7915 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7916 gdb_byte *. Use gdb_byte.
7917 (sh_push_dummy_call_fpu): Use gdb_byte.
7918 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7919 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7920 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7921 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7922 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7923 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7924 (sh64_store_return_value, sh64_register_convert_to_virtual):
7925 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7926 (sh64_pseudo_register_write): Use gdb_byte.
7927 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7928 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7929 buffer.
7930 (irix_current_sos): Use gdb_byte.
7931 * solib-som.c (som_current_sos): Use gdb_byte.
7932 * sparc-ravenscar-thread.c (supply_register_at_address)
7933 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7934 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7935 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7936 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7937 'gdb_byte *'.
7938 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7939 'gdb_byte *'.
7940 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7941 * xstormy16-tdep.c (xstormy16_extract_return_value)
7942 (xstormy16_store_return_value): Change parameter type to
7943 'gdb_byte *'. Adjust.
7944 (xstormy16_push_dummy_call): Use gdb_byte.
7945 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7946 (call0_analyze_prologue, execute_code): Use gdb_byte.
7947
7948 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7949 Pedro Alves <palves@redhat.com>
7950
7951 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7952 value contents.
7953
7954 2013-04-17 Doug Evans <dje@google.com>
7955
7956 * dwarf2read.c (struct signatured_type): New member type.
7957 (struct attribute): Replace member signatured_type with signature.
7958 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7959 (read_call_site_scope): Call follow_die_ref instead of
7960 follow_die_ref_or_sig.
7961 (read_structure_type): Rewrite handling of signatured types.
7962 (read_enumeration_type): Ditto.
7963 (read_attribute_value): Update.
7964 (build_error_marker_type): New function.
7965 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7966 Don't call error for bad types, just build an error marker type.
7967 (dump_die_shallow): Update.
7968 (follow_die_sig_1): Renamed from follow_die_sig.
7969 Don't call error for bad types, instead return NULL.
7970 (follow_die_sig): New function.
7971 (get_signatured_type, get_DW_AT_signature_type): New functions.
7972
7973 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7974
7975 * aarch64-tdep.c (aarch64_write_pc): Removed.
7976 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7977 function.
7978
7979 2013-04-17 Yao Qi <yao@codesourcery.com>
7980
7981 * top.c (print_gdb_configuration): Print configure-time
7982 parameter on using libbabeltrace or not.
7983
7984 2013-04-16 Pedro Alves <palves@redhat.com>
7985
7986 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7987
7988 2013-04-16 Pedro Alves <palves@redhat.com>
7989
7990 * common/glibc_thread_db.h: Update from upstream glibc
7991 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7992
7993 2013-04-16 Pedro Alves <palves@redhat.com>
7994
7995 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7996 * common/glibc_thread_db.h: ... this new file ...
7997 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7998
7999 2013-04-16 Will Newton <will.newton@gmail.com>
8000 Pedro Alves <palves@redhat.com>
8001
8002 PR build/11881
8003
8004 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8005 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8006 HAVE_THREAD_DB_H.
8007
8008 2013-04-16 Pedro Alves <palves@redhat.com>
8009 Eli Zaretskii <eliz@gnu.org>
8010
8011 * NEWS: Mention "set foo unlimited".
8012
8013 2013-04-15 Doug Evans <dje@google.com>
8014
8015 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8016 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8017 (create_dwo_cu_reader): Renamed from
8018 create_dwo_debug_info_hash_table_reader.
8019 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8020 Remove support for multiple CUs in a DWO file.
8021 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8022
8023 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8024 instead of phex.
8025 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8026 (create_dwo_in_dwp): Ditto.
8027
8028 2013-04-15 Tom Tromey <tromey@redhat.com>
8029
8030 * NEWS: Move recent entries into "since 7.6" section.
8031
8032 2013-04-15 Tom Tromey <tromey@redhat.com>
8033
8034 PR c++/13588:
8035 * NEWS: Update.
8036 * break-catch-throw.c (struct exception_catchpoint)
8037 <exception_rx, pattern>: New fields.
8038 (fetch_probe_arguments, dtor_exception_catchpoint)
8039 (check_status_exception_catchpoint)
8040 (print_one_detail_exception_catchpoint): New functions.
8041 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8042 Compile regular expression if needed.
8043 (extract_exception_regexp): New function.
8044 (catch_exception_command_1): Use extract_exception_regexp.
8045 (compute_exception): Use fetch_probe_arguments.
8046 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8047 and check_status fields.
8048 * cp-abi.c (cplus_typename_from_type_info): New function.
8049 * cp-abi.h (cplus_typename_from_type_info): Declare.
8050 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8051 * gdb_regex.h (compile_rx_or_error): Declare.
8052 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8053 comment.
8054 (init_gnuv3_ops): Set get_type_from_type_info field.
8055 * probe.c (compile_rx_or_error): Move...
8056 * utils.c (compile_rx_or_error): ... here.
8057
8058 2013-04-15 Tom Tromey <tromey@redhat.com>
8059
8060 PR c++/15176:
8061 * NEWS: Update.
8062 * break-catch-throw.c (compute_exception): New function.
8063 (exception_funcs): New global.
8064 (_initialize_break_catch_throw): Create $_exception.
8065 * cp-abi.c (cplus_type_from_type_info): New function.
8066 * cp-abi.h (cplus_type_from_type_info): Declare.
8067 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8068 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8069 (gnuv3_get_type_from_type_info): New functions.
8070 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8071
8072 2013-04-15 Tom Tromey <tromey@redhat.com>
8073
8074 * break-catch-throw.c (struct exception_names): New.
8075 (exception_functions): Change type.
8076 (re_set_exception_catchpoint): Look for SDT probes.
8077
8078 2013-04-15 Tom Tromey <tromey@redhat.com>
8079
8080 PR c++/10119:
8081 * break-catch-throw.c (exception_functions): New global.
8082 (gnu_v3_exception_catchpoint_ops): Move earlier.
8083 (struct exception_catchpoint): New.
8084 (classify_exception_breakpoint): Rewrite.
8085 (re_set_exception_catchpoint): New function.
8086 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8087 Allocate a struct exception_catchpoint.
8088 (catch_exception_command_1): Update.
8089 (initialize_throw_catchpoint_ops): Set 're_set' method.
8090
8091 2013-04-15 Tom Tromey <tromey@redhat.com>
8092
8093 * Makefile.in (SFILES): Add break-catch-throw.c
8094 (COMMON_OBS): Add break-catch-throw.o.
8095 * break-catch-throw.c: New file.
8096 * breakpoint.c: Move exception-catching code to new file.
8097 (ep_parse_optional_if_clause): No longer static.
8098 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8099
8100 2013-04-15 Tom Tromey <tromey@redhat.com>
8101
8102 PR c++/9065:
8103 * NEWS: Update.
8104 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8105 * c-exp.y (TYPEID): New token.
8106 (exp): Add new TYPEID productions.
8107 (ident_tokens): Add "typeid".
8108 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8109 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8110 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8111 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8112 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8113 case.
8114 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8115 (build_std_type_info_type, gnuv3_get_typeid_type)
8116 (gnuv3_get_typeid): New functions.
8117 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8118 new fields on ABI object.
8119 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8120 * std-operator.def (OP_TYPEID): New.
8121
8122 2013-04-15 Tom Tromey <tromey@redhat.com>
8123
8124 * elfread.c (elf_symtab_read): Install versioned symbol under
8125 unversioned name as well.
8126
8127 2013-04-15 Tom Tromey <tromey@redhat.com>
8128
8129 PR c++/11990:
8130 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8131 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8132 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8133 (gdb_demangle): New function.
8134 * cp-support.h (gdb_demangle): Declare.
8135 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8136 (dwarf2_name): Use gdb_demangle.
8137 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8138 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8139 suffixes from name.
8140 (gnuv3_print_method_ptr): Use gdb_demangle.
8141 * jv-lang.c (java_demangle): Use gdb_demangle.
8142 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8143 * language.c (unk_lang_demangle): Use gdb_demangle.
8144 * symtab.c (symbol_find_demangled_name)
8145 (demangle_for_lookup): Use gdb_demangle.
8146
8147 2013-04-15 Tom Tromey <tromey@redhat.com>
8148
8149 PR c++/12824:
8150 * NEWS: Update.
8151 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8152 New constant.
8153 (classify_exception_breakpoint): New function.
8154 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8155 (print_mention_exception_catchpoint)
8156 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8157 (catch_exception_command_1): Handle "rethrow" catchpoint.
8158 (catch_rethrow_command): New function.
8159 (_initialize_breakpoint): Add "catch rethrow" command.
8160
8161 2013-04-15 Pierre Muller <muller@sourceware.org>
8162
8163 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8164 set_gdbarch_write_pc as deprecated anymore.
8165
8166 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8167
8168 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8169 declarations.
8170
8171 2013-04-13 Yao Qi <yao@codesourcery.com>
8172
8173 * ctf.c (_initialize_ctf): Include "completer.h".
8174 Call add_target_with_completer instead of add_target.
8175
8176 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8177
8178 Fix GDB regression related to PR binutils/14813.
8179 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8180 * minidebug.c (lzma_close): Add return value comment.
8181 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8182 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8183 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8184
8185 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8186
8187 * config.in: Regenerate.
8188
8189 2013-04-12 Tom Tromey <tromey@redhat.com>
8190
8191 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8192 const.
8193 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8194 (struct die_reader_specs) <buffer>: Likewise.
8195 (die_reader_func_ftype): Make 'info_ptr' const.
8196 (struct line_header) <include_dirs, statement_program_start,
8197 statement_program_end>: Now const.
8198 (struct file_entry) <name>: Likewise.
8199 (struct partial_die_info) <sibling>: Likewise.
8200 (struct dwarf_block) <data>: Likewise.
8201 (dwarf2_read_section): Remove cast.
8202 (dwarf2_get_section_info): Make 'bufp' const.
8203 (read_index_from_section): Constify.
8204 (dw2_get_file_names_reader): Make 'info_ptr' const.
8205 (dw2_get_primary_filename_reader): Likewise.
8206 (read_comp_unit_head): Make 'info_ptr' and return type const.
8207 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8208 Likewise.
8209 (read_abbrev_offset): Constify.
8210 (dwarf2_create_include_psymtab): Make 'name' const.
8211 (create_debug_types_hash_table): Update.
8212 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8213 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8214 Constify.
8215 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8216 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8217 (read_comp_units_from_section): Constify.
8218 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8219 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8220 const.
8221 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8222 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8223 (create_dwp_hash_table, dwarf2_ranges_read)
8224 (dwarf2_record_block_ranges): Constify.
8225 (read_die_and_children, read_die_and_siblings_1)
8226 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8227 const.
8228 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8229 (abbrev_table_read_table): Constify.
8230 (load_partial_dies): Make 'info_ptr' const.
8231 (read_partial_die, read_attribute_value, read_attribute): Make
8232 'info_ptr' and return type const.
8233 (read_address, read_initial_length)
8234 (read_checked_initial_length_and_offset, read_offset)
8235 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8236 const.
8237 (read_direct_string): Make 'buf' and return type const.
8238 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8239 (read_indirect_string): Make return type const.
8240 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8241 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8242 'info_ptr' const.
8243 (read_str_index): Make return type const.
8244 (add_include_dir): Make 'include_dir' const.
8245 (add_file_name): Make 'name' const.
8246 (dwarf_decode_line_header): Constify.
8247 (psymtab_include_file_name): Make return type const.
8248 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8249 (dwarf2_start_subfile): Make 'filename' const.
8250 (dwarf2_const_value_attr): Make 'bytes' const.
8251 (read_signatured_type_reader): Make 'info_ptr' const.
8252 (decode_locdesc): Constify.
8253 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8254 const.
8255 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8256 'mac_end', and return type const.
8257 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8258 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8259 type const.
8260 (per_cu_header_read_in): Constify.
8261 * symfile.h (dwarf2_get_section_info): Update.
8262
8263 2013-04-12 Tom Tromey <tromey@redhat.com>
8264
8265 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8266
8267 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8268
8269 * NEWS: Mention "show configuration", --configuration.
8270 * top.c (print_gdb_configuration): New function, displays the
8271 details about GDB configure-time parameters.
8272 (print_gdb_version): Mention "show configuration".
8273 * cli/cli-cmds.c (show_configuration): New function.
8274 (_initialize_cli_cmds): Add the "show configuration" command.
8275 * main.c (captured_main) <print_configuration>: New static var.
8276 <long_options>: Use it.
8277 If --configuration was given, call print_gdb_configuration.
8278
8279 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8280 Pedro Alves <palves@redhat.com>
8281
8282 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8283 (generated_files): Add gcore.
8284 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8285 HAVE_NATIVE_GCORE_HOST.
8286 (gcore): New.
8287 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8288 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8289 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8290 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8291 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8292 Add HAVE_NATIVE_GCORE_HOST.
8293 * configure: Regenerate.
8294 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8295 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8296 AC_CONFIG_FILES for gcore.
8297 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8298 gdb_have_gcore.
8299 * gdb_gcore.sh: Rename to ...
8300 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8301 and GCORE_TRANSFORM_NAME substitutions.
8302
8303 Fix parsing tabs in ${gdb_target_obs}.
8304 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8305
8306 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8307
8308 * remote.c (unpush_and_perror): Add output message final dot.
8309
8310 2013-04-11 Yao Qi <yao@codesourcery.com>
8311
8312 * tracepoint.c (tfile_interp_line): Fit parameters line and
8313 utpp in one line.
8314
8315 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8316
8317 * solib.c (solib_map_sections): Remove code overwriting
8318 SO->SO_NAME with the bfd's filename.
8319
8320 2013-04-10 Pedro Alves <palves@redhat.com>
8321
8322 * cli/cli-decode.c (integer_unlimited_completer): New function.
8323 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8324 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8325 completer.
8326 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8327 (is_unlimited_literal): New function.
8328 (do_set_command): Handle literal "unlimited" arguments.
8329 * frame.c (_initialize_frame) <set backtrace limit>: Document
8330 "unlimited".
8331 * printcmd.c (_initialize_printcmd) <set print
8332 max-symbolic-offset>: Add help text.
8333 * record-full.c (_initialize_record_full) <set record full
8334 insn-number-max>: Likewise.
8335 * record.c (_initialize_record) <set record
8336 instruction-history-size, set record function-call-history-size>:
8337 Add help text.
8338 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8339 help text.
8340 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8341 Likewise.
8342 * source.c (_initialize_source) <set listsize>: Add help text.
8343 * utils.c (initialize_utils) <set height, set width>: Likewise.
8344 <set pagination>: Mention "set height unlimited".
8345 * valprint.c (_initialize_valprint) <set print elements, set print
8346 repeats>: Document "unlimited".
8347
8348 2013-04-10 Pedro Alves <palves@redhat.com>
8349
8350 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8351 instead of disconnect_tracing.
8352 * infcmd.c (detach_command, disconnect_command): Call
8353 query_if_trace_running. Adjust.
8354 * top.c: Include "tracepoint.h".
8355 (quit_target): Delete. Contents moved ...
8356 (quit_force): ... here. Wrap each stage of teardown in
8357 TRY_CATCH. Call disconnect_tracing before detaching.
8358
8359 2013-04-10 Hui Zhu <hui@codesourcery.com>
8360 Yao Qi <yao@codesourcery.com>
8361
8362 * configure.ac: Check libbabeltrace is installed.
8363 * config.in: Regenerate.
8364 * configure: Regenerate.
8365 * Makefile.in (LIBBABELTRACE): New.
8366 (CLIBS): Add LIBBABELTRACE.
8367 * ctf.c: Include "exec.h".
8368 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8369 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8370 (ctf_save_metadata_header): Define new type aliases in
8371 metadata.
8372 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8373 in metadata. Start a new faked packet for trace status.
8374 (ctf_write_status): Write trace status to CTF.
8375 (ctf_write_uploaded_tsv): Write TSV to CTF.
8376 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8377 (ctf_write_definition_end): End the faked packet.
8378
8379 (ctx, ctf_iter, trace_dirname): New.
8380 (start_pos): New variable.
8381 (ctf_destroy, ctf_open_dir, ctf_open): New.
8382 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8383 macros.
8384 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8385 (ctf_fetch_registers, ctf_xfer_partial): New.
8386 (ctf_get_trace_state_variable_value): New.
8387 (ctf_get_tpnum_from_frame_event): New.
8388 (ctf_get_traceframe_address): New.
8389 (ctf_trace_find, ctf_has_stack): New.
8390 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8391 (ctf_get_trace_status, ctf_read_status): New.
8392 (_initialize_ctf): New.
8393 * tracepoint.c (get_tracepoint_number): New
8394 (get_uploaded_tsv): Remove 'static'.
8395 (struct traceframe_info, trace_regblock_size): Move it to ...
8396 * tracepoint.h: ... here.
8397 (get_tracepoint_number): Declare it.
8398 (get_uploaded_tsv): Declare it.
8399
8400 * NEWS: Mention new configure option.
8401
8402 2013-04-10 Pedro Alves <palves@redhat.com>
8403 Hui Zhu <hui@codesourcery.com>
8404
8405 * breakpoint.c (dprintf_re_set): New.
8406 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8407 to dprintf_re_set.
8408
8409 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8410
8411 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8412 Remove solib-svr4.o from the list.
8413
8414 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8415
8416 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8417 Use gdb_assert_not_reached instead of invalid boolean expression.
8418
8419 2013-04-09 Pedro Alves <palves@redhat.com>
8420
8421 * remote.c (unpush_and_perror): New function.
8422 (readchar, remote_serial_write): Use it.
8423
8424 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8425
8426 * NEWS: Mention new btrace RSP packets.
8427
8428 2013-04-08 Tom Tromey <tromey@redhat.com>
8429
8430 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8431 long.
8432
8433 2013-04-08 Tom Tromey <tromey@redhat.com>
8434
8435 * maint.c (print_bfd_section_info): Print the section index.
8436 * symmisc.c (dump_msymbols): Print the section index.
8437
8438 2013-04-08 Tom Tromey <tromey@redhat.com>
8439
8440 PR symtab/8424:
8441 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8442 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8443 * breakpoint.c (resolve_sal_pc): Update.
8444 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8445 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8446 (minsym_lookup_iterator_cb): Use it.
8447 (default_read_var_value): Update.
8448 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8449 Update.
8450 * infcmd.c (jump_command): Update.
8451 * linespec.c (minsym_found): Update.
8452 * maint.c (maintenance_translate_address): Update.
8453 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8454 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8455 * parse.c (write_exp_msymbol): Update.
8456 * printcmd.c (address_info): Update.
8457 * psymtab.c (find_pc_sect_psymbol): Update.
8458 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8459 SYMBOL_OBJ_SECTION.
8460 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8461 Don't initialize SYMBOL_OBJ_SECTION.
8462 * spu-tdep.c (spu_catch_start): Update.
8463 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8464 * symmisc.c (dump_msymbols, print_symbol): Update.
8465 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8466 how fallback section is computed.
8467 (fixup_symbol_section): Update.
8468 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8469 Update.
8470 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8471 Initialize SYMBOL_SECTION.
8472 * symtab.h (struct general_symbol_info) <section>: Update comment.
8473 <obj_section>: Remove.
8474 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8475 (SYMBOL_OBJFILE): New macro.
8476
8477 2013-04-08 Tom Tromey <tromey@redhat.com>
8478
8479 * coffread.c (record_minimal_symbol): Update.
8480 * dbxread.c (record_minimal_symbol): Update.
8481 * elfread.c (record_minimal_symbol): Update.
8482 * machoread.c (macho_symtab_add_minsym): Update.
8483 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8484 Update.
8485 * minsyms.c (prim_record_minimal_symbol): Update.
8486 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8487 argument.
8488 (prim_record_minimal_symbol_and_info): Likewise.
8489 * minsyms.h (prim_record_minimal_symbol_full)
8490 (prim_record_minimal_symbol_and_info): Update.
8491 * symtab.c (allocate_symbol, initialize_symbol)
8492 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8493 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8494 Update.
8495
8496 2013-04-08 Tom Tromey <tromey@redhat.com>
8497
8498 PR symtab/8423:
8499 * solib-som.c (som_solib_section_offsets): Use BFD section
8500 indices. Set offsets for all sections.
8501 * somread.c (som_symtab_read): Compute BFD section for
8502 symbol. Use prim_record_minimal_symbol_and_info.
8503 (som_symfile_read): Fix comment.
8504 (struct find_section_offset_arg): New.
8505 (find_section_offset, set_section_index): New functions.
8506 (som_symfile_offsets): Use set_section_index to compute
8507 section indices.
8508
8509 2013-04-08 Tom Tromey <tromey@redhat.com>
8510
8511 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8512 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8513 gdb_bfd_section_index.
8514 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8515 New functions.
8516 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8517 Declare.
8518 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8519 Update.
8520 * objfiles.c (add_to_objfile_sections_full): New function.
8521 (add_to_objfile_sections): Use it.
8522 (build_section_table): Rewrite.
8523 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8524 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8525 (struct objfile) <sections>: Update comment.
8526 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8527 is NULL.
8528 (ALL_OBJSECTIONS): Use it.
8529 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8530 * solib-frv.c (frv_relocate_main_executable): Update.
8531 * solib-target.c (solib_target_relocate_section_addresses):
8532 Use gdb_bfd_section_index.
8533 * symfile.c (build_section_addr_info_from_section_table):
8534 Use gdb_bfd_section_index.
8535 (build_section_addr_info_from_bfd, place_section): Likewise.
8536 * symtab.c (fixup_section): Update.
8537 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8538
8539 2013-04-08 Tom Tromey <tromey@redhat.com>
8540
8541 * minsyms.h (struct bound_minimal_symbol): New.
8542 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8543 Remove objfile argument.
8544 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8545 Return bound_minimal_symbol.
8546 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8547 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8548 Return bound_minimal_symbol.
8549 (in_gnu_ifunc_stub): Update.
8550 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8551 Remove 'objfile_p' argument.
8552 (lookup_solib_trampoline_symbol_by_pc): Update.
8553 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8554 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8555 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8556 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8557 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8558 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8559 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8560 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8561 stack.c, symtab.c, tui/tui-disasm.c: Update.
8562
8563 2013-04-08 Tom Tromey <tromey@redhat.com>
8564
8565 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8566 Use symbol's obstack, not an objfile.
8567 * coffread.c (process_coff_symbol): Update.
8568 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8569 * jv-lang.c (add_class_symbol): Update.
8570 * mdebugread.c (new_symbol): Update.
8571 * minsyms.c (prim_record_minimal_symbol_full)
8572 (terminate_minimal_symbol_table): Update.
8573 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8574 * stabsread.c (define_symbol, read_enum_type): Update.
8575 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8576 Handle Ada specially.
8577 (symbol_set_language): Add 'obstack' argument.
8578 (symbol_set_names): Update.
8579 (symbol_natural_name, symbol_demangled_name): Always use
8580 ada_decode_symbol.
8581 * symtab.h (struct general_symbol_info)
8582 <language_specific::obstack>: New field.
8583 <ada_mangled>: New field.
8584 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8585 (symbol_set_language): Update.
8586
8587 2013-04-08 Tom Tromey <tromey@redhat.com>
8588
8589 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8590 Take an obstack, not an objfile.
8591 (symbol_set_names): Update.
8592 * symtab.h (symbol_set_demangled_name): Update.
8593
8594 2013-04-08 Tom Tromey <tromey@redhat.com>
8595
8596 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8597 allocate_symbol.
8598 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8599 (read_func_scope): Call allocate_template_symbol.
8600 (new_symbol_full): Call allocate_symbol.
8601 * jit.c (finalize_symtab): Call allocate_symbol.
8602 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8603 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8604 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8605 (common_block_end): Call allocate_symbol.
8606 * symtab.c (allocate_symbol, initialize_symbol)
8607 (allocate_template_symbol): New functions.
8608 * symtab.c (allocate_symbol, initialize_symbol)
8609 (allocate_template_symbol): Declare.
8610 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8611
8612 2013-04-08 Pedro Alves <palves@redhat.com>
8613 Keith Seitz <keiths@redhat.com>
8614
8615 * breakpoint.c (create_breakpoint): Rename
8616 "parse_condition_and_thread" parameter to "parse_arg". Update
8617 describing comment. If !PARSE_ARG, then error out if ARG is not
8618 the empty string after extracting the location.
8619 * breakpoint.h (create_breakpoint): Rename
8620 "parse_condition_and_thread" parameter to "parse_arg".
8621
8622 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8623
8624 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8625
8626 2013-04-07 Yao Qi <yao@codesourcery.com>
8627
8628 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8629 and 'addr2' to CORE_ADDR.
8630 * target.c (update_current_target): Update.
8631 * target.h (struct target_ops) <to_trace_find>: Change parameter
8632 type to CORE_ADDR.
8633 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8634 'addr2' to CORE_ADDR.
8635 (tfile_trace_find): Likewise.
8636 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8637 Change local variable 'addr' to type CORE_ADDR.
8638 * tracepoint.h (tfind_1): Update declaration.
8639
8640 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8641
8642 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8643 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8644 Include main.h.
8645
8646 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8647 here...
8648 * main.h (windows_get_absolute_argv0): ...to here.
8649
8650 2013-04-05 Doug Evans <dje@google.com>
8651
8652 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8653 (read_cutu_die_from_dwo): Add comments.
8654 (read_structure_type): Update comment.
8655 (read_enumeration_type, read_namespace_type): Update comment.
8656 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8657
8658 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8659
8660 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8661 * Makefile.in (gdb.z): Remove.
8662 (install-only): Remove $(man1dir) and gdb.1 installation.
8663 * gdb.1: Remove.
8664
8665 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8666
8667 Fix compatibility with Linux kernel 3.8.3.
8668 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8669 to more inner block. Remove parsing of NUMBER from outer block.
8670 Parse NUMBER only if KEYWORD has been identified.
8671
8672 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8673
8674 Fix variable name shadowing.
8675 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8676 filename to mapsfilename and update its uses.
8677
8678 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8679
8680 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8681 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8682 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8683 details of the problem.
8684
8685 2013-04-04 Pedro Alves <palves@redhat.com>
8686 Hui Zhu <hui@codesourcery.com>
8687
8688 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8689 tracepoint, reset its STEP_COUNT and call validate_actionline.
8690
8691 2013-04-03 Doug Evans <dje@google.com>
8692
8693 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8694 read_die_and_siblings.
8695 (read_die_and_siblings): New function.
8696 (read_cutu_die_from_dwo): Dump die if requested.
8697 (read_die_and_children): Call read_full_die_1 and
8698 read_die_and_siblings_1.
8699 (read_full_die): Dump die if requested.
8700
8701 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8702
8703 * dwarf2read.c (struct dwo_file): New member comp_dir.
8704 Rename member name to dwo_name. All uses updated.
8705 (hash_dwo_file): Include comp_dir in computation.
8706 (eq_dwo_file): Ditto.
8707 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8708 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8709
8710 * psymtab.c (read_psymtabs_with_fullname): Don't call
8711 psymtab_to_fullname if the basenames are different.
8712
8713 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8714
8715 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8716 New entry about "fullname" presence.
8717
8718 2013-04-03 Pedro Alves <palves@redhat.com>
8719
8720 * NEWS: Mention x86_64/Cygwin as new native configuration.
8721
8722 2013-04-02 Doug Evans <dje@google.com>
8723
8724 * dwarf2read.c (read_structure_type): Fix typo in comment.
8725
8726 2013-04-02 Pedro Alves <palves@redhat.com>
8727
8728 * NEWS: Mention "set/show debug aarch64", "set/show debug
8729 coff-pe-read" and "set/show debug mach-o".
8730
8731 2013-04-02 Pedro Alves <palves@redhat.com>
8732
8733 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8734
8735 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8736
8737 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8738 gdb_string.h is now in common/.
8739
8740 2013-04-02 Pedro Alves <palves@redhat.com>
8741
8742 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8743 under "New options".
8744
8745 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8746
8747 Revert this patch:
8748 PR gdb/15275
8749 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8750
8751 2013-04-02 Pedro Alves <palves@redhat.com>
8752
8753 PR gdb/15275
8754
8755 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8756 (remote_serial_write): New function.
8757 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8758
8759 2013-04-01 Jiong Wang <jiwang@tilera.com>
8760
8761 * NEWS: Mention TILE-Gx in "New native configurations" and
8762 "New targets" sections.
8763
8764 2013-04-01 Doug Evans <dje@google.com>
8765
8766 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8767 (process_enumeration_scope): Simplify.
8768
8769 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8770 type_unit_group ...
8771 (struct signatured_type): ... to here.
8772 (sig_type_ptr): New typedef.
8773 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8774 out of union 't'. All uses updated.
8775 (dw2_get_file_names_reader): Assert not called for a type unit.
8776 (dw2_get_file_names): Assert not called for a type unit or type
8777 unit group.
8778 (build_type_psymtabs_reader): Assert called for a type unit.
8779 (build_type_psymtab_dependencies): Assert called for a type unit group.
8780
8781 * dwarf2read.c (free_dwo_file): Add comment.
8782 (dwarf2_per_objfile_free): Unref dwp bfd.
8783
8784 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8785
8786 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8787 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8788 (read_pe_exported_syms): Remove unused 'exportix'.
8789 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8790 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8791 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8792
8793 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8794
8795 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8796 (print_it_watchpoint): Remove unused 'bl'.
8797 (say_where): Remove unused 'uiout'.
8798 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8799 (bkpt_breakpoint_hit): Remove unused 'b'.
8800 (internal_bkpt_print_it): Remove unused 'uiout'.
8801 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8802
8803 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8804
8805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8806 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8807
8808 2013-03-29 Doug Evans <dje@google.com>
8809
8810 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8811 Delete arg is_dwp. All callers updated.
8812 (open_dwp_file): New function.
8813 (open_and_init_dwp_file): Call it.
8814 (get_dwp_file): New function.
8815 (lookup_dwo_cutu): Call it.
8816
8817 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8818 unnecessary, cleanup.
8819
8820 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8821
8822 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8823 (lookup_dwo_unit): New function.
8824 (init_cutu_and_read_dies): Move DWO handling to new functions.
8825
8826 * dwarf2read.c (struct signatured_type): Tweak comment.
8827 (struct dwo_unit): Tweak comment.
8828 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8829 (create_dwo_debug_info_hash_table): Tweak comment.
8830 (dwarf2_per_cu_offset_and_type): Tweak comment.
8831
8832 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8833 missing .debug_types section.
8834
8835 2013-03-29 Yao Qi <yao@codesourcery.com>
8836
8837 * corelow.c: Include "completer.h".
8838 (_initialize_corelow): Call add_target_with_completer with
8839 argument 'filename_completer'.
8840 * tracepoint.c: Likewise.
8841 * exec.c (_initialize_exec): Likewise.
8842 * target.c (add_target): Rename to ...
8843 (add_target_with_completer): ... this. Call set_cmd_completer
8844 if parameter completer is not NULL.
8845 (add_target): New.
8846 * target.h: Include "command.h".
8847 (add_target_with_completer): Declare it.
8848
8849 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8850
8851 * coffread.c (is_import_fixup_symbol): New function.
8852 (record_minimal_symbol): Use is_import_fixup_symbol to
8853 detect import fixup symbols, and discard them.
8854
8855 2013-03-28 Doug Evans <dje@google.com>
8856
8857 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8858 types hash table until we know we need it.
8859
8860 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8861 index numbers.
8862
8863 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8864 All callers updated.
8865 (dw2_print_stats): Print #read CUs too.
8866 (dump_die_shallow): Print signatured types better.
8867
8868 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8869 info_or_types_section to section. All uses updated.
8870 (struct dwo_unit): Ditto.
8871
8872 2013-03-28 Pedro Alves <palves@redhat.com>
8873
8874 * NEWS (New options): New section.
8875 (New options): Mention set/show remote trace-status-packet.
8876 * remote.c (PACKET_qTStatus): New enumeration value.
8877 (remote_get_trace_status): Skip sending qTStatus if the packet is
8878 disabled. Use packet_ok.
8879 (_initialize_remote): Register a configuration command for
8880 qTStatus packet.
8881
8882 2013-03-28 Doug Evans <dje@google.com>
8883
8884 * symfile.c (find_separate_debug_file): Add comment.
8885 (terminate_after_last_dir_separator): Tweak comment.
8886
8887 * dwarf2read.c (create_partial_symtab): Add forward decl.
8888 (create_partial_symtab): Move to be closer to other psymtab functions.
8889 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8890
8891 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8892 (compute_symtab_includes): Remove unnecessary forward declaration.
8893 (die_needs_namespace): Add comment marking group of functions for
8894 dwarf2 name computation.
8895
8896 * typeprint.c (_initialize_typeprint): Improve type help text.
8897
8898 * python/python.c (finish_python_initialization): Provide suggestion
8899 for how to tell gdb to find its python files.
8900
8901 2013-03-28 Pedro Alves <palves@redhat.com>
8902
8903 PR gdb/15294
8904
8905 * source.c (_initialize_source): Change back "set listsize" to an
8906 integer command.
8907
8908 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8909
8910 PR gdb/15275
8911 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8912
8913 2013-03-27 Pedro Alves <palves@redhat.com>
8914
8915 * top.c (history_size): Rename to ...
8916 (history_size_setshow_var): ... this. Add comment.
8917 (show_commands): Use readline's 'history_length' instead of
8918 computing the history length by calling history_get in a loop.
8919 (set_history_size_command): Error out for sizes over INT_MAX.
8920 Restore previous history size on invalid size.
8921 (init_history): If HISTSIZE is negative, leave the history size as
8922 zero. Add comments.
8923 (init_main): Adjust.
8924
8925 2013-03-27 Pedro Alves <palves@redhat.com>
8926
8927 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8928 coff_pe_read" command to "set debug coff-pe-read".
8929
8930 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8931
8932 * record.c (command_size_to_target_size): Fix size comparison.
8933 Change parameter type from pointer to integer to integer.
8934 Update all users.
8935
8936 2013-03-27 Pierre Muller <muller@sourceware.org>
8937
8938 * windows-nat.c (handle_output_debug_string): Avoid typecast
8939 from integer of different size warning.
8940
8941 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8942
8943 * windows-nat.c (handle_output_debug_string): Add empty line
8944 after local block variable definition.
8945
8946 2013-03-26 Pedro Alves <palves@redhat.com>
8947
8948 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8949 (net_open): Make 'polls' local unsigned.
8950
8951 2013-03-26 Pedro Alves <palves@redhat.com>
8952
8953 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8954 a zuinteger command instead of uinteger.
8955
8956 2013-03-26 Pedro Alves <palves@redhat.com>
8957
8958 * record-full.c (record_full_insn_num): Make it unsigned.
8959 (record_full_check_insn_num, record_full_message)
8960 (record_full_registers_change, record_full_xfer_partial): Remove
8961 record_full_insn_max_num check (it's always != 0).
8962 (record_full_info, record_full_restore): Use %u as format string.
8963 (): Use %u as format string.
8964 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8965 check (it's always != 0).
8966
8967 2013-03-26 Pedro Alves <palves@redhat.com>
8968
8969 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8970 and "set dcache size" commands zuinteger instead of uinteger.
8971
8972 2013-03-26 Pedro Alves <palves@redhat.com>
8973
8974 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8975 command zuinteger instead of uinteger.
8976
8977 2013-03-26 Pedro Alves <palves@redhat.com>
8978
8979 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8980 zuinteger instead of uinteger.
8981
8982 2013-03-26 Pedro Alves <palves@redhat.com>
8983
8984 * record.c (record_insn_history_size_setshow_var)
8985 (record_call_history_size_setshow_var): New globals.
8986 (command_size_to_target_size): New function.
8987 (cmd_record_insn_history, cmd_record_call_history): Use
8988 command_size_to_target_size instead of cast.
8989 (validate_history_size, set_record_insn_history_size)
8990 (set_record_call_history_size): New functions.
8991 (_initialize_record): Install set_record_insn_history_size and
8992 set_record_call_history_size as "set" hooks of "set record
8993 instruction-history-size" and "set record
8994 function-call-history-size".
8995
8996 2013-03-26 Pedro Alves <palves@redhat.com>
8997
8998 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8999 use with history_max_entries use. Remove FIXME note.
9000
9001 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9002
9003 * record-btrace.c (record_btrace_close): Call
9004 record_btrace_auto_disable.
9005
9006 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9007
9008 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9009
9010 2013-03-25 Doug Evans <dje@google.com>
9011
9012 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9013
9014 2013-03-25 Tom Tromey <tromey@redhat.com>
9015
9016 PR symtab/11462:
9017 * c-exp.y (exp): Add new productions for destructors after '.' and
9018 '->'.
9019 (write_destructor_name): New function.
9020
9021 2013-03-25 Tom Tromey <tromey@redhat.com>
9022
9023 PR c++/9197:
9024 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9025 value_struct_elt, not lookup_struct_elt_type.
9026 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9027 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9028 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9029
9030 2013-03-25 Yao Qi <yao@codesourcery.com>
9031
9032 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9033 instead of '_mkdir'.
9034
9035 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9036
9037 * windows-nat.c (windows_get_absolute_argv0): New function.
9038 * windows-nat.h: Add its prototype.
9039
9040 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9041 Use IS_DIR_SEPARATOR instead of looking for a character inside
9042 SLASH_STRING. Include filenames.h.
9043 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9044 relocate_gdb_directory works when passed gdb_program_name.
9045 Include windows-nat.h.
9046
9047 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9048
9049 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9050 * remote.c (trace_error): Remove the special handling of '2'.
9051 (readchar) <SERIAL_EOF>
9052 (readchar) <SERIAL_ERROR>
9053 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9054 (remote_get_trace_status): Call throw_exception if EX is
9055 TARGET_CLOSE_ERROR.
9056 * utils.c (perror_with_name): Rename to ...
9057 (throw_perror_with_name): ... here. New parameter errcode, describe it
9058 in the function comment.
9059 (perror_with_name): New function wrapper.
9060 * utils.h (enum errors): New stub declaration.
9061 (throw_perror_with_name): New declaration.
9062
9063 2013-03-22 Pedro Alves <palves@redhat.com>
9064 Yao Qi <yao@codesourcery.com>
9065 Mark Kettenis <kettenis@gnu.org>
9066
9067 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9068 Don't let the user set the value to UINT_MAX directly.
9069 <var_integer>: Don't let the user set the value to INT_MAX
9070 directly.
9071
9072 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9073
9074 * remote.c (remote_unpush_target): New function.
9075 (remote_open_1): Remove two pop_target calls, update one comment, add
9076 comment to target_preopen call. Replace pop_target call by
9077 remote_unpush_target call.
9078 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9079 pop_target calls by remote_unpush_target calls.
9080
9081 2013-03-22 Pedro Alves <palves@redhat.com>
9082
9083 * linux-nat.c (linux_child_follow_fork): Don't call
9084 linux_enable_event_reporting.
9085 (linux_handle_extended_wait): Don't call
9086 linux_enable_event_reporting.
9087
9088 2013-03-22 Pedro Alves <palves@redhat.com>
9089
9090 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9091 use it to rewrite the trampoline buffers with type gdb_byte[], and
9092 undefine the macro. Remove char* cast.
9093
9094 2013-03-21 Doug Evans <dje@google.com>
9095
9096 New commands "mt set per-command {space,time,symtab} {on,off}".
9097 * NEWS: Add entry.
9098 * event-top.c: #include "maint.h".
9099 * main.c: #include "maint.h".
9100 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9101 timeval-utils.h, maint.h, cli/cli-setshow.h.
9102 (per_command_time, per_command_space): New static globals.
9103 (per_command_symtab): New static global.
9104 (per_command_setlist, per_command_showlist): New static globals.
9105 (struct cmd_stats): Move here from utils.c.
9106 (set_per_command_time): Renamed from set_display_time in utils.c
9107 and moved here. All callers updated.
9108 (set_per_command_space): Renamed from set_display_space in utils.c
9109 and moved here. All callers updated.
9110 (count_symtabs_and_blocks): New function.
9111 (report_command_stats): Moved here from utils.c. Add support for
9112 printing symtab stats. Only print data if enabled before command
9113 executed.
9114 (make_command_stats_cleanup): Ditto.
9115 (sert_per_command_cmd, show_per_command_cmd): New functions.
9116 (_initialize_maint_cmds): Add new commands
9117 mt set per-command {space,time,symtab} {on,off}.
9118 * maint.h: New file.
9119 * top.c: #include "maint.h".
9120 * utils.c (reset_prompt_for_continue_wait_time): New function.
9121 (get_prompt_for_continue_wait_time): New function.
9122 * utils.h (reset_prompt_for_continue_wait_time): Declare
9123 (get_prompt_for_continue_wait_time): Declare.
9124 (make_command_stats_cleanup): Moved to maint.h.
9125 (set_display_time, set_display_space): Moved to maint.h and renamed
9126 to set_per_command_time, set_per_command_space.
9127 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9128 parse_binary_operation and made non-static. Don't call error,
9129 just return an error marker. All callers updated.
9130 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9131
9132 2013-03-21 Tom Tromey <tromey@redhat.com>
9133
9134 * symfile.c (alloc_section_addr_info): Update header. Don't set
9135 'num_sections' field.
9136 (build_section_addr_info_from_section_table): Set 'num_sections'.
9137 (build_section_addr_info_from_bfd): Likewise.
9138 (build_section_addr_info_from_objfile): Remove dead loop
9139 condition.
9140 (free_section_addr_info): Unconditionally call xfree.
9141 (relative_addr_info_to_section_offsets, addrs_section_sort)
9142 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9143 condition.
9144 (syms_from_objfile_1): Remove dead 'if' condition. Check
9145 'num_sections'.
9146 (add_symbol_file_command): Set 'num_sections'.
9147 * symfile-mem.c (symbol_file_add_from_memory): Set
9148 'num_sections'.
9149 * somread.c (som_symfile_offsets): Remove dead loop condition.
9150 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9151 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9152
9153 2013-03-21 Tom Tromey <tromey@redhat.com>
9154
9155 * tracepoint.h (decode_agent_options): Add 'trace_string'
9156 argument.
9157 * tracepoint.c (decode_agent_options): Add 'trace_string'
9158 argument.
9159 (validate_actionline): Update.
9160 (collect_symbol): Add 'trace_string' argument.
9161 (struct add_local_symbols_data) <trace_string>: New field.
9162 (do_collect_symbol): Update.
9163 (add_local_symbols): Add 'trace_string' argument.
9164 (encode_actions_1): Update.
9165 (trace_dump_actions): Update.
9166 * dwarf2loc.c (access_memory): Update.
9167 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9168 * ax-general.c (new_agent_expr): Update.
9169 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9170 (gen_trace_for_return_address): Add argument.
9171 (trace_kludge, trace_string_kludge): Remove.
9172 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9173 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9174 (gen_trace_for_var): Add 'trace_string' argument.
9175 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9176 (gen_printf, agent_eval_command_one): Update.
9177
9178 2013-03-21 Tom Tromey <tromey@redhat.com>
9179
9180 PR exp/15109:
9181 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9182 Handle FILENAME token.
9183
9184 2013-03-21 Tom Tromey <tromey@redhat.com>
9185
9186 * c-exp.y (YYPRINT): Define.
9187 (c_print_token): New function.
9188
9189 2013-03-21 Tom Tromey <tromey@redhat.com>
9190
9191 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9192
9193 2013-03-21 Yao Qi <yao@codesourcery.com>
9194
9195 * ctf.c: Include "gdb_stat.h".
9196 [USE_WIN32API]: New macro 'mkdir'.
9197 (ctf_start): Use permission bits macros if they are defined.
9198
9199 2013-03-20 Keith Seitz <keiths@redhat.com>
9200
9201 * breakpoint.h (struct breakpoint): Add comment to
9202 extra_string indicating that this member is mallod'd.
9203 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9204
9205 2013-03-20 Pedro Alves <palves@redhat.com>
9206
9207 PR gdb/15289
9208
9209 * cli/cli-setshow.c (do_set_command)
9210 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9211 the result of parsing the command argument. Throw error if the
9212 value is greater than UINT_MAX. Print the invalid value with
9213 plongest.
9214 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9215 result of parsing the command argument. Throw error if the value
9216 is greater than INT_MAX, not greater or equal. Also throw error
9217 if the value is less than INT_MIN. Print the invalid value with
9218 plongest.
9219 <var_zuinteger_unlimited>: Throw error if the value is greater
9220 than INT_MAX, not greater or equal.
9221 (do_show_command) <var_integer, var_zinteger,
9222 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9223
9224 2013-03-20 Tom Tromey <tromey@redhat.com>
9225
9226 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9227 if possible.
9228 * dwarf2read.c (read_func_scope): Remove old FIXME.
9229 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9230 not LOC_COMPUTED.
9231 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9232 Unconditionally call via computed ops, if possible.
9233 * printcmd.c (address_info): Unconditionally call via computed ops,
9234 if possible.
9235 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9236 if possible.
9237 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9238 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9239 if possible.
9240
9241 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9242 Tom Tromey <tromey@redhat.com>
9243
9244 PR symtab/8421:
9245 * coffread.c (coff_register_index): New global.
9246 (process_coff_symbol, coff_read_enum_type): Set
9247 SYMBOL_ACLASS_INDEX.
9248 (_initialize_coffread): Initialize new global.
9249 * dwarf2loc.c (locexpr_find_frame_base_location)
9250 (dwarf2_block_frame_base_locexpr_funcs)
9251 (loclist_find_frame_base_location)
9252 (dwarf2_block_frame_base_loclist_funcs): New.
9253 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9254 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9255 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9256 (dwarf2_block_frame_base_loclist_funcs): New.
9257 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9258 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9259 globals.
9260 (read_func_scope): Update.
9261 (fixup_go_packaging, mark_common_block_symbol_computed)
9262 (var_decode_location, new_symbol_full, dwarf2_const_value):
9263 Set SYMBOL_ACLASS_INDEX.
9264 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9265 (_initialize_dwarf2_read): Initialize new globals.
9266 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9267 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9268 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9269 globals.
9270 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9271 (_initialize_mdebugread): Initialize new globals.
9272 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9273 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9274 (stab_register_index, stab_regparm_index): New globals.
9275 (define_symbol, read_enum_type, common_block_end): Set
9276 SYMBOL_ACLASS_INDEX.
9277 (_initialize_stabsread): Initialize new globals.
9278 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9279 globals.
9280 (MAX_SYMBOL_IMPLS): New define.
9281 (register_symbol_computed_impl, register_symbol_block_impl)
9282 (register_symbol_register_impl)
9283 (initialize_ordinary_address_classes): New functions.
9284 (_initialize_symtab): Call initialize_ordinary_address_classes.
9285 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9286 (struct symbol_impl): New.
9287 (SYMBOL_ACLASS_BITS): New define.
9288 (struct symbol) <aclass, ops>: Remove fields.
9289 <aclass_index>: New field.
9290 (symbol_impls): Declare.
9291 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9292 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9293 (register_symbol_computed_impl, register_symbol_block_impl)
9294 (register_symbol_register_impl): Declare.
9295 (struct symbol_computed_ops): Add location_has_loclist.
9296 (struct symbol_block_ops): New.
9297 (SYMBOL_BLOCK_OPS): New.
9298 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9299
9300 2013-03-20 Tom Tromey <tromey@redhat.com>
9301
9302 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9303 (print_partial_symbols, recursively_search_psymtabs): Use
9304 PSYMBOL_CLASS.
9305
9306 2013-03-20 Pierre Muller <muller@sourceware.org>
9307
9308 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9309 addtion, subtraction, multiplication and division binary operator.
9310
9311 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9312
9313 Code cleanup.
9314 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9315 * bsd-kvm.c (bsd_kvm_close): Likewise.
9316 * bsd-uthread.c (bsd_uthread_close): Likewise.
9317 * corelow.c (core_close): Likewise.
9318 (core_close_cleanup): Remove parameter quitting from a caller.
9319 * event-top.c (async_disconnect): Likewise.
9320 * exec.c (exec_close_1): Remove parameter quitting.
9321 * go32-nat.c (go32_close): Likewise.
9322 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9323 parameter quitting from a caller.
9324 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9325 variable.
9326 (mips_linux_close): Remove parameter quitting. Remove parameter
9327 quitting from a caller.
9328 * monitor.c (monitor_close): Remove parameter quitting.
9329 * monitor.h (monitor_close): Likewise.
9330 * record-btrace.c (record_btrace_close): Likewise.
9331 * record-full.c (record_full_close): Likewise.
9332 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9333 it also from fprintf_unfiltered.
9334 * remote-mips.c (mips_close): Remove parameter quitting.
9335 (mips_detach): Remove parameter quitting from a caller.
9336 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9337 (gdbsim_close): Remove duplicate function comment. Remove parameter
9338 quitting and remove it also from printf_filtered.
9339 * remote.c (remote_close): Remove parameter quitting.
9340 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9341 * target.c (update_current_target): Remove parameter int from to_close
9342 de_fault.
9343 (push_target, unpush_target, pop_target): Remove parameter quitting from
9344 a caller.
9345 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9346 Remove parameter quitting from a caller.
9347 (target_preopen): Remove parameter quitting from a caller.
9348 (target_close): Remove parameter quitting. Remove parameter quitting
9349 from a caller two times. Remove parameter quitting also from
9350 fprintf_unfiltered.
9351 * target.h (struct target_ops): Remove parameter quitting and as int
9352 from fields to_xclose and to_close.
9353 (extern struct target_ops current_target):
9354 (target_close, pop_all_targets): Remove parameter quitting. Update the
9355 comment.
9356 (pop_all_targets_above): Remove parameter quitting.
9357 * top.c (quit_target): Remove parameter quitting from a caller.
9358 * tracepoint.c (tfile_close): Remove parameter quitting.
9359 * windows-nat.c (windows_close): Remove parameter quitting.
9360
9361 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9362
9363 * windows-nat.c (handle_output_debug_string): Replace call
9364 to string_to_core_addr with call to strtoull.
9365
9366 2013-03-20 Yao Qi <yao@codesourcery.com>
9367
9368 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9369 and write it to CTF metadata.
9370
9371 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9372
9373 * windows-nat.c (handle_output_debug_string): Change type of n to
9374 SIZE_T to avoid crash on 64 bit systems.
9375
9376 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9377
9378 * python/python-internal.h (HAVE_SNPRINTF)
9379 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9380 about redefinition of snprintf by pyerrors.h.
9381
9382 2013-03-15 Steve Ellcey <sellcey@mips.com>
9383
9384 * remote-sim.c (sim_command_completer): Make char arguments const.
9385
9386 2013-03-15 Tom Tromey <tromey@redhat.com>
9387
9388 PR c++/15116:
9389 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9390
9391 2013-03-14 Tom Tromey <tromey@redhat.com>
9392
9393 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9394 New fields.
9395 (get_file_crc): Move from symfile.c.
9396 (gdb_bfd_crc): New function.
9397 * gdb_bfd.h (gdb_bfd_crc): Declare.
9398 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9399 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9400 (separate_debug_file_exists): Use gdb_bfd_crc.
9401
9402 2013-03-14 Tom Tromey <tromey@redhat.com>
9403
9404 * symfile.c (get_debug_link_info): Remove.
9405 (find_separate_debug_file_by_debuglink): Use
9406 bfd_get_debug_link_info.
9407
9408 2013-03-14 Tom Tromey <tromey@redhat.com>
9409
9410 * symtab.c (error_in_psymtab_expansion): New function.
9411 (lookup_symbol_aux_quick)
9412 (basic_lookup_transparent_type_quick): Remove "last resort"
9413 code. Use error_in_psymtab_expansion.
9414
9415 2013-03-14 Doug Evans <dje@google.com>
9416 Jan Kratochvil <jan.kratochvil@redhat.com>
9417
9418 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9419 any successful compare_filenames_for_search or FILENAME_CMP.
9420 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9421 * symtab.c (iterate_over_some_symtabs): Likewise.
9422
9423 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9424
9425 * source.c (print_source_lines_base): Make a local copy of
9426 symtab_to_fullname.
9427
9428 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9429 Jan Kratochvil <jan.kratochvil@redhat.com>
9430
9431 * source.c (print_source_lines_base): Suppress "file" for TUI.
9432
9433 2013-03-14 Keith Seitz <keiths@redhat.com>
9434 Alan Matsuoka <alanm@redhat.com>
9435
9436 PR c++/15203
9437 PR c++/15210
9438 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9439 TYPE_CODE_METHOD.
9440 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9441 symbols.
9442
9443 2013-03-14 Yao Qi <yao@codesourcery.com>
9444
9445 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9446 status to tfile if trace is stopped by command 'tstop'.
9447
9448 2013-03-14 Yao Qi <yao@codesourcery.com>
9449
9450 * tracepoint.c (tfile_write_status): Write trace notes and user
9451 name into tfile if they are not NULL.
9452
9453 2013-03-14 Hui Zhu <hui@codesourcery.com>
9454 Yao Qi <yao@codesourcery.com>
9455
9456 * Makefile.in (REMOTE_OBS): Add ctf.o.
9457 (SFILES): Add ctf.c.
9458 (HFILES_NO_SRCDIR): Add ctf.h.
9459 * ctf.c, ctf.h: New files.
9460 * tracepoint.c: Include 'ctf.h'.
9461 (collect_pseudocommand): Remove static.
9462 (trace_save_command): Parse option "-ctf".
9463 Produce different trace file writers per option.
9464 Adjust output message.
9465 (trace_save_tfile, trace_save_ctf): New.
9466 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9467 * mi/mi-main.c: Include 'ctf.h'.
9468 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9469 trace_save_tfile or trace_save_ctf.
9470 * NEWS: Mention these changes.
9471
9472 2013-03-14 Yao Qi <yao@codesourcery.com>
9473
9474 * tracepoint.c (trace_file_writer_xfree): New.
9475 (struct tfile_writer_data): New.
9476 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9477 (tfile_write_header, tfile_write_regblock_type): New.
9478 (tfile_write_status, tfile_write_uploaded_tsv): New.
9479 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9480 (tfile_write_raw_data, (tfile_end): New.
9481 (tfile_write_ops): New global variable.
9482 (TRACE_WRITE_R_BLOCK): New macro.
9483 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9484 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9485 (TRACE_WRITE_V_BLOCK): New macro.
9486 (trace_save): Add extra one parameter WRITER. Make it static.
9487 Use WRITER to writer trace.
9488 (tfile_trace_file_writer_new): New.
9489 (trace_save_command): Caller update.
9490 (trace_save_tfile): Write trace data in TFILE format.
9491 * tracepoint.h (struct trace_frame_write_ops): New.
9492 (struct trace_file_write_ops): New.
9493 (struct trace_file_writer): New.
9494 (trace_save): Remove its declaration.
9495 (trace_save_tfile): Declare it.
9496 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9497 instead of trace_save.
9498
9499 2013-03-13 Pedro Alves <palves@redhat.com>
9500
9501 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9502
9503 2013-03-13 Pedro Alves <palves@redhat.com>
9504
9505 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9506 commented out code.
9507 * demangle.c (current_demangling_style_string): Make it const.
9508 (set_demangling_command): Assert the demangling style is known.
9509 Remove all handling of unknown styles. Set
9510 'current_demangling_style_string' to an element of the
9511 demangling_style_names array.
9512 (set_demangling_style): Delete.
9513 (_initialize_demangler): Set current_demangling_style_string to the
9514 element of the demangling_style_names array that corresponds to
9515 the default demangling style. Remove FIXME note. Don't call
9516 set_demangling_style.
9517 * gdb-demangle.h (set_demangling_style): Remove declaration.
9518
9519 2013-03-13 Pedro Alves <palves@redhat.com>
9520
9521 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9522 fields const.
9523 (ada_make_symbol_completion_list): Make "text0" parameter const.
9524 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9525 * breakpoint.c (condition_completer): Make "text" and "word"
9526 parameters const. Adjust.
9527 (check_tracepoint_command): Adjust to validate_actionline
9528 prototype change.
9529 (catch_syscall_completer): Make "text" and "word" parameters
9530 const.
9531 * cli/cli-cmds.c (show_user): Make "comname" local const.
9532 (valid_command_p): Make "command" parameter const.
9533 (alias_command): Make "alias_prefix" and "command_prefix" locals
9534 const.
9535 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9536 (add_alias_cmd): Make "name" and "oldname" parameters const.
9537 Adjust. No longer make copy of OLDNAME.
9538 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9539 (add_setshow_cmd_full, add_setshow_enum_cmd)
9540 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9541 (add_setshow_filename_cmd, add_setshow_string_cmd)
9542 (add_setshow_string_noescape_cmd)
9543 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9544 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9545 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9546 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9547 Make "name" parameter const.
9548 (help_cmd): Rename "command" parameter to "arg". New const local
9549 "command".
9550 (find_cmd): Make "command" parameter const.
9551 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9552 deprecated_cmd_warning prototype change.
9553 (undef_cmd_error): Make "cmdtype" parameter const.
9554 (lookup_cmd): Make "line" parameter const.
9555 (deprecated_cmd_warning): Change type of "text" parameter to
9556 pointer to const char, from pointer to pointer to char. Adjust.
9557 (lookup_cmd_composition): Make "text" parameter const.
9558 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9559 parameters const.
9560 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9561 const.
9562 * cli/cli-script.c (validate_comname): Make "tem" local const.
9563 (define_command): New const local "tem_c". Use it in calls to
9564 lookup_cmd.
9565 (document_command): Make "tem" and "comfull" locals const.
9566 (show_user_1): Make "prefix" and "name" parameters const.
9567 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9568 const.
9569 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9570 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9571 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9572 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9573 (complete_on_enum, add_setshow_enum_cmd)
9574 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9575 (add_setshow_filename_cmd, add_setshow_string_cmd)
9576 (add_setshow_string_noescape_cmd)
9577 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9578 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9579 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9580 Change prototypes, constifying strings.
9581 * completer.c (noop_completer, filename_completer): Make "text"
9582 and "prefix" parameters const.
9583 (location_completer, expression_completer)
9584 (complete_line_internal): Make "text" and "prefix" parameters
9585 const and adjust.
9586 (command_completer, signal_completer): Make "text" and "prefix"
9587 parameters const.
9588 * completer.h (noop_completer, filename_completer)
9589 (expression_completer, location_completer, command_completer)
9590 (signal_completer): Change prototypes.
9591 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9592 parameters const.
9593 * cp-abi.c (cp_abi_completer): Likewise.
9594 * expression.h (parse_expression_for_completion): Change
9595 prototype.
9596 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9597 parameters const.
9598 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9599 * infrun.c (handle_completer): Make "text" and "word" parameters
9600 const.
9601 * interps.c (interpreter_completer): Make "text" and "word"
9602 parameters const.
9603 * language.h (struct language_defn)
9604 <la_make_symbol_completion_list>: Make "text" and "word"
9605 parameters const.
9606 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9607 (parse_exp_in_context): Rename to ...
9608 (parse_exp_in_context_1): ... this.
9609 (parse_exp_in_context): Reimplement, with const hack from
9610 parse_exp_1.
9611 (parse_expression_for_completion): Make "string" parameter const.
9612 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9613 to pointer to const char. Adjust.
9614 (print_command_1): Make "exp" parameter const.
9615 (output_command): Rename to ...
9616 (output_command_const): ... this. Make "exp" parameter const.
9617 (output_command): Reimplement.
9618 (x_command): Adjust.
9619 (display_command): Rename "exp" parameter to "arg". New "exp"
9620 local, const version of "arg".
9621 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9622 "cmd_name" local const.
9623 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9624 call.
9625 (cmdpy_completer): Make "text" and "word" parameters const.
9626 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9627 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9628 const.
9629 * remote.c (_initialize_remote): Make "cmd_name" local const.
9630 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9631 parameters const. Adjust.
9632 (completion_list_add_fields): Make "sym_text", "text" and "word"
9633 parameters const.
9634 (struct add_name_data) <sym_text, text, word>: Make fields const.
9635 (default_make_symbol_completion_list_break_on): Make "text" and
9636 "word" parameters const. Adjust locals.
9637 (default_make_symbol_completion_list)
9638 (make_symbol_completion_list, make_symbol_completion_type)
9639 (make_symbol_completion_list_fn): Make "text" and "word"
9640 parameters const.
9641 (make_file_symbol_completion_list): Make "text", "word" and
9642 "srcfile" parameters const. Adjust locals.
9643 (add_filename_to_list): Make "text" and "word" parameters const.
9644 (struct add_partial_filename_data) <text, word>: Make fields
9645 const.
9646 (make_source_files_completion_list): Make "text" and "word"
9647 parameters const.
9648 * symtab.h (default_make_symbol_completion_list_break_on)
9649 (default_make_symbol_completion_list, make_symbol_completion_list)
9650 (make_symbol_completion_type enum type_code)
9651 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9652 (make_source_files_completion_list): Change prototype.
9653 * top.c (execute_command): Adjust to pass pointer to pointer to
9654 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9655 change.
9656 (set_verbose): Make "cmdname" local const.
9657 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9658 and adjust.
9659 (validate_actionline): Make "line" parameter a pointer to const
9660 char, and adjust.
9661 (encode_actions_1): Make "action_exp" local const, and adjust.
9662 (encode_actions): Adjust.
9663 (replace_comma): Delete.
9664 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9665 const, and adjust. Don't frob the action string while splitting
9666 it at commas. Instead, make a copy of each split substring in
9667 turn.
9668 (trace_dump_command): Adjust to validate_actionline prototype
9669 change.
9670 * tracepoint.h (decode_agent_options, decode_agent_options)
9671 (encode_actions, validate_actionline): Change prototypes.
9672 * valprint.h (output_command): Delete declaration.
9673 (output_command_const): Declare.
9674 * value.c (function_destroyer): Cast const away in xfree call.
9675
9676 2013-03-13 Pedro Alves <palves@redhat.com>
9677
9678 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9679 rather than casting 'const char * const *' to 'const char **'.
9680 * ada-lex.l (processInt): Make "trailer" local const. Remove
9681 'const char **' cast.
9682 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9683 locals, and use those as strtol output pointer, instead than doing
9684 invalid casts to from 'const char **' to 'char **'.
9685 (_initialize_demangle): Remove cast.
9686 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9687 locals, and use those as strtol output pointer, instead than doing
9688 invalid casts to from 'const char **' to 'char **'.
9689 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9690 casts.
9691 * stap-probe.c (stap_parse_register_operand)
9692 (stap_parse_single_operand): Likewise.
9693
9694 2013-03-13 Yao Qi <yao@codesourcery.com>
9695
9696 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9697 the last matched 'V' blcok in trace frame.
9698
9699 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9700
9701 * NEWS: Create a new section for the next release branch.
9702 Rename the section of the current branch, now that it has
9703 been cut.
9704
9705 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9706
9707 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9708 * version.in: Bump version to 7.6.50.20130312-cvs.
9709
9710 2013-03-12 Keith Seitz <keiths@redhat.com>
9711
9712 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9713 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9714 Remove temporary copy of input string.
9715 (mi_execute_command_wrapper): Make "cmd" const.
9716 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9717 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9718 Use const strings.
9719 (mi_parse): Make "cmd" const.
9720 Use const strings.
9721 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9722
9723 2013-03-12 Keith Seitz <keiths@redhat.com>
9724
9725 * ada-lang.c (ada_read_renaming_var_value): Pass const
9726 pointer to expression string to parse_exp_1.
9727 (create_excep_cond_exprs): Likewise.
9728 * ax-gdb.c (agent_eval_command_one): Likewise.
9729 (maint_agent_printf_command): Likewise.
9730 Constify much of the string handling/parsing.
9731 * breakpoint.c (set_breakpoint_condition): Pass const
9732 pointer to expression string to parse_exp_1.
9733 (update_watchpoint): Likewise.
9734 (parse_cmd_to_aexpr): Constify string handling.
9735 Pass const pointer to parse_exp_1.
9736 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9737 (find_condition_and_thread): Likewise.
9738 Make TOK const.
9739 (watch_command_1): Make "arg" const.
9740 Constify string handling.
9741 Copy the expression string instead of changing the input
9742 string.
9743 (update_breakpoint_location): Pass const pointer to
9744 parse_exp_1.
9745 * eval.c (parse_and_eval_address): Make "exp" const.
9746 (parse_to_comma_and_eval): Make "expp" const.
9747 (parse_and_eval): Make "exp" const.
9748 * expression.h (parse_expression): Make argument const.
9749 (parse_exp_1): Make first argument const.
9750 * findcmd.c (parse_find_args): Treat "args" as const.
9751 * linespec.c (parse_linespec): Pass const pointer to
9752 linespec_expression_to_pc.
9753 (linespec_expression_to_pc): Make "exp_ptr" const.
9754 * parse.c (parse_exp_1): Make "stringptr" const.
9755 Make a copy of the expression to pass to parse_exp_in_context until
9756 this whole interface can be constified.
9757 (parse_expression): Make "string" const.
9758 * printcmd.c (ui_printf): Treat "arg" as const.
9759 Handle const strings.
9760 * tracepoint.c (validate_actionline): Pass const pointer to
9761 all calls to parse_exp_1.
9762 (encode_actions_1): Likewise.
9763 * value.h (parse_to_comma_and_eval): Make argument const.
9764 (parse_and_eval_address): Likewise.
9765 (parse_and_eval): Likewise.
9766 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9767 (varobj_set_value): Likewise.
9768 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9769 constify string handling.
9770 Pass const pointers to parse_and_eval_address and
9771 parse_to_comman_and_eval.
9772 * cli/cli-utils.c (skip_to_space): Rename to ...
9773 (skip_to_space_const): ... this. Handle const strings.
9774 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9775 skip_to_space_const.
9776 (skip_to_space_const): Declare.
9777 * common/format.c (parse_format_string): Make "arg" const.
9778 Handle const strings.
9779 * common/format.h (parse_format_string): Make "arg" const.
9780 * gdbserver/ax.c (ax_printf): Make "format" const.
9781 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9782 of the expression string.
9783
9784 2013-03-12 Hui Zhu <hui@codesourcery.com>
9785
9786 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9787
9788 2013-03-12 Yao Qi <yao@codesourcery.com>
9789 Hui Zhu <hui@codesourcery.com>
9790
9791 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9792 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9793 DW_OP_deref_size.
9794
9795 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9796
9797 * ada-lex.l (rules): Only recognize 'thread' as a
9798 delimiter when followed by numerals, as for c-exp.y.
9799 Use new rewind_to_char function to rewind the input for
9800 expression-delimiting tokens.
9801 (rewind_to_char): New function.
9802
9803 2013-03-11 Pedro Alves <palves@redhat.com>
9804 Jan Kratochvil <jan.kratochvil@redhat.com>
9805
9806 * configure: Regenerate.
9807 * configure.ac (check dynamic export flag): Link python test with
9808 $PYTHON_LIBS.
9809
9810 2013-03-11 Doug Evans <dje@google.com>
9811 Keith Seitz <keiths@redhat.com>
9812
9813 * linespec.c (find_linespec_symbols): Call find_function_symbols
9814 first, and then call lookup_prefix_sym/find_method.
9815
9816 2013-03-11 Pedro Alves <palves@redhat.com>
9817
9818 * charset.c (convert_between_encodings): Don't cast between
9819 different pointer to pointer types. Instead, make the 'inp' local
9820 be of the type iconv expects.
9821 (wchar_iterate): Don't cast between different pointer to pointer
9822 types. Instead, use new pointer local of the type iconv expects.
9823 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9824 Add new local of type char pointer, and use it to get a
9825 char/string view of the byte buffer, instead of casting between
9826 pointer to pointer types.
9827
9828 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9829
9830 * remote.c (remote_set_trace_buffer_size): Move != operator
9831 to the start of next line to fix an ARI warning.
9832
9833 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9834
9835 * NEWS: Add record changes.
9836
9837 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9838
9839 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9840 the instruction history disassembly.
9841 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9842 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9843
9844 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9845
9846 * Makefile.in (SFILES): Add record-btrace.c
9847 (COMMON_OBS): Add record-btrace.o
9848 * record-btrace.c: New.
9849 * objfiles.c: Include btrace.h.
9850 (free_objfile): call btrace_free_objfile.
9851
9852 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9853
9854 * target.c (target_call_history, target_call_history_from,
9855 target_call_history_range): New.
9856 * target.h (target_ops) <to_call_history, to_call_history_from,
9857 to_call_history_range>: New fields.
9858 (target_call_history, target_call_history_from,
9859 target_call_history_range): New declaration.
9860 * record.c (get_call_history_modifiers, cmd_record_call_history,
9861 record_call_history_size): New.
9862 (_initialize_record): Add the "record function-call-history" command.
9863 Add "set/show record function-call-history-size" commands.
9864 * record.h (record_print_flag): New.
9865
9866 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9867
9868 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9869 to_insn_history_range>: New fields.
9870 (target_insn_history): New.
9871 (target_insn_history_from): New.
9872 (target_insn_history_range): New.
9873 * target.c (target_insn_history): New.
9874 (target_insn_history_from): New.
9875 (target_insn_history_range): New.
9876 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9877 (record_insn_history_size): New.
9878 (get_insn_number): New.
9879 (get_context_size): New.
9880 (no_chunk): New.
9881 (get_insn_history_modifiers): New.
9882 (cmd_record_insn_history): New.
9883 (_initialize_record): Add "set/show record instruction-history-size"
9884 command. Add "record instruction-history" command.
9885
9886 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9887
9888 * record.h (record_disconnect): New.
9889 (record_detach): New.
9890 (record_mourn_inferior): New.
9891 (record_kill): New.
9892 * record-full.c (record_disconnect, record_detach,
9893 record_mourn_inferior, record_kill): Move to...
9894 * record.c: ...here.
9895 (DEBUG): New.
9896 (record_stop): New.
9897 (record_unpush): New.
9898 (cmd_record_stop): Call record_stop. Replace unpush_target
9899 call with record_unpush call.
9900 (record_disconnect, record_detach): Assert that the target
9901 is of record stratum. Call record_unpush, record_stop, and
9902 DEBUG.
9903 (record_mourn_inferior, record_kill): Assert that the target
9904 is of record stratum. Call record_unpush and DEBUG.
9905
9906 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9907
9908 * record-full.h, record-full.c (record_memory_query): Rename
9909 to ...
9910 (record_full_memory_query): ...this. Update all users.
9911 (record_arch_list_add_reg): Rename to ...
9912 (record_full_arch_list_add_reg): ...this. Update all users.
9913 (record_arch_list_add_mem): Rename to ...
9914 (record_full_arch_list_add_mem): ...this. Update all users.
9915 (record_arch_list_add_end): Rename to ...
9916 (record_full_arch_list_add_end): ...this. Update all users.
9917 (record_gdb_operation_disable_set): Rename to ...
9918 (record_full_gdb_operation_disable_set): ...this.
9919 Update all users.
9920
9921 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9922
9923 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9924 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9925 (RECORD_IS_REPLAY): Renamed to ...
9926 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9927 (RECORD_FILE_MAGIC): Renamed to ...
9928 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9929 (record_mem_entry): Renamed to ...
9930 (record_full_mem_entry): ... this. Updated all users.
9931 (record_reg_entry): Renamed to ...
9932 (record_full_reg_entry): ... this. Updated all users.
9933 (record_end_entry): Renamed to ...
9934 (record_full_end_entry): ... this. Updated all users.
9935 (record_type) <record_end, record_reg, record_mem>: Renamed
9936 to ...
9937 (record_full_type) <record_full_end, record_full_reg,
9938 record_full_mem>: ... this. Updated all users.
9939 (record_entry): Renamed to ...
9940 (record_full_entry): ... this. Updated all users.
9941 (record_core_buf_entry): Renamed to ...
9942 (record_full_core_buf_entry): ... this. Updated all users.
9943 (record_core_regbuf): Renamed to ...
9944 (record_full_core_regbuf): ... this. Updated all users.
9945 (record_core_start): Renamed to ...
9946 (record_full_core_start): ... this. Updated all users.
9947 (record_core_end): Renamed to ...
9948 (record_full_core_end): ... this. Updated all users.
9949 (record_core_buf_list): Renamed to ...
9950 (record_full_core_buf_list): ... this. Updated all users.
9951 (record_first): Renamed to ...
9952 (record_full_first): ... this. Updated all users.
9953 (record_list): Renamed to ...
9954 (record_full_list): ... this. Updated all users.
9955 (record_arch_list_head): Renamed to ...
9956 (record_full_arch_list_head): ... this. Updated all users.
9957 (record_arch_list_tail): Renamed to ...
9958 (record_full_arch_list_tail): ... this. Updated all users.
9959 (record_stop_at_limit): Renamed to ...
9960 (record_full_stop_at_limit): ... this. Updated all users.
9961 (record_insn_max_num): Renamed to ...
9962 (record_full_insn_max_num): ... this. Updated all users.
9963 (record_insn_num): Renamed to ...
9964 (record_full_insn_num): ... this. Updated all users.
9965 (record_insn_count): Renamed to ...
9966 (record_full_insn_count): ... this. Updated all users.
9967 (record_ops): Renamed to ...
9968 (record_full_ops): ... this. Updated all users.
9969 (record_core_ops): Renamed to ...
9970 (record_full_core_ops): ... this. Updated all users.
9971 (set_record_cmdlist): Renamed to ...
9972 (set_record_full_cmdlist): ... this. Updated all users.
9973 (show_record_cmdlist): Renamed to ...
9974 (show_record_full_cmdlist): ... this. Updated all users.
9975 (record_cmdlist): Renamed to ...
9976 (record_full_cmdlist): ... this. Updated all users.
9977 (record_beneath_to_resume_ops): Renamed to ...
9978 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9979 (record_beneath_to_resume): Renamed to ...
9980 (record_full_beneath_to_resume): ... this. Updated all users.
9981 (record_beneath_to_wait_ops): Renamed to ...
9982 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9983 (record_beneath_to_wait): Renamed to ...
9984 (record_full_beneath_to_wait): ... this. Updated all users.
9985 (record_beneath_to_store_registers_ops): Renamed to ...
9986 (record_full_beneath_to_store_registers_ops): ... this.
9987 Updated all users.
9988 (record_beneath_to_store_registers): Renamed to ...
9989 (record_full_beneath_to_store_registers): ... this.
9990 Updated all users.
9991 (record_beneath_to_xfer_partial_ops): Renamed to ...
9992 (record_full_beneath_to_xfer_partial_ops): ... this.
9993 Updated all users.
9994 (record_beneath_to_xfer_partial): Renamed to ...
9995 (record_full_beneath_to_xfer_partial): ... this.
9996 Updated all users.
9997 (record_beneath_to_insert_breakpoint): Renamed to ...
9998 (record_full_beneath_to_insert_breakpoint): ... this.
9999 Updated all users.
10000 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10001 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10002 Updated all users.
10003 (record_beneath_to_stopped_data_address): Renamed to ...
10004 (record_full_beneath_to_stopped_data_address): ... this.
10005 Updated all users.
10006 (record_beneath_to_async): Renamed to ...
10007 (record_full_beneath_to_async): ... this. Updated all users.
10008 (record_goto_insn): Renamed to ...
10009 (record_full_goto_insn): ... this. Updated all users.
10010 (record_save): Renamed to ...
10011 (record_full_save): ... this. Updated all users.
10012 (record_reg_alloc): Renamed to ...
10013 (record_full_reg_alloc): ... this. Updated all users.
10014 (record_reg_release): Renamed to ...
10015 (record_full_reg_release): ... this. Updated all users.
10016 (record_mem_alloc): Renamed to ...
10017 (record_full_mem_alloc): ... this. Updated all users.
10018 (record_mem_release): Renamed to ...
10019 (record_full_mem_release): ... this. Updated all users.
10020 (record_end_alloc): Renamed to ...
10021 (record_full_end_alloc): ... this. Updated all users.
10022 (record_end_release): Renamed to ...
10023 (record_full_end_release): ... this. Updated all users.
10024 (record_entry_release): Renamed to ...
10025 (record_full_entry_release): ... this. Updated all users.
10026 (record_list_release): Renamed to ...
10027 (record_full_list_release): ... this. Updated all users.
10028 (record_list_release_following): Renamed to ...
10029 (record_full_list_release_following): ... this.
10030 Updated all users.
10031 (record_list_release_first): Renamed to ...
10032 (record_full_list_release_first): ... this. Updated all users.
10033 (record_arch_list_add): Renamed to ...
10034 (record_full_arch_list_add): ... this. Updated all users.
10035 (record_get_loc): Renamed to ...
10036 (record_full_get_loc): ... this. Updated all users.
10037 (record_check_insn_num): Renamed to ...
10038 (record_full_check_insn_num): ... this. Updated all users.
10039 (record_arch_list_cleanups): Renamed to ...
10040 (record_full_arch_list_cleanups): ... this. Updated all users.
10041 (record_message): Renamed to ...
10042 (record_full_message): ... this. Updated all users.
10043 (record_message_wrapper): Renamed to ...
10044 (record_full_message_wrapper): ... this. Updated all users.
10045 (record_message_wrapper_safe): Renamed to ...
10046 (record_full_message_wrapper_safe): ... this. Updated all users.
10047 (record_gdb_operation_disable): Renamed to ...
10048 (record_full_gdb_operation_disable): ... this. Updated all users.
10049 (record_hw_watchpoint): Renamed to ...
10050 (record_full_hw_watchpoint): ... this. Updated all users.
10051 (record_exec_insn): Renamed to ...
10052 (record_full_exec_insn): ... this. Updated all users.
10053 (record_restore): Renamed to ...
10054 (record_full_restore): ... this. Updated all users.
10055 (record_async_inferior_event_token): Renamed to ...
10056 (record_full_async_inferior_event_token): ... this.
10057 Updated all users.
10058 (record_async_inferior_event_handler): Renamed to ...
10059 (record_full_async_inferior_event_handler): ... this.
10060 Updated all users.
10061 (record_core_open_1): Renamed to ...
10062 (record_full_core_open_1): ... this. Updated all users.
10063 (record_open_1): Renamed to ...
10064 (record_full_open_1): ... this. Updated all users.
10065 (record_open): Renamed to ...
10066 (record_full_open): ... this. Updated all users.
10067 (record_close): Renamed to ...
10068 (record_full_close): ... this. Updated all users.
10069 (record_resume_step): Renamed to ...
10070 (record_full_resume_step): ... this. Updated all users.
10071 (record_resumed): Renamed to ...
10072 (record_full_resumed): ... this. Updated all users.
10073 (record_execution_dir): Renamed to ...
10074 (record_full_execution_dir): ... this. Updated all users.
10075 (record_resume): Renamed to ...
10076 (record_full_resume): ... this. Updated all users.
10077 (record_get_sig): Renamed to ...
10078 (record_full_get_sig): ... this. Updated all users.
10079 (record_sig_handler): Renamed to ...
10080 (record_full_sig_handler): ... this. Updated all users.
10081 (record_wait_cleanups): Renamed to ...
10082 (record_full_wait_cleanups): ... this. Updated all users.
10083 (record_wait_1): Renamed to ...
10084 (record_full_wait_1): ... this. Updated all users.
10085 (record_wait): Renamed to ...
10086 (record_full_wait): ... this. Updated all users.
10087 (record_stopped_by_watchpoint): Renamed to ...
10088 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10089 (record_disconnect): Renamed to ...
10090 (record_full_disconnect): ... this. Updated all users.
10091 (record_detach): Renamed to ...
10092 (record_full_detach): ... this. Updated all users.
10093 (record_mourn_inferior): Renamed to ...
10094 (record_full_mourn_inferior): ... this. Updated all users.
10095 (record_kill): Renamed to ...
10096 (record_full_kill): ... this. Updated all users.
10097 (record_stopped_data_address): Renamed to ...
10098 (record_full_stopped_data_address): ... this. Updated all users.
10099 (record_registers_change): Renamed to ...
10100 (record_full_registers_change): ... this. Updated all users.
10101 (record_store_registers): Renamed to ...
10102 (record_full_store_registers): ... this. Updated all users.
10103 (record_xfer_partial): Renamed to ...
10104 (record_full_xfer_partial): ... this. Updated all users.
10105 (record_breakpoint): Renamed to ...
10106 (record_full_breakpoint): ... this. Updated all users.
10107 (record_breakpoint_p): Renamed to ...
10108 (record_full_breakpoint_p): ... this. Updated all users.
10109 (record_breakpoints): Renamed to ...
10110 (record_full_breakpoints): ... this. Updated all users.
10111 (record_sync_record_breakpoints): Renamed to ...
10112 (record_full_sync_record_breakpoints): ... this.
10113 Updated all users.
10114 (record_init_record_breakpoints): Renamed to ...
10115 (record_full_init_record_breakpoints): ... this.
10116 Updated all users.
10117 (record_insert_breakpoint): Renamed to ...
10118 (record_full_insert_breakpoint): ... this. Updated all users.
10119 (record_remove_breakpoint): Renamed to ...
10120 (record_full_remove_breakpoint): ... this. Updated all users.
10121 (record_can_execute_reverse): Renamed to ...
10122 (record_full_can_execute_reverse): ... this. Updated all users.
10123 (record_get_bookmark): Renamed to ...
10124 (record_full_get_bookmark): ... this. Updated all users.
10125 (record_goto_bookmark): Renamed to ...
10126 (record_full_goto_bookmark): ... this. Updated all users.
10127 (record_async): Renamed to ...
10128 (record_full_async): ... this. Updated all users.
10129 (record_can_async_p): Renamed to ...
10130 (record_full_can_async_p): ... this. Updated all users.
10131 (record_is_async_p): Renamed to ...
10132 (record_full_is_async_p): ... this. Updated all users.
10133 (record_execution_direction): Renamed to ...
10134 (record_full_execution_direction): ... this. Updated all users.
10135 (record_info): Renamed to ...
10136 (record_full_info): ... this. Updated all users.
10137 (record_delete): Renamed to ...
10138 (record_full_delete): ... this. Updated all users.
10139 (record_is_replaying): Renamed to ...
10140 (record_full_is_replaying): ... this. Updated all users.
10141 (record_goto_entry): Renamed to ...
10142 (record_full_goto_entry): ... this. Updated all users.
10143 (record_goto_begin): Renamed to ...
10144 (record_full_goto_begin): ... this. Updated all users.
10145 (record_goto_end): Renamed to ...
10146 (record_full_goto_end): ... this. Updated all users.
10147 (record_goto): Renamed to ...
10148 (record_full_goto): ... this. Updated all users.
10149 (init_record_ops): Renamed to ...
10150 (init_record_full_ops): ... this. Updated all users.
10151 (record_core_resume): Renamed to ...
10152 (record_full_core_resume): ... this. Updated all users.
10153 (record_core_kill): Renamed to ...
10154 (record_full_core_kill): ... this. Updated all users.
10155 (record_core_fetch_registers): Renamed to ...
10156 (record_full_core_fetch_registers): ... this. Updated all users.
10157 (record_core_prepare_to_store): Renamed to ...
10158 (record_full_core_prepare_to_store): ... this. Updated all users.
10159 (record_core_store_registers): Renamed to ...
10160 (record_full_core_store_registers): ... this. Updated all users.
10161 (record_core_xfer_partial): Renamed to ...
10162 (record_full_core_xfer_partial): ... this. Updated all users.
10163 (record_core_insert_breakpoint): Renamed to ...
10164 (record_full_core_insert_breakpoint): ... this. Updated all users.
10165 (record_core_remove_breakpoint): Renamed to ...
10166 (record_full_core_remove_breakpoint): ... this. Updated all users.
10167 (record_core_has_execution): Renamed to ...
10168 (record_full_core_has_execution): ... this. Updated all users.
10169 (init_record_core_ops): Renamed to ...
10170 (init_record_full_core_ops): ... this. Updated all users.
10171 (cmd_record_restore): Renamed to ...
10172 (cmd_record_full_restore): ... this. Updated all users.
10173 (record_save_cleanups): Renamed to ...
10174 (record_full_save_cleanups): ... this. Updated all users.
10175 (cmd_record_start): Renamed to ...
10176 (cmd_record_full_start): ... this. Updated all users.
10177 (set_record_insn_max_num): Renamed to ...
10178 (set_record_full_insn_max_num): ... this. Updated all users.
10179 (set_record_command): Renamed to ...
10180 (set_record_full_command): ... this. Updated all users.
10181 (show_record_command): Renamed to ...
10182 (show_record_full_command): ... this. Updated all users.
10183 (_initialize_record): Renamed to ...
10184 (_initialize_record_full): ... this. Updated all users.
10185
10186 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10187
10188 * record.h: Split into this and ...
10189 * record-full.h: ... this.
10190 * record.c: Split into this and ...
10191 * record-full.c: ... this.
10192 * target.h (target_ops): Add new fields to_info_record,
10193 to_save_record, to_delete_record, to_record_is_replaying,
10194 to_goto_record_begin, to_goto_record_end, to_goto_record.
10195 (target_info_record): New.
10196 (target_save_record): New.
10197 (target_supports_delete_record): New.
10198 (target_delete_record): New.
10199 (target_record_is_replaying): New.
10200 (target_goto_record_begin): New.
10201 (target_goto_record_end): New.
10202 (target_goto_record): New.
10203 * target.c (target_info_record): New.
10204 (target_save_record): New.
10205 (target_supports_delete_record): New.
10206 (target_delete_record): New.
10207 (target_record_is_replaying): New.
10208 (target_goto_record_begin): New.
10209 (target_goto_record_end): New.
10210 (target_goto_record): New.
10211 * record.h: Declare struct cmd_list_element.
10212 (record_cmdlist): New declaration.
10213 (set_record_cmdlist): New declaration.
10214 (show_record_cmdlist): New declaration.
10215 (info_record_cmdlist): New declaration.
10216 (cmd_record_goto): New declaration.
10217 * record.c: Remove unnecessary includes.
10218 Include inferior.h.
10219 (cmd_record_goto): Remove declaration.
10220 (record_cmdlist): Now extern. Initialize.
10221 (set_record_cmdlist): Now extern. Initialize.
10222 (show_record_cmdlist): Now extern. Initialize.
10223 (info_record_cmdlist): Now extern. Initialize.
10224 (find_record_target): New.
10225 (require_record_target): New.
10226 (cmd_record_start): Update.
10227 (cmd_record_delete): Remove target-specific code.
10228 Call target_delete_record.
10229 (cmd_record_stop): Unpush any record target.
10230 (set_record_insn_max_num): Move to record-full.c
10231 (set_record_command): Add comment.
10232 (show_record_command): Add comment.
10233 (info_record_command): Update comment.
10234 Remove target-specific code.
10235 Call the record target's to_info_record.
10236 (cmd_record_start): New.
10237 (cmd_record_goto): Now extern.
10238 Remove target-specific code.
10239 Call target_goto_begin, target_goto_end, or target_goto.
10240 (_initialize_record): Move record target ops initialization to
10241 record-full.c.
10242 Change "record" command help text.
10243 Move "record restore", "record set", and "record show" commands to
10244 record-full.c.
10245 * Makefile.in (SFILES): Add record-full.c.
10246 (HFILES_NO_SRCDIR): Add record-full.h.
10247 (COMMON_OBS): Add record-full.o.
10248 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10249 * arm-tdep.c: Include record-full.h.
10250 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10251 * i386-tdep.c: Include record-full.h.
10252 * infrun.c: Include record-full.h.
10253 * linux-record.c: Include record-full.h.
10254 * moxie-tdep.c: Include record-full.h.
10255 * record-full.c: Include record-full.h.
10256 Change module comment.
10257 (set_record_full_cmdlist): New.
10258 (show_record_full_cmdlist): New.
10259 (record_full_cmdlist): New.
10260 (record_goto_insn): New declaration.
10261 (record_save): New declaration.
10262 (record_check_insn_num): Change query string.
10263 (record_info): New.
10264 (record_delete): New.
10265 (record_is_replaying): New.
10266 (record_goto_entry): New.
10267 (record_goto_begin): New.
10268 (record_goto_end): New.
10269 (record_goto): New.
10270 (init_record_ops): Update.
10271 (init_record_core_ops): Update.
10272 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10273 (cmd_record_start): New.
10274 (set_record_insn_max_num): Moved from record.c
10275 (set_record_full_command): New.
10276 (show_record_full_command): New.
10277 (_initialize_record_full): New.
10278
10279 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10280
10281 * target.h (add_deprecated_target_alias): New.
10282 * target.c (add_deprecated_target_alias): New.
10283
10284 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10285
10286 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10287 and signal.h.
10288 (linux_supports_btrace): Add kernel and
10289 cpuid check.
10290 (kernel_supports_btrace): New function.
10291 (cpu_supports_btrace): New function.
10292 (intel_supports_btrace): New function.
10293
10294 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10295
10296 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10297 * remote.c: Include btrace.h.
10298 (struct btrace_target_info): New struct.
10299 (remote_supports_btrace): New function.
10300 (send_Qbtrace): New function.
10301 (remote_enable_btrace): New function.
10302 (remote_disable_btrace): New function.
10303 (remote_teardown_btrace): New function.
10304 (remote_read_btrace): New function.
10305 (init_remote_ops): Add btrace ops.
10306 (enum <unnamed>): Add btrace packets.
10307 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10308 (_initialize_remote): Add packet configuration for branch tracing.
10309
10310 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10311
10312 * features/btrace.dtd: New file.
10313 * Makefile.in (XMLFILES): Add btrace.dtd.
10314 * btrace.h (parse_xml_btrace): New declaration.
10315 * btrace.c: Include xml-support.h.
10316 (parse_xml_btrace): New function.
10317 (parse_xml_btrace_block): New function.
10318 (block_attributes): New struct.
10319 (btrace_attributes): New struct.
10320 (btrace_children): New struct.
10321 (btrace_elements): New struct.
10322
10323 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10324
10325 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10326 (amd64_linux_enable_btrace): New.
10327 (amd64_linux_disable_btrace): New.
10328 (amd64_linux_teardown_btrace): New.
10329 (_initialize_amd64_linux_nat): Initialize btrace ops.
10330 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10331 (i386_linux_enable_btrace): New.
10332 (i386_linux_disable_btrace): New.
10333 (i386_linux_teardown_btrace): New.
10334 (_initialize_i386_linux_nat): Initialize btrace ops.
10335 * config/i386/linux.mh: Add linux-btrace.o.
10336 * config/i386/linux64.mh: Add linux-btrace.o.
10337
10338 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10339
10340 * common/linux_btrace.h: New file.
10341 * common/linux_btrace.c: New file.
10342 * Makefile.in (SFILES): Add btrace.c.
10343 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10344 (COMMON_OBS): Add btrace.o.
10345 (linux-btrace.o): New rule.
10346
10347 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10348
10349 * target.h: Include btrace.h.
10350 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10351 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10352 * target.c (target_supports_btrace): New function.
10353 (target_enable_btrace): New function.
10354 (target_disable_btrace): New function.
10355 (target_teardown_btrace): New function.
10356 (target_read_btrace): New function.
10357 * btrace.h: New file.
10358 * btrace.c: New file.
10359 * Makefile.in: Add btrace.c.
10360 * gdbthread.h: Include btrace.h.
10361 (struct thread_info): Add btrace field.
10362 * thread.c: Include btrace.h.
10363 (clear_thread_inferior_resources): Call target_teardown_btrace.
10364 * common/btrace-common.h: New file.
10365
10366 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10367
10368 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10369 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10370 kill_status to outer block.
10371
10372 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10373
10374 Fix entry-values if the callee called a noreturn function.
10375 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10376 get_frame_address_in_block. Add new comment.
10377
10378 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10379
10380 Fix entry-values in C++ across CUs.
10381 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10382 lookup_minimal_symbol. Add a comment.
10383 * dwarf2read.c
10384 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10385 DW_AT_linkage_name.
10386
10387 2013-03-08 Yao Qi <yao@codesourcery.com>
10388
10389 * tracepoint.c (_initialize_tracepoint): Indent the code.
10390
10391 2013-03-08 Pedro Alves <palves@redhat.com>
10392
10393 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10394 (parse_find_args, find_command): Change type of pattern buffer
10395 locals to 'gdb_byte *'.
10396
10397 2013-03-08 Stan Shebs <stan@codesourcery.com>
10398 Hafiz Abid Qadeer <abidh@codesourcery.com>
10399
10400 * NEWS: Mention set and show trace-buffer-size commands.
10401 Mention new packet.
10402 * target.h (struct target_ops): New method
10403 to_set_trace_buffer_size.
10404 (target_set_trace_buffer_size): New macro.
10405 * target.c (update_current_target): Set up new method.
10406 * tracepoint.c (trace_buffer_size): New global.
10407 (start_tracing): Send it to the target.
10408 (set_trace_buffer_size): New function.
10409 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10410 * remote.c (remote_set_trace_buffer_size): New function.
10411 (_initialize_remote): Use it.
10412 (QTBuffer:size) New remote command.
10413 (PACKET_QTBuffer_size): New enum.
10414 (remote_protocol_features): Add an entry for
10415 PACKET_QTBuffer_size.
10416
10417 2013-03-08 Tom Tromey <tromey@redhat.com>
10418
10419 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10420 variable.
10421
10422 2013-03-07 Pedro Alves <palves@redhat.com>
10423
10424 * target.c (target_read_stralloc, target_fileio_read_alloc):
10425 *Cast pointer to 'gdb_byte *' in target call.
10426
10427 2013-03-07 Pedro Alves <palves@redhat.com>
10428
10429 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10430 call.
10431
10432 2013-03-07 Keith Seitz <keiths@redhat.com>
10433
10434 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10435 (trace_pass_command): Likewise.
10436 * cli/cli-cmds.c: Include cli/cli-utils.h.
10437 (source_command): Use skip-spaces.
10438 (disassemble_command): Likewise.
10439 * findcmd.c: Include cli/cli-utils.h.
10440 (parse_find_args): Use skip_spaces.
10441 * go32-nat.c: Include cli/cli-utils.h.
10442 (go32_sldt): Use skip_spaces.
10443 (go32_sgdt): Likewise.
10444 (go32_sidt): Likewise.
10445 (go32_pde): Likewise.
10446 (go32_pte): Likewise.
10447 (go32_pte_for_address): Likewise.
10448 * infcmd.c: Include cli/cli-utils.h.
10449 (registers_info): Use skip_spaces.
10450 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10451 (linux_info_proc): Likewise.
10452 * linux-thread-db.c: Include cli/cli-utils.h.
10453 (info_auto_load_libthread_db): Use skip_spaces_const.
10454 * m32r-rom.c: Include cli/cli-utils.h.
10455 (m32r_upload_command): Use skip_spaces.
10456 * maint.c: Include cli/cli-utils.h.
10457 (maintenance_translate_address): Use skip_spaces.
10458 * mi/mi-parse.c: Include cli/cli-utils.h.
10459 (mi_parse_argv): Use skip_spaces.
10460 (mi_parse): Likewise.
10461 * minsyms.c: Include cli/cli-utils.h.
10462 (msymbol_hash_iw): Use skip_spaces_const.
10463 * objc-lang.c: Include cli/cli-utils.h.
10464 (parse_selector): Use skip_spaces.
10465 (parse_method): Likewise.
10466 * python/python.c: Include cli/cli-utils.h.
10467 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10468 (python_command)[HAVE_PYTHON]: Likewise.
10469 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10470 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10471 (m32r_load): Use skip_spaces.
10472 * serial.c: Include cli/cli-utils.h.
10473 (serial_open): Use skip_spaces_const.
10474 * stack.c: Include cli/cli-utils.h.
10475 (parse_frame_specification_1): Use skip_spaces_const.
10476 * symfile.c: Include cli/cli-utils.h.
10477 (set_ext_lang_command): Use skip_spaces.
10478 * symtab.c: Include cli/cli-utils.h.
10479 (rbreak_command): Use skip_spaces.
10480 * thread.c (thread_name_command): Use skip_spaces.
10481 * tracepoint.c (validate_actionline): Use skip_spaces.
10482 (encode_actions_1): Likewise.
10483 (trace_find_range_command): Likewise.
10484 (trace_find_outside_command): Likewise.
10485 (trace_dump_actions): Likewise.
10486
10487 2013-03-07 Pedro Alves <palves@redhat.com>
10488
10489 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10490 * expprint.c (print_subexp_standard): Likewise.
10491 * utils.c (host_char_to_target): Likewise.
10492 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10493 * varobj.c (value_get_print_value): Change type of local to char*.
10494 Cast it gdb_byte * in call to language printer.
10495
10496 2013-03-07 Pedro Alves <palves@redhat.com>
10497
10498 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10499 gdb_byte *'.
10500 (make_wchar_iterator): Remove cast to char*.
10501 (wchar_iterate): Change type of local.
10502
10503 2013-03-07 Pedro Alves <palves@redhat.com>
10504
10505 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10506 for 'regcache->register_status'.
10507
10508 2013-03-07 Pedro Alves <palves@redhat.com>
10509
10510 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10511 int.
10512
10513 2013-03-07 Pedro Alves <palves@redhat.com>
10514
10515 * stap-probe.c (handle_stap_probe): Add cast to char*.
10516
10517 2013-03-07 Pedro Alves <palves@redhat.com>
10518
10519 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10520 RECORD_MSGRCV>: Pass a signed variable to
10521 regcache_raw_read_signed, instead of an unsigned one.
10522
10523 2013-03-07 Pedro Alves <palves@redhat.com>
10524
10525 * remote-notif.c (notif_debug): Change type to int.
10526 * remote-notif.h (notif_debug): Likewise.
10527
10528 2013-03-07 Pedro Alves <palves@redhat.com>
10529
10530 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10531
10532 2013-03-07 Pedro Alves <palves@redhat.com>
10533
10534 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10535 * remote.h (hex2bin, bin2hex): ... here.
10536 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10537
10538 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10539
10540 * utils.c (initialize_utils): Improve doc strings of "set/show
10541 width", "set/show height", and "set/show pagination".
10542
10543 2013-03-06 Keith Seitz <keiths@redhat.com>
10544
10545 * ax-gdb.c (gen_printf): Make FORMAT const.
10546 * ax-gdb.h (gen_printf): Likewise.
10547 * ax-general.c (ax_string): Make STR const.
10548 * ax.h (ax_string): Likewise.
10549
10550 2013-03-06 Doug Evans <dje@google.com>
10551
10552 * elfread.c (elf_symfile_read): Move debugging printf to more
10553 logical location.
10554
10555 2013-03-06 Pedro Alves <palves@redhat.com>
10556
10557 * python/py-utils.c (target_string_to_unicode): Delete function.
10558 * python/python-internal.h (target_string_to_unicode): Delete
10559 declaration.
10560
10561 2013-03-06 Pierre Muller <muller@sourceware.org>
10562
10563 * linespec.c (get_current_search_block): ARI fix, use (void)
10564 for empty parameter list.
10565
10566 2013-03-05 Doug Evans <dje@google.com>
10567
10568 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10569 of old ada_lookup_symbol_list. In !full_search case, don't
10570 search superblocks.
10571 (ada_lookup_symbol_list): Delete arg full_search, all callers
10572 updated. Call ada_lookup_symbol_list_worker.
10573 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10574 * ada-lang.h (ada_lookup_symbol_list): Update.
10575 * language.h (language_defn): Update comment for
10576 la_iterate_over_symbols.
10577 * linespec.c (iterate_over_file_blocks): New function.
10578 (iterate_over_all_matching_symtabs): Call it.
10579 (lookup_prefix_sym): Ditto.
10580 (get_current_search_block): New function.
10581 (get_search_block): Delete.
10582 (find_label_symbols): Call get_current_search_block.
10583 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10584 * symtab.c (iterate_over_symbols): Don't search superblocks.
10585
10586 2013-03-05 Yao Qi <yao@codesourcery.com>
10587
10588 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10589 parameter VAR's type from "unsigned int" to "int".
10590 * command.h (var_zuinteger_unlimited): Update its comments.
10591 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10592
10593 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10594
10595 * NEWS: Mention new target x86_64-*-cygwin*.
10596
10597 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10598
10599 * configure.host: Add x86_64-*-cygwin* as host.
10600 * configure.tgt: Add x86_64-*-cygwin* as target.
10601 * config/i386/cygwin64.mh: New file.
10602
10603 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10606
10607 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10608
10609 * linespec.c (struct linespec_canonical_name): New.
10610 (struct linespec_state): Change canonical_names type to it.
10611 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10612 xrealloc element size. Initialize the different CANONICAL fields.
10613 (canonical_to_fullform): New.
10614 (filter_results): Use it. Add variables canonical, fullform and
10615 cleanup.
10616 (struct decode_line_2_item, decode_line_2_compare_items): New.
10617 (decode_line_2): Remove variables iter and item_names, add variables
10618 items and items_count. Modify the code for these new variables.
10619
10620 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10621
10622 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10623 calling do_cleanup.
10624
10625 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10626
10627 * tracepoint.c (build_traceframe_info): Add code for byte order.
10628
10629 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10630
10631 * v850-tdep.c: (v850e2_register_name): Revise system register
10632 names to match current V850E2M architecture specifications.
10633 Update register number enum comments too.
10634
10635 2013-03-01 Jiong Wang <jiwang@tilera.com>
10636 Pedro Alves <palves@redhat.com>
10637
10638 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10639 to END_ADDR.
10640 (tilegx_skip_prologue): Limit prologue analysis to section end.
10641
10642 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10643
10644 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10645 use it.
10646
10647 2013-03-01 Pedro Alves <palves@redhat.com>
10648
10649 Use gdb_byte for bytes from the program being debugged.
10650
10651 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10652 Change type of local 'buf' to gdb_byte.
10653 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10654 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10655 * cris-tdep.c (cris_sigcontext_addr)
10656 (cris_sigtramp_frame_unwind_cache): Likewise.
10657 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10658 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10659 Likewise.
10660 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10661 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10662 (hppa32_hpux_search_dummy_call_sequence)
10663 (hppa_hpux_supply_save_state): Likewise.
10664 * hppa-linux-tdep.c (insns_match_pattern)
10665 (hppa_linux_find_global_pointer): Likewise.
10666 * hppa-tdep.c (hppa_in_function_epilogue_p)
10667 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10668 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10669 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10670 (i386fbsd_collect_uthread): Likewise.
10671 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10672 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10673 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10674 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10675 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10676 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10677 (ia64_libunwind_frame_prev_register)
10678 (ia64_libunwind_sigtramp_frame_this_id)
10679 (ia64_find_global_pointer_from_dynamic_section)
10680 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10681 (ia64_unwind_pc): Likewise.
10682 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10683 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10684 (m68hc11_extract_return_value): Likewise.
10685 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10686 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10687 (mep_get_insn, mep_push_dummy_call): Likewise.
10688 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10689 (mips_linux_in_dynsym_stub): Likewise.
10690 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10691 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10692 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10693 to gdb_byte.
10694 * remote-mips.c (mips_set_register): Likewise.
10695 * remote-sim.c (gdbsim_fetch_register): Likewise.
10696 * score-tdep.c (score7_fetch_inst): Change type of parameter
10697 'memblock' and local 'buf' to gdb_byte.
10698 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10699 Change type of local 'buf' to gdb_byte. Adjust.
10700 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10701 to gdb_byte**.
10702 (score7_analyze_prologue): Change type of 'memblock' and
10703 'memblock_ptr' locals to gdb_byte*.
10704 * sh64-tdep.c (sh64_extract_return_value)
10705 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10706 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10707 * solib-pa64.c (pa64_solib_create_inferior_hook)
10708 (pa64_open_symbol_file_object): Remove local 'buf'.
10709 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10710 (som_open_symbol_file_object): Likewise.
10711 * solib-spu.c (spu_current_sos): Likewise.
10712 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10713 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10714 (spu_store_registers): Likewise.
10715 * target.c (debug_print_register): Likewise.
10716 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10717 * xstormy16-tdep.c (xstormy16_store_return_value)
10718 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10719 (xstormy16_find_jmp_table_entry): Likewise.
10720
10721 2013-03-01 Jiong Wang <jiwang@tilera.com>
10722
10723 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10724 (tilegx_gdbarch_init): Install it.
10725
10726 2013-02-28 Tom Tromey <tromey@redhat.com>
10727
10728 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10729 PyLong_Check.
10730
10731 2013-02-28 Doug Evans <dje@google.com>
10732
10733 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10734 * python/python.c (gdbpy_find_pc_line): Ditto.
10735
10736 2013-02-28 Tom Tromey <tromey@redhat.com>
10737
10738 * contrib/excheck.py: New file.
10739 * contrib/exsummary.py: New file.
10740 * contrib/gcc-with-excheck: New file.
10741
10742 2013-02-28 Tom Tromey <tromey@redhat.com>
10743
10744 * python/python.c (gdbpy_print_stack): Call begin_line and
10745 fprintf_filtered inside TRY_CATCH.
10746
10747 2013-02-28 Tom Tromey <tromey@redhat.com>
10748
10749 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10750 inside TRY_CATCH.
10751
10752 2013-02-28 Tom Tromey <tromey@redhat.com>
10753
10754 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10755 frame_object_to_frame_info inside TRY_CATCH.
10756
10757 2013-02-28 Tom Tromey <tromey@redhat.com>
10758
10759 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10760 TRY_CATCH.
10761
10762 2013-02-28 Tom Tromey <tromey@redhat.com>
10763
10764 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10765
10766 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10767
10768 * windows-nat.c: Throughout, fix format strings and casts of
10769 printf-like functions to avoid type related warnings on all
10770 platforms.
10771 (handle_output_debug_string): Fetch context information address
10772 from debug string using string_to_core_addr.
10773
10774 2013-02-27 Jiong Wang <jiwang@tilera.com>
10775
10776 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10777 * regformats/reg-tilegx32.dat: New.
10778
10779 2013-02-27 Jiong Wang <jiwang@tilera.com>
10780
10781 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10782
10783 2013-02-27 Jiong Wang <jiwang@tilera.com>
10784
10785 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10786
10787 2013-02-27 Yao Qi <yao@codesourcery.com>
10788 Pedro Alves <palves@redhat.com>
10789
10790 * tracepoint.c (tfile_trace_find): For tfind
10791 pc/tp/range/outside, look for the next trace frame instead of
10792 always starting from frame 0.
10793
10794 2013-02-26 Anthony Green <green@moxielogic.com>
10795
10796 * configure.tgt: Add support for moxie-*-rtems* target.
10797
10798 2013-02-25 Pedro Alves <palves@redhat.com>
10799
10800 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10801 warning text.
10802
10803 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10804
10805 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10806 if $fp is used as the virtual frame pointer.
10807
10808 2013-02-23 Alan Modra <amodra@gmail.com>
10809
10810 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10811 symbol size.
10812 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10813 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10814 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10815 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10816
10817 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10818
10819 Code cleanup.
10820 * elfread.c (build_id_bfd_get): Make the return type const.
10821 (build_id_verify): Make the check parameter const.
10822 (build_id_to_debug_filename): Make the build_id parameter and variable
10823 data const.
10824 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10825
10826 2013-02-21 Alan Modra <amodra@gmail.com>
10827
10828 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10829
10830 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10831
10832 Add a new method 'disassemble' to gdb.Architecture class.
10833 * python/py-arch.c (archpy_disassmble): Implementation of the
10834 new method gdb.Architecture.disassemble.
10835 (arch_object_methods): Add entry for the new method.
10836
10837 2013-02-20 Jiong Wang <jiwang@tilera.com>
10838
10839 * MAINTAINERS (Write After Approval): Add myself to the list.
10840
10841 2013-02-19 Pedro Alves <palves@redhat.com>
10842
10843 Garbage collect 'struct monitor_ops'::load_routine.
10844
10845 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10846 * monitor.c (monitor_load): No longer call
10847 current_monitor->load_routine.
10848 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10849 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10850 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10851
10852 2013-02-19 Pedro Alves <palves@redhat.com>
10853
10854 PR gdb/15161
10855
10856 Harmonize with generic_load.
10857
10858 * monitor.c: Include "readline/readline.h".
10859 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10860 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10861 long/strtol for the 'load_offset' local. Error out if no argument
10862 is given or if too many arguments are given. Tilde expand the
10863 passed in file name.
10864
10865 2013-02-19 Kai Tietz <ktietz@redhat.com>
10866
10867 PR gdb/15161
10868 * symfile.c (load_section_data): Change type of load_offset
10869 to CORE_ADDR.
10870 (generic_load): User strtoulst instead of strtoul for conversion
10871 of load_offset.
10872
10873 2013-02-19 Jiong Wang <jiwang@tilera.com>
10874
10875 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10876 for return address, "lr" register, saved on stack.
10877 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10878 after we invoke tilegx_analyze_prologue.
10879
10880 2013-02-19 Jiong Wang <jiwang@tilera.com>
10881
10882 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10883
10884 2013-02-19 Jiong Wang <jiwang@tilera.com>
10885
10886 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10887
10888 2013-02-19 Jiong Wang <jiwang@tilera.com>
10889
10890 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10891 (tilegx_write_pc): New function.
10892 (tilegx_cannot_reference_register): Return zero if REGNO
10893 is TILEGX_FAULTNUM_REGNUM.
10894 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10895 (tilegx_register_name): Add handling of "faultnum" register.
10896 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10897 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10898 handling of TILEGX_FAULTNUM_REGNUM.
10899 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10900
10901 2013-02-19 Jiong Wang <jiwang@tilera.com>
10902
10903 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10904 should be aligned to 64bit.
10905
10906 2013-02-19 Kai Tietz <ktietz@redhat.com>
10907
10908 * windows-nat.c (windows_xfer_memory): Fix debug-output
10909 for LLP64.
10910
10911 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10912
10913 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10914 Don't check DSP register number if HAVE_DSP is not set.
10915
10916 2013-02-19 Alan Modra <amodra@gmail.com>
10917
10918 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10919 throughout file instead.
10920 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10921 Don't xmalloc return value.
10922 (build_id_verify): Similarly. Don't xfree.
10923 (build_id_to_debug_filename): Update.
10924 (find_separate_debug_file_by_buildid): Update, don't xfree.
10925
10926 2013-02-18 Tom Tromey <tromey@redhat.com>
10927
10928 PR gdb/15102:
10929 * dwarf2read.c (read_subrange_type): Use result of
10930 'check_typedef'.
10931
10932 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10933
10934 * frame.c: Remove one extra white space after #include
10935 directive.
10936
10937 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10938
10939 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10940
10941 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10942
10943 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10944 and dir commands into an if block.
10945
10946 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10947
10948 * python/py-breakpoint (struct pybp_code): Use int instead of
10949 enum type_code.
10950
10951 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10952 Hafiz Abid Qadeer <abidh@codesourcery.com>
10953
10954 * NEWS: Mention new field "trace-file".
10955 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10956 (tfile_open): Record the trace file's filename in the trace
10957 status.
10958 (tfile_files_info): Mention the name of the trace file.
10959 Check the "filename" field explicitely.
10960 (trace_status_command): Explicitely check "filename" field.
10961 (trace_find_command): Ditto.
10962 (trace_find_pc_command): Ditto.
10963 (trace_find_tracepoint_command): Ditto.
10964 (trace_find_line_command): Ditto.
10965 (trace_find_range_command): Ditto.
10966 (trace_find_outside_command): Ditto.
10967 * tracepoint.h (struct trace_status) <from_file>: Rename it
10968 to "filename" and make it hold the trace file's filename
10969 instead of a boolean.
10970 * remote.c (remote_get_trace_status): Initialize "filename"
10971 field with NULL instead of 0.
10972
10973 2013-02-15 Yao Qi <yao@codesourcery.com>
10974
10975 * remote.c: Fix a typo.
10976
10977 2013-02-14 Pierre Muller <muller@sourceware.org>
10978
10979 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10980
10981 2013-02-14 Pedro Alves <palves@redhat.com>
10982
10983 * utils.c (savestring): Don't #undef it. Move function to
10984 common/common-utils.c.
10985 * common/common-utils.c: Include gdb_string.h.
10986 (savestring): Move here from utils.c.
10987 * common/common-utils.h (savestring): Declare.
10988
10989 2013-02-14 Pedro Alves <palves@redhat.com>
10990
10991 * utils.c (savestring): Rename parameter 'size' to 'len'.
10992
10993 2013-02-14 Pedro Alves <palves@redhat.com>
10994 Yufeng Zhang <yufeng.zhang@arm.com>
10995
10996 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10997 (aarch64_inferior_data, struct aarch64_inferior_data):
10998 Delete.
10999 (struct aarch64_process_info): New.
11000 (aarch64_process_list): New global.
11001 (aarch64_find_process_pid, aarch64_add_process)
11002 (aarch64_process_info_get): New functions.
11003 (aarch64_inferior_data_get): Delete.
11004 (aarch64_process_info_get): New function.
11005 (aarch64_forget_process): New function.
11006 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11007 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11008 aarch64_get_debug_reg_state.
11009 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11010 instead of linux_nat_iterate_watchpoint_lwps.
11011 (aarch64_linux_new_fork): New function.
11012 (aarch64_linux_child_post_startup_inferior): Use
11013 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11014 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11015 (aarch64_linux_remove_hw_breakpoint)
11016 (aarch64_handle_aligned_watchpoint)
11017 (aarch64_handle_unaligned_watchpoint)
11018 (aarch64_linux_insert_watchpoint)
11019 (aarch64_linux_remove_watchpoint)
11020 (aarch64_linux_stopped_data_address): Adjust to pass the current
11021 process id to aarch64_debug_reg_state.
11022 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11023 linux_nat_new_fork hook, and aarch64_forget_process as
11024 linux_nat_forget_process hook; remove the call to
11025 register_inferior_data_with_cleanup.
11026
11027 2013-02-14 Pedro Alves <palves@redhat.com>
11028
11029 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11030 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11031 lval_memory.
11032
11033 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11034 Hafiz Abid Qadeer <abidh@codesourcery.com>
11035
11036 * tracepoint.h (validate_trace_state_variable_name): Declare.
11037 * tracepoint.c (validate_trace_state_variable_name): New.
11038 (trace_variable_command): Parse the trace state variable's name
11039 without using parse_expression. Do several validations.
11040 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11041 trace state variable's name with parse_expression. Validate it.
11042
11043 2013-02-14 Yao Qi <yao@codesourcery.com>
11044
11045 * infcmd.c (breakpoint_proceeded): Remove it.
11046
11047 2013-02-14 Yao Qi <yao@codesourcery.com>
11048
11049 * tracepoint.c (end_actions_pseudocommand): Make it static.
11050 (while_stepping_pseudocommand): Likewise.
11051 * tracepoint.h (end_actions_pseudocommand): Remove the
11052 declaration.
11053 (while_stepping_pseudocommand): Likewise.
11054
11055 2013-02-14 Yao Qi <yao@codesourcery.com>
11056
11057 * cli/cli-decode.c (help_cmd): Remove the declaration of
11058 "cmdlist".
11059 (help_all): Likewise.
11060
11061 2013-02-13 Pedro Alves <palves@redhat.com>
11062
11063 * amd64-linux-nat.c (update_debug_registers_callback):
11064 Update comment.
11065 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11066 iterate_over_lwps.
11067 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11068 i386_debug_reg_state.
11069 (amd64_linux_new_fork): New function.
11070 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11071 linux_nat_new_fork hook, and i386_forget_process as
11072 linux_nat_forget_process hook.
11073 * i386-linux-nat.c (update_debug_registers_callback):
11074 Update comment.
11075 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11076 iterate_over_lwps.
11077 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11078 i386_debug_reg_state.
11079 (i386_linux_new_fork): New function.
11080 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11081 linux_nat_new_fork hook, and i386_forget_process as
11082 linux_nat_forget_process hook.
11083 * i386-nat.c (i386_init_dregs): Delete.
11084 (i386_inferior_data, struct i386_inferior_data):
11085 Delete.
11086 (struct i386_process_info): New.
11087 (i386_process_list): New global.
11088 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11089 New functions.
11090 (i386_inferior_data_get): Delete.
11091 (i386_process_info_get): New function.
11092 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11093 (i386_forget_process): New function.
11094 (i386_cleanup_dregs): Rewrite.
11095 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11096 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11097 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11098 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11099 to i386_debug_reg_state.
11100 (i386_use_watchpoints): Don't register inferior data.
11101 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11102 adjust comment.
11103 (i386_forget_process): Declare.
11104 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11105 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11106 New static globals.
11107 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11108 (add_initial_lwp): New, factored out from ...
11109 (add_lwp): ... this. Don't check the number of lwps before
11110 calling linux_nat_new_thread.
11111 (linux_nat_iterate_watchpoint_lwps): Delete.
11112 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11113 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11114 forks and vforks.
11115 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11116 initial lwp.
11117 (linux_nat_kill, linux_nat_mourn_inferior): Call
11118 linux_nat_forget_process.
11119 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11120 (linux_nat_forget_process): New functions.
11121 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11122 type.
11123 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11124 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11125 types.
11126 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11127 (linux_nat_forget_process): New declarations.
11128
11129 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11130 (amd64fbsd_mourn_inferior): New function.
11131 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11132 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11133
11134 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11135
11136 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11137 Adding _().
11138
11139 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11140
11141 * aarch64-linux-nat.c (debug_reg_change_callback)
11142 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11143 %s and phex().
11144
11145 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11146
11147 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11148 with LONGEST.
11149
11150 2013-02-13 Pedro Alves <palves@redhat.com>
11151 Hafiz Abid Qadeer <abidh@codesourcery.com>
11152
11153 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11154
11155 2013-02-12 Tom Tromey <tromey@redhat.com>
11156
11157 PR symtab/11464:
11158 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11159 NAME return.
11160 (classify_inner_name): Remove 'first_name' argument, add
11161 'context'. Remove unused variable.
11162 (yylex): Explicitly maintain the context type. Exit loop earlier
11163 if NAME result is seen.
11164
11165 2013-02-12 Pedro Alves <palves@redhat.com>
11166
11167 * amd64-darwin-tdep.c: Add (C) after Copyright.
11168 * cli/cli-cmds.h: Ditto.
11169 * cli/cli-decode.c: Ditto.
11170 * cli/cli-decode.h: Ditto.
11171 * cli/cli-dump.c: Ditto.
11172 * cli/cli-dump.h: Ditto.
11173 * cli/cli-interp.c: Ditto.
11174 * cli/cli-logging.c: Ditto.
11175 * cli/cli-script.c: Ditto.
11176 * cli/cli-script.h: Ditto.
11177 * cli/cli-setshow.c: Ditto.
11178 * cli/cli-setshow.h: Ditto.
11179 * cli/cli-utils.c: Ditto.
11180 * cli/cli-utils.h: Ditto.
11181 * config/alpha/nm-osf3.h: Ditto.
11182 * config/djgpp/djconfig.sh: Ditto.
11183 * config/i386/nm-fbsd.h: Ditto.
11184 * config/i386/nm-i386gnu.h: Ditto.
11185 * config/nm-linux.h: Ditto.
11186 * config/nm-nto.h: Ditto.
11187 * config/rs6000/nm-rs6000.h: Ditto.
11188 * config/sparc/nm-sol2.h: Ditto.
11189 * darwin-nat-info.c: Ditto.
11190 * dfp.c: Ditto.
11191 * dfp.h: Ditto.
11192 * gdb-demangle.h: Ditto.
11193 * i386-darwin-nat.c: Ditto.
11194 * i386-darwin-tdep.c: Ditto.
11195 * linux-fork.h: Ditto.
11196 * m32c-tdep.c: Ditto.
11197 * microblaze-linux-tdep.c: Ditto.
11198 * microblaze-rom.c: Ditto.
11199 * microblaze-tdep.c: Ditto.
11200 * microblaze-tdep.h: Ditto.
11201 * mips-linux-tdep.h: Ditto.
11202 * ppc-ravenscar-thread.c: Ditto.
11203 * ppc-ravenscar-thread.h: Ditto.
11204 * prologue-value.c: Ditto.
11205 * prologue-value.h: Ditto.
11206 * ravenscar-thread.c: Ditto.
11207 * ravenscar-thread.h: Ditto.
11208 * sparc-ravenscar-thread.c: Ditto.
11209 * sparc-ravenscar-thread.h: Ditto.
11210 * tilegx-linux-tdep.c: Ditto.
11211 * unwind_stop_reasons.def: Ditto.
11212 * windows-nat.h: Ditto.
11213 * xtensa-linux-tdep.c: Ditto.
11214 * xtensa-xtregs.c: Ditto.
11215 * regformats/regdat.sh: Ditto.
11216 * regformats/regdef.h: Ditto.
11217
11218 2013-02-12 Pedro Alves <palves@redhat.com>
11219
11220 * break-catch-sig.c: Update copyright years.
11221
11222 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11223
11224 Add support for a destructor for ui_out data and use it to
11225 provide a ui_out destructor.
11226 * ui-out.h: Declare the new ui_out destructor.
11227 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11228 * ui-out.c (default_data_destroy): Add a default data destructor
11229 which does nothing.
11230 (default_ui_out_impl): Set the new data_destroy field to
11231 default_data_destroy
11232 (uo_data_destroy): Local function which invokes the data
11233 destructor if present.
11234 (clear_table): Local function which clears the table data of a
11235 ui_out object.
11236 (ui_out_destroy): Public function which frees a ui_out object.
11237 (ui_out_table_end): Use the new clear_table function.
11238 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11239 NULL.
11240 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11241 to NULL.
11242
11243 2013-02-11 Doug Evans <dje@google.com>
11244
11245 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11246 (printf_decfloat): New function. Broken out from ui_printf.
11247 Remove unnecessary code to shift the entire format string down.
11248 (printf_pointer): New function.
11249 (ui_printf): Code to print C strings, wide C strings, decfloats,
11250 and pointers moved to separate functions.
11251
11252 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11253
11254 * valops.c (value_assign): Handling bitfield offset in
11255 `lval_internalvar_component' case.
11256
11257 2013-02-08 Doug Evans <dje@google.com>
11258
11259 * common/format.c (parse_format_string): Fix whitespace.
11260
11261 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11262
11263 * stack.c (return_command): Work around uninitialized variable
11264 warning.
11265
11266 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11267
11268 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11269 number of the registers from 36 to 34.
11270
11271 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11272
11273 * NEWS: Mention new AArch64 native and target support.
11274
11275 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11276
11277 * MAINTAINERS (Write After Approval): Add myself.
11278
11279 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11280 Marcus Shawcroft <marcus.shawcroft@arm.com>
11281 Nigel Stephens <nigel.stephens@arm.com>
11282 Yufeng Zhang <yufeng.zhang@arm.com>
11283
11284 * aarch64-linux-nat.c: New file.
11285 * config/aarch64/linux.mh: New file.
11286 * configure.host: Add AArch64.
11287 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11288
11289 2013-02-07 Doug Evans <dje@google.com>
11290
11291 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11292 disassemble command.
11293
11294 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11295
11296 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11297 set_gdbarch_fetch_tls_load_module_address.
11298
11299 2013-02-06 David S. Miller <davem@davemloft.net>
11300
11301 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11302 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11303 * value.c (struct_return_convention): New function.
11304 (using_struct_return): Implement in terms of struct_return_convention.
11305 * value.h (struct_return_convention): Declare.
11306 * stack.c (return_command): Allow successful overriding of the return
11307 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11308
11309 2013-02-06 Tom Tromey <tromey@redhat.com>
11310
11311 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11312 outside of TRY_CATCH.
11313
11314 2013-02-06 Yao Qi <yao@codesourcery.com>
11315
11316 * mi/mi-interp.c: Include "tracepoint.h".
11317 (mi_tsv_modified): Declare.
11318 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11319 (mi_interpreter_init): Call observer_attach_tsv_modified.
11320 (mi_tsv_modified): New.
11321 (mi_tsv_created, mi_tsv_deleted): Update.
11322 * tracepoint.c (trace_variable_command): Call
11323 observer_notify_tsv_modified if the initial value of tsv is
11324 changed.
11325 (delete_trace_state_variable): Call
11326 observer_notify_tsv_deleted earlier.
11327 (trace_variable_command): Caller update.
11328 (create_tsv_from_upload): Likewise.
11329 * observer.sh: Declare "struct trace_state_variable".
11330
11331 * NEWS: Mention the new MI notification "=tsv-modified".
11332
11333 2013-02-05 Doug Evans <dje@google.com>
11334
11335 * completer.c (location_completer): Fix typo in comment.
11336
11337 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11338
11339 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11340 ADDRESS sorted.
11341
11342 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11343
11344 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11345 Refactor if statement to avoid trailing || operator.
11346
11347 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11348
11349 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11350
11351 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11352
11353 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11354 * configure.host: Add powerpc*-*-freebsd* target.
11355 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11356 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11357 * config/powerpc/fbsd.mh: New file.
11358
11359 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11360 Denys Vlasenko <dvlasenk@redhat.com>
11361 Pedro Alves <palves@redhat.com>
11362
11363 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11364 (struct elf_internal_linux_prpsinfo): Forward declare.
11365 * gdbarch.h, gdbarch.c: Regenerate.
11366 * linux-tdep.c: Include `cli/cli-utils.h'.
11367 (linux_fill_prpsinfo): New function.
11368 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11369 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11370 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11371 depending on gdbarch pointer bitness.
11372 * ppc-linux-tdep.c: Include elf-bfd.h.
11373 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11374 on 32-bit.
11375
11376 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11377 Marcus Shawcroft <marcus.shawcroft@arm.com>
11378 Nigel Stephens <nigel.stephens@arm.com>
11379 Yufeng Zhang <yufeng.zhang@arm.com>
11380
11381 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11382
11383 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11384 Marcus Shawcroft <marcus.shawcroft@arm.com>
11385 Nigel Stephens <nigel.stephens@arm.com>
11386 Yufeng Zhang <yufeng.zhang@arm.com>
11387
11388 * aarch64-newlib-tdep.c: New file.
11389 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11390 aarch64*-*-elf.
11391 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11392 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11393 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11394 * osabi.c (gdb_osabi_names): Add "Newlib".
11395
11396 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11397 Marcus Shawcroft <marcus.shawcroft@arm.com>
11398 Nigel Stephens <nigel.stephens@arm.com>
11399 Yufeng Zhang <yufeng.zhang@arm.com>
11400
11401 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11402 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11403 * aarch64-linux-tdep.c: New file.
11404 * aarch64-linux-tdep.h: New file.
11405 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11406 * configure.tgt: Add aarch64-none-linux-gnu.
11407
11408 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11409 Marcus Shawcroft <marcus.shawcroft@arm.com>
11410 Nigel Stephens <nigel.stephens@arm.com>
11411 Yufeng Zhang <yufeng.zhang@arm.com>
11412
11413 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11414 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11415 (ALLDEPFILES): Add aarch64-tdep.c.
11416 * aarch64-tdep.c: New file.
11417 * aarch64-tdep.h: New file.
11418 * configure.tgt: Add AArch64.
11419 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11420 (aarch64-expedite): New definition.
11421 * features/aarch64-core.xml: New file.
11422 * features/aarch64-fpu.xml: New file.
11423 * features/aarch64-without-fpu.c: New file (generated).
11424 * features/aarch64-without-fpu.xml: New file.
11425 * features/aarch64.c: New file (generated).
11426 * features/aarch64.xml: New file.
11427 * regformats/aarch64-without-fpu.dat: New file (generated).
11428 * regformats/aarch64.dat: New file (generated).
11429
11430 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11431
11432 * contrib/expect-read1.c: New file.
11433 * contrib/expect-read1.sh: New file.
11434
11435 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11436
11437 * dwarf2read.c (file_file_name): New function with code from
11438 file_full_name.
11439 (file_full_name): Move most of the code to file_file_name.
11440 (macro_start_file): Rename variable full_name to file_name and use
11441 file_file_name for it. Add comp_dir parameter to new_macro_table.
11442 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11443 macro_source_file->filename access by macro_source_fullname call.
11444 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11445 caller.
11446 * macrotab.c (struct macro_table): New field comp_dir.
11447 (macro_include): New variables link_fullname and source_fullname.
11448 Replace any macro_source_file->filename access by macro_source_fullname
11449 call.
11450 (macro_lookup_inclusion): Remove the partial filenames checking code.
11451 (check_for_redefinition): New variables source_fullname and
11452 found_key_fullname. Replace any macro_source_file->filename access by
11453 macro_source_fullname call.
11454 (macro_undef): New variables source_fullname and key_fullname. Replace
11455 any macro_source_file->filename access by macro_source_fullname call.
11456 (macro_lookup_definition): New variables retval and source_fullname.
11457 Replace any macro_source_file->filename access by macro_source_fullname
11458 call.
11459 (foreach_macro): New variable key_fullname. Replace any
11460 macro_source_file->filename access by macro_source_fullname call.
11461 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11462 macro_source_file->filename access by macro_source_fullname call.
11463 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11464 (macro_source_fullname): New function.
11465 * macrotab.h (struct macro_source_file): Extent the filename field
11466 comment.
11467 (new_macro_table): New parameter comp_dir, add a comment for it.
11468 (macro_source_fullname): new declaration.
11469
11470 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11471
11472 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11473 this_real_name to outer block. Use it also for
11474 compare_filenames_for_search.
11475 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11476 with dw2_get_real_path for file_matcher, considering also
11477 BASENAMES_MAY_DIFFER.
11478 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11479
11480 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11481
11482 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11483 to the file_matcher parameter. Pass 0 to it.
11484 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11485 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11486 NULL psymtab_to_fullname result.
11487 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11488 an expected filename instead.
11489 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11490 file_matcher parameter. Call also psymtab_to_fullname, after newly
11491 considering BASENAMES_MAY_DIFFER.
11492 * source.c (rewrite_source_path): Remove static.
11493 * source.h (rewrite_source_path): New declaration.
11494 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11495 the expand_symtabs_matching field. Comment it.
11496 * symtab.c (file_matches): New function comment. Add parameter
11497 basenames, implement it.
11498 (search_symbols_file_matches): Add basenames parameter. Update the
11499 file_matches caller.
11500 (search_symbols): Match FILES also against symtab_to_fullname.
11501 Optimize it for BASENAMES_MAY_DIFFER.
11502
11503 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11504
11505 * source.c (print_source_lines_base): Print for TUI also "fullname".
11506 * tui/tui-data.c (init_content_element): Change tui_locator_element
11507 field to full_name.
11508 * tui/tui-data.h (struct tui_locator_element): Likewise.
11509 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11510 tui_update_locator_filename calls to tui_update_locator_fullname.
11511 Replace symtab->filename refererence by symtab_to_fullname call.
11512 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11513 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11514 field to full_name. Replace symtab->filename refererence by
11515 symtab_to_fullname call.
11516 (tui_show_symtab_source): Rename parameter to fullname. Change
11517 tui_locator_element field to full_name.
11518 * tui/tui-stack.c: Include source.h.
11519 (tui_set_locator_filename): Rename the declaration to ...
11520 (tui_set_locator_fullname): ... here. Rename its parameter to
11521 fullname, updates its comment.
11522 (tui_set_locator_info): Rename its parameter to fullname.
11523 (tui_set_locator_filename): Rename the definition to ...
11524 (tui_set_locator_fullname): ... here. Rename its parameter to
11525 fullname, updates its comment. Change tui_locator_element field to
11526 full_name.
11527 (tui_set_locator_info): Rename its parameter to fullname.
11528 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11529 (tui_update_locator_filename): Rename to ...
11530 (tui_update_locator_fullname): ... here. Rename callee to
11531 tui_set_locator_fullname.
11532 (tui_show_frame_info): Replace symtab->filename refererence by
11533 symtab_to_fullname call.
11534 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11535 (tui_update_locator_fullname): ... here.
11536 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11537 tui_update_locator_fullname. Replace symtab->filename refererence by
11538 symtab_to_fullname call.
11539 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11540 Rename the callee to tui_update_locator_fullname.
11541 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11542
11543 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11544
11545 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11546 by symtab_to_filename_for_display calls.
11547 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11548 (clear_command): New variable sal_fullname, initialize it. Replace
11549 compare_filenames_for_search by filename_cmp with sal_fullname.
11550 (say_where, update_static_tracepoint): Replace symtab->filename
11551 refererences by symtab_to_filename_for_display calls.
11552 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11553 Likewise.
11554 * dwarf2read.c: Include source.h.
11555 (fixup_go_packaging): Replace symtab->filename refererences by
11556 symtab_to_filename_for_display calls.
11557 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11558 Replace symtab->filename refererences by symtab_to_filename_for_display
11559 calls.
11560 (create_sals_line_offset, convert_linespec_to_sals): New variable
11561 fullname, initialize it, replace symtab->filename reference by the
11562 variable.
11563 * linux-fork.c: Include source.h.
11564 (info_checkpoints_command): Replace symtab->filename refererences by
11565 symtab_to_filename_for_display calls.
11566 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11567 by symtab_to_filename_for_display calls.
11568 * mdebugread.c: Include source.h.
11569 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11570 symtab_to_filename_for_display calls.
11571 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11572 (mi_cmd_file_list_exec_source_files): Likewise.
11573 * printcmd.c: Include source.h.
11574 (build_address_symbolic): Replace symtab->filename refererences by
11575 symtab_to_filename_for_display calls.
11576 * psymtab.c (partial_map_symtabs_matching_filename)
11577 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11578 with psymtab_to_fullname.
11579 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11580 by symtab_to_filename_for_display calls.
11581 (stpy_get_filename): New variable filename, initialize it, use instead
11582 of symtab->filename refererences.
11583 (salpy_str): Make variable filename const char *. Replace
11584 symtab->filename refererences by symtab_to_filename_for_display calls.
11585 * skip.c: Include source.h and filenames.h.
11586 (skip_file_command): Remove const from the symtab variable. Replace
11587 symtab->filename refererences by symtab_to_fullname call.
11588 (function_name_is_marked_for_skip): New variables searched_for_fullname
11589 and fullname. Use them to search also with symtab's fullname.
11590 * source.c (find_source_lines): Replace symtab->filename refererences
11591 by symtab_to_filename_for_display calls.
11592 (print_source_lines_base): New variable filename, use it instead of
11593 symtab->filename. Replace symtab->filename refererences by
11594 symtab_to_filename_for_display calls.
11595 (line_info, forward_search_command): Replace symtab->filename
11596 refererences by symtab_to_filename_for_display calls.
11597 (reverse_search_command): Replace symtab->filename refererences by
11598 symtab_to_filename_for_display calls. New variable filename for it.
11599 * stack.c (frame_info): Likewise.
11600 * symmisc.c: Include source.h.
11601 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11602 (maintenance_info_symtabs): Replace symtab->filename refererences by
11603 symtab_to_filename_for_display calls.
11604 * symtab.c (iterate_over_some_symtabs): Call
11605 compare_filenames_for_search also with symtab_to_fullname.
11606 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11607 symtab->filename refererences by symtab_to_filename_for_display calls.
11608 (find_line_symtab): Replace symtab->filename refererences by
11609 symtab_to_filename_for_display calls.
11610 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11611 (print_symbol_info): Make the last parameter const char *. New
11612 variable s_filename. Use it in the function.
11613 (symtab_symbol_info): Make the last_filename variable const char *.
11614 Replace symtab->filename refererences by symtab_to_filename_for_display
11615 calls.
11616 (rbreak_command): New variable fullname. Use it. Replace
11617 symtab->filename refererence by symtab_to_filename_for_display call.
11618 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11619 (print_one_static_tracepoint_marker): Replace symtab->filename
11620 refererences by symtab_to_filename_for_display calls.
11621 * tui/tui-source.c (tui_set_source_content): New variables filename and
11622 s_filename. Replace symtab->filename refererences by this variable.
11623 Replace other symtab->filename refererences by
11624 symtab_to_filename_for_display calls.
11625
11626 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11627 Jan Kratochvil <jan.kratochvil@redhat.com>
11628
11629 Add a new variable that controls a way in which filenames are
11630 displayed.
11631 * NEWS (set filename-display): New entry.
11632 * source.c (filename_display_basename, filename_display_relative)
11633 (filename_display_absolute, filename_display_kind_names)
11634 (filename_display_string, show_filename_display_string)
11635 (symtab_to_filename_for_display): New.
11636 (_initialize_source): Added initialization of 'filename-display'
11637 variable.
11638 * source.h (symtab_to_filename_for_display): Added declaration.
11639 * stack.c (print_frame): Added new variable and calling of a new
11640 function and condition with this variable. Changed third argument of
11641 calling of a function.
11642
11643 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11644
11645 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11646 Rename field reference filename to fullname.
11647 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11648 fullname. New comment for it.
11649 * tui/tui-source.c (tui_set_source_content): Rename field reference
11650 filename to fullname. Initialize field by symtab_to_fullname now.
11651 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11652 reference filename to fullname. Use symtab_to_fullname during
11653 comparison.
11654
11655 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11656
11657 Code cleanup.
11658 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11659 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11660 filename to fullname. Rename variable this_name to this_fullname.
11661 Lowercase FILENAME_CMP call.
11662 (dw2_find_symbol_file): New comment for the returned string.
11663 (dwarf2_gdb_index_functions): Rename the function to
11664 dw2_expand_symtabs_with_fullname.
11665 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11666 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11667 fullname.
11668 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11669 * symfile.h (struct quick_symbol_functions): Rename field
11670 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11671 parameter filename to fullname. Document returned string meaning for
11672 find_symbol_file.
11673 * symtab.c (find_line_symtab): Rename the called function to
11674 expand_symtabs_with_fullname.
11675
11676 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11677
11678 Code cleanup.
11679 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11680 call of filename_cmp with compare_filenames_for_search.
11681 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11682 is_abs, unify the call of FILENAME_CMP with
11683 compare_filenames_for_search. New gdb_asserts for real_path and name.
11684 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11685 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11686 * symfile.h (struct quick_symbol_functions): Extend the comment for
11687 map_symtabs_matching_filename.
11688 * symtab.c (compare_filenames_for_search): Remove the function comment
11689 relative path requirement. Handle absolute filenames, with a comment.
11690 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11691 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11692 real_path and name. Unify the call of compare_filenames_for_search
11693 with FILENAME_CMP.
11694 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11695
11696 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11697
11698 Code cleanup.
11699 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11700 source_file references by symtab field references. Remove variables
11701 sal and fullname.
11702 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11703 (clear_command, say_where): Replace bp_location field source_file
11704 references by symtab field references.
11705 (bp_location_dtor): Remove the source_file reference.
11706 (update_static_tracepoint): Replace bp_location field source_file
11707 references by symtab field references.
11708 (breakpoint_free_objfile): New function.
11709 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11710 Replace the field source_file by field symtab, extend its comment.
11711 (breakpoint_free_objfile): New declaration.
11712 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11713 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11714 field source_file references by symtab field references.
11715
11716 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11717
11718 Replace xfullpath calls by gdb_realpath calls.
11719 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11720 function comment.
11721 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11722 Remove it from the iterate_over_some_symtabs call.
11723 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11724 Remove it from the dw2_map_expand_apply calls, remove a block handling
11725 it.
11726 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11727 Remove it from the iterate_over_some_symtabs call.
11728 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11729 Remove it from the partial_map_expand_apply calls, remove a block
11730 handling it. Drop gdb_realpath call and cleanups from the real_path
11731 handling.
11732 * source.c (openp): Drop the comment part about xfullpath. Replace
11733 xfullpath calls by gdb_realpath calls.
11734 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11735 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11736 from method map_symtabs_matching_filename and its comment.
11737 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11738 gdb_realpath call.
11739 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11740 remove it also from the function comment, remove a block handling it.
11741 Drop gdb_realpath call and cleanups from the real_path handling.
11742 (iterate_over_symtabs): Drop variable full_path and its use.
11743 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11744 * utils.c (xfullpath): Remove.
11745 * utils.h (xfullpath): Remove.
11746
11747 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11748
11749 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11750 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11751 (ALLDEPFILES): Add ppc64-tdep.c.
11752 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11753 ppc64-tdep.o to gdb_target_obs.
11754 * ppc64-tdep.h: New file.
11755 * ppc64-tdep.c: New file.
11756 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11757 ppc-linux-tdep.c to here.
11758 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11759 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11760 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11761 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11762 from ppc-linux-tdep.c to here.
11763 (ppc64_convert_from_func_ptr_addr): Rename from
11764 ppc64_linux_convert_from_func_ptr_addr to
11765 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11766 here.
11767 * rs6000-tdep.c:
11768 (read_insn): Move from ppc-linux-tdep.c to here.
11769 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11770 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11771 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11772 Removed above functions.
11773 (ppc_linux_init_abi): Adjust.
11774
11775 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11776
11777 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11778
11779 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11780
11781 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11782
11783 2013-02-01 Pedro Alves <palves@redhat.com>
11784
11785 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11786 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11787
11788 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11789
11790 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11791 files with no separate debug info.
11792 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11793 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11794 only for files with no separate debug info.
11795
11796 2013-01-31 Tom Tromey <tromey@redhat.com>
11797
11798 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11799 change type.
11800 (struct jit_program_space_data): Rename from jit_inferior_data.
11801 Update comments.
11802 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11803 Change return type. Attach data to program space.
11804 (jit_program_space_data_cleanup): Rename from
11805 jit_inferior_data_cleanup; change argument type.
11806 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11807 change type.
11808 (jit_register_code): Update.
11809 (jit_update_inferior_cache): Remove.
11810 (jit_breakpoint_deleted): Get jit data from the location's program
11811 space.
11812 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11813 'ps_data', change type.
11814 (jit_inferior_init, jit_breakpoint_re_set_internal)
11815 (jit_event_handler): Update.
11816 (free_objfile_data): Get data from objfile's program space.
11817 (_initialize_jit): Update.
11818
11819 2013-01-31 Tom Tromey <tromey@redhat.com>
11820
11821 PR gdb/13987:
11822 * jit.c (struct jit_inferior_data) <cached_code_address,
11823 jit_breakpoint>: New fields.
11824 (jit_breakpoint_re_set_internal): Fix logging. Only create
11825 breakpoint if cached address has changed.
11826 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11827 functions.
11828 (_initialize_jit): Register breakpoint deleted observer.
11829
11830 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11831
11832 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11833 (save_infcall_suspend_state): Ifdef out unused inf.
11834 (restore_infcall_suspend_state): Ifdef out unused inf.
11835 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11836 (jit_frame_sniffer): Remove unused inf_data.
11837
11838 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11839
11840 * c-exp.y (classify_inner_name): Remove unused type.
11841 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11842 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11843 need_escape.
11844 (c_get_string): Remove unused kind.
11845 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11846
11847 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11848
11849 * charset.c (intermediate_encoding): Remove unused i.
11850 * completer.c (signal_completer): Remove unused i.
11851 * continuations.c (discard_my_continuations_1): Remove unused
11852 continuation_ptr.
11853 * corelow.c (core_close): Remove unuseD name.
11854 (get_core_siginfo): Remove unused pid.
11855 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11856 i, cps.
11857 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11858 (loclist_describe_location): Remove unused first.
11859 * event-top.c (command_line_handler): Remove unused got_eof.
11860 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11861 (resize_section_table): Remove unused old_value.
11862 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11863 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11864 * i386-tdep.c (i386_process_record): Remove unused rex.
11865 * infcmd.c (get_return_value): Remove unused uiout.
11866 * jv-lang.c (type_from_class): Remove unused is_array.
11867 * jv-valprint.c (java_val_print): Remove unused i.
11868 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11869 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11870 * m2-typeprint.c (m2_print_type): Remove unused code.
11871 * macroexp.c (get_character_constant): Remove unused body_start.
11872 (macro_stringify): Remove unused result.
11873 * objc-lang.c (find_methods): Remove unused gdbarch.
11874 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11875 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11876 * stack.c (print_frame_args): Remove unused summary.
11877 * thread.c (thread_apply_command): Remove unused p.
11878 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11879 * valops.c (search_struct_method): Remove unused skip.
11880 * valprint.c (generic_val_print): Remove unused byte_order.
11881 * varobj.c (varobj_update): Remove unused changed.
11882 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11883 (alias_command): Remove unused c.
11884 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11885 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11886 format.
11887 (mi_cmd_data_write_memory): Remove unused word_format.
11888 (mi_cmd_data_write_memory_bytes): Remove unused r.
11889 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11890 p_start, p_end.
11891 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11892 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11893 line_width.
11894
11895 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11896
11897 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11898 * symtab.c (iterate_over_symtabs): Remove unused s.
11899 (find_pc_sect_symtab): Remove unused pspAce.
11900 (find_pc_sect_line): Remove unused alt_symtab.
11901 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11902 (completion_list_add_name): Remove unused newsize.
11903
11904 2013-01-31 Tom Tromey <tromey@redhat.com>
11905
11906 PR c++/14998:
11907 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11908 TYPE_CODE_FUNC.
11909
11910 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11911
11912 * target.c (target_read_string): Remove unused origlen.
11913
11914 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11915
11916 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11917 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11918 * ax-general.c (ax_print): Remove unused is_float.
11919 * blockframe.c (block_innermost_frame): Remove unused start, end.
11920 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11921
11922 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11923
11924 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11925 (svr4_read_so_list): Remove unused lmo.
11926 * solib-target.c (solib_target_relocate_section_addresses): Remove
11927 unused flags.
11928
11929 2013-01-30 Tom Tromey <tromey@redhat.com>
11930
11931 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11932
11933 2013-01-30 Tom Tromey <tromey@redhat.com>
11934
11935 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11936 * utils.c (gnu_debuglink_crc32): Remove.
11937 * utils.h (gnu_debuglink_crc32): Don't declare.
11938
11939 2013-01-30 Tom Tromey <tromey@redhat.com>
11940
11941 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11942 (read_structure_type, read_enumeration_type): Remove cast.
11943
11944 2013-01-30 Tom Tromey <tromey@redhat.com>
11945
11946 * dwarf2read.c (read_namespace_type): Remove cast.
11947 (read_typedef): Likewise.
11948
11949 2013-01-29 Tom Tromey <tromey@redhat.com>
11950
11951 * dwarf2read.c (free_dwo_file): Remove assert.
11952
11953 2013-01-29 Tom Tromey <tromey@redhat.com>
11954
11955 * value.c (deprecated_set_value_modifiable): Remove.
11956 * value.h (deprecated_set_value_modifiable): Remove.
11957
11958 2013-01-28 Doug Evans <dje@google.com>
11959
11960 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11961 to addresses from dwo files.
11962
11963 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11964
11965 * valops.c (find_overload_match): Remove unused argument 'lax'.
11966 * value.h: Remove unused argument 'lax' from the declaration of
11967 find_overload_match.
11968 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11969 to find_overload_match.
11970 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11971 argument to find_overload_match.
11972
11973 2013-01-25 Tom Tromey <tromey@redhat.com>
11974
11975 * dwarf2read.c (processing_has_namespace_info): Remove.
11976 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11977 (process_die, read_func_scope, dwarf2_start_symtab)
11978 (new_symbol_full): Update.
11979
11980 2013-01-25 Tom Tromey <tromey@redhat.com>
11981
11982 * cp-namespace.c (cp_set_block_scope): Remove.
11983 * cp-support.h (cp_set_block_scope): Remove.
11984 * dbxread.c: Include block.h.
11985 (cp_set_block_scope): New function.
11986 (process_one_symbol): Update.
11987 * dwarf2read.c (read_func_scope): Use block_set_scope.
11988
11989 2013-01-25 Pedro Alves <palves@redhat.com>
11990
11991 * remote.c (add_current_inferior_and_thread): Tweak comment.
11992
11993 2013-01-25 Tom Tromey <tromey@redhat.com>
11994
11995 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11996 (cp_add_using_directive): Add 'copy_names' argument.
11997 * cp-support.h (cp_add_using_directive): Update.
11998 (struct using_direct) <import_src, import_dest, alias,
11999 declaration>: Now const.
12000 * dwarf2read.c (read_import_statement): Use obconcat.
12001 Don't copy names passed to cp_add_using_directive.
12002
12003 2013-01-25 Tom Tromey <tromey@redhat.com>
12004
12005 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12006
12007 2013-01-25 Pedro Alves <palves@redhat.com>
12008
12009 * remote.c (stop_reply_extract_thread): New.
12010 (add_current_inferior_and_thread): New parameter 'wait_status'.
12011 Handle it.
12012 (remote_start_remote): Pass wait status to
12013 add_current_inferior_and_thread.
12014 (extended_remote_run): Update comment.
12015 (extended_remote_create_inferior_1): Pass wait status to
12016 add_current_inferior_and_thread.
12017
12018 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12019 Ulrich Weigand <uweigand@de.ibm.com>
12020
12021 * valarith.c (value_vector_widen): New function for replicating a
12022 scalar into a vector.
12023 (value_binop): Use value_vector_widen to widen scalar to vector
12024 rather than casting, this better matches gcc C behaviour.
12025 * valops.c (value_casst): Update logic for casting between vector
12026 types, and for casting from scalar to vector, try to match gcc C
12027 behaviour.
12028 * value.h (value_vector_widen): Declare.
12029 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12030 function, handle special case for casting scalar to vector.
12031 (opencl_relop): Use opencl_value_cast.
12032 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12033 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12034 in order to use opencl_value_cast.
12035
12036 2013-01-25 Yao Qi <yao@codesourcery.com>
12037
12038 * event-loop.c: Include "queue.h".
12039 (gdb_event_p): New typedef.
12040 (DECLARE_QUEUE_P): Use.
12041 (DEFINE_QUEUE_P): Use.
12042 (async_queue_event): Remove.
12043 (gdb_event_xfree): New.
12044 (initialize_event_loop): New.
12045 (process_event): Use QUEUE macros.
12046 (event_queue): Remove.
12047 (gdb_wait_for_event): Caller update.
12048 (check_async_event_handlers): Likewise.
12049 (poll_timers): Likewise.
12050 * event-loop.h (initialize_event_loop): Declare.
12051 * event-loop.c (gdb_event_xfree): New.
12052 * top.c (gdb_init): Call initialize_event_loop.
12053
12054 2013-01-25 Yao Qi <yao@codesourcery.com>
12055
12056 * event-loop.c (async_queue_event): Remove one parameter
12057 'position'. Remove code handling 'position' == TAIL.
12058 (gdb_wait_for_event): Caller update.
12059 (check_async_event_handlers): Caller update.
12060 (poll_timers): Caller update.
12061 * event-loop.h (enum queue_position): Remove.
12062
12063 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12064
12065 * MAINTAINERS: Update my email.
12066
12067 2013-01-25 Yao Qi <yao@codesourcery.com>
12068
12069 * main.c (print_gdb_help): Remove "--epoch" from the help
12070 message.
12071
12072 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12073
12074 * symtab.c (skip_prologue_using_sal): Consider a file
12075 change the same as an increased line number
12076
12077 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12078
12079 * MAINTAINERS (Write After Approval): Add myself to the list.
12080
12081 2013-01-24 Tom Tromey <tromey@redhat.com>
12082
12083 * ada-lang.h (ada_decode_symbol): Make return type const.
12084 * ada-lang.c (ada_decode_symbol): Likewise.
12085
12086 2013-01-23 Doug Evans <dje@google.com>
12087
12088 * linespec.c (find_linespec_symbols): Make static.
12089
12090 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12091
12092 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12093 type on float conversion for complex type.
12094
12095 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12096
12097 Add a new class gdb.Architecture which exposes GDB's
12098 internal representation of architecture via GDB Python API.
12099 * Makefile.in: Add entries corresponding to the new file
12100 python/py-arch.c.
12101 * NEWS (Python Scripting): Add entries for the new class
12102 gdb.Architecture and the new method gdb.Frame.architecture.
12103 * python/py-arch.c: Implement gdb.Architecture class.
12104 * python/py-frame.c (frapy_arch): Implement the method
12105 gdb.Frame.architecture().
12106 (frame_object_methods): Add 'architecture' to the method table.
12107 * python/python-internal.h: Add declarations of new utility
12108 functions.
12109 * python/python.c (_initialize_python): Initialize
12110 gdb.Architecture class.
12111
12112 2013-01-23 Doug Evans <dje@google.com>
12113
12114 Work around binutils/15021.
12115 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12116 type_unit_group out of union s. All uses updated.
12117 (read_index_from_section): Watch for index version 8.
12118 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12119 an imported symtab.
12120 (write_psymtabs_to_index): Increment version number to 8.
12121
12122 2013-01-22 Pedro Alves <palves@redhat.com>
12123
12124 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12125 user-visible.
12126
12127 2013-01-22 Pedro Alves <palves@redhat.com>
12128
12129 * annotate.c (annotate_breakpoints_changed): Rename to ...
12130 (annotate_breakpoints_invalid): ... this. Make static.
12131 (breakpoint_changed): Adjust.
12132 (_initialize_annotate): Always install the observers. Install a
12133 "breakpoint_created" observer.
12134 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12135 * breakpoint.c (set_breakpoint_condition)
12136 (breakpoint_set_commands, do_map_commands_command)
12137 (init_raw_breakpoint, clear_command, set_ignore_count)
12138 (enable_breakpoint_disp): No longer call
12139 annotate_breakpoints_changed.
12140
12141 2013-01-22 Pedro Alves <palves@redhat.com>
12142
12143 * annotate.c: Include "inferior.h".
12144 (frames_invalid_emitted)
12145 (breakpoints_invalid_emitted): New globals.
12146 (async_background_execution_p): New function.
12147 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12148 emitting the annotation if it has already been emitted.
12149 (annotate_display_prompt): New function.
12150 * annotate.h (annotate_display_prompt): New declaration.
12151 * event-top.c: Include annotate.h.
12152 (display_gdb_prompt): Call annotate_display_prompt.
12153
12154 2013-01-22 Pedro Alves <palves@redhat.com>
12155
12156 * annotate.c (ignore_count_changed): Delete.
12157 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12158 (annotate_ignore_count_change): Delete.
12159 (annotate_stopped): Don't emit a delayed breakpoints-changed
12160 annotation.
12161 * annotate.h (annotate_ignore_count_change): Delete.
12162 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12163 annotate_ignore_count_change.
12164
12165 2013-01-22 Tom Tromey <tromey@redhat.com>
12166
12167 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12168 require_rvalue for a register location.
12169
12170 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12171
12172 * breakpoint.c (print_one_breakpoint_location): Add MI
12173 field 'thread-groups' when printing a breakpoint.
12174 (output_thread_groups): New function.
12175
12176 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12177
12178 * python/lib/gdb/commands/explore.py
12179 (CompoundExplorer.explore_expr): Correct the name of a method
12180 being invoked.
12181 (ExploreTypeCommand.invoke): Add a missing 'return'.
12182
12183 2013-01-21 Tom Tromey <tromey@redhat.com>
12184
12185 * gdb_obstack.h (obconcat): Move declaration here, from...
12186 * symfile.h (obconcat): ... here.
12187 * gdb_obstack.c: New file.
12188 (obconcat): Move from...
12189 * symfile.c (obconcat): ... here.
12190 * Makefile.in (SFILES): Add gdb_obstack.c.
12191 (COMMON_OBS): Add gdb_obstack.o.
12192
12193 2013-01-21 Tom Tromey <tromey@redhat.com>
12194
12195 * symfile.h (obsavestring): Don't declare.
12196 * symfile.c (obsavestring): Remove.
12197 * ada-exp.y: Use obstack_copy0, not obsavestring.
12198 * ada-lang.c: Use obstack_copy0, not obsavestring.
12199 * coffread.c: Use obstack_copy0, not obsavestring.
12200 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12201 * dbxread.c: Use obstack_copy0, not obsavestring.
12202 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12203 * jit.c: Use obstack_copy0, not obsavestring.
12204 * mdebugread.c: Use obstack_copy0, not obsavestring.
12205 * psymtab.c: Use obstack_copy0, not obsavestring.
12206 * stabsread.c: Use obstack_copy0, not obsavestring.
12207 * xcoffread.c: Use obstack_copy0, not obsavestring.
12208
12209 2013-01-21 Tom Tromey <tromey@redhat.com>
12210
12211 * dwarf2read.c (fixup_go_packaging): Save package name
12212 on objfile obstack.
12213 * gdbtypes.c (init_type): Don't copy name.
12214
12215 2013-01-21 Tom Tromey <tromey@redhat.com>
12216
12217 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12218 const.
12219 (struct attribute) <u.str>: Now const.
12220 (struct fnfieldlist) <name>: Now const.
12221 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12222 (partial_die_parent_scope): Make return type const.
12223 (partial_die_full_name, add_partial_symbol): Update.
12224 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12225 'name' const.
12226 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12227 (read_file_scope, read_func_scope, dwarf2_add_field)
12228 (dwarf2_add_member_fn, read_structure_type)
12229 (process_enumeration_scope, read_array_type, read_module_type)
12230 (read_base_type, read_subrange_type): Update.
12231 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12232 (new_symbol_full, guess_full_die_structure_name): Update.
12233 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12234 (dwarf2_name): Return const type.
12235 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12236 const.
12237
12238 2013-01-21 Tom Tromey <tromey@redhat.com>
12239
12240 * gdbtypes.c (init_type): Make 'name' const.
12241 * gdbtypes.h (init_type): Update.
12242
12243 2013-01-21 Tom Tromey <tromey@redhat.com>
12244
12245 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12246 (start_symtab): Make 'name' and 'dirname' const. Use
12247 set_last_source_file.
12248 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12249 (last_source_file): Define. Now static.
12250 (set_last_source_file, get_last_source_file): New functions.
12251 * buildsym.h (last_source_file): Don't declare.
12252 (start_symtab): Update.
12253 (set_last_source_file, get_last_source_file): Declare.
12254 * coffread.c (complete_symtab): Use set_last_source_file.
12255 (coff_end_symtab): Likewise.
12256 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12257 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12258 set_last_source_file.
12259 (process_one_symbol): Use get_last_source_file.
12260 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12261 (psymtab_to_symtab_1): Use get_last_source_file.
12262 * xcoffread.c (process_linenos): Use get_last_source_file.
12263 (complete_symtab): Use set_last_source_file.
12264 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12265 (scan_xcoff_symtab): Use set_last_source_file.
12266
12267 2013-01-21 Tom Tromey <tromey@redhat.com>
12268
12269 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12270 (symbol_set_names): Remove casts. Handle field const-ness.
12271
12272 2013-01-21 Tom Tromey <tromey@redhat.com>
12273
12274 * dwarf2read.c (new_symbol_full): Remove cast.
12275 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12276 * symtab.h (symbol_set_demangled_name): Update.
12277
12278 2013-01-21 Tom Tromey <tromey@redhat.com>
12279
12280 * main.c (captured_main): Call bfd_init.
12281
12282 2013-01-21 Tom Tromey <tromey@redhat.com>
12283
12284 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12285 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12286 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12287 * NEWS: Update.
12288
12289 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12290
12291 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12292
12293 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12294
12295 Fix gdb.fortran/common-block.exp crash in PIE mode.
12296 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12297 LOC_COMMON_BLOCK.
12298 * f-valprint.c (info_common_command_for_block): Expect
12299 LOC_COMMON_BLOCK in gdb_assert.
12300 * symtab.h (struct general_symbol_info): Update comment for the
12301 common_block member.
12302 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12303 (enum address_class): New member LOC_COMMON_BLOCK.
12304
12305 2013-01-18 David Blaikie <dblaikie@gmail.com>
12306
12307 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12308
12309 2013-01-18 Tom Tromey <tromey@redhat.com>
12310
12311 PR c++/14999:
12312 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12313 Call require_rvalue.
12314
12315 2013-01-18 Yao Qi <yao@codesourcery.com>
12316
12317 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12318 (dbx_read_symtab): New declaration.
12319 (dbx_psymtab_to_symtab): Delete.
12320 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12321 Rename parameter PST to SELF. Exchanged two parameters.
12322 (start_psymtab): Caller update.
12323 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12324 (dwarf2_read_symtab): New declaration.
12325 (dwarf2_psymtab_to_symtab): Delete.
12326 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12327 Rename parameter PST to SELF. Exchanged two parameters.
12328 (create_partial_symtab): Caller update.
12329 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12330 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12331 Rename parameter PST to SELF. Exchanged two parameters.
12332 (parse_partial_symbols, new_psymtab): Caller update.
12333 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12334 two parameters.
12335 * psymtab.c (psymtab_to_symtab): Caller update.
12336 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12337 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12338 Rename parameter PST to SELF. Exchanged two parameters.
12339 (xcoff_start_psymtab): Caller update.
12340
12341 2013-01-18 Yao Qi <yao@codesourcery.com>
12342
12343 * infrun.c (proceed): Rename local variable 'oneproc' to
12344 'force_step'.
12345
12346 2013-01-17 Doug Evans <dje@google.com>
12347
12348 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12349 (dw2_build_type_unit_groups): Delete. All uses updated.
12350
12351 * symtab.h (struct symbol_search): Add comment.
12352
12353 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12354
12355 * symtab.c (compare_filenames_for_search): New comment for
12356 HAS_DRIVE_SPEC.
12357
12358 2013-01-17 Tom Tromey <tromey@redhat.com>
12359
12360 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12361
12362 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12363
12364 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12365 initialize it by existing make_cleanup. Call new do_cleanups.
12366
12367 2013-01-17 Tom Tromey <tromey@redhat.com>
12368
12369 * cp-abi.c (cp_abi_completer): New function.
12370 (_initialize_cp_abi): Set completer for "set cp-abi".
12371
12372 2013-01-17 Tom Tromey <tromey@redhat.com>
12373
12374 * mem-break.c: Remove obsolete comment.
12375 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12376
12377 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12378
12379 * jit.c (jit_reader_load_command): Interpret the jit reader name
12380 as an absolute path if it begins with a forward slash.
12381
12382 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12383
12384 PR gdb/14550
12385
12386 * jit.c (finalize_symtab): Ensure that only the global block has a
12387 NULL superblock.
12388
12389 2013-01-17 Pedro Alves <palves@redhat.com>
12390
12391 * acinclude.m4: Include ../config/plugins.m4,
12392 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12393 * Makefile.in (aclocal_m4_deps): Update.
12394 * aclocal.m4: Renegerate.
12395
12396 2013-01-16 Doug Evans <dje@google.com>
12397
12398 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12399
12400 2013-01-16 Pedro Alves <palves@redhat.com>
12401 Tom Tromey <tromey@redhat.com>
12402
12403 PR cli/7221:
12404 * NEWS: Add "catch signal".
12405 * breakpoint.c (base_breakpoint_ops): No longer static.
12406 (bpstat_explains_signal): New function.
12407 (init_catchpoint): No longer static.
12408 (base_breakpoint_explains_signal): New function.
12409 (base_breakpoint_ops): Initialize new field.
12410 * breakpoint.h (enum bpstat_signal_value): New.
12411 (struct breakpoint_ops) <explains_signal>: New field.
12412 (bpstat_explains_signal): Remove macro, declare as function.
12413 (base_breakpoint_ops, init_catchpoint): Declare.
12414 * break-catch-sig.c: New file.
12415 * inferior.h (signal_catch_update): Declare.
12416 * infrun.c (signal_catch): New global.
12417 (handle_syscall_event): Update for change to
12418 bpstat_explains_signal.
12419 (handle_inferior_event): Likewise. Always handle random signals
12420 via bpstats.
12421 (signal_cache_update): Check signal_catch.
12422 (signal_catch_update): New function.
12423 (_initialize_infrun): Initialize signal_catch.
12424 * Makefile.in (SFILES): Add break-catch-sig.c.
12425 (COMMON_OBS): Add break-catch-sig.o.
12426
12427 2013-01-16 Tom Tromey <tromey@redhat.com>
12428
12429 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12430 (print_one_catch_solib, print_one_catch_syscall)
12431 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12432 "catch-type".
12433
12434 2013-01-16 Yao Qi <yao@codesourcery.com>
12435
12436 * printcmd.c (current_display_number): Make it static.
12437
12438 2013-01-16 Yao Qi <yao@codesourcery.com>
12439
12440 * infcmd.c (step_once): Don't check '!single_inst' as it was
12441 checked before.
12442
12443 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12444
12445 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12446
12447 2013-01-14 Tom Tromey <tromey@redhat.com>
12448
12449 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12450 set command.
12451 * command.h (add_setshow_string_noescape_cmd): Update.
12452 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12453 (complete_set_gnutarget): New function.
12454 (_initialize_core): Set the "set gnutarget" completer.
12455
12456 2013-01-14 Tom Tromey <tromey@redhat.com>
12457
12458 PR symtab/14442:
12459 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12460 (c_type_print_modifier): Likewise.
12461 * dwarf2read.c (read_tag_restrict_type): New function.
12462 (read_type_die_1): Handle DW_TAG_restrict_type.
12463 * gdbtypes.c (make_restrict_type): New function.
12464 (recursive_dump_type): Handle TYPE_RESTRICT.
12465 * gdbtypes.h (enum type_flag_values): Renumber.
12466 (enum type_instance_flag_value): Add
12467 TYPE_INSTANCE_FLAG_RESTRICT.
12468 (TYPE_RESTRICT): New macro.
12469 (make_restrict_type): Declare.
12470
12471 2013-01-14 Tom Tromey <tromey@redhat.com>
12472
12473 PR symtab/14931:
12474 * psymtab.c (struct psymtab_state): New.
12475 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12476 functions.
12477 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12478 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12479
12480 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12481 Pedro Alves <palves@redhat.com>
12482
12483 PR remote/14786
12484
12485 * remote.c (remote_threads_info): Make a copy of the reply from
12486 qfThreadInfo and use that instead of rs->buf.
12487
12488 2013-01-14 Yao Qi <yao@codesourcery.com>
12489
12490 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12491 (dbx_psymtab_to_symtab): Likewise.
12492 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12493 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12495
12496 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12497
12498 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12499 make_cleanup_restore_current_language. Call set_language. Move
12500 OLD_CHAIN and INNER_CHAIN cleanups.
12501 * utils.c (do_restore_current_language)
12502 (make_cleanup_restore_current_language): New functions.
12503 * utils.h (make_cleanup_restore_current_language): New declaration.
12504
12505 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12506
12507 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12508 non-existing files.
12509
12510 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12511 non-existing files if FILENAME is already absolute.
12512
12513 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12514
12515 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12516 fputs_filtered. Append trailing newline.
12517
12518 2013-01-11 Yao Qi <yao@codesourcery.com>
12519 Stan Shebs <stan@codesourcery.com>
12520
12521 * psymtab.c (init_psymbol_list): Clarify the comment.
12522
12523 2013-01-11 Yao Qi <yao@codesourcery.com>
12524
12525 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12526 (update_dprintf_command_list): Assert that 'printf_line' is
12527 non-null. Remove condition check.
12528
12529 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12530
12531 Code cleanup.
12532 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12533 type const char *.
12534 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12535 const char *.
12536 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12537
12538 2013-01-09 Anthony Green <green@moxielogic.com>
12539
12540 * cp-abi.c (cplus_print_vtable): Don't return value from void
12541 function.
12542 * ada-lang.c (re_set_catch_assert): Ditto.
12543
12544 2013-01-09 Doug Evans <dje@google.com>
12545
12546 * symfile.h (quick_symbol_functions): Delete member
12547 pre_expand_symtabs_matching. All uses removed.
12548 * dwarf2read.c (dw2_lookup_symbol): Implement.
12549 (dw2_do_expand_symtabs_matching): Delete.
12550 (dw2_pre_expand_symtabs_matching): Delete.
12551 (struct dw2_symtab_iterator): New type.
12552 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12553 (dw2_expand_symtabs_for_function): Rewrite.
12554 (dwarf2_gdb_index_functions): Update.
12555 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12556 (psym_functions): Update.
12557
12558 2013-01-09 Tom Tromey <tromey@redhat.com>
12559
12560 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12561 * configure: Rebuild.
12562 * configure.ac: Add somread.o to the build if BFD has SOM
12563 support.
12564 * somread.c: Include som/aout.h, not syms.h.
12565 (som_symtab_read): Use som_external_symbol_dictionary_record.
12566 Unpack records manually.
12567 (_initialize_somread): Declare.
12568
12569 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12570
12571 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12572 Cast return_address to 64bits.
12573
12574 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12575
12576 * printcmd.c: Remove define of function output_command.
12577 * tracepoint.c: Remove extern of function output_command.
12578 * valprint.h: (output_command): New extern.
12579
12580 2013-01-07 Tom Tromey <tromey@redhat.com>
12581
12582 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12583 Remove.
12584 (objc_language_defn): Use c_printchar, c_printstr,
12585 c_emit_char.
12586
12587 2013-01-07 Tom Tromey <tromey@redhat.com>
12588
12589 PR cli/7719:
12590 * NEWS: Update.
12591 * ada-valprint.c (printstr, print_field_values): Remove
12592 "inspect_it" code.
12593 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12594 code.
12595 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12596 code.
12597 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12598 * main.c (captured_main): Remove "epoch" argument.
12599 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12600 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12601 * p-valprint.c (pascal_object_print_value_fields): Remove
12602 "inspect_it" code.
12603 * printcmd.c (print_command_1): Remove 'inspect' argument.
12604 (print_command, call_command): Update.
12605 (inspect_command): Remove.
12606 (_initialize_printcmd): Make "inspect" an alias for "print".
12607 * top.c (epoch_interface): Remove.
12608 * top.h (epoch_interface): Remove.
12609 * valprint.c (user_print_options): Update.
12610 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12611 * valprint.h (struct value_print_options) <inspect_it>: Remove
12612 field.
12613
12614 2013-01-04 Tom Tromey <tromey@redhat.com>
12615
12616 * valprint.h (read_string): Add 'extern'.
12617
12618 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12619
12620 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12621 used to decide whether to define darwin_read_dyld_info or not.
12622
12623 2013-01-03 Pierre Muller <muller@sourceware.org>
12624
12625 * main.c (relocate_gdb_directory): Avoid calling stat function
12626 if DIR is empty.
12627
12628 2013-01-03 Yao Qi <yao@codesourcery.com>
12629
12630 * psymtab.c (fixup_psymbol_section): Update declaration.
12631 (fixup_psymbol_section): Remove code returning value.
12632
12633 2013-01-03 Yao Qi <yao@codesourcery.com>
12634
12635 * symtab.h: Remove some out of date comments.
12636 (enum exception_event_kind): Move it ...
12637 * breakpoint.c: ... here.
12638
12639 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12640
12641 PR gdb/14405
12642 * darwin-nat.c (darwin_read_dyld_info): Only build if
12643 TASK_DYLD_INFO_COUNT is defined.
12644 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12645 TASK_DYLD_INFO_COUNT is defined.
12646
12647 2013-01-02 Tom Tromey <tromey@redhat.com>
12648
12649 * symfile.h (struct ecoff_debug_hack): Remove.
12650 * objfiles.c: Don't include mdebugread.h.
12651
12652 2013-01-02 Tom Tromey <tromey@redhat.com>
12653
12654 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12655 * configure.ac: Check for Mach-O support in BFD. Update
12656 CONFIG_OBS.
12657 * configure: Rebuild.
12658
12659 2013-01-02 Tom Tromey <tromey@redhat.com>
12660
12661 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12662 * configure.ac: Use GDB_AC_CHECK_BFD.
12663 * configure: Rebuild.
12664
12665 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12666
12667 * MAINTAINERS: Update my email.
12668
12669 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12670
12671 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12672
12673 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12674
12675 * rs6000-nat.c (bss_data_overlap): New function.
12676 (vmap_symtab): Use it to adjust the .bss section's offset.
12677
12678 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12679
12680 Update year range in copyright notice of all files.
12681
12682 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12683
12684 * top.c (print_gdb_version): Update copyright year.
12685
12686 For older changes see ChangeLog-2012.
12687 \f
12688 Local Variables:
12689 mode: change-log
12690 left-margin: 8
12691 fill-column: 74
12692 version-control: never
12693 coding: utf-8
12694 End:
This page took 0.29672 seconds and 3 git commands to generate.