Delegate to target_ops->beneath for TARGET_OBJECT_RAW_MEMORY
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-29 Yao Qi <yao@codesourcery.com>
2 Pedro Alves <palves@redhat.com>
3
4 * dcache.c (dcache_read_line): Use current_target.beneath
5 instead of &current_target.
6 * target.c (memory_xfer_partial_1): Factor code out to ...
7 (raw_memory_xfer_partial): ... it. New function.
8 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
9 is TARGET_OBJECT_RAW_MEMORY.
10
11 2013-11-28 Doug Evans <xdje42@gmail.com>
12
13 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
14 breakpoint_object. All uses updated.
15 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
16 breakpoint_object. All uses updated.
17 * python.c (*): All uses of breakpoint_object updated.
18 * python.h (*): All uses of breakpoint_object updated.
19 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
20 * python/py-finishbreakpoint.c (*): Ditto.
21
22 2013-11-28 Doug Evans <xdje42@gmail.com>
23
24 * configure.ac: Add comments delineating libpython and libmcheck.
25 * configure: Regenerate.
26
27 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
28 Pedro Alves <palves@redhat.com>
29
30 * valprint.c (value_check_printable): If the value is entirely
31 unavailable, print a single "<unavailable>" instead of printing
32 all subfields.
33
34 2013-11-28 Pedro Alves <palves@redhat.com>
35
36 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
37 Add "set debug frame" output.
38 (frame_stop_reason_symbol_string): New function.
39
40 2013-11-28 Pedro Alves <palves@redhat.com>
41
42 * frame-unwind.c (default_frame_unwind_stop_reason): Return
43 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
44 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
45
46 2013-11-28 Pedro Alves <palves@redhat.com>
47
48 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
49 set the unwind stop reason to UNWIND_OUTERMOST, not
50 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
51
52 2013-11-28 Pedro Alves <palves@redhat.com>
53
54 * frame.c (frame_unwind_register): Say the register was "not
55 saved" instead of "optimized out".
56
57 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
58
59 PR 16152
60 * configure: Rebuild.
61 * configure.ac: Tighten cygwin detection check.
62
63 2013-11-27 Pedro Alves <palves@redhat.com>
64
65 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
66 register in the previous frame's arch.
67
68 2013-11-27 Pedro Alves <palves@redhat.com>
69
70 * frame-unwind.c (frame_unwind_got_optimized): Return
71 an lval_register value instead of a not_lval value.
72
73 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
74
75 * frame.c: Include "valprint.h".
76 (frame_unwind_register_value): Use value_optimized_out.
77 * value.c (value_fetch_lazy): Likewise.
78
79 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
80
81 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
82
83 2013-11-26 Tom Tromey <tromey@redhat.com>
84
85 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
86 2013-11-22.
87
88 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
89
90 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
91 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
92 (HAS_MPX): New macro.
93 (HAS_AVX): New macro.
94 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
95
96 2013-11-25 Keith Seitz <keiths@redhat.com>
97
98 PR c++/14819
99 * c-exp.y (classify_inner_name): If no matching symbol was
100 found, try looking up the token as a base class.
101 Likewise if a constructor was found.
102 * cp-namespace.c (find_type_baseclass_by_name): New function.
103 * cp-support.h (find_type_baseclass_by_name): Declare.
104 * valops.c (value_struct_elt_for_reference): If we get
105 a non-static field, try to get a value based on the
106 current instance, if any.
107
108 2013-11-24 Yao Qi <yao@codesourcery.com>
109
110 * disasm.c (dis_asm_read_memory): Call target_read_code
111 instead of target_read_memory.
112
113 2013-11-24 Yao Qi <yao@codesourcery.com>
114
115 * NEWS: Add note on new "set code-cache" option.
116 * target-dcache.c (code_cache_enabled_1): New variable.
117 (code_cache_enabled): New variable.
118 (show_code_cache, set_code_cache): New function.
119 (code_cache_enabled_p): New function.
120 (_initialize_target_dcache): Register command.
121 * target-dcache.h (code_cache_enabled_p): Declare.
122 * target.c (memory_xfer_partial_1):Handle
123 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
124 (target_read_code): New function.
125 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
126 New.
127 (target_read_code): Declare.
128
129 2013-11-24 Yao Qi <yao@codesourcery.com>
130
131 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
132 (stack_cache_enabled_1): ... this. New variable.
133 (stack_cache_enabled_p): Rename to ...
134 (stack_cache_enabled): ... this. New variable.
135 (set_stack_cache_enabled_p): Rename to ...
136 (set_stack_cache): ... this. Update caller.
137 (show_stack_cache_enabled_p): Rename to ...
138 (show_stack_cache): ... this. Update caller.
139 (stack_cache_enabled): Rename to ...
140 (stack_cache_enabled_p): ... this. Update caller.
141 (_initialize_target_dcache): Replace "data cache" with
142 "target memory cache".
143 * target-dcache.h (stack_cache_enabled): Remove declaration.
144 (stack_cache_enabled_p): Add declaration.
145
146 2013-11-23 Doug Evans <xdje42@gmail.com>
147
148 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
149 superfluous.
150
151 2013-11-23 Doug Evans <xdje42@gmail.com>
152
153 * python/py-frame.c (frapy_block): Fix error message text.
154
155 2013-11-23 Doug Evans <xdje42@gmail.com>
156
157 * cli/cli-script.c (multi_line_command_p): New function.
158 (recurse_read_control_structure, read_command_lines_1): Call it.
159 (execute_control_command): Consistently have a blank line between
160 each case.
161
162 2013-11-22 Sterling Augustine <saugustine@google.com>
163
164 PR gdb/16196:
165 * valprint.c (read_string): Set new variable fetchlen based on
166 fetchlimit and size. Use it in call to partial_memory_read.
167 Update comment.
168
169 2013-11-22 Tom Tromey <tromey@redhat.com>
170
171 PR backtrace/16155:
172 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
173 the return address column is unspecified.
174
175 2013-11-22 Tom Tromey <tromey@redhat.com>
176 Pedro Alves <palves@redhat.com>
177
178 PR backtrace/16155
179 * value.c (value_fetch_lazy): Internal error if
180 get_frame_register_value returns the same register.
181
182 2013-11-22 Pedro Alves <palves@redhat.com>
183 Tom Tromey <tromey@redhat.com>
184
185 * frame.c (frame_stash_add): Now returns whether a frame with the
186 same ID was already known.
187 (compute_frame_id): New function, factored out from get_frame_id.
188 (get_frame_id): No longer lazilly compute the frame id here.
189 (get_prev_frame_if_no_cycle): New function. Detects wider stack
190 cycles.
191 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
192 and checking for stack cycles here.
193
194 2013-11-22 Pedro Alves <palves@redhat.com>
195
196 PR 16155
197 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
198 this frame and the new previous frame, not between this frame and
199 the next frame.
200
201 2013-11-22 Pedro Alves <palves@redhat.com>
202
203 PR 16155
204 * dwarf2-frame.c (struct dwarf2_frame_cache)
205 <checked_tailcall_bottom, entry_cfa_sp_offset,
206 entry_cfa_sp_offset_p>: New fields.
207 (dwarf2_frame_cache): Adjust to use the new cache fields instead
208 of locals. Don't call dwarf2_tailcall_sniffer_first here.
209 (dwarf2_frame_prev_register): Call it here, but only once.
210
211 2013-11-21 Doug Evans <xdje42@gmail.com>
212
213 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
214 (type_equality_entry): Move here from python/py-type.c.
215 (type_equality_entry_d): Ditto.
216 (compare_maybe_null_strings, check_types_equal): Ditto.
217 (check_types_worklist, types_deeply_equal): Ditto.
218 * gdbtypes.h (types_deeply_equal): Declare.
219 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
220 (typy_richcompare): Update.
221
222 2013-11-20 Joel Brobecker <brobecker@adacore.com>
223
224 * python/py-value.c (is_intlike): Delete.
225 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
226 by use of is_integral_type.
227 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
228 by use of is_integral_type and check for TYPE_CODE_PTR.
229
230 2013-11-20 Tom Tromey <tromey@redhat.com>
231
232 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
233 strerror module.
234 * gnulib/aclocal.m4: Update.
235 * gnulib/config.in: Update.
236 * gnulib/configure: Update.
237 * gnulib/import/Makefile.am: Update.
238 * gnulib/import/Makefile.in: Update.
239 * gnulib/import/errno.in.h: Remove.
240 * gnulib/import/intprops.h: Remove.
241 * gnulib/import/m4/errno_h.m4: Remove.
242 * gnulib/import/m4/gnulib-cache.m4: Update.
243 * gnulib/import/m4/gnulib-comp.m4: Update.
244 * gnulib/import/m4/strerror.m4: Remove.
245 * gnulib/import/m4/sys_socket_h.m4: Remove.
246 * gnulib/import/strerror-override.c: Remove.
247 * gnulib/import/strerror-override.h: Remove.
248 * gnulib/import/strerror.c: Remove.
249 * gnulib/update-gnulib.sh: Update.
250
251 2013-11-20 Yao Qi <yao@codesourcery.com>
252
253 * target-dcache.c (target_dcache_get_or_init): Call
254 set_address_space_data if 'dcache' is NULL.
255
256 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
257
258 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
259
260 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
261
262 * python/lib/gdb/command/bound_register.py: New file.
263 * data-directory/Makefile.in: Copy bond_register.py to the right path
264 to be initialized at gdb startup.
265
266 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
267
268 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
269 Add MPX registers.
270 (amd64_linux_read_description): Add initialization for MPX and
271 AVX independently.
272 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
273 (amd64_linux_gregset_reg_offset): Add MPX registers.
274 (amd64_linux_core_read_description): Add initialization for MPX
275 registers.
276 (_initialize_amd64_linux_tdep): Initialize MPX targets.
277 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
278 register on the list.
279 (tdesc_amd64_mpx_linux) Add new target for MPX.
280 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
281 (amd64_mpx_names): MPX register names.
282 (amd64_init_abi): Add MPX register while initializing the ABI.
283 (_initialize_amd64_tdep): Initialize MPX targets.
284 * amd64-tdep.h (amd64_regnum): Add MPX registers.
285 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
286
287 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
288
289 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
290 registers on the range of registers to be read from
291 xsave buffer.
292 (i386_linux_read_description): Add case for MPX.
293 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
294 (i386_linux_gregset_reg_offset): Add MPX registers.
295 (i386_linux_core_read_description): Initialize also MPX.
296 (_initialize_i386_linux_tdep): Add mpx initialization.
297 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
298 mpx_register_names.
299 (i386_regnum): Add MPX registers.
300 (I386_MPX_NUM_REGS): New macro.
301 (i386_bnd_regnum_p): New function.
302 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
303 number of registers to be the number of BNDSTATUS.
304 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
305 * i386-tdep.c: Include features/i386/i386-mpx.c.
306 (i386_mpx_names): Add MPX register names array.
307 (i386_bnd_names): Add bnd pseudo register names array.
308 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
309 registers.
310 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
311 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
312 registers.
313 (i386_bnd_type): New function.
314 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
315 register types.
316 (i386_pseudo_register_read_into_value): Add bnd case.
317 (i386_pseudo_register_write): Add bnd pseudo registers.
318 (i386_register_reggroup_p): Add MPX register to the group all.
319 (i386_validate_tdesc_p): Add MPX to the target description
320 validation.
321 (i386_pseudo_register_name): Add bnd pseudo registers.
322 (i386_gdbarch_init): Add MPX for architecture initialization.
323 (_initia_initialize_i386_tdep): Add mpx initialization.
324 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
325 XSAVE buffer.
326 (XSAVE_MPX_ADDR): New macro.
327 (i387_supply_xsave): Add MPX case.
328 (i387_collect_xsave): Add MPX case.
329 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
330 (I387_BNDCFGU_REGNUM): New macro.
331 (I387_NUM_MPX_REGS): New macro.
332 (I387_NUM_BND_REGS): New macro.
333 (I387_NUM_MPX_CTRL_REGS): New macro.
334 (I387_MPXEND_REGNUM): New macro.
335 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
336 (I386_XSTATE_BNDCFG): Likewise.
337 (I386_XSTATE_MPX_MASK): Likewise.
338 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
339 (I386_XSTATE_BNDREGS_SIZE): New macro.
340 (I386_XSTATE_BNDCFG_SIZE): Likewise.
341 (I386_XSTATE_SIZE): Adapt for MPX.
342 (I386_XSTATE_MAX_SIZE): Likewise.
343
344 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
345
346 * features/i386/Makefile: Adapts for using MPX registers.
347 * features/i386/32bit-mpx.xml: New file.
348 * features/i386/64bit-mpx.xml: Likewise.
349 * features/i386/amd64-mpx-linux.c: Likewise.
350 * features/i386/amd64-mpx-linux.xml: Likewise.
351 * features/i386/amd64-mpx.c: Likewise.
352 * features/i386/amd64-mpx.xml: Likewise.
353 * features/i386/i386-mpx-linux.c: Likewise.
354 * features/i386/i386-mpx-linux.xml: Likewise.
355 * features/i386/i386-mpx.c: Likewise.
356 * features/i386/i386-mpx.xml: Likewise.
357 * regformats/i386/amd64-mpx-linux.dat: New file.
358 * regformats/i386/amd64-mpx.dat: Likewise.
359 * regformats/i386/i386-mpx-linux.dat: Likewise.
360 * regformats/i386/i386-mpx.dat: Likewise.
361
362 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
363
364 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
365 Modified logic of creating a bitfield to be in sync with
366 tdesc_gdb_type.
367
368 2013-11-20 Will Newton <will.newton@linaro.org>
369
370 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
371 error message.
372
373 2013-11-20 Yao Qi <yao@codesourcery.com>
374
375 * progspace.h (struct address_space_data): Declare.
376 * target-dcache.c: Include "progspace.h".
377 (target_dache): Remove.
378 (target_dcache_aspace_key): New.
379 (target_dcache_cleanup): New function.
380 (target_dcache_init_p): Get data through
381 target_dcache_aspace_key.
382 (target_dcache_invalidate): Likewise.
383 (target_dcache_get): Likewise.
384 (target_dcache_get_or_init): Likewise.
385 (_initialize_target_dcache): Initialize
386 target_dcache_aspace_key.
387
388 2013-11-20 Yao Qi <yao@codesourcery.com>
389
390 * progspace.c (struct address_space): Update comments.
391 <REGISTRY_FIELDS>: New fields.
392 DEFINE_REGISTRY for address_space.
393 (new_address_space): Call address_space_alloc_data.
394 (free_address_space): Call address_space_free_data.
395 * progspace.h: Use DECLARE_REGISTRY.
396
397 2013-11-20 Yao Qi <yao@codesourcery.com>
398
399 * Makefile.in (SFILES):Add target-dcache.c.
400 (HFILES_NO_SRCDIR): Add target-dcache.h.
401 (COMMON_OBS): Add target-dcache.o.
402 * dcache.c: Remove inclusion to "target.h". Include
403 "target-dcache.h".
404 * memattr.c: Include "target-dcache.h".
405 * top.c: Likewise.
406 * tracepoint.c: Likewise.
407 * target.c: (stack_cache_enabled_p_1): Move to
408 target-dcache.c.
409 (stack_cache_enabled_p): Likewise.
410 (set_stack_cache_enabled_p): Likewise.
411 (show_stack_cache_enabled_p): Likewise.
412 (target_dcache, target_dcache_init_p): Likewise.
413 (target_dcache_invalidate): Likewise.
414 (target_dcache_get, target_dcache_get_or_init): Likewise.
415 (memory_xfer_partial_1): Call function stack_cache_enabled.
416 (initialize_target): Move code to target-dcache.c.
417 * target.h (target_dcache_invalidate): Move to
418 target-dcache.h.
419 (target_dcache_get): Likewise.
420 * target-dcache.c: New.
421 * target-dcache.h: New.
422
423 2013-11-20 Yao Qi <yao@codesourcery.com>
424
425 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
426 it is initialized.
427
428 2013-11-20 Yao Qi <yao@codesourcery.com>
429
430 * dcache.c (last_cache): Remove.
431 (dcache_free, dcache_init): Update.
432 (dcache_update):
433 (dcache_print_line): Add parameter 'dcache'. Replace
434 'target_dcache' with 'dcache'.
435 (dcache_info): Move code to dcache_info_1. Call
436 'dcache_info_1'.
437 (dcache_info_1): New function.
438 (set_dcache_size): Call target_dcache_invalidate.
439 (set_dcache_line_size): Call target_dcache_invalidate.
440 * target.c (target_dcache_init_p): New function.
441 (target_dcache_invalidate): Check target_dcache_init_p first.
442 (target_dcache_get, target_dcache_get_or_init): New function.
443 (memory_xfer_partial_1): Adjust.
444 (initialize_target): Don't initialize 'target_dcache'.
445 * target.h (struct dcache_struct): Declare.
446 (target_dcache_get): Declare.
447
448 2013-11-19 Yao Qi <yao@codesourcery.com>
449
450 * varobj.c (varobj_get_type): Fix typo.
451
452 2013-11-19 Joel Brobecker <brobecker@adacore.com>
453
454 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
455
456 2013-11-19 Joel Brobecker <brobecker@adacore.com>
457
458 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
459 "stat.h".
460
461 2013-11-18 Tom Tromey <tromey@redhat.com>
462
463 * common/gdb_stat.h: Remove.
464 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
465 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
466 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
467 * corefile.c: Use sys/stat.h, not gdb_stat.h.
468 * ctf.c: Use sys/stat.h, not gdb_stat.h.
469 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
470 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
471 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
472 * exec.c: Use sys/stat.h, not gdb_stat.h.
473 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
474 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
475 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
476 * jit.c: Use sys/stat.h, not gdb_stat.h.
477 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
478 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
479 * main.c: Use sys/stat.h, not gdb_stat.h.
480 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
481 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
482 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
483 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
484 * procfs.c: Use sys/stat.h, not gdb_stat.h.
485 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
486 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
487 * remote.c: Use sys/stat.h, not gdb_stat.h.
488 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
489 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
490 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
491 * source.c: Use sys/stat.h, not gdb_stat.h.
492 * symfile.c: Use sys/stat.h, not gdb_stat.h.
493 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
494 * symtab.c: Use sys/stat.h, not gdb_stat.h.
495 * top.c: Use sys/stat.h, not gdb_stat.h.
496 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
497
498 2013-11-18 Tom Tromey <tromey@redhat.com>
499
500 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
501 sys_stat.
502 * gnulib/aclocal.m4: Update.
503 * gnulib/config.in: Update.
504 * gnulib/configure: Update.
505 * gnulib/import/Makefile.am: Update.
506 * gnulib/import/Makefile.in: Update.
507 * gnulib/import/m4/gnulib-cache.m4: Update.
508 * gnulib/import/m4/gnulib-comp.m4: Update.
509 * gnulib/import/m4/sys_stat_h.m4: New.
510 * gnulib/import/m4/time_h.m4: New.
511 * gnulib/import/sys_stat.in.h: New.
512 * gnulib/import/time.in.h: New.
513
514 2013-11-18 Tom Tromey <tromey@redhat.com>
515
516 * configure: Rebuild.
517 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
518
519 2013-11-18 Tom Tromey <tromey@redhat.com>
520
521 * configure: Rebuild.
522 * configure.ac: Don't check for unistd.h.
523
524 2013-11-18 Tom Tromey <tromey@redhat.com>
525
526 * configure: Rebuild.
527 * configure.ac: Don't check for stdlib.h
528 * defs.h: Include stdlib.h unconditionally.
529
530 2013-11-18 Tom Tromey <tromey@redhat.com>
531
532 * config.in: Rebuild.
533 * configure: Rebuild.
534 * configure.ac: Don't check for stddef.h.
535 * defs.h: Unconditionally include stddef.h. Remove duplicate
536 inclusion.
537
538 2013-11-18 Tom Tromey <tromey@redhat.com>
539
540 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
541 * common/gdb_dirent.h: Remove.
542 * common/filestuff.c: Use dirent.h.
543 * common/linux-osdata.c: Use dirent.h.
544 (NAMELEN): Define.
545 * config.in: Rebuild.
546 * configure: Rebuild.
547 * configure.ac: Don't use AC_HEADER_DIRENT.
548 * linux-fork.c: Use dirent.h
549 * linux-nat.c: Use dirent.h.
550 * nto-procfs.c: Use dirent.h.
551 * procfs.c: Use dirent.h.
552
553 2013-11-18 Tom Tromey <tromey@redhat.com>
554
555 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
556 * gnulib/aclocal.m4: Update.
557 * gnulib/config.in: Update.
558 * gnulib/configure: Update.
559 * gnulib/import/Makefile.am: Update.
560 * gnulib/import/Makefile.in: Update.
561 * gnulib/import/dirent.in.h: New.
562 * gnulib/import/m4/dirent_h.m4: New.
563 * gnulib/import/m4/gnulib-cache.m4: Update.
564 * gnulib/import/m4/gnulib-comp.m4: Update.
565
566 2013-11-18 Tom Tromey <tromey@redhat.com>
567
568 * configure: Rebuild.
569 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
570 strings.h.
571
572 2013-11-18 Tom Tromey <tromey@redhat.com>
573
574 * common/gdb_string.h: Remove.
575 * aarch64-tdep.c: Use string.h, not gdb_string.h.
576 * ada-exp.y: Use string.h, not gdb_string.h.
577 * ada-lang.c: Use string.h, not gdb_string.h.
578 * ada-lex.l: Use string.h, not gdb_string.h.
579 * ada-typeprint.c: Use string.h, not gdb_string.h.
580 * ada-valprint.c: Use string.h, not gdb_string.h.
581 * aix-thread.c: Use string.h, not gdb_string.h.
582 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
583 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
584 * alpha-nat.c: Use string.h, not gdb_string.h.
585 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
586 * alpha-tdep.c: Use string.h, not gdb_string.h.
587 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
588 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
589 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
590 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
591 * amd64-nat.c: Use string.h, not gdb_string.h.
592 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
593 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
594 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
595 * arch-utils.c: Use string.h, not gdb_string.h.
596 * arm-linux-nat.c: Use string.h, not gdb_string.h.
597 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
598 * arm-tdep.c: Use string.h, not gdb_string.h.
599 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
600 * armbsd-tdep.c: Use string.h, not gdb_string.h.
601 * armnbsd-nat.c: Use string.h, not gdb_string.h.
602 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
603 * armobsd-tdep.c: Use string.h, not gdb_string.h.
604 * avr-tdep.c: Use string.h, not gdb_string.h.
605 * ax-gdb.c: Use string.h, not gdb_string.h.
606 * ax-general.c: Use string.h, not gdb_string.h.
607 * bcache.c: Use string.h, not gdb_string.h.
608 * bfin-tdep.c: Use string.h, not gdb_string.h.
609 * breakpoint.c: Use string.h, not gdb_string.h.
610 * build-id.c: Use string.h, not gdb_string.h.
611 * buildsym.c: Use string.h, not gdb_string.h.
612 * c-exp.y: Use string.h, not gdb_string.h.
613 * c-lang.c: Use string.h, not gdb_string.h.
614 * c-typeprint.c: Use string.h, not gdb_string.h.
615 * c-valprint.c: Use string.h, not gdb_string.h.
616 * charset.c: Use string.h, not gdb_string.h.
617 * cli-out.c: Use string.h, not gdb_string.h.
618 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
619 * cli/cli-decode.c: Use string.h, not gdb_string.h.
620 * cli/cli-dump.c: Use string.h, not gdb_string.h.
621 * cli/cli-interp.c: Use string.h, not gdb_string.h.
622 * cli/cli-logging.c: Use string.h, not gdb_string.h.
623 * cli/cli-script.c: Use string.h, not gdb_string.h.
624 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
625 * cli/cli-utils.c: Use string.h, not gdb_string.h.
626 * coffread.c: Use string.h, not gdb_string.h.
627 * common/common-utils.c: Use string.h, not gdb_string.h.
628 * common/filestuff.c: Use string.h, not gdb_string.h.
629 * common/linux-procfs.c: Use string.h, not gdb_string.h.
630 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
631 * common/signals.c: Use string.h, not gdb_string.h.
632 * common/vec.h: Use string.h, not gdb_string.h.
633 * core-regset.c: Use string.h, not gdb_string.h.
634 * corefile.c: Use string.h, not gdb_string.h.
635 * corelow.c: Use string.h, not gdb_string.h.
636 * cp-abi.c: Use string.h, not gdb_string.h.
637 * cp-support.c: Use string.h, not gdb_string.h.
638 * cp-valprint.c: Use string.h, not gdb_string.h.
639 * cris-tdep.c: Use string.h, not gdb_string.h.
640 * d-lang.c: Use string.h, not gdb_string.h.
641 * dbxread.c: Use string.h, not gdb_string.h.
642 * dcache.c: Use string.h, not gdb_string.h.
643 * demangle.c: Use string.h, not gdb_string.h.
644 * dicos-tdep.c: Use string.h, not gdb_string.h.
645 * disasm.c: Use string.h, not gdb_string.h.
646 * doublest.c: Use string.h, not gdb_string.h.
647 * dsrec.c: Use string.h, not gdb_string.h.
648 * dummy-frame.c: Use string.h, not gdb_string.h.
649 * dwarf2-frame.c: Use string.h, not gdb_string.h.
650 * dwarf2loc.c: Use string.h, not gdb_string.h.
651 * dwarf2read.c: Use string.h, not gdb_string.h.
652 * elfread.c: Use string.h, not gdb_string.h.
653 * environ.c: Use string.h, not gdb_string.h.
654 * eval.c: Use string.h, not gdb_string.h.
655 * event-loop.c: Use string.h, not gdb_string.h.
656 * exceptions.c: Use string.h, not gdb_string.h.
657 * exec.c: Use string.h, not gdb_string.h.
658 * expprint.c: Use string.h, not gdb_string.h.
659 * f-exp.y: Use string.h, not gdb_string.h.
660 * f-lang.c: Use string.h, not gdb_string.h.
661 * f-typeprint.c: Use string.h, not gdb_string.h.
662 * f-valprint.c: Use string.h, not gdb_string.h.
663 * fbsd-nat.c: Use string.h, not gdb_string.h.
664 * findcmd.c: Use string.h, not gdb_string.h.
665 * findvar.c: Use string.h, not gdb_string.h.
666 * fork-child.c: Use string.h, not gdb_string.h.
667 * frame.c: Use string.h, not gdb_string.h.
668 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
669 * frv-tdep.c: Use string.h, not gdb_string.h.
670 * gdb.c: Use string.h, not gdb_string.h.
671 * gdb_bfd.c: Use string.h, not gdb_string.h.
672 * gdbarch.c: Use string.h, not gdb_string.h.
673 * gdbtypes.c: Use string.h, not gdb_string.h.
674 * gnu-nat.c: Use string.h, not gdb_string.h.
675 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
676 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
677 * go-exp.y: Use string.h, not gdb_string.h.
678 * go-lang.c: Use string.h, not gdb_string.h.
679 * go32-nat.c: Use string.h, not gdb_string.h.
680 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
681 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
682 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
683 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
684 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
685 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
686 * i386-linux-nat.c: Use string.h, not gdb_string.h.
687 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
688 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
689 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
690 * i386-tdep.c: Use string.h, not gdb_string.h.
691 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
692 * i386gnu-nat.c: Use string.h, not gdb_string.h.
693 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
694 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
695 * i387-tdep.c: Use string.h, not gdb_string.h.
696 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
697 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
698 * inf-child.c: Use string.h, not gdb_string.h.
699 * inf-ptrace.c: Use string.h, not gdb_string.h.
700 * inf-ttrace.c: Use string.h, not gdb_string.h.
701 * infcall.c: Use string.h, not gdb_string.h.
702 * infcmd.c: Use string.h, not gdb_string.h.
703 * inflow.c: Use string.h, not gdb_string.h.
704 * infrun.c: Use string.h, not gdb_string.h.
705 * interps.c: Use string.h, not gdb_string.h.
706 * iq2000-tdep.c: Use string.h, not gdb_string.h.
707 * irix5-nat.c: Use string.h, not gdb_string.h.
708 * jv-exp.y: Use string.h, not gdb_string.h.
709 * jv-lang.c: Use string.h, not gdb_string.h.
710 * jv-typeprint.c: Use string.h, not gdb_string.h.
711 * jv-valprint.c: Use string.h, not gdb_string.h.
712 * language.c: Use string.h, not gdb_string.h.
713 * linux-fork.c: Use string.h, not gdb_string.h.
714 * linux-nat.c: Use string.h, not gdb_string.h.
715 * lm32-tdep.c: Use string.h, not gdb_string.h.
716 * m2-exp.y: Use string.h, not gdb_string.h.
717 * m2-typeprint.c: Use string.h, not gdb_string.h.
718 * m32c-tdep.c: Use string.h, not gdb_string.h.
719 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
720 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
721 * m32r-rom.c: Use string.h, not gdb_string.h.
722 * m32r-tdep.c: Use string.h, not gdb_string.h.
723 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
724 * m68k-tdep.c: Use string.h, not gdb_string.h.
725 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
726 * m68klinux-nat.c: Use string.h, not gdb_string.h.
727 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
728 * m88k-tdep.c: Use string.h, not gdb_string.h.
729 * macrocmd.c: Use string.h, not gdb_string.h.
730 * main.c: Use string.h, not gdb_string.h.
731 * mdebugread.c: Use string.h, not gdb_string.h.
732 * mem-break.c: Use string.h, not gdb_string.h.
733 * memattr.c: Use string.h, not gdb_string.h.
734 * memory-map.c: Use string.h, not gdb_string.h.
735 * mep-tdep.c: Use string.h, not gdb_string.h.
736 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
737 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
738 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
739 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
740 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
741 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
742 * mi/mi-console.c: Use string.h, not gdb_string.h.
743 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
744 * mi/mi-interp.c: Use string.h, not gdb_string.h.
745 * mi/mi-main.c: Use string.h, not gdb_string.h.
746 * mi/mi-parse.c: Use string.h, not gdb_string.h.
747 * microblaze-rom.c: Use string.h, not gdb_string.h.
748 * microblaze-tdep.c: Use string.h, not gdb_string.h.
749 * mingw-hdep.c: Use string.h, not gdb_string.h.
750 * minidebug.c: Use string.h, not gdb_string.h.
751 * minsyms.c: Use string.h, not gdb_string.h.
752 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
753 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
754 * mips-tdep.c: Use string.h, not gdb_string.h.
755 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
756 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
757 * mipsread.c: Use string.h, not gdb_string.h.
758 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
759 * mn10300-tdep.c: Use string.h, not gdb_string.h.
760 * monitor.c: Use string.h, not gdb_string.h.
761 * moxie-tdep.c: Use string.h, not gdb_string.h.
762 * mt-tdep.c: Use string.h, not gdb_string.h.
763 * nbsd-tdep.c: Use string.h, not gdb_string.h.
764 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
765 * nto-procfs.c: Use string.h, not gdb_string.h.
766 * nto-tdep.c: Use string.h, not gdb_string.h.
767 * objc-lang.c: Use string.h, not gdb_string.h.
768 * objfiles.c: Use string.h, not gdb_string.h.
769 * opencl-lang.c: Use string.h, not gdb_string.h.
770 * osabi.c: Use string.h, not gdb_string.h.
771 * osdata.c: Use string.h, not gdb_string.h.
772 * p-exp.y: Use string.h, not gdb_string.h.
773 * p-lang.c: Use string.h, not gdb_string.h.
774 * p-typeprint.c: Use string.h, not gdb_string.h.
775 * parse.c: Use string.h, not gdb_string.h.
776 * posix-hdep.c: Use string.h, not gdb_string.h.
777 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
778 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
779 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
780 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
781 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
782 * printcmd.c: Use string.h, not gdb_string.h.
783 * procfs.c: Use string.h, not gdb_string.h.
784 * prologue-value.c: Use string.h, not gdb_string.h.
785 * python/py-auto-load.c: Use string.h, not gdb_string.h.
786 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
787 * ravenscar-thread.c: Use string.h, not gdb_string.h.
788 * regcache.c: Use string.h, not gdb_string.h.
789 * registry.c: Use string.h, not gdb_string.h.
790 * remote-fileio.c: Use string.h, not gdb_string.h.
791 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
792 * remote-mips.c: Use string.h, not gdb_string.h.
793 * remote-sim.c: Use string.h, not gdb_string.h.
794 * remote.c: Use string.h, not gdb_string.h.
795 * reverse.c: Use string.h, not gdb_string.h.
796 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
797 * ser-base.c: Use string.h, not gdb_string.h.
798 * ser-go32.c: Use string.h, not gdb_string.h.
799 * ser-mingw.c: Use string.h, not gdb_string.h.
800 * ser-pipe.c: Use string.h, not gdb_string.h.
801 * ser-tcp.c: Use string.h, not gdb_string.h.
802 * ser-unix.c: Use string.h, not gdb_string.h.
803 * serial.c: Use string.h, not gdb_string.h.
804 * sh-tdep.c: Use string.h, not gdb_string.h.
805 * sh64-tdep.c: Use string.h, not gdb_string.h.
806 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
807 * skip.c: Use string.h, not gdb_string.h.
808 * sol-thread.c: Use string.h, not gdb_string.h.
809 * solib-dsbt.c: Use string.h, not gdb_string.h.
810 * solib-frv.c: Use string.h, not gdb_string.h.
811 * solib-osf.c: Use string.h, not gdb_string.h.
812 * solib-spu.c: Use string.h, not gdb_string.h.
813 * solib-target.c: Use string.h, not gdb_string.h.
814 * solib.c: Use string.h, not gdb_string.h.
815 * somread.c: Use string.h, not gdb_string.h.
816 * source.c: Use string.h, not gdb_string.h.
817 * sparc-nat.c: Use string.h, not gdb_string.h.
818 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
819 * sparc-tdep.c: Use string.h, not gdb_string.h.
820 * sparc64-tdep.c: Use string.h, not gdb_string.h.
821 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
822 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
823 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
824 * spu-linux-nat.c: Use string.h, not gdb_string.h.
825 * spu-multiarch.c: Use string.h, not gdb_string.h.
826 * spu-tdep.c: Use string.h, not gdb_string.h.
827 * stabsread.c: Use string.h, not gdb_string.h.
828 * stack.c: Use string.h, not gdb_string.h.
829 * std-regs.c: Use string.h, not gdb_string.h.
830 * symfile.c: Use string.h, not gdb_string.h.
831 * symmisc.c: Use string.h, not gdb_string.h.
832 * symtab.c: Use string.h, not gdb_string.h.
833 * target.c: Use string.h, not gdb_string.h.
834 * thread.c: Use string.h, not gdb_string.h.
835 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
836 * tilegx-tdep.c: Use string.h, not gdb_string.h.
837 * top.c: Use string.h, not gdb_string.h.
838 * tracepoint.c: Use string.h, not gdb_string.h.
839 * tui/tui-command.c: Use string.h, not gdb_string.h.
840 * tui/tui-data.c: Use string.h, not gdb_string.h.
841 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
842 * tui/tui-file.c: Use string.h, not gdb_string.h.
843 * tui/tui-layout.c: Use string.h, not gdb_string.h.
844 * tui/tui-out.c: Use string.h, not gdb_string.h.
845 * tui/tui-regs.c: Use string.h, not gdb_string.h.
846 * tui/tui-source.c: Use string.h, not gdb_string.h.
847 * tui/tui-stack.c: Use string.h, not gdb_string.h.
848 * tui/tui-win.c: Use string.h, not gdb_string.h.
849 * tui/tui-windata.c: Use string.h, not gdb_string.h.
850 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
851 * typeprint.c: Use string.h, not gdb_string.h.
852 * ui-file.c: Use string.h, not gdb_string.h.
853 * ui-out.c: Use string.h, not gdb_string.h.
854 * user-regs.c: Use string.h, not gdb_string.h.
855 * utils.c: Use string.h, not gdb_string.h.
856 * v850-tdep.c: Use string.h, not gdb_string.h.
857 * valarith.c: Use string.h, not gdb_string.h.
858 * valops.c: Use string.h, not gdb_string.h.
859 * valprint.c: Use string.h, not gdb_string.h.
860 * value.c: Use string.h, not gdb_string.h.
861 * varobj.c: Use string.h, not gdb_string.h.
862 * vax-tdep.c: Use string.h, not gdb_string.h.
863 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
864 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
865 * windows-nat.c: Use string.h, not gdb_string.h.
866 * xcoffread.c: Use string.h, not gdb_string.h.
867 * xml-support.c: Use string.h, not gdb_string.h.
868 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
869 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
870
871 2013-11-18 Tom Tromey <tromey@redhat.com>
872
873 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
874 and strstr.
875 * gnulib/aclocal.m4: Update.
876 * gnulib/config.in: Update.
877 * gnulib/configure: Update.
878 * gnulib/import/Makefile.am: Update.
879 * gnulib/import/Makefile.in: Update.
880 * gnulib/import/errno.in.h: New.
881 * gnulib/import/intprops.h: New.
882 * gnulib/import/m4/errno_h.m4: New.
883 * gnulib/import/m4/gnulib-cache.m4: Update.
884 * gnulib/import/m4/gnulib-comp.m4: Update.
885 * gnulib/import/m4/strerror.m4: New.
886 * gnulib/import/m4/strstr.m4: New.
887 * gnulib/import/m4/sys_socket_h.m4: New.
888 * gnulib/import/strerror-override.c: New.
889 * gnulib/import/strerror-override.h: New.
890 * gnulib/import/strerror.c: New.
891 * gnulib/import/strstr.c: New.
892
893 2013-11-18 Tom Tromey <tromey@redhat.com>
894
895 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
896 multiple lines.
897
898 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
899
900 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
901 * sparc-tdep.h: And its prototype.
902
903 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
904 function.
905 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
906
907 2013-11-18 Pedro Alves <palves@redhat.com>
908
909 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
910 use unpack_pointer.
911
912 2013-11-18 Joel Brobecker <brobecker@adacore.com>
913
914 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
915 to -list-features output.
916
917 2013-11-17 Joel Brobecker <brobecker@adacore.com>
918
919 * dwarf2expr.h (struct dwarf_expr_context_funcs)
920 <read_addr_from_reg>: Renames "read_reg".
921 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
922 Adjust comment.
923 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
924 Use read_addr_from_reg in place of read_reg.
925 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
926 in place of read_reg.
927 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
928 dwarf_expr_read_reg.
929 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
930 with dwarf_expr_read_addr_from_reg.
931 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
932 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
933 needs_frame_read_addr_from_reg.
934
935 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
936
937 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
938
939 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
940
941 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
942 NULL.
943
944 2013-11-15 Tom Tromey <tromey@redhat.com>
945
946 PR c++/16117:
947 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
948 (classify_name): Likewise. Prefer a field of "this" over a
949 filename.
950 (classify_inner_name, yylex): Update.
951
952 2013-11-15 Joel Brobecker <brobecker@adacore.com>
953
954 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
955 Extend the documentation a bit.
956 <get_reg_value>: New field.
957 * dwarf2loc.c (dwarf_expr_get_reg_value)
958 (needs_frame_get_reg_value): New functions.
959 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
960 callback.
961 * dwarf2-frame.c (get_reg_value): New function.
962 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
963 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
964 Use new callback to compute result_val.
965
966 2013-11-15 Alan Modra <amodra@gmail.com>
967
968 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
969 (ppc64_desc_entry_point): ..this. Update comments here and at
970 call points.
971 (ppc64_standard_linkage1, ppc64_standard_linkage2,
972 ppc64_standard_linkage3): Update comments.
973 (ppc64_standard_linkage4, ppc64_standard_linkage5,
974 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
975 patterns.
976 (ppc64_standard_linkage4_target): New function.
977 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
978 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
979 nop match. Fix comment wrap.
980
981 2013-11-14 Pedro Alves <palves@redhat.com>
982
983 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
984 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
985
986 2013-11-14 Pedro Alves <palves@redhat.com>
987
988 * infrun.c (struct execution_control_state)
989 <stepped_after_stopped_by_watchpoint>: New field.
990 (get_inferior_stop_soon): New function.
991 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
992 moved to struct execution_control_state -- adjust. Use
993 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
994 new function.
995 (handle_signal_stop): New function, factored out from
996 handle_inferior_event.
997
998 2013-11-14 Pedro Alves <palves@redhat.com>
999
1000 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1001 return a boolean.
1002 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1003 boolean.
1004 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1005 Adjust to return a boolean.
1006 * breakpoint.h (enum bpstat_signal_value): Delete.
1007 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1008 (bpstat_explains_signal): Likewise.
1009 * infrun.c (handle_inferior_event) <random signal checks>:
1010 bpstat_explains_signal now returns a boolean - adjust. No longer
1011 consider hiding signals.
1012
1013 2013-11-14 Pedro Alves <palves@redhat.com>
1014
1015 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1016 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1017 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1018 BPSTAT_SIGNAL_HIDE.
1019 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1020 instead of BPSTAT_SIGNAL_HIDE.
1021 * infrun.c (handle_inferior_event): Rework random signal checks.
1022
1023 2013-11-14 Pedro Alves <palves@redhat.com>
1024
1025 * infrun.c (struct execution_control_state): Remove
1026 'random_signal' field.
1027 (handle_syscall_event): Use bpstat_causes_stop instead of
1028 bpstat_explains_signal. Don't set ecs->random_signal.
1029 (handle_inferior_event): New 'random_signal' local.
1030 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1031 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1032 bpstat_explains_signal. Don't set ecs->random_signal.
1033 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1034 ecs->random_signal.
1035
1036 2013-11-14 Pedro Alves <palves@redhat.com>
1037
1038 * infrun.c (handle_inferior_event): Move comment from the
1039 function's body to the function's description, adjusted.
1040
1041 2013-11-14 Pedro Alves <palves@redhat.com>
1042
1043 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1044 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1045 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1046 case.
1047
1048 2013-11-14 Tom Tromey <tromey@redhat.com>
1049
1050 * python/py-linetable.c (ltpy_has_line)
1051 (ltpy_get_all_source_lines): Fix loop termination condition.
1052
1053 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1054
1055 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1056 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1057 PARSE->LANGUAGE during command execution, if set.
1058 * mi/mi-parse.c: Add "language.h" #include.
1059 (mi_parse): Add parsing of "--language" command option.
1060
1061 * NEWS: Add entry mentioning the new "--language" command option.
1062
1063 2013-11-14 Pedro Alves <palves@redhat.com>
1064 Joel Brobecker <brobecker@adacore.com>
1065
1066 * cli/cli-utils.h (extract_arg_const): Add declaration.
1067 * cli/cli-utils.c (extract_arg_const): New function.
1068 (extract_arg): Reimplement using extract_arg_const.
1069
1070 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1071
1072 * language.h: Add "symtab.h" #include.
1073
1074 2013-11-13 Doug Evans <xdje42@gmail.com>
1075
1076 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1077 specific breakpoints, don't evaluate breakpoint condition if
1078 different thread.
1079
1080 2013-11-13 Keith Seitz <keiths@redhat.com>
1081
1082 PR c++/7935
1083 PR c++/10541
1084 * cp-support.c (insepct_type): Add support for substituting
1085 namespace aliases, too.
1086 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1087 for DW_TAG_imported_declaration.
1088 (add_partial_symbol): Likewise.
1089 (process_die): Handle namespace aliases with
1090 read_namespace_alias.
1091 (die_needs_namespace): Add DW_TAG_imported_declaration.
1092 (read_namespace_alias): New function.
1093 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1094 (new_symbol_full): Handle DW_TAG_imported_declaration.
1095
1096 2013-11-13 Keith Seitz <keiths@redhat.com>
1097
1098 * p-exp.y (uptok): Make first parameter const.
1099 (yylex): Make `tokstart' and `tokptr' const.
1100 Don't copy the lexer input to a temporary buffer.
1101 Make `p' const.
1102 Remove const workaround for parse_escape.
1103 Create a temporary buffer for a convenience variable instead
1104 of doing in-place modification of the input.
1105 If a match is found with a different case from the input,
1106 do not change the input at all.
1107 Use `tmp' to construct the resultant stoken instead of
1108 `tokstart'.
1109
1110 2013-11-13 Doug Evans <xdje42@gmail.com>
1111
1112 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1113
1114 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1115
1116 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1117 entry with "ada-exceptions".
1118
1119 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1120
1121 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1122 after re-initialization of OBJFILE's obstack.
1123
1124 2013-11-12 Doug Evans <xdje42@gmail.com>
1125
1126 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1127 bs->stop != 0 on entry. Update function comment. Simplify early
1128 exit for frame mismatch. Reindent rest of function.
1129
1130 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1131
1132 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1133 NULL.
1134
1135 2013-11-12 Doug Evans <dje@google.com>
1136
1137 Work around gold/15646.
1138 * dwarf2read.c (read_index_from_section): Update comment.
1139 (struct dw2_symtab_iterator): New member global_seen.
1140 (dw2_symtab_iter_init): Initialize it.
1141 (dw2_symtab_iter_next): Skip duplicate global symbols.
1142 (dw2_expand_symtabs_matching): Ditto.
1143
1144 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1145
1146 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1147 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1148 command.
1149 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1150 (mi_cmd_info_ada_exceptions): New function.
1151 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1152
1153 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1154
1155 * ada-lang.h: #include "vec.h".
1156 (struct ada_exc_info): New.
1157 (ada_exc_info): New typedef.
1158 (DEF_VEC_O(ada_exc_info)): New vector.
1159 (ada_exceptions_list): Add declaration.
1160 * ada-lang.c (ada_is_exception_sym)
1161 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1162 (sort_remove_dups_ada_exceptions_list)
1163 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1164 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1165 (ada_exceptions_list_1, ada_exceptions_list)
1166 (info_exceptions_command): New function.
1167 (_initialize_ada_language): Add "info exception" command.
1168
1169 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1170
1171 PR python/15629
1172 * NEWS: Add linetable feature.
1173 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1174 * python/py-linetable.c: New file.
1175 * python/py-symtab.c (stpy_get_linetable): New function.
1176 * python/python-internal.h (symtab_to_linetable_object): Declare.
1177 (gdbpy_initialize_linetable): Ditto.
1178 * python/python.c (_initialize_python): Call
1179 gdbpy_initialize_linetable.
1180
1181 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1182
1183 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1184 the documentation of fields "except_string" and "condition".
1185 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1186 CONDITION on the heap before passing it to
1187 create_ada_exception_catchpoint.
1188 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1189 CONDITION.
1190
1191 2013-11-11 Tom Tromey <tromey@redhat.com>
1192
1193 * config.in, configure: Rebuild.
1194 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1195
1196 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1197
1198 * remote-sim.c (gdbsim_detach): Break declaration into
1199 shorter lines. No code change.
1200
1201 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1202
1203 * remote-sim.c (gdbsim_detach): Fix prototype.
1204
1205 2013-11-08 Doug Evans <dje@google.com>
1206
1207 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1208 (create_debug_types_hash_table): Only print debugging messages for
1209 each TU if dwarf2-read >= 2.
1210 (process_queue): Ditto.
1211 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1212 Update doc string.
1213
1214 2013-11-08 Tom Tromey <tromey@redhat.com>
1215
1216 * configure: Rebuild.
1217 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1218
1219 2013-11-08 Tom Tromey <tromey@redhat.com>
1220
1221 * configure, config.in: Rebuild.
1222 * configure.ac: Remove unused configury.
1223
1224 2013-11-08 Tom Tromey <tromey@redhat.com>
1225
1226 * m32c-tdep.c: Use gdb_string.h.
1227
1228 2013-11-08 Tom Tromey <tromey@redhat.com>
1229
1230 * configure, config.in: Rebuild.
1231 * configure.ac: Remove all link.h-related checks.
1232
1233 2013-11-08 Tom Tromey <tromey@redhat.com>
1234
1235 * acinclude.m4: Include common.m4.
1236 * common/common.m4: New file.
1237 * configure, config.in: Rebuild.
1238 * configure.ac: Use GDB_AC_COMMON.
1239
1240 2013-11-08 Doug Evans <dje@google.com>
1241
1242 * NEWS: Mention that "set debug symtab-create" now accepts a
1243 verbosity level.
1244 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1245 to set the symtab's primary flag.
1246 * jit.c (finalize_symtab): Ditto.
1247 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1248 * symfile.c (allocate_symtab): Only print debugging messages for
1249 symtab_create_debug levels 2 and higher.
1250 * symtab.c (symtab_create_debug): Change type to unsigned int.
1251 (set_symtab_primary): New function.
1252 (_initialize_symtab): Change "set debug symtab-create" to a
1253 zuinteger option.
1254 * symtab.h (set_symtab_primary): Declare.
1255 (symtab_create_debug): Update decl.
1256
1257 2013-11-08 Tom Tromey <tromey@redhat.com>
1258
1259 * aix-thread.c (aix_thread_detach): Update.
1260 * corelow.c (core_detach): Update.
1261 * darwin-nat.c (darwin_detach): Update.
1262 * dec-thread.c (dec_thread_detach): Update.
1263 * gnu-nat.c (gnu_detach): Update.
1264 * go32-nat.c (go32_detach): Update.
1265 * inf-ptrace.c (inf_ptrace_detach): Update.
1266 * inf-ttrace.c (inf_ttrace_detach): Update.
1267 * linux-fork.c (linux_fork_detach): Update.
1268 * linux-fork.h (linux_fork_detach): Update.
1269 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1270 local for const-correctness.
1271 * linux-thread-db.c (thread_db_detach): Update.
1272 * monitor.c (monitor_detach): Update.
1273 * nto-procfs.c (procfs_detach): Update.
1274 * procfs.c (procfs_detach): Update.
1275 * record.c (record_detach): Update.
1276 * record.h (record_detach): Update.
1277 * remote-m32r-sdi.c (m32r_detach): Update.
1278 * remote-mips.c (mips_detach): Update.
1279 * remote-sim.c (gdbsim_detach): Update.
1280 * remote.c (remote_detach_1, remote_detach)
1281 (extended_remote_detach): Update.
1282 * sol-thread.c (sol_thread_detach): Update.
1283 * target.c (target_detach): Make "args" const.
1284 (init_dummy_target): Update.
1285 * target.h (struct target_ops) <to_detach>: Make argument const.
1286 (target_detach): Likewise.
1287 * windows-nat.c (windows_detach): Update.
1288
1289 2013-11-07 Doug Evans <dje@google.com>
1290
1291 PR 11786
1292 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1293 and align fields for PT_GNU_RELRO segments.
1294
1295 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1296
1297 PR python/15747
1298 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1299
1300 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1301
1302 * NEWS: Document Python temporary breakpoint support.
1303 * python/py-breakpoint.c (bppy_get_temporary): New function.
1304 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1305 to temporary if True.
1306
1307 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1308
1309 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1310 removed to allow analyzing unconditional branch instructions
1311 with PC-relative offsets of zero.
1312
1313 2013-11-07 Yao Qi <yao@codesourcery.com>
1314
1315 * mi/mi-cmd-var.c: Include "language.h".
1316 (mi_cmd_var_info_expression): Get language name from
1317 language_defn.
1318 * varobj.c (varobj_language_string): Remove.
1319 (variable_language): Remove declaration.
1320 (languages): Remove.
1321 (varobj_get_language): Change the type of return value.
1322 (variable_language): Remove.
1323 * varobj.h (enum varobj_languages): Remove.
1324 (varobj_language_string): Remove declaration.
1325 (varobj_get_language): Update declaration.
1326
1327 2013-11-07 Yao Qi <yao@codesourcery.com>
1328
1329 * language.h (struct language_defn) <la_natural_name>: New
1330 field.
1331 * ada-lang.c (ada_language_defn): Initialize field
1332 'la_natural_name'.
1333 * c-lang.c (c_language_defn): Likewise.
1334 (cplus_language_defn, asm_language_defn): Likewise.
1335 * d-lang.c (d_language_defn): Likewise.
1336 * f-lang.c (f_language_defn): Likewise.
1337 * go-lang.c (go_language_defn): Likewise.
1338 * jv-lang.c (java_language_defn): Likewise.
1339 * language.c (unknown_language_defn ): Likewise.
1340 (auto_language_defn): Likewise.
1341 * m2-lang.c (m2_language_defn): Likewise.
1342 * objc-lang.c (objc_language_defn): Likewise.
1343 * opencl-lang.c (opencl_language_defn): Likewise.
1344 * p-lang.c (pascal_language_defn): Likewise.
1345
1346 2013-11-07 Yao Qi <yao@codesourcery.com>
1347
1348 * language.c (language_str): Return const char *.
1349 (add_language): Add const to 'language_names'
1350 * language.h (struct language_defn) <la_name>: Add const.
1351 (language_str: Update declaration.
1352
1353 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1354
1355 * s390-linux-nat.c (s390_read_description): Consider the TE field
1356 in the HWCAP for determining 'have_regset_tdb'.
1357
1358 2013-11-06 Will Newton <will.newton@linaro.org>
1359
1360 PR gdb/12866
1361 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1362 values. (read_partial_die): Likewise.
1363
1364 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1365
1366 PR cli/16122
1367 * top.c (command_line_input): Unify interactivity tests to use
1368 input_from_terminal_p.
1369 * event-top.c (command_line_handler): Likewise.
1370
1371 2013-11-06 Yao Qi <yao@codesourcery.com>
1372
1373 * Makefile.in (check-perf): New target.
1374
1375 2013-11-05 Will Newton <will.newton@linaro.org>
1376
1377 PR gdb/7670
1378 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1379 (arm_print_float_info): Likewise.
1380
1381 2013-11-04 Anton Blanchard <anton@samba.org>
1382
1383 * target.c (memory_xfer_partial): Cap write to 4KB.
1384
1385 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1386
1387 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1388 probe scan even when the arch provides no get_longjmp_target.
1389
1390 2013-10-31 Pedro Alves <palves@redhat.com>
1391
1392 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1393 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1394 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1395 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1396 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1397 <bpstat handling>: If the bpstat chain wants the signal to be
1398 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1399 GDB_SIGNAL_TRAP.
1400
1401 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1402
1403 * breakpoint.c (update_watchpoint): Update error message and add
1404 an additional error message.
1405
1406 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1407
1408 * s390-tdep.h: Rename to...
1409 * s390-linux-tdep.h: ...here.
1410 * s390-tdep.c: Rename to...
1411 * s390-linux-tdep.c: ...here. Adjust #include.
1412 * s390-nat.c: Rename to...
1413 * s390-linux-nat.c: ...here. Adjust #include.
1414 * config/s390/s390.mh: Rename to...
1415 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1416 s390-linux-nat.o.
1417 * configure.host: Reflect host rename "s390" -> "linux".
1418 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1419 * Makefile.in (ALL_TARGET_OBS): Likewise.
1420 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1421 s390-linux-tdep.h.
1422 (ALLDEPFILES): Reflect rename of .c files.
1423
1424 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425
1426 * s390-nat.c: Whitespace cleanup.
1427 * s390-tdep.c: Likewise.
1428 * s390-tdep.h: Remove empty line at end of file.
1429
1430 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1431
1432 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1433 siginfo_size.
1434
1435 2013-10-29 Tom Tromey <tromey@redhat.com>
1436
1437 * utils.c (reg): Move undefinition...
1438 * gdb_curses.h: ... here. Update comment to mention AIX.
1439
1440 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1441
1442 * exec.h (add_target_sections_of_objfile): New declaration.
1443 * exec.c (add_target_sections_of_objfile): New function.
1444 * symfile.c (add_symbol_file_command): Update current target sections.
1445 (remove_symbol_file_command): New command.
1446 (symfile_free_objfile): New function.
1447 (_initialize_symfile): Register observer for free_objfile events.
1448 * NEWS: Add description of the remove-symbol-file command.
1449 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1450 * objfiles.c (free_objfile): Notify free_objfile.
1451 (is_addr_in_objfile): New function.
1452 * objfiles.h (is_addr_in_objfile): New declaration.
1453 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1454 events instead of solib_unloaded events.
1455 (_initialize_printcmd): Register observer for free_objfile instead
1456 of solib_unloaded notifications.
1457 * solib.c (remove_user_added_objfile): New function.
1458 (_initialize_symfile): Add remove-symbol-file.
1459
1460 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1461
1462 * infcmd.c (default_print_one_register_info): Use val_print to
1463 print all values even optimized out or unavailable ones. Don't
1464 try to print a raw form of optimized out or unavailable values.
1465
1466 2013-10-29 Yao Qi <yao@codesourcery.com>
1467
1468 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1469 parameter 'arg' instead of from program_space_data.
1470 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1471 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1472 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1473 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1474 * inflow.c (inflow_inferior_data_cleanup): Get data from
1475 parameter 'arg' instead of inferior_data.
1476 * registry.h: Add comments.
1477
1478 2013-10-28 Pedro Alves <palves@redhat.com>
1479
1480 * breakpoint.c (watchpoints_triggered)
1481 <!target_stopped_data_address>: Hardcode return 1.
1482
1483 2013-10-28 Pedro Alves <palves@redhat.com>
1484
1485 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1486 level and reindent.
1487
1488 2013-10-28 Pedro Alves <palves@redhat.com>
1489
1490 * infrun.c (process_event_stop_test): New function, factored out
1491 from handle_inferior_event.
1492 (handle_inferior_event): 'process_event_stop_test' is now a
1493 function instead of a goto label -- adjust.
1494
1495 2013-10-28 Pedro Alves <palves@redhat.com>
1496
1497 * infrun.c (handle_inferior_event): Move process_event_stop_test
1498 goto label to the else branch of the ecs->random_signal check,
1499 along with FRAME and GDBARCH re-fetching.
1500
1501 2013-10-28 Pedro Alves <palves@redhat.com>
1502
1503 * infrun.c (switch_back_to_stepped_thread): New function, factored
1504 out from handle_inferior_event.
1505 (handle_inferior_event): Adjust to call
1506 switch_back_to_stepped_thread. Call it also at the tail of the
1507 random signal handling, and return, instead of also handling
1508 random signals just before the stepping tests.
1509
1510 2013-10-28 Pedro Alves <palves@redhat.com>
1511
1512 * infrun.c (clear_stop_func): Delete.
1513 (handle_inferior_event): Don't call clear_stop_func and don't
1514 clear 'ecs->random_signal'.
1515
1516 2013-10-27 Yao Qi <yao@codesourcery.com>
1517
1518 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1519 (varobj_create, varobj_get_path_expr): Update.
1520 (varobj_value_has_mutated, varobj_update): Likewise.
1521 (create_child_with_value, new_root_variable): Likewise.
1522 (number_of_children, name_of_variable): Likewise.
1523 (value_of_child, my_value_of_variable): Likewise.
1524 (varobj_value_is_changeable_p): Likewise.
1525
1526 2013-10-25 Yao Qi <yao@codesourcery.com>
1527
1528 * language.h (struct lang_varobj_ops): Declare.
1529 (struct language_defn) <la_varobj_ops>: New field.
1530 * ada-lang.c: Include "varobj.h"
1531 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1532 ada_varobj_ops.
1533 * c-lang.c: Include "varobj.h"
1534 (c_language_defn): Initialize field 'la_varobj_ops' with
1535 c_varobj_ops.
1536 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1537 cplus_varobj_ops.
1538 (asm_language_defn): Initialize field 'la_varobj_ops' with
1539 default_varobj_ops.
1540 (minimal_language_defn): Likewise.
1541 * d-lang.c (d_language_defn): Likewise.
1542 * f-lang.c (f_language_defn): Likewise.
1543 * go-lang.c (go_language_defn): Likewise.
1544 * m2-lang.c (m2_language_defn): Likewise.
1545 * objc-lang.c (objc_language_defn): Likewise.
1546 * opencl-lang.c (opencl_language_defn): Likewise.
1547 * p-lang.c (pascal_language_defn): Likewise.
1548 * language.c (unknown_language_defn): Likewise.
1549 (auto_language_defn): Likewise.
1550 (local_language_defn): Likewise.
1551 * jv-lang.c (java_language_defn): Initialize field
1552 'la_varobj_ops' with java_varobj_ops.
1553 * varobj.c (varobj_create): Update.
1554 * varobj.h (default_varobj_ops): Define macro.
1555
1556 2013-10-25 Pedro Alves <palves@redhat.com>
1557
1558 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1559 static field value.
1560 (cp_print_static_field): If the value is entirely optimized out,
1561 print <optimized out> here.
1562 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1563 static field value.
1564 * p-valprint.c (pascal_object_print_static_field): If the value is
1565 entirely optimized out, print <optimized out> here.
1566 * valops.c (do_search_struct_field)
1567 (value_struct_elt_for_reference): No longer handle a NULL static
1568 field value.
1569 * value.c (value_static_field): Return an optimized out value
1570 instead of NULL.
1571
1572 2013-10-25 Yao Qi <yao@codesourcery.com>
1573
1574 * remote.c (remote_traceframe_info): Return early if
1575 traceframe is not selected.
1576
1577 2013-10-25 Yao Qi <yao@codesourcery.com>
1578
1579 * tracepoint.c (traceframe_fun): Remove.
1580 (traceframe_sal): Remove.
1581 (set_traceframe_context): Add local variables.
1582
1583 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1584
1585 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1586 and parameter name.
1587
1588 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1589
1590 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1591 failure from register information collection.
1592
1593 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1594
1595 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1596 member.
1597 (linux_corefile_thread_callback): Update accordingly.
1598 (linux_make_corefile_notes): Likewise.
1599
1600 2013-10-24 Pedro Alves <palves@redhat.com>
1601
1602 * NEWS (New options): Mention set/show startup-with-shell.
1603 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1604 instead of 3.
1605 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1606 startup-with-shell'.
1607 (show_startup_with_shell): New function.
1608 (_initialize_fork_child): Register the set/show startup-with-shell
1609 commands.
1610 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1611 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1612 * procfs.c (procfs_init_inferior): Remove comment.
1613 * infcmd.c (startup_with_shell): New global.
1614 * inferior.h (startup_with_shell): Declare global.
1615 (STARTUP_WITH_SHELL): Delete.
1616 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1617
1618 2013-10-23 Pedro Alves <palves@redhat.com>
1619
1620 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1621 * common/signals.c: Include "gdb_assert.h".
1622 (signals): New field 'symbol'.
1623 (SET): Use the 'symbol' parameter.
1624 (gdb_signal_to_symbol_string): New function.
1625 * infrun.c (handle_inferior_event) <random signal>: In debug
1626 output, print the random signal enum as string in addition to its
1627 number.
1628 * target/waitstatus.c (target_waitstatus_to_string): Print the
1629 signal's enum value as string instead of the (POSIX) signal name.
1630
1631 2013-10-23 Gary Benson <gbenson@redhat.com>
1632
1633 PR 16013
1634 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1635 from 32 to 18. Adjusted fscanf format string accordingly.
1636 (Avoids leaving cmd unterminated.)
1637 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1638 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1639 that local_address and remote_address will not overflow.
1640 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1641 leaving dependencies unterminated. Parse size as "%u" to match
1642 definition.
1643
1644 2013-10-22 Pedro Alves <palves@redhat.com>
1645
1646 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1647 set ecs->random signal.
1648
1649 2013-10-22 Pedro Alves <palves@redhat.com>
1650
1651 * infrun.c (keep_going): Update comments.
1652
1653 2013-10-22 Pedro Alves <palves@redhat.com>
1654
1655 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1656 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1657
1658 2013-10-22 Pedro Alves <palves@redhat.com>
1659
1660 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1661 GDB_EXC_BAD_ACCESS.
1662 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1663 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1664 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1665 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1666 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1667 (GDB_SIGNAL_LAST): Change description string.
1668 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1669 Adjust to signal renaming.
1670 * darwin-nat.c (darwin_decode_message): Likewise.
1671
1672 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1673
1674 * MAINTAINERS (Write After Approval): Add myself to the list.
1675
1676 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1677
1678 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1679 forced off, downgrade them to software watchpoints if possible,
1680 and error out if not possible.
1681 (watch_command_1): Move watchpoint type selection closer to
1682 watchpoint creation, and extend the comments.
1683
1684 2013-10-18 Pedro Alves <palves@redhat.com>
1685
1686 PR gdb/16062
1687 * infrun.c (handle_inferior_event): Keep going if we got a random
1688 signal we should not stop for, instead of falling through to the
1689 step tests.
1690
1691 2013-10-18 Yao Qi <yao@codesourcery.com>
1692
1693 * c-varobj.c (cplus_number_of_children): Fix indentation.
1694
1695 2013-10-17 Tom Tromey <tromey@redhat.com>
1696
1697 PR gdb/15995:
1698 * printcmd.c (printcmd): Call gdb_flush.
1699
1700 2013-10-17 Tom Tromey <tromey@redhat.com>
1701
1702 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1703 (elf_locate_sections): Update.
1704
1705 2013-10-17 Yao Qi <yao@codesourcery.com>
1706
1707 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1708 * ada-varobj.c: Remove the include of ada-varobj.h.
1709 (ada_varobj_get_number_of_children): Declare.
1710 (ada_varobj_get_name_of_child): Make it static.
1711 (ada_varobj_get_path_expr_of_child): Likewise.
1712 (ada_varobj_get_value_of_child): Likewise.
1713 (ada_varobj_get_type_of_child): Likewise.
1714 (ada_varobj_get_value_of_array_variable): Likewise.
1715 * ada-varobj.h: Remove.
1716
1717 2013-10-17 Yao Qi <yao@codesourcery.com>
1718
1719 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1720 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1721 * ada-varobj.c: Include "varobj.h".
1722 (ada_number_of_children): New. Moved from varobj.c.
1723 (ada_name_of_variable, ada_name_of_child): Likewise.
1724 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1725 (ada_type_of_child, ada_value_of_variable): Likewise.
1726 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1727 (ada_varobj_ops): New.
1728 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1729 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1730 * gdbtypes.h (get_target_type): Declare.
1731 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1732 "ada-lang.h".
1733 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1734 (ANONYMOUS_UNION_NAME): Likewise.
1735 (get_type, get_value_type, get_target_type): Remove declarations.
1736 (value_get_print_value, varobj_value_get_print_value): Likewise.
1737 (c_number_of_children, c_name_of_variable): Likewise.
1738 (c_name_of_child, c_path_expr_of_child): Likewise.
1739 (c_value_of_child, c_type_of_child): Likewise.
1740 (c_value_of_variable, cplus_number_of_children): Likewise.
1741 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1742 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1743 (cplus_value_of_child, cplus_type_of_child): Likewise.
1744 (cplus_value_of_variable, java_number_of_children): Likewise.
1745 (java_name_of_variable, java_name_of_child): Likewise.
1746 (java_path_expr_of_child, java_value_of_child): Likewise.
1747 (java_type_of_child, java_value_of_variable): Likewise.
1748 (ada_number_of_children, ada_name_of_variable): Likewise.
1749 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1750 (ada_value_of_child, ada_type_of_child): Likewise.
1751 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1752 (ada_value_has_mutated): Likewise.
1753 (struct language_specific): Move it to varobj.h.
1754 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1755 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1756 Callers update.
1757 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1758 Make it extern.
1759 (is_anonymous_child): Move it to c-varobj.c and rename to
1760 varobj_is_anonymous_child. Caller update.
1761 (get_type): Move it to c-varobj.c.
1762 (get_value_type): Rename it varobj_get_value_type. Make it
1763 extern.
1764 (get_target_type): Move it gdbtypes.c.
1765 (varobj_formatted_print_options): New function.
1766 (value_get_print_value): Rename it to
1767 varobj_value_get_print_value and make it extern.
1768 (varobj_value_is_changeable_p): Make it extern.
1769 (adjust_value_for_child_access): Move it to c-varobj.c.
1770 (default_value_is_changeable_p): Rename it to
1771 varobj_default_value_is_changeable_p. Make it extern.
1772 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1773 (c_name_of_child, c_path_expr_of_child): Likewise.
1774 (c_value_of_child, c_type_of_child): Likewise.
1775 (c_value_of_variable, cplus_number_of_children): Likewise.
1776 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1777 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1778 (cplus_value_of_child, cplus_type_of_child): Likewise.
1779 (cplus_value_of_variable): Likewise.
1780 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1781 (java_name_of_child, java_path_expr_of_child): Likewise.
1782 (java_value_of_child, java_type_of_child): Likewise.
1783 (java_value_of_variable): Likewise.
1784 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1785 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1786 (ada_value_of_child, ada_type_of_child): Likewise.
1787 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1788 (ada_value_has_mutated): Likewise.
1789 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1790 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1791 (c_varobj_ops, cplus_varobj_ops): Declare.
1792 (java_varobj_ops, ada_varobj_ops): Declare.
1793 (varobj_default_value_is_changeable_p): Declare.
1794 (varobj_value_is_changeable_p): Declare.
1795 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1796 (varobj_get_path_expr_parent): Declare.
1797 (varobj_value_get_print_value): Declare.
1798 (varobj_formatted_print_options): Declare.
1799 (varobj_restrict_range): Declare.
1800
1801 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1802
1803 * target/waitstatus.h (target_waitkind): Remove spurious
1804 character from the comments.
1805
1806 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1807
1808 * gdbarch.sh (get_longjmp_target): Add method documentation.
1809 * gdbarch.h: Regenerate.
1810
1811 2013-10-16 Tom Tromey <tromey@redhat.com>
1812
1813 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1814 label.
1815
1816 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1817
1818 * gcore.in: Call GDB using the full path to the gcore script.
1819 Error out if the GDB binary is not found.
1820
1821 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1822
1823 PR gdb/16014
1824 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1825 sizeof.
1826
1827 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1828
1829 PR gdb/16042
1830 * target.c (target_disable_btrace): Fix invalid return value for
1831 void function.
1832 (target_teardown_btrace): Likewise.
1833
1834 2013-10-14 Yao Qi <yao@codesourcery.com>
1835
1836 * varobj.c (struct varobj): Move most of the fields to
1837 varobj.h.
1838 (struct varobj_dynamic): New struct.
1839 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1840 (varobj_has_more): Likewise.
1841 (dynamic_varobj_has_child_method): Likewise.
1842 (update_dynamic_varobj_children): Likewise.
1843 (varobj_get_num_children): Likewise.
1844 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1845 (install_new_value_visualizer): Likewise.
1846 (install_new_value_visualizer, install_new_value): Likewise.
1847 (varobj_update, new_variable, free_variable): Likewise.
1848 (my_value_of_variable, value_get_print_value): Likewise.
1849 (install_visualizer): Change the type of parameter 'var' to
1850 'struct varobjd_dynamic *'. Callers update.
1851 * varobj.h (struct varobj): Moved from varobj.c.
1852 (struct varobj) <dynamic>: New field.
1853
1854 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1855
1856 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1857 as the preferred name of r30.
1858 * nios2-linux-tdep.c (reg_offsets): Likewise.
1859 * features/nios2-cpu.xml: Likewise.
1860 * features/nios2-linux.c: Regenerated.
1861 * features/nios2.c: Regenerated.
1862 * regformats/nios2-linux.dat: Regenerated.
1863
1864 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 Canonicalize directories for EXEC_FILENAME.
1867 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1868 exec_filename.
1869 * utils.c (gdb_realpath_keepfile): New function.
1870 * utils.h (gdb_realpath_keepfile): New declaration.
1871
1872 2013-10-11 Doug Evans <dje@google.com>
1873
1874 * Makefile.in (GDBFLAGS): New variable.
1875 (run): New rule.
1876
1877 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1878
1879 * NEWS: Add entry documenting the new "-catch-assert" and
1880 "-catch-exception" GDB/MI commands.
1881
1882 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1883
1884 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1885 "enabled".
1886 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1887 "enabled". Set B->ENABLE_STATE accordingly.
1888 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1889 ada-lang.c.
1890 (create_ada_exception_catchpoint): Add declaration.
1891 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1892 (create_ada_exception_catchpoint): Make non-static. Add new
1893 parameter "disabled". Use it in call to
1894 init_ada_exception_breakpoint.
1895 (catch_ada_exception_command): Add parameter "enabled" in call
1896 to create_ada_exception_catchpoint.
1897 (catch_assert_command): Likewise.
1898
1899 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1900 Add declarations.
1901 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1902 "catch-exception" commands.
1903 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1904 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1905
1906 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1907
1908 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1909 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1910 of all its enumerates with "ada_". Update the rest of this
1911 file throughout.
1912
1913 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1914
1915 * ada-lang.c (ada_decode_exception_location): Delete.
1916 (create_ada_exception_catchpoint): Remove arguments "sal",
1917 "addr_string" and "ops". Add argument "ex_kind" instead.
1918 Adjust implementation accordingly, calling ada_exception_sal
1919 to get the entities it no longer gets passed as arguments.
1920 Document the function's arguments.
1921 (catch_ada_exception_command): Use catch_ada_exception_command_split
1922 instead of ada_decode_exception_location, and update call to
1923 create_ada_exception_catchpoint.
1924 (catch_ada_assert_command_split): Renames
1925 ada_decode_assert_location. Remove parameters "addr_string" and
1926 "ops", and now returns void. Adjust implementation accordingly.
1927 Update the function documentation.
1928 (catch_assert_command): Use catch_ada_assert_command_split
1929 instead of ada_decode_assert_location. Update call to
1930 create_ada_exception_catchpoint.
1931
1932 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1933
1934 * utils.h (perror_warning_with_name): Add declaration.
1935 * utils.c (perror_warning_with_name): New function.
1936 * cli/cli-cmds.c (source_script_with_search): Add call to
1937 perror_warning_with_name if from_tty is nul.
1938
1939 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1940
1941 * utils.c (perror_string): New function, extracted out of
1942 throw_perror_with_name.
1943 (throw_perror_with_name): Rework to use perror_string.
1944
1945 2013-10-11 Yao Qi <yao@codesourcery.com>
1946
1947 * remote.c (discard_pending_stop_replies_in_queue): Update
1948 declaration.
1949 (struct stop_reply) <rs>: New field.
1950 (remove_stop_reply_of_remote_state): New function.
1951 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1952 Callers update. Pass remove_stop_reply_of_remote_state to
1953 QUEUE_iterate.
1954 (remote_parse_stop_reply): Initialize field 'rs'.
1955
1956 2013-10-10 Will Newton <will.newton@linaro.org>
1957
1958 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1959 linux_init_abi.
1960
1961 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1962
1963 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1964 serial_baud_show_cmd.
1965 (_initialize_cli_cmds): Delete the code creating the
1966 "set/show remotebaud" commands.
1967 * serial.c (baud_rate): Move here from top.c.
1968 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1969 (_initialize_serial): Create "set/show serial baud" commands.
1970 Add "set/show remotebaud" command aliases.
1971 * top.c (baud_rate): Moved to serial.c.
1972 * NEWS: Document the new "set/show serial baud" commands,
1973 replacing "set/show remotebaud".
1974
1975 2013-10-09 Pedro Alves <palves@redhat.com>
1976
1977 * breakpoint.c (insert_bp_location): Use memory_error_message to
1978 build the memory error string.
1979 * c-lang.c: Include "gdbcore.h".
1980 (c_get_string): Use memory_error to throw error.
1981 (target_xfer_memory_error): Delete.
1982 (memory_error_message): New, factored out from
1983 target_xfer_memory_error.
1984 (memory_error): Change parameter type to target_xfer_error.
1985 Rewrite.
1986 (read_memory): Use memory_error instead of
1987 target_xfer_memory_error.
1988 * gdbcore.h: Include "target.h".
1989 (memory_error): Change parameter type to target_xfer_error.
1990 (memory_error_message): Declare function.
1991 * target.c (target_read_memory, target_read_stack)
1992 (target_write_memory, target_write_raw_memory): Return
1993 TARGET_XFER_E_IO on error. Adjust comments.
1994 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1995 instead of EIO.
1996 * target.h (target_read, target_insert_breakpoint)
1997 (target_remove_breakpoint): Adjust comments.
1998 * valprint.c (partial_memory_read): Rename parameter, and adjust
1999 comment.
2000 (val_print_string): Use memory_error_message to build the memory
2001 error string.
2002
2003 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2004
2005 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2006 result variable. Rename variable fopen_e_ever_failed to
2007 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2008
2009 2013-10-09 Pedro Alves <palves@redhat.com>
2010
2011 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2012 (monitor_write_memory_longlongs, monitor_write_memory_block):
2013 Constify 'myaddr' parameter.
2014 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2015 helper.
2016 (monitor_xfer_partial): New function.
2017 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2018 hook. Install a to_xfer_partial hook.
2019
2020 2013-10-09 Tom Tromey <tromey@redhat.com>
2021
2022 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2023 bfd_get_alt_debug_link_info.
2024
2025 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2026
2027 New flag OBJF_NOT_FILENAME.
2028 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2029 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2030 allocate_objfile.
2031 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2032 symbol_file_add_from_bfd.
2033 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2034 allocate_objfile.
2035 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2036 NULL.
2037 * objfiles.h (OBJF_NOT_FILENAME): New.
2038
2039 2013-10-08 Tom Tromey <tromey@redhat.com>
2040
2041 * Makefile.in (SFILES): Add build-id.c.
2042 (HFILES_NO_SRCDIR): Add build-id.h.
2043 * build-id.c: New file, largely from elfread.c. Modified
2044 most functions.
2045 * build-id.h: New file.
2046 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2047 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2048 Search for dwz file using build-id.
2049 * elfread.c (build_id_bfd_get, build_id_verify)
2050 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2051
2052 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2053
2054 * ada-lang.c (compare_names_with_case): Renamed from
2055 compare_names, adding a new parameter "casing" and its handling.
2056 New function documentation.
2057 (compare_names): New function, implemented using
2058 compare_names_with_case.
2059
2060 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2061
2062 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2063
2064 2013-10-07 Tom Tromey <tromey@redhat.com>
2065
2066 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2067 demangled_names_hash.
2068 (free_objfile): Don't delete the demangled_names_hash.
2069 * objfiles.h (struct objfile_per_bfd_storage)
2070 <demangled_names_hash>: New field.
2071 (struct objfile) <demangled_names_hash>: Move to
2072 objfile_per_bfd_storage.
2073 * symfile.c (reread_symbols): Don't delete the
2074 demangled_names_hash.
2075 * symtab.c (create_demangled_names_hash): Update.
2076 (symbol_set_names): Update.
2077
2078 2013-10-07 Tom Tromey <tromey@redhat.com>
2079
2080 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2081 needs_relocations>: New fields.
2082 (gdb_bfd_requires_relocations): New function.
2083 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2084 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2085 the BFD needs relocations applied.
2086
2087 2013-10-07 Pedro Alves <palves@redhat.com>
2088
2089 PR breakpoints/11568
2090 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2091 the thread list" instead of "gone".
2092
2093 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2094
2095 * NEWS: Mention new convenience variable $_exitsignal.
2096 * corelow.c (core_open): Reset exit convenience variables. Set
2097 $_exitsignal to the uncaught signal which generated the corefile.
2098 * infrun.c (handle_inferior_event): Reset exit convenience
2099 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2100 (clear_exit_convenience_vars): New function.
2101 * inferior.h (clear_exit_convenience_vars): New prototype.
2102
2103 2013-10-06 Yao Qi <yao@codesourcery.com>
2104
2105 * varobj.h: Add comments to enum varobj_languages.
2106
2107 2013-10-04 Doug Evans <dje@google.com>
2108
2109 Add support for DWP file format version 2.
2110 * NEWS: Mention support for DWP file format version 2.
2111 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2112 union of asection, containing_section. New fields virtual_offset
2113 and is_virtual. Change type of readin filed from int to char.
2114 (dwo_sections, dwo_file): Tweak comments.
2115 (dwp_v2_section_ids): New enum.
2116 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2117 str_offsets, types.
2118 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2119 All uses updated.
2120 (virtual_v2_dwo_sections): New struct.
2121 (dwp_hash_table): New fields version, nr_columns. Change type of
2122 section_pool field to a union.
2123 (dwp_file): New field version.
2124 (dwarf2_has_info): Check for virtual sections.
2125 (get_containing_section): New function.
2126 (get_section_bfd_owner, get_section_bfd_section): Call it.
2127 (dwarf2_locate_sections): Update.
2128 (dwarf2_section_empty_p): Update.
2129 (dwarf2_read_section): Handle virtual sections.
2130 (locate_dwz_sections): Update.
2131 (create_dwp_hash_table): Document and handle V2 format.
2132 (locate_v1_virtual_dwo_sections): Renamed from
2133 locate_virtual_dwo_sections and update. All callers updated.
2134 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2135 Delete arg htab. Rename arg section_index to unit_index.
2136 All callers updated.
2137 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2138 All uses updated.
2139 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2140 (lookup_dwo_unit_in_dwp): Add V2 support.
2141 (dwarf2_locate_dwo_sections): Update.
2142 (dwarf2_locate_common_dwp_sections): Renamed from
2143 dwarf2_locate_dwp_sections and update. All callers updated.
2144 (dwarf2_locate_v2_dwp_sections): New function.
2145 (open_and_init_dwp_file): Add V2 support.
2146 (read_str_index): New locals str_section, str_offsets_section.
2147
2148 2013-10-04 Pedro Alves <palves@redhat.com>
2149
2150 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2151 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2152 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2153 describing comments with references to ptid.h.
2154 * common/ptid.h: Remove intro description of constructors,
2155 accessors and predicates.
2156 (struct ptid): Reformat.
2157 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2158 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2159 describing comments.
2160
2161 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2162
2163 * aix-thread.c (sync_threadlists): Add missing ')' in call
2164 to ptid_build.
2165
2166 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2167
2168 * procfs.c (procfs_init_inferior): Fix typo causing the build
2169 to fail.
2170
2171 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2172
2173 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2174
2175 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2176
2177 * mi/mi-main.c (run_one_inferior): Add function description.
2178 Make ARG a pointer to an integer whose value determines whether
2179 we should "run" or "start" the program.
2180 (mi_cmd_exec_run): Add handling of the "--start" option.
2181 Reject all other command-line options.
2182 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2183
2184 2013-10-04 Yao Qi <yao@codesourcery.com>
2185
2186 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2187 (struct notif_client) <pending_event>: Moved
2188 to struct remote_notif_state.
2189 <id>: New field.
2190 (struct remote_notif_state) <pending_event>: New field.
2191 (notif_event_xfree): Declare.
2192 * remote-notif.c (handle_notification): Adjust.
2193 (notif_event_xfree): New function.
2194 (do_notif_event_xfree): Call notif_event_xfree.
2195 (remote_notif_state_xfree): Call notif_event_xfree to free
2196 each element in field pending_event.
2197 * remote.c (discard_pending_stop_replies): Remove declaration.
2198 (discard_pending_stop_replies_in_queue): Declare.
2199 (remote_close): Call discard_pending_stop_replies_in_queue
2200 instead of discard_pending_stop_replies.
2201 (remote_start_remote): Adjust.
2202 (stop_reply_xfree): Call notif_event_xfree.
2203 (notif_client_stop): Adjust initialization.
2204 (remote_notif_remove_all): Rename it to ...
2205 (remove_stop_reply_for_inferior): ... this. Update comments.
2206 Don't check INF is NULL.
2207 (discard_pending_stop_replies): Return early if notif_state is
2208 NULL. Adjust. Don't check INF is NULL.
2209 (remote_notif_get_pending_events): Adjust.
2210 (discard_pending_stop_replies_in_queue): New function.
2211 (remote_wait_ns): Likewise.
2212
2213 2013-10-04 Yao Qi <yao@codesourcery.com>
2214
2215 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2216 (notif_queue): Remove.
2217 (remote_notif_process): Add one parameter 'notif_queue'.
2218 Update comments. Callers update.
2219 (remote_async_get_pending_events_token): Remove.
2220 (remote_notif_register_async_event_handler): Remove.
2221 (remote_notif_unregister_async_event_handler): Remove.
2222 (handle_notification): Add parameter 'notif_queue'. Update
2223 comments. Callers update.
2224 (notif_xfree): Remove.
2225 (remote_notif_state_allocate): New function.
2226 (remote_notif_state_xfree): New function.
2227 (_initialize_notif): Remove code to allocate queue.
2228 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2229 (struct remote_notif_state): New.
2230 (handle_notification): Update declaration.
2231 (remote_notif_process): Likewise.
2232 (remote_notif_register_async_event_handler): Remove.
2233 (remote_notif_unregister_async_event_handler): Remove.
2234 (remote_notif_state_allocate): Declare.
2235 (remote_notif_state_xfree): Declare.
2236 * remote.c (struct remote_state) <notif_state>: New field.
2237 (remote_close): Don't call
2238 remote_notif_unregister_async_event_handler. Call
2239 remote_notif_state_xfree.
2240 (remote_open_1): Don't call
2241 remote_notif_register_async_event_handler. Call
2242 remote_notif_state_allocate.
2243
2244 2013-10-04 Yao Qi <yao@codesourcery.com>
2245
2246 * varobj.c (create_child_with_value): Remove 'const' from the
2247 type of parameter 'name'.
2248 (varobj_add_child): Likewise.
2249 (install_dynamic_child): Remove 'const' from the type of
2250 parameter 'name'.
2251 (varobj_add_child): Likewise.
2252 (create_child_with_value): Likewise. Update comments. Don't
2253 duplicate 'name'.
2254 (update_dynamic_varobj_children): Duplicate 'name'
2255 and pass it to install_dynamic_child.
2256
2257 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2258
2259 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2260 conversion logic to occur after PyLong_Check. Comment on order
2261 change significance.
2262 * python/py-arch.c (archpy_disassemble): Comment on order of
2263 conversion for integers and longs.
2264
2265 2013-10-03 Pedro Alves <palves@redhat.com>
2266
2267 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2268 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2269 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2270 PTRACE_O_TRACEFORK is not supported.
2271 (linux_test_for_tracesysgood): New function.
2272 (linux_test_for_tracefork): New function, factored out from
2273 linux_check_ptrace_features, and also don't kill child_pid here.
2274
2275 2013-10-03 Tristan Gingold <gingold@adacore.com>
2276
2277 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2278 Remove verbose error reporting. Use detected state to
2279 thread_set_state call.
2280 (i386_darwin_dr_get): Fix return type. Remove verbose error
2281 report.
2282 Remove trailing spaces.
2283
2284 2013-10-02 Pedro Alves <palves@redhat.com>
2285
2286 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2287 val_print_optimized_out.
2288 * jv-valprint.c (java_print_value_fields): Likewise.
2289 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2290 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2291 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2292 new optimized out value.
2293 * findvar.c (address_from_register): Likewise.
2294 * frame.c (put_frame_register): Tweak error string to say the
2295 register was not saved, rather than optimized out.
2296 * infcmd.c (default_print_one_register_info): Adjust call to
2297 val_print_optimized_out. Use value_of_register instead of
2298 get_frame_register_value.
2299 * mi/mi-main.c (output_register): Use value_of_register instead of
2300 get_frame_register_value.
2301 * valprint.c (valprint_check_validity): Likewise.
2302 (val_print_optimized_out): New value parameter. If the value is
2303 lval_register, print <not saved> instead.
2304 (value_check_printable, val_print_scalar_formatted): Adjust calls
2305 to val_print_optimized_out.
2306 * valprint.h (val_print_optimized_out): New value parameter.
2307 * value.c (struct value) <optimized_out>: Extend comment.
2308 (error_value_optimized_out): New function.
2309 (require_not_optimized_out): Use it. Use a different string for
2310 lval_register values.
2311 * value.h (error_value_optimized_out): New declaration.
2312 * NEWS: Mention <not saved>.
2313
2314 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2315
2316 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2317 strcmp to compare two symtab filenames.
2318
2319 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2320
2321 * symtab.c (search_symbols_equal): Delete.
2322 (sort_search_symbols_remove_dups): Replace call to
2323 search_symbols_equal by call to compare_search_syms,
2324 adjusting as necessary.
2325
2326 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2327
2328 PR python/15579
2329 * python/python.c: Document gdb.execute command in Python help.
2330
2331 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2332
2333 * python/py-frame.c (frame_info_to_frame_object): Use
2334 gdbpy_convert_exception. Clean up Python object on failure.
2335
2336 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2337
2338 * python/lib/gdb/command/frame_filters.py
2339 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2340 (ShowFrameFilterPriority.invoke): Ditto.
2341
2342 2013-10-01 Keith Seitz <keiths@redhat.com>
2343
2344 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2345 (parse_linespec): Make 'argptr' const.
2346 Remove temporary cast of 'argptr' to const char **.
2347 (decode_line_full): Pass const pointer to parse_linespec.
2348 (decode_line_1): Likewise.
2349 (decode_objc): Make local variable 'new_argptr' const.
2350 (find_function_symbols): Remove temporary cast to char *
2351 to find_imps.
2352 * objc-lang.c (find_imps): Make argument 'method' const.
2353 Return const.
2354 * objc-lang.h (find_imps): Likewise.
2355
2356 2013-10-01 Keith Seitz <keiths@redhat.com>
2357
2358 * completer.c (skip_quoted_chars): Make all arguments const.
2359 Return const.
2360 (skip_quoted): Likewise.
2361 * completer.h (skip_quoted_chars): Likewise.
2362 (skip_quoted): Likewise.
2363 * defs.h (skip_quoted): Remove duplicate declaration.
2364 * jv-exp.y: Include completer.h.
2365 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2366 * p-exp.y: Include completer.h.
2367
2368 2013-10-01 Keith Seitz <keiths@redhat.com>
2369
2370 * c-exp.y (parse_number): Make first argument const.
2371 Make a copy of the input to manipulate.
2372 (c_parse_escape): Make first argument const.
2373 Make local variable 'tokptr' const.
2374 (parse_string_or_char): Make first two arguments const.
2375 (macro_original_text): Make const.
2376 (lex_one_token): Make local variable 'tokstart' const.
2377 Likewise for local variables named 'p'.
2378 Cast away const for struct stoken (temporary).
2379 * c-lang.h (c_parse_escpae): Make first argument const.
2380 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2381 const.
2382 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2383 var_string case.
2384 * f-exp.y (parse_number): Make first argument const.
2385 (match_string_literal): Make local variable 'tokstart'
2386 const.
2387 (yylex): Make local variable 'p' const.
2388 Cast away const for struct stoken (temporary).
2389 * go-exp.y (parse_number): Make first argument const.
2390 (parse_string_or_char): Likewise.
2391 Make local variable 'tokstart' const.
2392 (lex_one_token): Likewise for numerous locals called 'p'.
2393 Cast away const for struct stoken (temporary).
2394 * jv-exp.y (parse_number): Make first argument const.
2395 Make local variables 'tokstart' and 'tokptr' const.
2396 Cast away const for call to skip_quoted (temporary).
2397 (yylex): Make local variable 'p' const.
2398 Cast away const for struct stoken (temporary).
2399 * m2-exp.y (parse_number): Make local variable 'p' const.
2400 (yylex): Likewise for 'tokstart'.
2401 Cast away const for struct stoken (temporary).
2402 Make local variable 'p' const.
2403 * macroexp.c (get_character_constant): Pass a const string
2404 to c_parse_escape.
2405 (get_string_literal): Likewise.
2406 (macro_expand_next): Make first argument const.
2407 Cast away const for init_shared_buffer.
2408 * macroexp.h (macro_expand_next): Make first argument const.
2409 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2410 Pass a const string to c_parse_escape.
2411 Make local variables 'p' and 'namestart' const.
2412 * parse.c (lexptr): Make const.
2413 (prev_lexptr): Likewise.
2414 (find_template_name_end): Return const.
2415 Make argument const, too.
2416 (parse_exp_in_context): Make first argument const.
2417 Remove the entire const_hack.
2418 (parse_exp_in_context_1): Make first argument const.
2419 * parser-defs.h (find_template_name_end): Return const.
2420 Make argument const, too.
2421 (lexptr): Make const.
2422 (prev_lexptr): Likewise.
2423 * utils.c (parse_escape): Make second argument const.
2424 * utils.h (parse_escape): Likewise.
2425
2426 2013-10-01 Keith Seitz <keiths@redhat.com>
2427
2428 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2429 is now const.
2430 (block_lookup): Make 'raw_name' and 'name' const.
2431 * ada-lex.l (processString): Update for struct stoken.ptr.
2432 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2433 (operator_stoken): Likewise.
2434 (lex_one_token): Remove temporary cast to char * for
2435 'yylval.sval.ptr'.
2436 * f-exp.y (yylex): Likewise.
2437 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2438 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2439 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2440 'yylval.sval.ptr'.
2441 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2442 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2443 * linespec.c (struct ls_parser): Make 'stream' const.
2444 (find_parameter_list_end): Make argument 'input' and local
2445 variable 'p' const.
2446 (linespec_lexer_lex_string): Make local variables 'start' and
2447 'p' const.
2448 Use skip_spaces_const instead of skip_spaces.
2449 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2450 const.
2451 (parse_linespec): Temporarily cast 'argptr' to const for
2452 'parser->lexer.stream'.
2453 * m2-exp.y (yylex): Remove temporary cast to char * for
2454 'yylval.sval.ptr'.
2455 * objc-lang.c (add_msglist): Make local variable 'p' const.
2456 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2457 (exp : STRING): Make 'sp' const.
2458 (parse_number): Make argument 'p' const.
2459 * parser-defs.h (struct stoken): Make 'ptr' const.
2460
2461 2013-10-01 Doug Evans <dje@google.com>
2462
2463 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2464
2465 2013-10-01 Yao Qi <yao@codesourcery.com>
2466
2467 * varobj.c (c_value_of_root): Remove declaration.
2468 (cplus_value_of_root, java_value_of_root): Likewise.
2469 (ada_value_of_root): Likewise.
2470 (struct language_specific) <value_of_root>: Remove.
2471 (languages): Update initialization.
2472 (check_scope): Move earlier.
2473 (c_value_of_root): Move earlier and rename to ...
2474 (value_of_root_1): ... this.
2475 (value_of_root): Caller update.
2476 (cplus_value_of_root, java_value_of_root): Remove.
2477 (ada_value_of_root): Remove.
2478
2479 2013-10-01 Yao Qi <yao@codesourcery.com>
2480
2481 * varobj.c (varobj_format_string): Remove "unknown".
2482 (languages): Remove the first element.
2483 * varobj.h (enum varobj_languages): Remove vlang_c.
2484
2485 2013-10-01 Yao Qi <yao@codesourcery.com>
2486
2487 * varobj.c (struct language_specific) <language>: Remove.
2488 (languages): Update the initialization.
2489
2490 2013-10-01 Yao Qi <yao@codesourcery.com>
2491
2492 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2493 "solib-target.h". Include "windows-tdep.h".
2494 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2495 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2496 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2497 windows-tdep.o to gdb_target_obs.
2498
2499 2013-10-01 Yao Qi <yao@codesourcery.com>
2500
2501 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2502 "solib-target.h".
2503 (amd64_windows_init_abi): Don't call set_solib_ops and
2504 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2505 windows_init_abi instead.
2506 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2507 "solib-target.h".
2508 (i386_cygwin_init_abi): Don't call set_solib_ops,
2509 set_gdbarch_has_dos_based_file_system and
2510 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2511 windows_init_abi instead.
2512 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2513 (windows_init_abi): New function.
2514 (windows_iterate_over_objfiles_in_search_order): Make it
2515 static.
2516 * windows-tdep.h (windows_init_abi): Declare.
2517 (windows_iterate_over_objfiles_in_search_order): Remove
2518 declaration.
2519
2520 2013-10-01 Jerome Guitton <guitton@adacore.com>
2521
2522 Checked in by Joel Brobecker <brobecker@adacore.com>
2523 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2524 incomplete dictionnary instead of None in case of missing
2525 environment variables.
2526 (elinos_init): in case of an incomplete environment, best
2527 effort to load system libraries instead of abort.
2528
2529 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2530
2531 * ada-lang.c (ada_has_this_exception_support): Ignore
2532 mst_solib_trampoline minimal symbols.
2533
2534 2013-09-30 Tristan Gingold <gingold@adacore.com>
2535
2536 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2537 hardware watchpoint.
2538 (i386_darwin_dr_set): Support 32 and 64 bit states.
2539 (i386_darwin_dr_get): Likewise.
2540 (i386_darwin_dr_set_control): Make static.
2541 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2542 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2543
2544 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2545
2546 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2547 Replace TIDGET with ptid_get_lwp.
2548 Replace GET_LWP with ptid_get_lwp.
2549 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2550 Replace BUILD_THREAD with ptid_build.
2551 Replace BUILD_LWP with ptid_build.
2552 Replace PIDGET with ptid_get_pid.
2553 Replace TIDGET with ptid_get_lwp.
2554 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2555 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2556 Replace TIDGET with ptid_get_lwp.
2557 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2558 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2559 Replace TIDGET with ptid_get_lwp.
2560 Replace GET_LWP with ptid_get_lwp.
2561 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2562 * auxv.c: Likewise.
2563 * breakpoint.c: Likewise.
2564 * common/ptid.c (ptid_is_pid): Condense check for
2565 null_ptid and minus_one_ptid.
2566 (ptid_lwp_p): New function.
2567 (ptid_tid_p): New function.
2568 * common/ptid.h: Update comments for accessors.
2569 (ptid_lwp_p): New prototype.
2570 (ptid_tid_p): New prototype.
2571 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2572 * gcore.c: Replace PIDGET with ptid_get_pid.
2573 * gdbthread.h: Likewise.
2574 * gnu-nat.c: Likewise.
2575 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2576 Replace TIDGET with ptid_get_lwp.
2577 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2578 * hppanbsd-nat.c: Likewise.
2579 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2580 Replace TIDGET with ptid_get_lwp.
2581 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2582 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2583 * infcmd.c: Likewise.
2584 * inferior.h: Likewise.
2585 * inflow.c: Likewise.
2586 * infrun.c: Likewise.
2587 * linux-fork.c: Likewise.
2588 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2589 Replace GET_PID with ptid_get_pid.
2590 Replace is_lwp with ptid_lwp_p.
2591 Replace GET_LWP with ptid_get_lwp.
2592 Replace BUILD_LWP with ptid_build.
2593
2594 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2595
2596 * common/linux-btrace.c: Move sys/syscall.h out of the
2597 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2598 Also check for SYS_perf_event_open before attempting to buid.
2599
2600 2013-09-27 Doug Evans <dje@google.com>
2601
2602 * dwarf2read.c (dwarf2_section_info): Add comment.
2603 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2604 All uses updated.
2605 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2606 (dwarf2_read_section): Delete unused local "header". Add section
2607 name to error message.
2608 (create_dwo_in_dwp): Tweak comment.
2609 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2610
2611 * dwarf2read.c (die_reader_specs): Tweak comment.
2612 (get_section_bfd_owner, get_section_bfd_section): New functions.
2613 (get_section_name, get_section_file_name): New functions.
2614 (get_section_id, get_section_flags): New functions.
2615 (*): Use new functions to access section fields.
2616
2617 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2618 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2619 arg "htab". All callers updated.
2620 (create_debug_types_hash_table): Remove redundant copy of
2621 abbrev_section.
2622 (create_dwo_in_dwp): Tweak comments.
2623 (read_str_index): Tweak comment. Record dwarf form name in static
2624 local.
2625
2626 2013-09-27 Pedro Alves <palves@redhat.com>
2627
2628 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2629 (remote_filename_p): Add comment.
2630 * remote.c (remote_filename_p): Adjust to use
2631 REMOTE_SYSROOT_PREFIX.
2632 * solib.c (solib_find): When deciding whether we need to add a
2633 directory separator, check whether the sysroot is "remote:"
2634 instead of checking whether the patch has a drive spec. Add
2635 comments.
2636
2637 2013-09-27 Pedro Alves <palves@redhat.com>
2638
2639 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2640 Delete fields.
2641 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2642 directly.
2643
2644 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2645
2646 Fix set debug frame output.
2647 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2648 SENTINEL_FRAME entry lower to match enum frame_type order.
2649
2650 2013-09-26 Pierre Muller <muller@sourceware.org>
2651
2652 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2653 AMD64_R15_REGNUM when a register index is expected.
2654 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2655 Substitute in array.
2656 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2657 (amd64_push_arguments): Substitute in integer_regnum array.
2658
2659 2013-09-25 Doug Evans <dje@google.com>
2660
2661 * objfiles.c (allocate_objfile): Move comment to better place.
2662
2663 New option "set debug symfile on".
2664 * NEWS: Mention "set debug symfile".
2665 * Makefile.in (SFILES): Add symfile-debug.c.
2666 (COMMON_OBS): Add symfile-debug.o.
2667 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2668 objfile's symbol functions.
2669 * objfiles.h (objfile_set_sym_fns): Declare.
2670 * symfile-debug.c: New file.
2671 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2672 objfile's symbol functions.
2673 (reread_symbols): Ditto.
2674
2675 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2676 All uses updated.
2677 (add_symtab_fns): Update prototype.
2678 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2679 (registered_sym_fns): ... this.
2680 (symtab_fns): Update.
2681 (add_symtab_fns): New arg "flavour". All callers updated.
2682 (find_sym_fns): Rewrite to use new sym_fns registry.
2683
2684 * symfile.h (struct sym_fns): Add "objfile" argument to
2685 sym_read_linetable. All uses updated.
2686
2687 * symtab.c (domain_name, search_domain_name): New functions.
2688 * symtab.h (domain_name, search_domain_name): Declare.
2689
2690 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2691 map_matching_symbols so objfile is first. All uses updated.
2692 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2693 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2694
2695 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2696
2697 PR shlibs/8882
2698 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2699 link map entries.
2700
2701 2013-09-24 Doug Evans <dje@google.com>
2702
2703 * objfiles.c (free_objfile): Move comment.
2704
2705 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2706
2707 * ada-exp.y (string_to_operator): Delete.
2708 (dummy_string_to_ada_operator): Delete.
2709
2710 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2711
2712 Revert:
2713 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2714 amd64-tdep.c.
2715 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2716 call_dummy_integer_regs, and classify.
2717 * amd64-tdep.h (amd64_classify): Add declaration.
2718 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2719 (amd64_reg_class): Delete, moved to i386-tdep.h.
2720 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2721 Replace call to amd64_classify by call to tdep->classify.
2722 (amd64_push_arguments): Get the list of registers to use for
2723 passing integer parameters from the gdbarch tdep structure,
2724 rather than using a hardcoded one. Replace calls to amd64_classify
2725 by calls to tdep->classify.
2726 (amd64_push_dummy_call): Get the register number used for
2727 the "hidden" argument from tdep->call_dummy_integer_regs.
2728 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2729 and tdep->call_dummy_integer_regs. Set tdep->classify.
2730
2731 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2732
2733 Revert:
2734 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2735 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2736 where tdep->memory_args_by_pointer is non-zero.
2737
2738 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2739
2740 Revert:
2741 * i386-tdep.h (struct gdbarch_tdep): Add new field
2742 integer_param_regs_saved_in_caller_frame.
2743 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2744 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2745
2746 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2747
2748 * amd64-windows-tdep.c: #include "value.h"
2749 (amd64_windows_classify): Delete.
2750 (amd64_windows_passed_by_integer_register)
2751 (amd64_windows_passed_by_xmm_register)
2752 (amd64_windows_passed_by_pointer)
2753 (amd64_windows_adjust_args_passed_by_pointer)
2754 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2755 (amd64_windows_push_dummy_call): New functions.
2756 (amd64_windows_init_abi): Remove setting of
2757 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2758 tdep->classify, tdep->memory_args_by_pointer and
2759 tdep->integer_param_regs_saved_in_caller_frame.
2760 Add call to set_gdbarch_push_dummy_call.
2761
2762 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2763
2764 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2765 objfile->original_name.
2766
2767 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 Pass down original filename for objfile.
2770 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2771 * elfread.c (elf_symfile_read): Likewise.
2772 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2773 longer set ORIGINAL_NAME.
2774 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2775 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2776 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2777 symbol_file_add_from_bfd call.
2778 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2779 (macho_check_dsym): Add parameter filenamep. Change function comment.
2780 Set *filenamep.
2781 (macho_symfile_read): New variable dsym_filename. Update
2782 macho_check_dsym call. Use it for symbol_file_add_separate.
2783 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2784 it. Use it for objfile->original_name.
2785 (objfile_name): Return OBFD's filename, if available.
2786 * objfiles.h (allocate_objfile): Add new parameter name.
2787 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2788 * symfile-mem.c (symbol_file_add_from_memory): Update
2789 symbol_file_add_from_bfd call.
2790 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2791 comment for it.
2792 (symbol_file_add_with_addrs): New parameter name, add function comment
2793 for it. Remove variable name. Update allocate_objfile call.
2794 (symbol_file_add_separate): New parameter name, add function comment
2795 for it. Update symbol_file_add_with_addrs call.
2796 (symbol_file_add_from_bfd): New parameter name. Update
2797 symbol_file_add_with_addrs call.
2798 (symbol_file_add): Update symbol_file_add_from_bfd call.
2799 (reread_symbols): New variable original_name. Save
2800 objfile->original_name by it.
2801 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2802 second parameter.
2803
2804 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
2806 Code cleanup: Add objfile_name accessor function.
2807 * ada-lang.c (is_known_support_routine): Use objfile_name.
2808 * auto-load.c (source_gdb_script_for_objfile)
2809 (auto_load_objfile_script): Likewise.
2810 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2811 * dbxread.c (dbx_symfile_read): Likewise.
2812 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2813 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2814 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2815 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2816 (lookup_dwp_signatured_type, lookup_dwo_unit)
2817 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2818 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2819 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2820 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2821 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2822 (read_subrange_type, load_partial_dies, read_partial_die)
2823 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2824 (die_containing_type, build_error_marker_type, lookup_die_type)
2825 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2826 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2827 (get_DW_AT_signature_type, write_psymtabs_to_index)
2828 (save_gdb_index_command): Likewise.
2829 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2830 Likewise.
2831 * expprint.c (dump_subexp_body_standard): Likewise.
2832 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2833 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2834 original_name.
2835 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2836 obj_name, use objfile_name for it, use the variable.
2837 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2838 Use objfile_name.
2839 * machoread.c (macho_symtab_read, macho_check_dsym)
2840 (macho_symfile_relocate): Likewise.
2841 * maint.c (maintenance_translate_address): Likewise.
2842 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2843 * minsyms.c (install_minimal_symbols): Likewise.
2844 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2845 original_name.
2846 (filter_overlapping_sections): Use objfile_name.
2847 (objfile_name): New function.
2848 * objfiles.h (struct objfile): Rename field name to original_name.
2849 (objfile_name): New prototype.
2850 * printcmd.c (sym_info, address_info): Use objfile_name.
2851 * probe.c (parse_probes, collect_probes, compare_probes)
2852 (info_probes_for_ops): Likewise.
2853 * progspace.c (clone_program_space): Likewise.
2854 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2855 (maintenance_info_psymtabs): Likewise.
2856 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2857 (source_section_scripts): Likewise.
2858 * python/py-objfile.c (objfpy_get_filename): Likewise.
2859 * python/py-progspace.c (pspy_get_filename): Likewise.
2860 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2861 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2862 * solib.c (solib_read_symbols): Likewise.
2863 * stabsread.c (scan_file_globals): Likewise.
2864 * stap-probe.c (handle_stap_probe): Likewise.
2865 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2866 (find_separate_debug_file_by_debuglink): Likewise.
2867 (reread_symbols): Likewise. Use the objfile field name renamed to
2868 original_name.
2869 (allocate_symtab): Use objfile_name.
2870 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2871 (dump_objfile, dump_msymbols, dump_symtab_1)
2872 (maintenance_print_msymbols, maintenance_print_objfiles)
2873 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2874 * target.c (target_translate_tls_address, target_info): Likewise.
2875 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2876 objfile_name.
2877
2878 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2879
2880 Code cleanup.
2881 * probe.c (parse_probes): Rename variable objfile_name to
2882 objfile_namestr.
2883
2884 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2885
2886 Remove solib-sunos.c.
2887 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2888 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2889 * objfiles.c (rt_common_objfile): Remove.
2890 (free_objfile): Remove rt_common_objfile comparison.
2891 * objfiles.h (rt_common_objfile): Remove.
2892 * solib-sunos.c: Remove.
2893 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2894
2895 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2896
2897 Remove a.out NetBSD and OpenBSD hosts.
2898 * NEWS (Removed native configurations): New.
2899 * config/arm/nbsdaout.mh: Remove.
2900 * config/i386/nbsdaout.mh: Remove.
2901 * config/i386/obsdaout.mh: Remove.
2902 * config/m68k/nbsdaout.mh: Remove.
2903 * config/sparc/nbsdaout.mh: Remove.
2904 * config/vax/nbsdaout.mh: Remove.
2905 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2906 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2907 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2908 error.
2909 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2910 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2911 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2912
2913 2013-09-23 Tom Tromey <tromey@redhat.com>
2914
2915 * linespec.c (struct minsym_and_objfile): Remove.
2916 (minsym_and_objfile_d): Remove.
2917 (struct linespec, struct collect_info, linespec_parse_basic)
2918 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2919 (compare_msymbols, find_method, find_function_symbols)
2920 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2921 (add_minsym, search_minsyms_for_name): Update.
2922
2923 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2924
2925 * regcache.c: Add include of valprint.h.
2926 (dump_endian_bytes): Delete.
2927 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2928
2929 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2930
2931 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2932
2933 2013-09-19 Pedro Alves <palves@redhat.com>
2934
2935 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2936 breakpoints.
2937
2938 2013-09-19 Pedro Alves <palves@redhat.com>
2939 Thomas Schwinge <thomas@codesourcery.com>
2940 Yue Lu <hacklu.newborn@gmail.com>
2941
2942 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2943 Take a gdb_byte pointer instead of a char pointer.
2944
2945 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2946 gnu_xfer_partial helper.
2947 (gnu_xfer_partial): New function.
2948 (gnu_target): Don't install a deprecated_xfer_memory hook.
2949 Install a to_xfer_partial hook.
2950
2951 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 Constification.
2954 * main.c (captured_main): Replace catch_command_errors by
2955 catch_command_errors_const. Twice.
2956 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2957 (symbol_file_add): Make name parameter const.
2958 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2959 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2960 variable name. Change their usage accordingly.
2961 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2962 const.
2963 (symbol_file_add_main): Make args parameter const.
2964
2965 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2966 Ulrich Weigand <uweigand@de.ibm.com>
2967
2968 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2969 of c_value member.
2970 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2971
2972 2013-09-18 Pedro Alves <palves@redhat.com>
2973 Yue Lu <hacklu.newborn@gmail.com>
2974
2975 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2976 (gnu_create_inferior)
2977 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2978 (set_sig_thread_cmd): Use the lwpid field of ptids to
2979 store/extract thread ids instead of the tid field.
2980 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2981
2982 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2983
2984 * infcmd.c (default_print_one_register_info): Add detection of
2985 optimized out values.
2986 (default_print_registers_info): Switch to using
2987 get_frame_register_value.
2988
2989 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2990
2991 * infrun.c (handle_inferior_event): Check if we know the
2992 function start address before setting a resume breakpoint.
2993
2994 2013-09-18 Pedro Alves <palves@redhat.com>
2995
2996 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2997 minus_one_ptid instead of looking at the ptid's tid field and
2998 comparing that to -1.
2999
3000 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3001
3002 * main.h (get_gdb_program_name): Remove extra whitespace.
3003
3004 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3005
3006 * main.h (get_gdb_program_name): Add declaration.
3007 * main.c (get_gdb_program_name): Add definition.
3008
3009 2013-09-17 Doug Evans <dje@google.com>
3010
3011 * dwarf2read.c: Move definitions of complaint functions to after
3012 forward declarations of local functions.
3013
3014 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3015 Pedro Alves <palves@redhat.com>
3016
3017 PR gdb/11568
3018 * breakpoint.c (remove_threaded_breakpoints): New function.
3019 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3020 as thread_exit observer.
3021
3022 2013-09-17 Pedro Alves <palves@redhat.com>
3023
3024 PR gdb/15911
3025 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3026 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3027 * corelow.c (core_open):
3028 * frame.h (print_stack_frame, print_frame_info): New
3029 'set_current_sal' parameter.
3030 * infcmd.c (finish_command, kill_command): Adjust call to
3031 print_stack_frame.
3032 * inferior.c (inferior_command): Likewise.
3033 * infrun.c (normal_stop): Likewise.
3034 * linux-fork.c (linux_fork_context): Likewise.
3035 * record-full.c (record_full_goto_entry, record_full_restore):
3036 Likewise.
3037 * remote-mips.c (common_open): Likewise.
3038 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3039 Use it.
3040 (print_frame_info): New 'set_current_sal' parameter. Set the last
3041 displayed sal depending on the new paremeter instead of looking at
3042 print_what.
3043 (backtrace_command_1, select_and_print_frame, frame_command)
3044 (current_frame_command, up_command, down_command): Adjust call to
3045 print_stack_frame.
3046 * thread.c (print_thread_info, restore_selected_frame)
3047 (do_captured_thread_select): Adjust call to print_stack_frame.
3048 * tracepoint.c (tfind_1): Likewise.
3049 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3050 (mi_cmd_stack_info_frame): Likewise.
3051 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3052 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3053
3054 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3055
3056 * value.c (isvoid_internal_fn): Replace "parameter" with
3057 "argument".
3058
3059 2013-09-16 Stan Shebs <stan@codesourcery.com>
3060
3061 * README: Update references to writing code for GDB.
3062 * configure.ac (build_warnings): Remove obsolete comment.
3063 * configure: Regenerate.
3064 * gdbarch.sh: Remove references to gdbint.texinfo.
3065 * gdbarch.h: Regenerate.
3066 * gdbtypes.c (objfile_type): Remove comments referencing internals
3067 manual and D10V.
3068
3069 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3070
3071 * NEWS: Mention new convenience function $_isvoid.
3072 * value.c (isvoid_internal_fn): New function.
3073 (_initialize_values): Add new convenience function $_isvoid.
3074
3075 2013-09-16 Pierre Muller <muller@sourceware.org>
3076
3077 * arm-linux-tdep.c: Add "elf/common.h" header.
3078 Remove AT_HWCAP macro definintion as it is provided in
3079 added include file.
3080 * s390-tdep.c: Remove system header <elf.h>
3081 Add "elf/common.h" header for AT_HWCAP definition.
3082 (s390_core_read_description): Use correct CORE_ADDR
3083 for hwcap local variable used as third parameter
3084 of function target_auxv_search.
3085
3086 2013-09-14 Pierre Muller <muller@sourceware.org>
3087 Tom Tromey <tromey@redhat.com>
3088 Pedro Alves <palves@redhat.com>
3089
3090 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3091 mode if operating system doesn't know O_CLOEXEC.
3092
3093 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 Code cleanup.
3096 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3097 inner block.
3098
3099 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3100
3101 * NEWS: Mention TDB support.
3102 * features/s390-tdb.xml: New file.
3103 * features/s390-te-linux64.xml: New file.
3104 * features/s390x-te-linux64.xml: New file.
3105 * features/Makefile (WHICH): Add new tdescs above.
3106 (s390-te-linux64-expedite): Set.
3107 (s390x-te-linux64-expedite): Set.
3108 * features/s390-te-linux64.c: New file (generated).
3109 * features/s390x-te-linux64.c: New file (generated).
3110 * regformats/s390-te-linux64.dat: New file (generated).
3111 * regformats/s390x-te-linux64.dat: New file (generated).
3112 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3113 (HWCAP_S390_TE): Likewise.
3114 (S390_TDB_DWORD0_REGNUM): Likewise.
3115 (S390_TDB_DWORD0_REGNUM): Likewise.
3116 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3117 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3118 (S390_TDB_ATIA_REGNUM): Likewise.
3119 (S390_TDB_R0_REGNUM): Likewise.
3120 (S390_TDB_R1_REGNUM): Likewise.
3121 (S390_TDB_R2_REGNUM): Likewise.
3122 (S390_TDB_R3_REGNUM): Likewise.
3123 (S390_TDB_R4_REGNUM): Likewise.
3124 (S390_TDB_R5_REGNUM): Likewise.
3125 (S390_TDB_R6_REGNUM): Likewise.
3126 (S390_TDB_R7_REGNUM): Likewise.
3127 (S390_TDB_R8_REGNUM): Likewise.
3128 (S390_TDB_R9_REGNUM): Likewise.
3129 (S390_TDB_R10_REGNUM): Likewise.
3130 (S390_TDB_R11_REGNUM): Likewise.
3131 (S390_TDB_R12_REGNUM): Likewise.
3132 (S390_TDB_R13_REGNUM): Likewise.
3133 (S390_TDB_R14_REGNUM): Likewise.
3134 (S390_TDB_R15_REGNUM): Likewise.
3135 (S390_NUM_REGS): Increase.
3136 (S390_IS_TDBREGSET_REGNUM): New macro.
3137 (s390_regmap_tdb): Declare.
3138 (s390_sizeof_tdbregset): Define.
3139 (tdesc_s390_te_linux64): Declare.
3140 (tdesc_s390x_te_linux64): Likewise.
3141 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3142 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3143 (s390_regmap_tdb): New regmap.
3144 (s390_supply_tdb_regset): New function.
3145 (s390_tdb_regset): New regset.
3146 (s390_linux64v2_regset_sections): Add TDB regset to list.
3147 (s390x_linux64v2_regset_sections): Likewise.
3148 (s390_regset_from_core_section): Recognize TDB core note section.
3149 (s390_core_read_description): If HWCAP indicates TE support,
3150 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3151 (s390_gdbarch_init): Handle TDB regset.
3152 (_initialize_s390_tdep): Initialize new tdescs.
3153 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3154 (have_regset_tdb): New variable.
3155 (s390_native_supply): Support register invalidation.
3156 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3157 (check_regset): Treat ENODATA as "regset exists".
3158 (s390_linux_fetch_inferior_registers): Add TDB.
3159 (s390_read_description): Check for TDB existence and select
3160 appropriate tdesc.
3161 * gdbserver/Makefile.in (clean): Add removal of new makefile
3162 targets.
3163 (s390-te-linux64.c): New makefile target.
3164 (s390x-te-linux64.c): Likewise.
3165 * gdbserver/configure.srv (srv_regobj): Append new objects
3166 s390-te-linux64.o and s390x-te-linux64.o.
3167 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3168 s390x-te-linux64.xml, and s390-tdb.xml.
3169 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3170 declaration.
3171 (tdesc_s390_te_linux64): Likewise.
3172 (init_registers_s390x_te_linux64): Likewise.
3173 (tdesc_s390x_te_linux64): Likewise.
3174 (s390_check_regset): Treat ENODATA as "regset exists".
3175 (s390_arch_setup): Add TDB regset support.
3176 (initialize_low_arch): Initialize registers for new tdescs.
3177
3178 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3179
3180 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3181 (S390_IS_FPREGSET_REGNUM): New macro.
3182 * s390-tdep.c (s390_dwarf_regmap): Make const.
3183 (regnum_is_gpr_full): New function for replacing repeated code.
3184 (s390_pseudo_register_name): Use it.
3185 (s390_pseudo_register_type): Likewise.
3186 (s390_pseudo_register_read): Likewise.
3187 (s390_pseudo_register_write): Likewise.
3188 (s390_unwind_pseudo_register): Likewise.
3189 (s390_regmap_gregset): New format for regmap.
3190 (s390x_regmap_gregset): Likewise.
3191 (s390_regmap_fpregset): Likewise.
3192 (s390_regmap_upper): Likewise.
3193 (s390_regmap_last_break): Likewise.
3194 (s390_regmap_system_call): Likewise.
3195 (s390_supply_regset): Adjust to new regmap format.
3196 (s390_collect_regset): Likewise.
3197 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3198 (s390_native_collect): Likewise.
3199 (supply_gregset): Likewise.
3200 (fill_gregset): Likewise.
3201 (supply_fpregset): Likewise.
3202 (fill_fpregset): Likewise.
3203 (fetch_regset): Likewise.
3204 (store_regset): Likewise.
3205 (s390_linux_fetch_inferior_registers): Likewise.
3206 (s390_linux_fetch_inferior_registers): Likewise.
3207
3208 2013-09-12 Andrew Pinski <apinski@cavium.com>
3209
3210 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3211
3212 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3213
3214 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3215
3216 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3217
3218 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3219
3220 2013-09-06 Pedro Alves <palves@redhat.com>
3221
3222 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3223 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3224 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3225 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3226 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3227 gdb_stdlog.
3228
3229 2013-09-06 Pedro Alves <palves@redhat.com>
3230
3231 * remote-sim.c (dump_mem): Constify buf parameter.
3232 gdbsim_xfer_inferior_memory): Rename to ...
3233 (gdbsim_xfer_memory): ... this. Adjust interface as
3234 target_xfer_partial helper.
3235 (gdbsim_xfer_partial): New function.
3236 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3237 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3238
3239 2013-09-06 Pedro Alves <palves@redhat.com>
3240
3241 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3242 host_address_to_string, and send debug output to gdb_stdlog.
3243
3244 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3245
3246 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3247 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3248 gdb_target_obs for cris target.
3249 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3250 (cris_gdbarch_init): Move calls to
3251 set_gdbarch_fetch_tls_load_module_address and
3252 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3253 Add call to gdbarch_init_osabi.
3254 * cris-linux-tdep.c: New file.
3255 * cris-tdep.h: New file.
3256
3257 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3258
3259 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3260 to deprecated_init_ui_hook.
3261
3262 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3263
3264 * cli/cli-interp.c (_initialize_cli_interp): Add a
3265 command_loop_proc to interp_procs.
3266 * event-top.c (cli_command_loop): Change signature to match
3267 interp_command_loop_ftype.
3268 * event-top.h (cli_command_loop): Same.
3269 * interps.c (interp_new): Require every interpreter to have a
3270 command_loop_proc.
3271 (current_interp_command_loop): Just call the command_loop_proc on
3272 the current interpreter.
3273 * tui/tui-interp.c (_initialize_tui_interp): Add a
3274 command_loop_proc to interp_procs.
3275
3276 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3277
3278 * cris-tdep.c (cris_gdbarch_init): Add call to
3279 get_gdbarch_fetch_tls_load_module_address.
3280
3281 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3282
3283 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3284 (cris_elf_gregset_t): Rename from elf_gregset_t.
3285 (crisv32_elf_gregset_t): Adjust.
3286 (cris_supply_gregset, fetch_core_registers): Adjust.
3287
3288 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3289
3290 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3291
3292 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3293
3294 * defs.h (deprecated_command_loop_hook): Remove, including
3295 references in comments.
3296 * interps.c (current_interp_command_loop): No longer use
3297 deprecated_command_loop_hook.
3298 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3299 setup.
3300 * top.c (deprecated_command_loop_hook): Remove.
3301
3302 2013-09-05 Pedro Alves <palves@redhat.com>
3303
3304 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3305 local is now int instead of ULONGEST. Print it with %d
3306 instead of paddress.
3307
3308 2013-09-05 Tristan Gingold <gingold@adacore.com>
3309
3310 * MAINTAINERS: Remove avr maintainership.
3311
3312 2013-09-05 Pedro Alves <palves@redhat.com>
3313
3314 * findvar.c (value_of_register): Rework in terms of
3315 value_of_register_lazy.
3316
3317 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3318
3319 * symfile.c (add_symbol_file_command): Remove trailing
3320 whitespaces and blank line after comment.
3321
3322 2013-09-05 Pedro Alves <palves@redhat.com>
3323
3324 * tui/tui-regs.c (tui_register_format): Don't look at the
3325 register's name here. Return string representing register
3326 value instead of storing it in the data element.
3327 (tui_get_register): Compare register string representations
3328 instead of register value states and contents.
3329
3330 2013-09-05 Pedro Alves <palves@redhat.com>
3331
3332 PR tui/15933
3333 * tui/tui-regs.c (tui_show_registers): Show registers of the
3334 selected frame, not the current frame.
3335
3336 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3337
3338 * MAINTAINERS (Write After Approval): Add myself to the list.
3339
3340 2013-09-04 Doug Evans <dje@google.com>
3341
3342 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3343 (queue_and_load_dwo_tu): New function.
3344 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3345 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3346 Make dependent_cu optional.
3347 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3348 and an older .gdb_index is in use, queue and load all its TUs too.
3349
3350 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3351
3352 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3353 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3354 variable search_flags.
3355 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3356 (OPF_RETURN_REALPATH): ... here.
3357 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3358 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3359 call. Twice.
3360 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3361 openp call.
3362 * solib.c (solib_find): Likewise. Four times.
3363 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3364 in the function comment and for the realpath_fptr variable.
3365 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3366 (find_and_open_source): Likewise. Twice.
3367 * symfile.c (symfile_bfd_open): Likewise, also twice.
3368
3369 2013-09-04 Doug Evans <dje@google.com>
3370
3371 * progspace.c (save_current_space_and_thread): Remove unnecessary
3372 call to save_current_inferior.
3373
3374 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3375
3376 * sh64-tdep.c (sh64_do_register): Return after printing message
3377 about unavailable register contents.
3378
3379 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3380 Pedro Alves <palves@redhat.com>
3381
3382 * symfile.c (add_symbol_file_command): Error out on unknown
3383 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3384 options and collapse into single conditional branch.
3385
3386 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3387
3388 * inf-child.c (inf_child_follow_fork): New parameter
3389 detach_fork.
3390 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3391 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3392 * inferior.h (detach_fork): Remove.
3393 * infrun.c (detach_fork): Adjust comment and make it
3394 static.
3395 (follow_fork): Pass detach_fork parameter to
3396 target_follow_fork.
3397 * linux-nat.c (linux_child_follow_fork): New parameter
3398 detach_fork.
3399 * target.c (target_follow_fork): New parameter detach_fork.
3400 Pass detach_fork as parameter and print its value.
3401 * target.h (struct target_ops) <to_follow_fork>: New int
3402 parameter.
3403 (target_follow_fork): New parameter detach_fork.
3404
3405 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3406
3407 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3408 Replace sec->bfd by sec->the_bfd_section->owner.
3409
3410 2013-09-03 Yao Qi <yao@codesourcery.com>
3411
3412 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3413 from linux_has_shared_address_space.
3414 (linux_has_shared_address_space): Call linux_is_uclinux.
3415 * linux-tdep.h (linux_is_uclinux): Declare.
3416 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3417 linux_is_uclinux.
3418
3419 2013-09-03 Yao Qi <yao@codesourcery.com>
3420
3421 * config/djgpp/fnchange.lst: Remove entry of
3422 i386-interix-nat.c and i386-interix-tdep.c.
3423 * configure.ac: Remove '*-*-interix*'.
3424 * configure: Re-generated.
3425 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3426 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3427 obsolete comments.
3428 * osabi.c (gdb_osabi_names): Remove "Interix".
3429
3430 2013-09-03 Yao Qi <yao@codesourcery.com>
3431
3432 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3433
3434 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3435
3436 * record.h (record_print_flag) <record_print_src_line,
3437 record_print_insn_range>: Rename into ...
3438 (record_print_flag) <record_print_src_line,
3439 record_print_insn_range>: ... this. Update all users.
3440
3441 2013-09-02 Pierre Muller <muller@sourceware.org>
3442
3443 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3444 error code.
3445
3446 2013-09-02 Pierre Muller <muller@sourceware.org>
3447
3448 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3449 by use of plongest function.
3450
3451 2013-09-02 Tristan Gingold <gingold@adacore.com>
3452
3453 * NEWS: Add entry mentioning support for native Windows x64
3454 SEH data.
3455
3456 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3457 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3458 (struct amd64_windows_frame_cache): New struct.
3459 (amd64_windows_w2gdb_regnum): New global.
3460 (pc_in_range, amd64_windows_frame_decode_epilogue)
3461 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3462 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3463 (amd64_windows_frame_this_id): New functions.
3464 (amd64_windows_frame_unwind): New static global.
3465 (amd64_windows_skip_prologue): New function.
3466 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3467 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3468 with amd64_windows_skip_prologue.
3469
3470 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3471
3472 GDB 7.6.1 released.
3473
3474 2013-08-30 Pedro Alves <palves@redhat.com>
3475
3476 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3477 SRC_AND_LOC.
3478
3479 2013-08-30 Pedro Alves <palves@redhat.com>
3480
3481 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3482 warning text.
3483
3484 2013-08-30 Pedro Alves <palves@redhat.com>
3485
3486 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3487 Adjust arguments to print_stack_frame.
3488
3489 2013-08-30 Pedro Alves <palves@redhat.com>
3490
3491 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3492
3493 2013-08-30 Pedro Alves <palves@redhat.com>
3494
3495 * frame.h (show_and_print_stack_frame): Delete declaration.
3496
3497 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3498
3499 PR python/15461
3500 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3501 (archpy_name): Check for valid architecture.
3502 (archpy_disassemble): Ditto.
3503
3504 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3505
3506 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3507 instead of "long long" in call to ptrace64.
3508
3509 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3510
3511 * mi/mi-interp.c (mi_command_loop): Change signature to match
3512 interp_command_loop_ftype.
3513 (mi1_command_loop): Remove.
3514 (mi2_command_loop): Remove.
3515 (mi3_command_loop): Remove.
3516 (mi_interpreter_resume): Remove setting of
3517 deprecated_command_loop_hook.
3518 (_initialize_mi_interp): Set mi_command_loop as the command loop
3519 callback.
3520
3521 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3522
3523 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3524 value_type.
3525
3526 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3527
3528 * value.c (allocate_value_contents): Make static.
3529 * value.h (allocate_value_contents): Remove prototype.
3530
3531 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3532
3533 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3534 of assembling value via allocate_value_lazy and attribute setter.
3535 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3536 assembling value via allocate_value_lazy and attribute setter.
3537 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3538 assembling value via allocate_value_lazy and attribute setter.
3539
3540 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3541
3542 * value.c (value_from_contents_and_address): Replace allocate_value and
3543 memcpy with value_from_contents.
3544
3545 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3546
3547 * python/py-framefilter.c (py_print_frame): Remove usage of
3548 PyString_AsString. Use python_string_to_host_string instead.
3549 Refactor function to work with a string as a new allocation
3550 instead of a pointer.
3551 (py_print_frame): Ditto.
3552 * python/lib/gdb/frames.py (return_list): Cain iterators together
3553 instead of adding them as a list.
3554 (_sort_list): Call return_list, and remove duplicate code.
3555 (execute_frame_filters): Convert iterator to a list with list().
3556 * python/lib/gdb/command/frame_filters.py
3557 (SetFrameFilterPriority._set_filter_priority): Convert priority
3558 attribute to an integer.
3559 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3560 wrapper function __next__.
3561 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3562 define as "str".
3563
3564 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3565
3566 PR python/15752
3567 * python/py-framefilter.c (apply_frame_filter): Check
3568 gdb_python_initialized. Exit if the Python frame-filter code
3569 cannot be initialized.
3570
3571 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3572
3573 PR cli/15842
3574 * top.c (print_gdb_version): Remove erroneous newline after help
3575 text.
3576
3577 2013-08-29 Yao Qi <yao@codesourcery.com>
3578
3579 * varobj.c (install_dynamic_child): Remove trailing space.
3580 Add one blank line after variable declaration.
3581
3582 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3583
3584 PR gdb/15415
3585 * corefile.c (get_exec_file): Use exec_filename.
3586 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3587 * exec.c (exec_close): Free EXEC_FILENAME.
3588 (exec_file_attach): New variable canonical_pathname. Use
3589 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3590 EXEC_FILENAME.
3591 * exec.h (exec_filename): New.
3592 * inferior.c (print_inferior, inferior_command): Use
3593 PSPACE_EXEC_FILENAME.
3594 * mi/mi-main.c (print_one_inferior): Likewise.
3595 * progspace.c (clone_program_space, print_program_space): Likewise.
3596 * progspace.h (struct program_space): New field pspace_exec_filename.
3597 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3598 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3599
3600 2013-08-28 Will Newton <will.newton@linaro.org>
3601
3602 * common/linux-ptrace.c: Include stdint.h unconditionally.
3603
3604 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3605
3606 Code cleanup.
3607 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3608
3609 2013-08-28 Yao Qi <yao@codesourcery.com>
3610 Pedro Alves <palves@redhat.com>
3611
3612 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3613 instead of stdio_fileopen.
3614 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3615 .Call stderr_fileopen instead of stdio_fileopen.
3616 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3617 [__MINGW32__] (stderr_file_fputs): New function.
3618 (stderr_fileopen): New function.
3619 * ui-file.h (stderr_fileopen): Declare.
3620
3621 2013-08-27 Doug Evans <dje@google.com>
3622
3623 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3624 (struct dwarf2_per_cu_data): Ditto.
3625 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3626 (process_imported_unit_die): Ditto.
3627 (follow_die_sig_1): Simplify assert.
3628
3629 2013-08-27 Pedro Alves <palves@redhat.com>
3630
3631 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3632 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3633 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3634 windows_xfer_memory directly.
3635 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3636
3637 2013-08-27 Pedro Alves <palves@redhat.com>
3638
3639 * darwin-nat.c (darwin_xfer_memory): Delete.
3640 (_initialize_darwin_inferior): Don't install a
3641 deprecated_xfer_memory method.
3642
3643 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3644 Yao Qi <yao@codesourcery.com>
3645
3646 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3647 (parse_no_frames_option): Remove.
3648 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3649 (mi_cmd_stack_list_args): Adjust.
3650 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3651 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3652 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3653 Caller update.
3654 (list_args_or_locals): New parameter 'skip_unavailable'.
3655 Handle it.
3656 * valprint.c (scalar_type_p): Rename to ...
3657 (val_print_scalar_type_p): ... this. Make extern.
3658 (val_print, value_check_printable): Adjust.
3659 * valprint.h (val_print_scalar_type_p): Declare.
3660 * value.c (value_entirely_unavailable): New function.
3661 * value.h (value_entirely_unavailable): Declare.
3662
3663 * NEWS: Mention the new option "--skip-unavailable" to MI
3664 commands '-stack-list-locals', '-stack-list-arguments' and
3665 '-stack-list-variables'.
3666
3667 2013-08-27 Yao Qi <yao@codesourcery.com>
3668
3669 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3670 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3671 options.
3672 * mi/mi-getopt.c (mi_getopt): Remove.
3673 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3674 'error_on_unknown'.
3675 (mi_getopt): Call mi_getopt_1.
3676 (mi_getopt_silent): New.
3677 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3678
3679 2013-08-26 Doug Evans <dje@google.com>
3680
3681 PR symtab/15885
3682 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3683 .gdb_index is in use.
3684 * symfile.c (reread_symbols): Reset objfile->sf.
3685
3686 * NEWS: Document "mt print objfiles" now takes optional regexp.
3687 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3688 regexp of objfiles to print.
3689 (_initialize_symmisc): Update doc string for "mt print objfiles".
3690
3691 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3692 missing debug info checks.
3693
3694 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3695 Ulrich Weigand <uweigand@de.ibm.com>
3696
3697 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3698 line tables generated by XLC compiled binaries.
3699
3700 2013-08-23 Doug Evans <dje@google.com>
3701
3702 * symmisc.c (dump_symtab): Delete prototype.
3703 (dump_msymbols, dump_objfile): Ditto.
3704 (maintenance_info_symtabs): Mark as dont_repeat.
3705 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3706
3707 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3708 debugging printf to better location.
3709
3710 2013-08-23 Pedro Alves <palves@redhat.com>
3711
3712 * target.c (target_read_live_memory): Change type of 'ret' local
3713 to LONGEST.
3714
3715 2013-08-23 Pedro Alves <palves@redhat.com>
3716
3717 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3718 (remote_read_bytes): Change return type to LONGEST, and adjust to
3719 return a target_xfer_error on error.
3720 (remote_xfer_memory): Delete.
3721 (remote_flash_write): Change type of 'ret' local to LONGEST.
3722 (remote_xfer_partial, remote_xfer_partial): Adjust.
3723 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3724
3725 2013-08-23 Pierre Muller <muller@sourceware.org>
3726
3727 ARI fix: Push # directives to start of line.
3728 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3729
3730 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3731
3732 PR gdb/15501
3733 * breakpoint.c (enable_command, disable_command): Iterate over
3734 all specified breakpoint locations.
3735
3736 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3737
3738 * common/linux-ptrace.c (linux_fork_to_function): Push #
3739 directives to the start of the line.
3740 (linux_check_ptrace_features): Fix warning message to use
3741 the "_" markup.
3742
3743 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3744
3745 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3746 nat/linux-waitpid.h.
3747 (linux-waitpid.o): New object file rule.
3748 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3749 (current_ptrace_options): Moved from linux-nat.c.
3750 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3751 parameters.
3752 (linux_fork_to_function): New function.
3753 (linux_grandchild_function): Likewise.
3754 (linux_child_function): Likewise.
3755 (linux_check_ptrace_features): New function, heavily
3756 based on linux-nat.c:linux_test_for_tracefork.
3757 (linux_enable_event_reporting): New function.
3758 (ptrace_supports_feature): Likewise.
3759 (linux_supports_tracefork): Likewise.
3760 (linux_supports_traceclone): Likewise.
3761 (linux_supports_tracevforkdone): Likewise.
3762 (linux_supports_tracesysgood): Likewise.
3763 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3764 gdbserver/linux-low.c.
3765 (linux_enable_event_reporting): New declaration.
3766 (linux_supports_tracefork): Likewise.
3767 (linux_supports_traceclone): Likewise.
3768 (linux_supports_tracevforkdone): Likewise.
3769 (linux_supports_tracesysgood): Likewise.
3770 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3771 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3772 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3773 * config/arm/linux.mh (NATDEPFILES): Likewise.
3774 * config/i386/linux.mh (NATDEPFILES): Likewise.
3775 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3776 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3777 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3778 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3779 * config/mips/linux.mh (NATDEPFILES): Likewise.
3780 * config/pa/linux.mh (NATDEPFILES): Likewise..
3781 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3782 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3783 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3784 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3785 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3786 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3787 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3788 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3789 ptrace's 4th argument's types.
3790 Check the type of PTRACE_TYPE_ARG4.
3791 * configure: Regenerate.
3792 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3793 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3794 (linux_supports_tracefork_flag): Remove.
3795 (linux_supports_tracesysgood_flag): Likewise.
3796 (linux_supports_tracevforkdone_flag): Likewise.
3797 (current_ptrace_options): Moved to
3798 common/linux-ptrace.c.
3799 (linux_tracefork_child): Remove.
3800 (my_waitpid): Remove.
3801 (linux_test_for_tracefork): Renamed to
3802 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3803 (linux_test_for_tracesysgood): Remove.
3804 (linux_supports_tracesysgood): Remove.
3805 (linux_supports_tracefork): Remove.
3806 (linux_supports_tracevforkdone): Remove.
3807 (linux_enable_tracesysgood): Remove.
3808 (linux_enable_event_reporting): Remove.
3809 (linux_init_ptrace): New function.
3810 (linux_child_post_attach): Call linux_init_ptrace.
3811 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3812 (linux_child_follow_fork): Call linux_supports_tracefork
3813 and linux_supports_tracevforkdone.
3814 (linux_child_insert_fork_catchpoint): Call
3815 linux_supports_tracefork.
3816 (linux_child_insert_vfork_catchpoint): Likewise.
3817 (linux_child_set_syscall_catchpoint): Call
3818 linux_supports_tracesysgood.
3819 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3820 * nat/linux-nat.h: New file.
3821 * nat/linux-waitpid.c: New file.
3822 * nat/linux-waitpid.h: New file.
3823
3824 2013-08-22 Samuel Bronson <naesten@gmail.com>
3825
3826 ARM Linux support for `catch syscall'.
3827 * syscalls/arm-linux.py: New file.
3828 * syscalls/arm-linux.xml: Likewise.
3829 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3830 (arm_linux_init_abi): Register the new function and syscall xml file.
3831 * data-directory/Makefile.in: Install the new syscall xml file.
3832 * NEWS: Brag about this.
3833
3834 2013-08-22 Pedro Alves <palves@redhat.com>
3835
3836 PR gdb/15871
3837 * corefile.c (target_xfer_memory_error): New function.
3838 (memory_error): Defer EIO to target_memory_error.
3839 (read_memory): Use target_xfer_partial, and handle finer-grained
3840 target xfer errors.
3841 * target.c (target_xfer_error_to_string): New function.
3842 (memory_xfer_partial_1): If memory is known to be
3843 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3844 (target_xfer_partial): Make extern.
3845 * target.h (enum target_xfer_error): New enum.
3846 (target_xfer_error_to_string): Declare function.
3847 (target_xfer_partial): Declare function.
3848 (struct target_ops) <xfer_partial>: Adjust describing comment.
3849
3850 2013-08-22 Alan Modra <amodra@gmail.com>
3851
3852 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3853 * configure.tgt: Likewise as targets.
3854
3855 2013-08-20 Doug Evans <dje@google.com>
3856
3857 * buildsym.c (subfile_stack): Move here from buildsym.h.
3858 (pending_macros): Ditto.
3859 (get_macro_table): New function.
3860 (buildsym_init): Initialize subfile_stack.
3861 * coffread.c (type_vector,type_vector_length): Moved here from
3862 buildsym.h.
3863 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3864 (coff_symtab_read): Use it.
3865 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3866 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3867 with call to get_macro_table.
3868 * stabsread.c (type_vector,type_vector_length): Moved here from
3869 buildsym.h.
3870 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3871 * buildsym.h (get_macro_table): Declare.
3872
3873 2013-08-20 Tom Tromey <tromey@redhat.com>
3874
3875 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3876 Update.
3877 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3878
3879 2013-08-20 Doug Evans <dje@google.com>
3880
3881 * blockframe.c: Remove #include "psymtab.h".
3882 * cp-support.c: Ditto.
3883 * source.c: Ditto.
3884 * stack.c: Ditto.
3885
3886 2013-08-20 Tom Tromey <tromey@redhat.com>
3887
3888 PR python/15816:
3889 * exceptions.h (return_mask): Now an enum.
3890 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3891 enum constants.
3892
3893 2013-08-20 Tom Tromey <tromey@redhat.com>
3894
3895 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3896 get_objfile_arch.
3897 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3898 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3899 * jit.c (jit_object_close_impl): Update.
3900 * jv-lang.c (get_dynamics_objfile): Update.
3901 * linespec.c (add_minsym): Use get_dynamics_objfile.
3902 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3903 (allocate_objfile): Don't initialize 'gdbarch' field.
3904 (get_objfile_arch): Update.
3905 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3906 moved from...
3907 (struct objfile) <gdbarch>: ... here. Remove.
3908 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3909 get_objfile_arch.
3910 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3911
3912 2013-08-20 Alan Modra <amodra@gmail.com>
3913
3914 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3915 for IBM long double nan and inf.
3916 (floatformat_is_negative, floatformat_classify,
3917 floatformat_mantissa): Similarly.
3918 (floatformat_ieee_single, floatformat_ieee_double,
3919 floatformat_ieee_quad, floatformat_arm_ext,
3920 floatformat_ia64_spill): Delete unused vars.
3921 (_initialize_doublest): Delete unused function.
3922 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3923 little-endian variants of floatformat_ibm_long_double.
3924
3925 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3926
3927 * Makefile.in (SFILES): Remove common/target-common.c and
3928 add target/waitstatus.c.
3929 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3930 target/resume.h, target/wait.h and target/waitstatus.h.
3931 (COMMON_OBS): Remove target-common.o and add
3932 waitstatus.o.
3933 (target-common.o): Remove.
3934 (waitstatus.o): New target object file.
3935 * common/target-common.c: Move contents to
3936 target/waitstatus.c and remove.
3937 * common/target-common.h: Move contents to other files and
3938 remove.
3939 (enum resume_kind: Move to target/resume.h.
3940 (TARGET_WNOHANG): Move to target/wait.h.
3941 (enum target_waitkind): Move to target/waitstatus.h.
3942 (struct target_waitstatus): Likewise.
3943 * target.h: Do not include target-common.h and
3944 include target/resume.h, target/wait.h and
3945 target/waitstatus.h.
3946 * target/resume.h: New file.
3947 * target/wait.h: New file.
3948 * target/waitstatus.h: New file.
3949 * target/waitstatus.c: New file.
3950
3951 2013-08-19 Pedro Alves <palves@redhat.com>
3952
3953 * linux-nat.c (linux_test_for_tracefork)
3954 (linux_test_for_tracesysgood, linux_child_follow_fork)
3955 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3956 (linux_nat_wait_1): Extend comment.
3957 (linux_async_pipe): Add comment.
3958
3959 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3960
3961 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3962 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3963 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3964 Update to account for fact that PC is now a pseudo-register.
3965 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3966 cases for RL78_PC_REGNUM.
3967
3968 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3969
3970 PR cli/15841
3971 * top.c (quit_force): Skip writing history file
3972 if input is not from terminal.
3973
3974 2013-08-14 Tom Tromey <tromey@redhat.com>
3975
3976 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3977 resultthreadlist>: New fields.
3978 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3979 (remote_get_threadlist, remote_threadlist_iterator): Use
3980 new fields. Remove static variables.
3981
3982 2013-08-14 Tom Tromey <tromey@redhat.com>
3983
3984 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3985 remote_watch_data_address>: New fields.
3986 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3987 (process_stop_reply, remote_wait_as)
3988 (remote_check_watch_resources, remote_stopped_data_address): Update.
3989
3990 2013-08-14 Tom Tromey <tromey@redhat.com>
3991
3992 * remote.c (struct remote_state) <async_client_callback,
3993 async_client_context>: New fields.
3994 (async_client_callback, async_client_context): Remove.
3995 (remote_async_serial_handler, remote_async): Update.
3996
3997 2013-08-14 Tom Tromey <tromey@redhat.com>
3998
3999 * remote.c (sizeof_pkt): Remove.
4000 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4001
4002 2013-08-14 Tom Tromey <tromey@redhat.com>
4003
4004 * remote.c (struct remote_state) <use_threadinfo_query,
4005 use_threadextra_query>: New fields.
4006 (remote_threads_info, remote_threads_extra_info)
4007 (remote_open_1): Update.
4008
4009 2013-08-14 Tom Tromey <tromey@redhat.com>
4010
4011 * remote.c (struct remote_state) <finished_object,
4012 finished_annex, finished_offset>: New fields.
4013 (remote_read_qxfer): Use remote_state fields; remove static
4014 variables.
4015
4016 2013-08-14 Tom Tromey <tromey@redhat.com>
4017
4018 * remote.c (struct remote_state) <last_sent_step>:
4019 New field.
4020 (last_sent_step): Remove.
4021 (remote_resume, remote_wait_as): Update.
4022
4023 2013-08-14 Tom Tromey <tromey@redhat.com>
4024
4025 * remote.c (struct remote_state) <last_sent_signal>:
4026 New field.
4027 (last_sent_signal): Remove.
4028 (new_remote_state, remote_resume, remote_wait_as): Update.
4029
4030 2013-08-14 Tom Tromey <tromey@redhat.com>
4031
4032 * remote.c (struct remote_state) <last_program_signals_packet>:
4033 New field.
4034 (last_program_signals_packet): Remove.
4035 (remote_program_signals, remote_open_1): Update.
4036
4037 2013-08-14 Tom Tromey <tromey@redhat.com>
4038
4039 * remote.c (struct remote_state) <last_pass_packet>:
4040 New field.
4041 (last_pass_packet): Remove.
4042 (remote_pass_signals, remote_open_1): Update.
4043
4044 2013-08-14 Tom Tromey <tromey@redhat.com>
4045
4046 * remote.c (struct remote_state) <remote_traceframe_number>:
4047 New field.
4048 (remote_traceframe_number): Remove.
4049 (new_remote_state, remote_open_1, set_remote_traceframe)
4050 (remote_trace_find): Update.
4051
4052 2013-08-14 Tom Tromey <tromey@redhat.com>
4053
4054 * remote.c (struct remote_state) <general_thread, continue_thread>:
4055 New fields.
4056 (general_thread, continue_thread): Remove.
4057 (record_currthread, set_thread, set_general_process)
4058 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4059 (extended_remote_mourn_1): Update.
4060
4061 2013-08-14 Tom Tromey <tromey@redhat.com>
4062
4063 * remote.c (struct remote_state) <remote_desc>: New field.
4064 (remote_desc): Remove.
4065 (remote_threads_info, remote_threads_extra_info, remote_close)
4066 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4067 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4068 (remote_hostio_send_command, remote_file_put, remote_file_get)
4069 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4070 (remote_async, remote_new_objfile, set_range_stepping): Update.
4071
4072 2013-08-14 Tom Tromey <tromey@redhat.com>
4073
4074 * remote.c (remote_state): Now a pointer.
4075 (get_remote_state_raw): Update.
4076 (new_remote_state): New function.
4077 (_initialize_remote): Use new_remote_state.
4078
4079 2013-08-14 Tom Tromey <tromey@redhat.com>
4080
4081 * remote.c (remote_protocol_features): Now const.
4082
4083 2013-08-14 Tom Tromey <tromey@redhat.com>
4084
4085 * remote.c (crc32_table, crc32): Remove.
4086 (remote_verify_memory): Use xcrc32.
4087
4088 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4089
4090 * value.h (create_internalvar_type_lazy): Adjust prototype
4091 declaration.
4092
4093 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4094
4095 * common/format.c (parse_format_string): Don't allow '#' flag for
4096 pointer arguments in format string.
4097
4098 2013-08-13 Pierre Muller <muller@sourceware.org>
4099
4100 * utils.c (init_page_info): Only call tgetnum function
4101 if rl_get_screen_size did not return useful values.
4102
4103 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4104
4105 PR breakpoints/15117
4106 * linespec.c (linespec_parse_basic): Check for convenience
4107 variable or history value while parsing.
4108
4109 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4110
4111 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4112 AVR.
4113 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4114 different signals between the generic Linux kernel implementation
4115 and AVR's.
4116 (avr_linux_gdb_signal_from_target): Delete.
4117 (avr_linux_gdb_signal_to_target): Delete.
4118 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4119
4120 2013-08-09 Doug Evans <dje@google.com>
4121
4122 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4123 entries.
4124
4125 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4126
4127 * linux-tdep.c: Define enum with generic signal numbers.
4128 (linux_gdb_signal_from_target): New function.
4129 (linux_gdb_signal_to_target): Likewise.
4130 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4131 methods to the functions above.
4132 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4133 (linux_gdb_signal_to_target): Likewise.
4134 * alpha-linux-tdep.c: Define new enum with signals different
4135 from generic Linux kernel.
4136 (alpha_linux_gdb_signal_from_target): New function.
4137 (alpha_linux_gdb_signal_to_target): Likewise.
4138 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4139 with the functions mentioned above.
4140 * avr-tdep.c: Define enum with differences between Linux kernel
4141 and AVR signals.
4142 (avr_linux_gdb_signal_from_target): New function.
4143 (avr_linux_gdb_signal_to_target): Likewise.
4144 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4145 the functions mentioned above.
4146 * sparc-linux-tdep.c: Define enum with differences between SPARC
4147 and generic Linux kernel signal numbers.
4148 (sparc32_linux_gdb_signal_from_target): New function.
4149 (sparc32_linux_gdb_signal_to_target): Likewise.
4150 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4151 to the functions defined above.
4152 * xtensa-linux-tdep.c: Define enum with differences between
4153 Xtensa and Linux kernel generic signals.
4154 (xtensa_linux_gdb_signal_from_target): New function.
4155 (xtensa_linux_gdb_signal_to_target): Likewise.
4156 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4157 to the functions defined above.
4158 * mips-linux-tdep.c: Define enum with differences between
4159 signals in MIPS and Linux kernel generic ones.
4160 (mips_gdb_signal_to_target): New function.
4161 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4162 only different signals from the Linux kernel generic.
4163 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4164 the functions defined above.
4165 * mips-linux-tdep.h (enum mips_signals): Remove.
4166
4167 2013-08-09 Pedro Alves <palves@redhat.com>
4168
4169 * avr-tdep.c (XMALLOC): Delete macro.
4170 * cli/cli-dump.c (XMALLOC): Delete macro.
4171
4172 2013-08-09 Pedro Alves <palves@redhat.com>
4173
4174 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4175 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4176 (fopen_with_cleanup, add_dump_command): Make static.
4177 * cli/cli-dump.h: Delete file.
4178 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4179 cli/cli-dump.h.
4180
4181 2013-08-09 Pedro Alves <palves@redhat.com>
4182
4183 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4184 error message.
4185
4186 2013-08-09 Pedro Alves <palves@redhat.com>
4187
4188 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4189 error message.
4190
4191 2013-08-09 Pedro Alves <palves@redhat.com>
4192
4193 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4194 (gcore_command): Use tilde_expand here, and when showing the
4195 filename to the user, show the expanded version.
4196
4197 2013-08-09 Yao Qi <yao@codesourcery.com>
4198
4199 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4200 'entryval' is set.
4201
4202 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4203
4204 * gcore.c (create_gcore_bfd): Use tilde_expand.
4205
4206 2013-08-08 Yao Qi <yao@codesourcery.com>
4207
4208 * frame.h (read_frame_local): Declare.
4209 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4210 read_frame_local.
4211 * stack.c (read_frame_local): New.
4212
4213 2013-08-08 Yao Qi <yao@codesourcery.com>
4214
4215 * mi/mi-cmd-stack.c: Update comments to function
4216 list_args_or_locals.
4217
4218 2013-08-07 Tom Tromey <tromey@redhat.com>
4219
4220 PR symtab/15028:
4221 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4222 (process_psymtab_comp_unit_reader): Use it.
4223 (process_psymtab_comp_unit): Update. Add "pretend_language"
4224 argument.
4225 (dwarf2_build_psymtabs_hard): Update.
4226 (scan_partial_symbols): Pass CU's language to
4227 process_psymtab_comp_unit.
4228
4229 2013-08-07 Tom Tromey <tromey@redhat.com>
4230
4231 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4232 (dwarf2_gdb_index_functions): Update.
4233 * psymtab.c (find_symbol_file_from_partial): Remove.
4234 (psym_functions): Update.
4235 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4236 Remove.
4237
4238 2013-08-07 Tom Tromey <tromey@redhat.com>
4239
4240 * symfile.c (set_initial_language): Look up "main" symbol
4241 and use its language.
4242 * symtab.c (find_main_filename): Remove.
4243 * symtab.h (find_main_filename): Remove.
4244
4245 2013-08-07 Tom Tromey <tromey@redhat.com>
4246
4247 * dwarf2read.c (recursively_compute_inclusions): Add
4248 "immediate_parent" argument. Set symtab's "user" field
4249 if not set.
4250 (compute_symtab_includes): Update.
4251
4252 2013-08-07 Tom Tromey <tromey@redhat.com>
4253
4254 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4255 when adding label symbols.
4256
4257 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4258 Ulrich Weigand <uweigand@de.ibm.com>
4259
4260 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4261 * configure.host (powerpc64-*-aix*): Likewise.
4262
4263 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4264 Ulrich Weigand <uweigand@de.ibm.com>
4265
4266 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4267 is defined.
4268 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4269 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4270 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4271 * configure.ac: Check for ptrace64.
4272 * configure, config.in: Regenerate.
4273
4274 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4275 Ulrich Weigand <uweigand@de.ibm.com>
4276
4277 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4278 Call ptrace64 instead of ptrace if defined.
4279 Add macro addr_ptr to take care of ptrace address argument.
4280 (pdc_read_regs): Likewise.
4281 (pdc_write_regs): Likewise.
4282 (aix_thread_resume): Likewise.
4283 (fetch_regs_kernel_thread): Likewise.
4284 (store_regs_kernel_thread): Likewise.
4285
4286 2013-08-07 Anton Blanchard <anton@samba.org>
4287
4288 * MAINTAINERS: Add myself to Write After Approval.
4289
4290 2013-08-05 Tom Tromey <tromey@redhat.com>
4291
4292 * aix-thread.c (_initialize_aix_thread): Use
4293 complete_target_initialization.
4294 * bsd-uthread.c (_initialize_bsd_uthread): Use
4295 complete_target_initialization.
4296 * dec-thread.c (_initialize_dec_thread): Use
4297 complete_target_initialization.
4298 * ravenscar-thread.c (_initialize_ravenscar): Use
4299 complete_target_initialization.
4300 * sol-thread.c (_initialize_sol_thread): Use
4301 complete_target_initialization.
4302 * spu-multiarch.c (_initialize_spu_multiarch): Use
4303 complete_target_initialization.
4304
4305 2013-08-05 Tom Tromey <tromey@redhat.com>
4306
4307 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4308 * ada-lang.c (ada_lookup_simple_minsym): Return
4309 bound_minimal_symbol.
4310 * ada-lang.h (ada_lookup_simple_minsym): Update.
4311 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4312 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4313 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4314 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4315 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4316 * minsyms.c (msymbol_objfile): Remove.
4317 (lookup_minimal_symbol_internal): New function, from
4318 lookup_minimal_symbol.
4319 (lookup_minimal_symbol): Rewrite using
4320 lookup_minimal_symbol_internal.
4321 (lookup_bound_minimal_symbol): New function.
4322 * minsyms.h (msymbol_objfile): Remove.
4323 (lookup_bound_minimal_symbol): Declare.
4324 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4325 * parse.c (write_exp_msymbol): Change parameter to a
4326 bound_minimal_symbol.
4327 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4328 * parser-defs.h (write_exp_msymbol): Update.
4329 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4330 * symfile.c (simple_read_overlay_table): Use
4331 lookup_bound_minimal_symbol.
4332 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4333 (search_symbols): Likewise.
4334 (print_msymbol_info): Take a bound_minimal_symbol argument.
4335 (symtab_symbol_info, rbreak_command): Update.
4336 * symtab.h (struct symbol_search) <msymbol>: Change type
4337 to bound_minimal_symbol.
4338 * valops.c (find_function_in_inferior): Use
4339 lookup_bound_minimal_symbol.
4340 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4341
4342 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4343
4344 Code cleanup.
4345 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4346 to ...
4347 (async_cleanup_sigint_signal_handler): ... this.
4348 (initialize_sigint_signal_handler): Remove declaration.
4349 (handle_remote_sigint): Rename the declaration to ...
4350 (async_handle_remote_sigint): ... this.
4351 (handle_remote_sigint_twice): Rename the declaration to ...
4352 (async_handle_remote_sigint_twice): ... this.
4353 (async_remote_interrupt, async_remote_interrupt_twice)
4354 (remote_interrupt): Remove the declarations.
4355 (remote_interrupt_twice): Rename the declaration ...
4356 (sync_remote_interrupt_twice): ... this.
4357 (sigint_remote_twice_token): Rename the variable to ...
4358 (async_sigint_remote_twice_token): ... this.
4359 (sigint_remote_token): Rename the variable to ...
4360 (async_sigint_remote_token): ... this.
4361 (initialize_sigint_signal_handler): Rename the function to ...
4362 (async_initialize_sigint_signal_handler): ... this. Update the name
4363 inside.
4364 (handle_remote_sigint): Rename the function to ...
4365 (async_handle_remote_sigint): ... this. Update the names inside.
4366 (handle_remote_sigint_twice): Rename the function to ...
4367 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4368 (cleanup_sigint_signal_handler): Rename the function to ...
4369 (async_cleanup_sigint_signal_handler): ... this.
4370 (remote_interrupt): Rename the function to ...
4371 (sync_remote_interrupt): this. Update the names inside.
4372 (remote_interrupt_twice): Rename the function to ...
4373 (sync_remote_interrupt_twice): this. Update the names inside.
4374 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4375 (_initialize_remote): Update the names inside.
4376
4377 2013-08-02 Tom Tromey <tromey@redhat.com>
4378
4379 PR symtab/15719:
4380 * breakpoint.c (update_watchpoint, watchpoint_check)
4381 (watch_command_1): Update.
4382 * eval.c (fetch_subexp_value): Add "preserve_errors"
4383 parameter.
4384 * ppc-linux-nat.c (check_condition): Update.
4385 * value.h (fetch_subexp_value): Update.
4386
4387 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4388
4389 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4390 add_file_handler.
4391
4392 2013-08-01 Doug Evans <dje@google.com>
4393
4394 PR symtab/15691
4395 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4396 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4397 Add assert of sig_entry->dwo_unit == NULL.
4398 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4399 had already been read.
4400 (read_signatured_type): Set per_cu.tu_read.
4401
4402 PR symtab/15695
4403 * valops.c (value_struct_elt): Add missing call to check_typedef.
4404 (value_find_oload_method_list): Ditto.
4405
4406 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4407 effectively, struct symbol_search **.
4408 (make_cleanup_free_search_symbols): Change arg to struct
4409 symbol_search **. All callers updated.
4410 (compare_search_syms): Compare symtab file name and block as well.
4411 (search_symbols_equal): New function.
4412 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4413 New args new_head, new_tail. Result is now void. Remove dups after
4414 sorting the symbols.
4415 (search_symbols): Sort all found symbols once, after all have been
4416 found, and remove duplicates. Simplify cleanup tracking of result.
4417 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4418
4419 Further workarounds for binutils/15021.
4420 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4421 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4422 Watch for duplicate symtabs coming from type units.
4423 (compute_symtab_includes): Update call to
4424 recursively_compute_inclusions. Build vector of included symtabs
4425 instead of per_cus.
4426 * symtab.h (symtab_ptr): New typedef.
4427 (DEF_VEC_P (symtab_ptr)): New VEC type.
4428 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4429 instead.
4430
4431 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4432
4433 * cli/cli-script.c (script_from_file): Remove use of
4434 error_pre_print.
4435 * main.c (captured_main): Remove use of error_pre_print and
4436 quit_pre_print.
4437 * utils.c (error_pre_print, quit_pre_print): Remove.
4438 * utils.h (error_pre_print, quit_pre_print): Likewise.
4439
4440 2013-08-01 Yao Qi <yao@codesourcery.com>
4441
4442 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4443 with mi_getopt.
4444 (mi_cmd_stack_list_variables): Likewise.
4445
4446 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4447
4448 * exceptions.c (deprecated_throw_reason): Remove.
4449 * exceptions.h (deprecated_throw_reason): Remove.
4450
4451 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4452
4453 * remote-mips.c (mips_error): Replace use of
4454 deprecated_throw_reason with throw_verror. Use the error message
4455 passed to mips_error as the error message for throw_verror.
4456
4457 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4458
4459 * monitor.c (monitor_interrupt_query): Replace use of
4460 deprecated_throw_reason with quit.
4461 * nto-procfs.c (interrupt_query): Likewise.
4462 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4463 * remote-mips.c (mips_kill): Likewise.
4464 * remote.c (interrupt_query): Likewise.
4465
4466 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4467
4468 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4469 with call to fatal.
4470
4471 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4472 Yao Qi <yao@codesourcery.com>
4473
4474 * tracepoint.c (trace_dump_command): Select the current frame.
4475
4476 2013-07-30 Doug Evans <dje@google.com>
4477
4478 * dwarf2read.c (process_queue): Add type signature to debug output.
4479
4480 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4481
4482 * value.c (value_fetch_lazy): Mark optimized out values as such
4483 rather than raising an error.
4484
4485 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4486
4487 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4488 before checking which bits of the parent, not the child, value are
4489 valid.
4490
4491 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4492
4493 PR gdb/15715
4494 * top.c: Include "filenames.h".
4495 (set_history_filename): New function.
4496 (init_main): Install it as set hook of the "set history filename"
4497 command.
4498
4499 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4500
4501 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4502 attribute parameter.
4503 (dwarf2_const_value_data): Constify struct attribute parameter.
4504 (dwarf2_const_value): Constify struct attribute parameter.
4505 (dwarf2_const_value_attr): Constify struct attribute parameter.
4506 (lookup_die_type): Constify struct attribute parameter.
4507 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4508 (follow_die_ref_or_sig): Constify struct attribute parameter.
4509 (follow_die_ref): Constify struct attribute parameter.
4510 (follow_die_sig): Constify struct attribute parameter.
4511 (get_DW_AT_signature_type): Constify struct attribute parameter.
4512 (get_type_unit_group): Constify struct attribute parameter.
4513 (fill_in_loclist_baton): Constify struct attribute parameter.
4514 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4515 (type_unit_group): Constify struct attribute parameter.
4516
4517 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4518
4519 * dwarf2read.c (attr_form_is_block): Make argument const.
4520 (attr_form_is_section_offset): Make argument const.
4521 (attr_form_is_constant): Make argument const.
4522 (attr_form_is_ref): Make argument const.
4523
4524 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4525
4526 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4527 All uses updated.
4528 (attr_form_is_ref): Moved below attr_form_is_constant.
4529
4530 2013-07-29 Doug Evans <dje@google.com>
4531
4532 * main.c (captured_command_loop): Tweak comment.
4533
4534 * target.c (target_async_permitted_1): Fix comment.
4535
4536 * symtab.c (iterate_over_some_symtabs): Add comment.
4537
4538 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4539
4540 2013-07-27 Yao Qi <yao@codesourcery.com>
4541
4542 * NEWS: Mention that GDBserver now supports hardware
4543 watchpoints on the MIPS GNU/Linux target.
4544
4545 2013-07-27 Yao Qi <yao@codesourcery.com>
4546
4547 * Makefile.in (HFILES_NO_SRCDIR): Add
4548 common/mips-linux-watch.h.
4549 (mips-linux-watch.o): New rule.
4550 * common/mips-linux-watch.c: New.
4551 * common/mips-linux-watch.h: New.
4552 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4553 * mips-linux-nat.c: Include mips-linux-watch.h.
4554 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4555 to common/mips-linux-watch.h.
4556 (MAX_DEBUG_REGISTER): Likewise.
4557 (enum pt_watch_style): Likewise.
4558 (struct mips32_watch_regs): Likewise.
4559 (struct mips64_watch_regs): Likewise.
4560 (struct pt_watch_regs): Likewise.
4561 (struct mips_watchpoint): Likewise.
4562 (mips_linux_watch_get_irw_mask): Move to
4563 common/mips-linux-watch.c.
4564 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4565 (mips_linux_watch_get_watchlo): Likewise.
4566 (mips_linux_watch_set_watchlo): Likewise.
4567 (mips_linux_watch_get_watchhi): Likewise.
4568 (mips_linux_watch_set_watchhi): Likewise.
4569 (mips_linux_read_watch_registers): Likewise.
4570 (mips_linux_watch_type_to_irw): Likewise.
4571 (mips_linux_stopped_data_address, fill_mask): Likewise.
4572 (mips_linux_watch_try_one_watch): Likewise.
4573 (mips_linux_watch_populate_regs): Likewise.
4574
4575 2013-07-27 Yao Qi <yao@codesourcery.com>
4576
4577 * mips-linux-nat.c (get_irw_mask): Rename to ...
4578 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4579 'set' to 'n'. Update function comment. All callers changed.
4580 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4581 function comment. All callers changed.
4582 (get_num_valid): Rename to ...
4583 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4584 'set' to 'n'. Update function comment. All callers changed.
4585 (get_watchlo): Rename to ...
4586 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4587 'set' to 'n'. Update function comment. All callers changed.
4588 (set_watchlo): Rename to ...
4589 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4590 'set' to 'n'. Update function comment. All callers changed.
4591 (get_watchhi): Rename to ...
4592 (mips_linux_watch_get_watchhi): ... this. Update function
4593 comment. All callers changed.
4594 (set_watchhi): Rename to ...
4595 (mips_linux_watch_set_watchhi): ... this. Update function
4596 comment. All callers changed.
4597 (mips_linux_read_watch_registers): Update function comment.
4598 Add new parameters 'lwpid', 'watch_readback', and
4599 'watch_readback_valid'. Update.
4600 (type_to_irw): Rename to ...
4601 (mips_linux_watch_type_to_irw): ... this. Update function
4602 comment. All callers changed.
4603 (fill_mask): Update function comment.
4604 (try_one_watch): Rename to ...
4605 (mips_linux_watch_try_one_watch): ... this. Change the type
4606 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4607 (populate_regs_from_watches): Rename to ...
4608 (mips_linux_watch_populate_regs): ... this. Add parameter
4609 'current_watches'. All callers changed.
4610
4611 2013-07-27 Yao Qi <yao@codesourcery.com>
4612
4613 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4614 the code.
4615 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4616 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4617 (struct pt_watch_regs): Likewise.
4618 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4619 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4620 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4621 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4622 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4623
4624 2013-07-27 Yao Qi <yao@codesourcery.com>
4625
4626 * breakpoint.h: Include break-common.h.
4627 (enum target_hw_bp_type): Move to ...
4628 * common/break-common.h: ... here. New.
4629
4630 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4631
4632 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4633 process group regardless of having tty on stdin.
4634
4635 2013-07-25 Doug Evans <dje@google.com>
4636
4637 * linux-fork.h (detach_fork): Delete.
4638
4639 2013-07-25 Tom Tromey <tromey@redhat.com>
4640
4641 PR remote/15256, PR remote/15266:
4642 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4643 * monitor.c (monitor_detach): Use unpush_target.
4644 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4645 * remote-mips.c (mips_detach): Use unpush_target. Don't
4646 call mips_close.
4647 * remote-sim.c (gdbsim_detach): Use unpush_target.
4648 * target.c (pop_target): Remove.
4649 (pop_all_targets_above): Don't call target_close.
4650 (target_close): Assert that the target is unpushed.
4651 * target.h (pop_target): Don't declare.
4652 * tracepoint.c (tfile_open): Use unpush_target.
4653
4654 2013-07-25 Tom Tromey <tromey@redhat.com>
4655
4656 * linux-thread-db.c (init_thread_db_ops): Call
4657 complete_target_initialization.
4658 (_initialize_thread_db): Don't call add_target.
4659 * target.c (complete_target_initialization): New function.
4660 (add_target_with_completer): Call it.
4661 * target.h (complete_target_initialization): Declare.
4662
4663 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4664
4665 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4666 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4667 (HPPANBSD_SIZEOF_GREGS): New define.
4668 (hppaobsd_supply_gregset): Handle additional registers.
4669 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4670 we provide more registers now.
4671 (hppabsd_supply_gregset): Supply additional registers.
4672 (hppabsd_collect_gregset): Collect additional registers.
4673
4674 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4675
4676 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4677 (hppabsd_dwarf2_frame_init_reg): New function.
4678 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4679
4680 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4681
4682 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4683 'z' format code. Remove error for optimized out values, standard
4684 code will handle these fine.
4685
4686 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4687
4688 * NEWS: Mention new 'z' formatter.
4689 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4690 (_initialize_printcmd): Mention 'z' formatter in help text of the
4691 'x' command.
4692
4693 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4694
4695 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4696 formatting.
4697
4698 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4699
4700 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4701 interface can evaluate arguments. Fallback to the old mode if it
4702 cannot.
4703 (create_exception_master_breakpoint): Likewise.
4704 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4705 (struct sym_probe_fns elf_probe_fns): Export function above to the
4706 probe interface.
4707 * probe.c (can_evaluate_probe_arguments): New function.
4708 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4709 function pointer.
4710 (can_evaluate_probe_arguments): New function prototype.
4711 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4712 probe interface can evaluate arguments. Fallback to the old mode
4713 if it cannot.
4714 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4715 interface can evaluate arguments. Warning the user if it cannot.
4716 (stap_can_evaluate_probe_arguments): New function.
4717 (struct probe_ops stap_probe_ops): Export function above to the
4718 probe interface.
4719 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4720 New function pointer.
4721
4722 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4723
4724 * Makefile.in (SFILES): Add common/target-common.c.
4725 Add common/target-common.h to headers.
4726 (COMMON_OBS): Add target-common.o.
4727 (target-common.o): New target.
4728 * linux-nat.h (resume_kind): Move to common/target-common.h.
4729 * target.c (target_waitstatus_to_string): Move to
4730 common/target-common.c.
4731 * target.h: Include target-common.h.
4732 (target_waitkind): Move to common/target-common.h.
4733 (target_waitstatus): Likewise.
4734 (TARGET_WNOHANG): Likewise.
4735 * common/target-common.c: New file.
4736 * common/target-common.h: New file.
4737
4738 2013-07-24 Doug Evans <dje@google.com>
4739
4740 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4741 a warning.
4742
4743 2013-07-23 Yao Qi <yao@codesourcery.com>
4744
4745 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4746 parameter 'gdbarch'.
4747 (i386_stack_tramp_frame_sniffer): Caller update.
4748 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4749 parameter 'gdbarch' and 'target'.
4750 (i386_linux_core_read_description): Caller update.
4751 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4752 Likewise.
4753 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4754 declaration.
4755
4756 2013-07-23 Tom Tromey <tromey@redhat.com>
4757
4758 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4759 2013-07-22.
4760
4761 2013-07-22 Doug Evans <dje@google.com>
4762
4763 * exec.h (remove_target_sections): Delete arg abfd.
4764 * exec.c (exec_close): Update call to remove_target_sections.
4765 (remove_target_sections): Delete arg abfd.
4766 * solib.c (update_solib_list): Ditto.
4767 (reload_shared_libraries_1): Ditto.
4768 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4769 * target.h (struct target_section): Rename key to owner.
4770 All uses updated.
4771
4772 2013-07-22 Tom Tromey <tromey@redhat.com>
4773
4774 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4775
4776 2013-07-22 Tom Tromey <tromey@redhat.com>
4777
4778 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4779 Simplify cleanup handling.
4780
4781 2013-07-22 Tom Tromey <tromey@redhat.com>
4782
4783 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4784 on all return paths.
4785
4786 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4787
4788 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4789 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4790 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4791
4792 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4793
4794 * top.c (print_gdb_version): Add help, apropos description and
4795 url to online documentation.
4796
4797 2013-07-19 Hui Zhu <hui@codesourcery.com>
4798
4799 PR gdb/15692
4800 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4801
4802 2013-07-19 Yao Qi <yao@codesourcery.com>
4803
4804 * target.c (update_current_target): Change the default action
4805 of 'to_traceframe_info' from tcomplain to return_zero.
4806 * target.h (struct target_ops) <to_traceframe_info>: Add more
4807 comments.
4808 * valops.c (read_value_memory): Call
4809 traceframe_available_memory unconditionally.
4810
4811 2013-07-18 Yao Qi <yao@codesourcery.com>
4812
4813 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4814 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4815 symbol without prefix. If found, set its type to
4816 'mst_solib_trampoline'.
4817
4818 2013-07-17 Doug Evans <dje@google.com>
4819
4820 * NEWS: Mention "set print raw frame-arguments".
4821 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4822 * stack.c (print_raw_frame_arguments): New static global.
4823 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4824 (_initialize_stack): New command "set/show print raw frame-arguments".
4825 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4826 (set_print_raw, show_print_raw): New functions.
4827 (_initialize_valprint): New prefix command "set/show print raw".
4828 * valprint.h (value_print_options): Improve comments.
4829
4830 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4831 of all *list variables.
4832
4833 * gdbcmd.h (togglelist): Delete.
4834 * cli/cli-cmds.c (togglelist): Delete.
4835 (init_cmd_lists): Update.
4836 * cli/cli-cmds.h (togglelist): Delete.
4837
4838 2013-07-17 Tom Tromey <tromey@redhat.com>
4839
4840 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4841 dwarf2_per_objfile.
4842
4843 2013-07-16 Doug Evans <dje@google.com>
4844
4845 * nto-tdep.c (nto_relocate_section_addresses): Update,
4846 target_section.bfd deleted.
4847 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4848 * s390-tdep.c (s390_load): Ditto.
4849 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4850
4851 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4852
4853 * common/format.c (parse_format_string): Add checks for NULL
4854 character before calling strchr.
4855
4856 2013-07-16 Doug Evans <dje@google.com>
4857
4858 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4859 temp_pathname argument.
4860 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4861 when opening the file fails.
4862
4863 * target.h (struct target_section): Delete member bfd.
4864 All users updated to use the_bfd_section->owner instead.
4865 * exec.c (add_to_section_table): Assert bfd is expected value.
4866 Remove initialization of target_section.bfd.
4867 (remove_target_sections): Update.
4868 (section_table_available_memory): Update.
4869 (section_table_xfer_memory_partial): Update.
4870 (print_section_info): Update.
4871 (exec_set_section_address): Update.
4872 * record-full.c (record_full_core_xfer_partial): Update.
4873 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4874 * solib-target.c (solib_target_relocate_section_addresses): Update.
4875 * symfile.c (build_section_addr_info_from_section_table): Update.
4876 * target.c (memory_xfer_live_readonly_partial): Update.
4877 (memory_xfer_partial_1): Update.
4878
4879 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4880
4881 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4882 now available for embedded (BookE) and server (BookS) processors,
4883 correct mentions of 'booke' and adjust comments accordingly in order to
4884 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4885 (have_ptrace_booke_interface): Rename function and variable
4886 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4887 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4888 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4889 'hwdebug_point_cmp'. Update all uses.
4890 (booke_find_thread_points_by_tid): Rename function
4891 'booke_find_thread_points_by_tid' to
4892 'hwdebug_find_thread_points_by_tid'. Update all uses.
4893 (booke_insert_point): Rename function 'booke_insert_point' to
4894 'hwdebug_insert_point'. Update all uses.
4895 (booke_remove_point): Rename function 'booke_remove_point' to
4896 'hwdebug_remove_point'. Update all uses.
4897
4898 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4899
4900 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4901 numbers with enum values.
4902
4903 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4904
4905 PR threads/13217
4906 * thread.c (thread_apply_all_command): Check for valid threads
4907 and thread count.
4908 (thread_array_cleanup): New struct.
4909 (set_thread_refcount): New function.
4910
4911 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4912
4913 * infcmd.c (default_print_one_register_info): Reuse function
4914 print_hex_chars.
4915
4916 2013-07-10 Tom Tromey <tromey@redhat.com>
4917
4918 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4919 (ada-exp.o): New target.
4920
4921 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4922
4923 * mt-tdep.c (mt_registers_info): Call
4924 get_no_prettyformat_print_options instead of
4925 get_raw_print_options (regression by last patch from Doug
4926 Evans).
4927
4928 2013-07-09 Pedro Alves <palves@redhat.com>
4929
4930 Checked in by Joel Brobecker <brobecker@adacore.com>.
4931 * ada-lang.c (coerce_unspec_val_to_type): Use
4932 value_optimized_out_const.
4933 * value.c (value_optimized_out_const): New function.
4934 * value.h (value_optimized_out_const): New declaration.
4935
4936 2013-07-09 Doug Evans <dje@google.com>
4937
4938 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4939 Enum values rename as well. All uses updated.
4940 * valprint.h (value_print_options): Rename member pretty to
4941 pretty format. Rename member prettyprint_arrays to
4942 prettyformat_arrays. Rename member prettyprint_structs to
4943 prettyformat_structs. All uses updated.
4944 (get_no_prettyformat_print_options): Renamed from
4945 get_raw_print_options.
4946 * valprint.c (get_no_prettyformat_print_options): Renamed from
4947 get_raw_print_options. All callers updated.
4948 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4949 All callers updated.
4950 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4951 All callers updated.
4952 (_initialize_valprint): Improve help text for "set print pretty" and
4953 "set print arrays".
4954
4955 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4956
4957 * value.c (value_bits_valid): Revert previous change, and change
4958 by Pedro on 2013-07-04, due to regressions in
4959 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4960
4961 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4962 Pedro Alves <palves@redhat.com>
4963
4964 * value.c (value_bits_valid): If the value is not lval_computed
4965 or has no check validity handler then the answer is the
4966 optimized_out flag, otherwise defer to the handler.
4967
4968 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4969
4970 * top.c (print_gdb_configuration): Explain in output of
4971 --configuration what does "relocatable" mean.
4972
4973 * main.c (print_gdb_help): Regroup options in the --help text.
4974 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4975 the relevant discussions.
4976
4977 2013-07-06 Yao Qi <yao@codesourcery.com>
4978
4979 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4980 Remove parameter 'lsal'.
4981 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4982 to inner block. Caller update.
4983 (base_breakpoint_create_breakpoints_sal): Update.
4984 (bkpt_create_breakpoints_sal): Likewise.
4985 (tracepoint_create_breakpoints_sal): Likewise.
4986 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4987 element 0 of vector 'canonical->sals'.
4988
4989 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4990
4991 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4992 register number instead of the pseudo register one.
4993 (rs6000_dwarf2_reg_to_regnum): Likewise.
4994
4995 2013-07-04 Pedro Alves <palves@redhat.com>
4996
4997 * findvar.c (value_of_register): Use allocate_optimized_out_value
4998 if the register has been optimized out, instead of
4999 set_value_optimized_out.
5000 * frame-unwind.c (frame_unwind_got_optimized): Use
5001 allocate_optimized_out_value.
5002
5003 2013-07-04 Pedro Alves <palves@redhat.com>
5004
5005 * value.c (value_bits_valid): If the value is not lval_computed,
5006 or doesn't have a check_validity hook, assume the value is entirely
5007 valid.
5008
5009 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5010
5011 * stack.c (read_frame_arg): No longer fetch lazy values.
5012 * value.c (value_optimized_out): If the value is not already
5013 marked optimized out, and is lazy then fetch it.
5014 (value_primitive_field): Move optimized out check to later in the
5015 function, after we have loaded any lazy values.
5016 (value_fetch_lazy): Use optimized out flag directly rather than
5017 calling optimized_out method.
5018
5019 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5020
5021 * valops.c: Don't include "user-regs.h".
5022 (value_fetch_lazy): Moved to value.c.
5023 * value.c: Include "user-regs.h".
5024 (value_fetch_lazy): Moved from valops.c.
5025
5026 2013-07-04 Yao Qi <yao@codesourcery.com>
5027
5028 Revert:
5029 2013-06-27 Yao Qi <yao@codesourcery.com>
5030
5031 * common/create-version.sh: Update comments. Handle the case
5032 that TARGET_ALIAS is empty.
5033
5034 2013-07-03 Pedro Alves <palves@redhat.com>
5035
5036 * Makefile.in (config.status): Depend on development.sh.
5037 (aclocal_m4_deps): Add libmcheck.m4.
5038 * acinclude.m4: Include libmcheck.m4.
5039 * configure.ac: Source development.sh instead of setting
5040 'development' here. --enable-libmcheck/--disable-libmcheck code
5041 factored out to GDB_AC_LIBMCHECK. Run it.
5042 * development.sh: New file.
5043 * libmcheck.m4: New file.
5044 * configure: Regenerate.
5045
5046 2013-07-02 Tom Tromey <tromey@redhat.com>
5047
5048 * contrib/ari/update-web-ari.sh: Update for version.in change.
5049
5050 2013-07-02 Tom Tromey <tromey@redhat.com>
5051
5052 * common/ptid.h: Comment fixes.
5053
5054 2013-07-01 Tom Tromey <tromey@redhat.com>
5055
5056 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5057 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5058 (dwarf2_read_index, create_all_comp_units): Update.
5059
5060 2013-07-01 Tom Tromey <tromey@redhat.com>
5061
5062 * configure.ac (build_warnings): Add -Wold-style-definition.
5063 * configure: Rebuild.
5064 * machoread.c (_initialize_machoread): Use "(void)".
5065 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5066 use "(void)".
5067
5068 2013-07-01 Tom Tromey <tromey@redhat.com>
5069
5070 * configure.ac (build_warnings): Add -Wold-style-declaration.
5071 * configure: Rebuild.
5072 * dsrec.c (make_srec): Use "static const", not "const static".
5073 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5074 not "const static".
5075 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5076 Use "static const", not "const static".
5077 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5078 not "const static".
5079 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5080 not "const static".
5081 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5082 not "const static".
5083 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5084 not "const static".
5085 (v850_dbtrap_breakpoint_from_pc): Likewise.
5086 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5087 not "const static".
5088
5089 2013-07-01 Tom Tromey <tromey@redhat.com>
5090
5091 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5092 * configure: Rebuild.
5093
5094 2013-07-01 Pedro Alves <palves@redhat.com>
5095
5096 * defs.h: Include "pathmax.h".
5097 * utils.c: Don't include sys/param.h.
5098 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5099 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5100 instead of MAXPATHLEN.
5101 * solib-sunos.c: Don't include sys/param.h.
5102 * xcoffread.c: Don't include sys/param.h.
5103 * bsd-kvm.c: Don't include sys/param.h.
5104 * darwin-nat.c: Don't include sys/param.h.
5105 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5106 * darwin-nat-info.c: Don't include sys/param.h.
5107 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5108 MAXPATHLEN.
5109 * i386obsd-nat.c: Don't include sys/param.h.
5110 * inf-child.c: Don't include sys/param.h.
5111 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5112 * linux-fork.c: Don't include sys/param.h.
5113 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5114 * linux-nat.c: Don't include sys/param.h.
5115 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5116 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5117 * m68klinux-nat.c: Don't include sys/param.h.
5118 * nbsd-nat.c: Don't include sys/param.h.
5119 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5120 * ppc-linux-nat.c: Don't include sys/param.h.
5121 * rs6000-nat.c: Don't include sys/param.h.
5122 * spu-linux-nat.c. Don't include sys/param.h.
5123 * windows-nat.c: Don't include sys/param.h.
5124 * xtensa-linux-nat.c: Don't include sys/param.h.
5125 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5126
5127 2013-07-01 Pedro Alves <palves@redhat.com>
5128
5129 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5130 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5131 * gnulib/aclocal.m4: Regenerate.
5132 * gnulib/config.in: Regenerate.
5133 * gnulib/configure: Regenerate.
5134 * gnulib/import/pathmax.h: New file.
5135 * gnulib/import/Makefile.am: Regenerate.
5136 * gnulib/import/Makefile.in: Regenerate.
5137 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5138 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5139 * gnulib/import/m4/pathmax.m4: New file.
5140
5141 2013-07-01 Pedro Alves <palves@redhat.com>
5142
5143 * configure.ac (GDBINIT): Define, depending on host.
5144 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5145 * top.c (PATH_MAX): Delete fallback definition.
5146 (GDBINIT_FILENAME): Delete.
5147 (gdbinit): Reimplement as const char array set to the GDBINIT
5148 string constant.
5149 * top.h (gdbinit): Make const.
5150 * configure, config.in: Regenerate.
5151
5152 2013-07-01 Pedro Alves <palves@redhat.com>
5153
5154 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5155 * cli/cli-cmds.h (source_script): Likewise.
5156 * exceptions.c (catch_command_errors_const): New function.
5157 * exceptions.h (catch_command_errors_const): Declare.
5158 * main.c (get_init_files): Make parameters const, and adjust.
5159 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5160 'local_gdbinit' locals const. Adjust to use
5161 catch_command_errors_const.
5162 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5163 'local_gdbinit' locals const.
5164
5165 2013-07-01 Pedro Alves <palves@redhat.com>
5166
5167 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5168 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5169 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5170 <unistd.h>.
5171
5172 2013-07-01 Pedro Alves <palves@redhat.com>
5173
5174 Import the "unistd" gnulib module.
5175 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5176 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5177 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5178 import/m4/unistd_h.m4.
5179 * gnulib/aclocal.m4: Renenerate.
5180 * gnulib/config.in: Renenerate.
5181 * gnulib/configure: Renenerate.
5182 * gnulib/import/Makefile.am: Renenerate.
5183 * gnulib/import/Makefile.in: Renenerate.
5184 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5185 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5186 * gnulib/import/m4/off_t.m4: New file.
5187 * gnulib/import/m4/ssize_t.m4: New file.
5188 * gnulib/import/m4/sys_types_h.m4: New file.
5189 * gnulib/import/m4/unistd_h.m4: New file.
5190 * gnulib/import/sys_types.in.h: New file.
5191 * gnulib/import/unistd.c: New file.
5192 * gnulib/import/unistd.in.h: New file.
5193
5194 2013-07-01 Pedro Alves <palves@redhat.com>
5195
5196 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5197 defined instead of checking HAVE_UNISTD_H.
5198
5199 2013-07-01 Pedro Alves <palves@redhat.com>
5200
5201 Reimport gnulib from scratch.
5202 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5203 import/m4/onceonly.m4.
5204 * gnulib/aclocal.m4: Renegerate.
5205 * gnulib/config.in: Renegerate.
5206 * gnulib/configure: Renegerate.
5207 * gnulib/import/Makefile.in: Renegerate.
5208 * gnulib/import/extra/update-copyright: Renegerate.
5209 * gnulib/import/m4/onceonly.m4: Delete.
5210
5211 2013-07-01 Pedro Alves <palves@redhat.com>
5212
5213 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5214
5215 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5216
5217 Code cleanup.
5218 * remote.c (async_remote_interrupt_twice): Make it static.
5219 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5220
5221 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5222
5223 * ia64-linux-tdep.c: Include <ctype.h>.
5224 (ia64_linux_stap_is_single_operand): New function.
5225 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5226
5227 2013-06-28 Tom Tromey <tromey@redhat.com>
5228
5229 * Makefile.in (version.c): Use version.in, not
5230 common/version.in.
5231 * common/create-version.sh: Likewise.
5232 * common/version.in: Move...
5233 * version.in: ...here.
5234
5235 2013-06-28 Pedro Alves <palves@redhat.com>
5236
5237 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5238 here.
5239 * utils.h (pagination_enabled): Declare.
5240
5241 2013-06-28 Pedro Alves <palves@redhat.com>
5242
5243 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5244 Move higher up in file.
5245
5246 2013-06-28 Tom Tromey <tromey@redhat.com>
5247
5248 * tracepoint.c (deprecated_readline_begin_hook)
5249 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5250 declare.
5251
5252 2013-06-28 Pedro Alves <palves@redhat.com>
5253
5254 PR tui/14880
5255 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5256 checking if they're available.
5257 * value.c (value_available_contents_eq): Change comment.
5258 * value.h (value_available_contents_eq): Expand comment.
5259
5260 2013-06-27 Tom Tromey <tromey@redhat.com>
5261
5262 * target.c (find_run_target): Remove.
5263 * target.h (find_run_target): Remove.
5264
5265 2013-06-27 Tom Tromey <tromey@redhat.com>
5266
5267 * corelow.c (core_gdbarch): Now static.
5268
5269 2013-06-27 Tom Tromey <tromey@redhat.com>
5270
5271 * target.c (target_struct_index): Remove.
5272
5273 2013-06-27 Pedro Alves <palves@redhat.com>
5274
5275 * infrun.c: Remove comment describing the 'stepping over runtime
5276 loader dynamic symbol resolution code' mechanism; moved to
5277 gdbint.texinfo.
5278
5279 2013-06-27 Pedro Alves <palves@redhat.com>
5280
5281 * exceptions.c (catch_command_errors): Remove spurious space.
5282 * exceptions.h (catch_command_errors): Second parameter is "arg",
5283 not "command".
5284
5285 2013-06-27 Yao Qi <yao@codesourcery.com>
5286
5287 * common/create-version.sh: Update comments. Handle the case
5288 that TARGET_ALIAS is empty.
5289
5290 2013-06-26 Pedro Alves <palves@redhat.com>
5291
5292 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5293 comment.
5294
5295 2013-06-26 Pedro Alves <palves@redhat.com>
5296
5297 * infrun.c: Update comments on stepping over runtime loader
5298 dynamic symbol resolution code.
5299
5300 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5301
5302 * ax-gdb.h (union exp_element): Forward declare.
5303 * parser-defs.h: Include expression.h.
5304
5305 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5306
5307 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5308
5309 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5310
5311 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5312
5313 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5314
5315 Fix trace-status to output proper start-time and stop-time.
5316 * tracepoint.c (trace_status_command): Fix type of printf arg to
5317 prevent improper type conversion.
5318 (trace_status_mi): Likewise.
5319
5320 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5321
5322 * mips-tdep.c (mips_next_pc): Fix a typo.
5323
5324 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5325
5326 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5327
5328 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5329 Yao Qi <yao@codesourcery.com>
5330
5331 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5332 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5333 * mi/mi-main.c (print_variable_or_computed): New function.
5334 (mi_cmd_trace_frame_collected): New function.
5335 * tracepoint.c (find_trace_state_variable_by_number): New.
5336 (struct traceframe_info): Move to tracepoint.h
5337 (struct collection_list): Likewise.
5338 (do_collect_symbol): Include locals and arguments in the
5339 collected variables list.
5340 (clear_collection_list): Clear wholly collected variables list
5341 and computed variables list.
5342 (append_exp): New function.
5343 (encode_actions_1): Include variables in the wholly
5344 collected variables list. Include memory ranges and
5345 full-fledged expressions in the computed expressions list.
5346 (encode_actions): Move some code to ...
5347 Return the cleanup chain.
5348 (encode_actions_rsp): ... here. New function.
5349 (get_traceframe_location, get_traceframe_info): Remove static.
5350 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5351 (struct collection_list): Moved from tracepoint.c. Add two
5352 new fields 'wholly_collected' and 'computed'.
5353 (find_trace_state_variable_by_number): Declare.
5354 (encode_actions): Adjust declaration.
5355 (encode_actions_rsp): Declare.
5356 (get_traceframe_info, get_traceframe_location): Declare.
5357
5358 * NEWS: Mention new MI command -trace-frame-collected.
5359
5360 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5361 Yao Qi <yao@codesourcery.com>
5362
5363 * ctf.c (ctf_traceframe_info): Push trace state variables
5364 present in the trace data into the traceframe info object.
5365 * breakpoint.c (DEF_VEC_I): Remove.
5366 * common/filestuff.c (DEF_VEC_I): Likewise.
5367 * dwarf2loc.c (DEF_VEC_I): Likewise.
5368 * mi/mi-main.c (DEF_VEC_I): Likewise.
5369 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5370 * features/traceframe-info.dtd: Add tvar element and its
5371 attributes.
5372 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5373 (build_traceframe_info): Push trace state variables present in
5374 the trace data into the traceframe info object.
5375 (traceframe_info_start_tvar): New function.
5376 (tvar_attributes): New.
5377 (traceframe_info_children): Add "tvar" element.
5378 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5379
5380 * NEWS: Mention the change in GDB and GDBserver.
5381
5382 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5383 Yao Qi <yao@codesourcery.com>
5384
5385 * tracepoint.c (trace_dump_command): Move code to ...
5386 (get_traceframe_location): ... here. New.
5387
5388 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5389 Yao Qi <yao@codesourcery.com>
5390
5391 * tracepoint.c (trace_dump_command): GDB emits an error
5392 instead of a warning when a traceframe is not selected.
5393
5394 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5395 Yao Qi <yao@codesourcery.com>
5396
5397 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5398 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5399 in collection_list.
5400 (do_clear_collection_list, init_collection_list): New.
5401 (encode_actions): Add local variables 'tracepoint_list' and
5402 'stepping_list'. Call init_collection_list and make cleanup
5403 which calls do_clear_collection_list. Don't call
5404 clear_collection_list.
5405 (_initialize_tracepoint): Delete references to
5406 'tracepoint_list' and 'stepping_list'.
5407
5408 2013-06-25 Tom Tromey <tromey@redhat.com>
5409
5410 * common/create-version.sh (date): Use "$", not "$$" in sed
5411 expression.
5412
5413 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5414
5415 * NEWS (New targets): Add entry for TI MSP430.
5416
5417 2013-06-25 Yao Qi <yao@codesourcery.com>
5418
5419 * remote.c (remote_start_remote): Move code to upload tsv
5420 earlier.
5421
5422 2013-06-25 Yao Qi <yao@codesourcery.com>
5423 Hui Zhu <hui@codesourcery.com>
5424 Pedro Alves <palves@redhat.com>
5425
5426 PR breakpoints/15075
5427 PR breakpoints/15434
5428 * breakpoint.c (bpstat_stop_status): Call
5429 b->ops->after_condition_true.
5430 (update_dprintf_command_list): Don't append "continue" command
5431 to the command list of dprintf breakpoint.
5432 (base_breakpoint_after_condition_true): New function.
5433 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5434 (dprintf_after_condition_true): New function.
5435 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5436 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5437
5438 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5439
5440 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5441 (ALLDEPFILES): Add msp430-tdep.c.
5442 * configure.tgt (msp430*-*-elf): New target.
5443 * msp430-tdep.c: New file.
5444
5445 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5446
5447 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5448 microMIPS synthetic symbols.
5449
5450 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5451
5452 * objfiles.h (pc_in_section): New prototype.
5453 (in_plt_section): Remove name argument, replace prototype with
5454 static inline function.
5455 * mips-tdep.h: Include "objfiles.h".
5456 (in_mips_stubs_section): New function.
5457 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5458 in_solib_call_trampoline member.
5459 (hppa_in_solib_call_trampoline): Remove name argument.
5460 * objfiles.c (pc_in_section): New function.
5461 (in_plt_section): Remove function.
5462 * mips-linux-tdep.c: Include "objfiles.h".
5463 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5464 name argument. Return 1 rather than the low 16-bit halfword of
5465 any instruction examined.
5466 (mips_linux_in_dynsym_resolve_code): Update
5467 mips_linux_in_dynsym_stub call accordingly.
5468 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5469 rather than an equivalent hand-coded sequence.
5470 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5471 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5472 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5473 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5474 in_opd_section.
5475 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5476 on call to tdep->in_solib_call_trampoline.
5477 (hppa_in_solib_call_trampoline): Remove name argument, update
5478 according to in_plt_section change.
5479 (hppa_skip_trampoline_code): Update according to in_plt_section
5480 change.
5481 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5482 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5483 Likewise.
5484 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5485 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5486 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5487 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5488 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5489 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5490 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5491 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5492 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5493 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5494 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5495 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5496 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5497
5498 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5499
5500 * common/create-version.sh: Fix expansion of $host_alias
5501 and $target_alias in generation of HOST_NAME and TARGET_NAME
5502 (resp.).
5503
5504 2013-06-24 Tom Tromey <tromey@redhat.com>
5505
5506 * common/create-version.sh: New file.
5507 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5508 create-version.sh.
5509 (HFILES_NO_SRCDIR): Use common/version.h.
5510 * version.in: Move to ...
5511 * common/version.in: ... here. Replace date with "DATE".
5512 * version.h: Move to ...
5513 * common/version.h: ... here.
5514
5515 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5516
5517 * gdb/gnulib/Makefile.in: Update date in copyright header.
5518 * gdb/gnulib/configure.ac: Ditto.
5519 * gdb/gnulib/update-gnulib.sh: Ditto.
5520
5521 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5522
5523 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5524 "gdb/gnulib/import".
5525
5526 2013-06-21 Will Newton <will.newton@linaro.org>
5527
5528 * doublest.c (ldfrexp): Remove function.
5529 (convert_doublest_to_floatformat): Call frexpl instead of
5530 ldfrexp.
5531
5532 2013-06-21 Will Newton <will.newton@linaro.org>
5533
5534 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5535 * gnulib/aclocal.m4: Regenerate.
5536 * gnulib/config.in: Regenerate.
5537 * gnulib/configure: Regenerate.
5538 * gnulib/import/Makefile.am: Update.
5539 * gnulib/import/Makefile.in: Update.
5540 * gnulib/import/m4/gnulib-cache.m4: Update.
5541 * gnulib/import/m4/gnulib-comp.m4: Update.
5542 * gnulib/import/float+.h: Import.
5543 * gnulib/import/float.c: Import.
5544 * gnulib/import/float.in.h: Import.
5545 * gnulib/import/fpucw.h: Import.
5546 * gnulib/import/frexp.c: Import.
5547 * gnulib/import/frexpl.c: Import.
5548 * gnulib/import/isnan.c: Import.
5549 * gnulib/import/isnand-nolibm.h: Import.
5550 * gnulib/import/isnand.c: Import.
5551 * gnulib/import/isnanl-nolibm.h: Import.
5552 * gnulib/import/isnanl.c: Import.
5553 * gnulib/import/itold.c: Import.
5554 * gnulib/import/m4/exponentd.m4: Import.
5555 * gnulib/import/m4/exponentl.m4: Import.
5556 * gnulib/import/m4/float_h.m4: Import.
5557 * gnulib/import/m4/fpieee.m4: Import.
5558 * gnulib/import/m4/frexp.m4: Import.
5559 * gnulib/import/m4/frexpl.m4: Import.
5560 * gnulib/import/m4/isnand.m4: Import.
5561 * gnulib/import/m4/isnanl.m4: Import.
5562 * gnulib/import/m4/math_h.m4: Import.
5563 * gnulib/import/math.c: Import.
5564 * gnulib/import/math.in.h: Import.
5565
5566 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5567
5568 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5569 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5570 signature_INTEL_edx comparisons.
5571
5572 2013-06-20 Doug Evans <dje@google.com>
5573
5574 symtab/15652
5575 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5576 All callers updated.
5577 (open_dwp_file): If we can't find the dwp file, search the basename
5578 in debug-file-directory.
5579
5580 * dwarf2read.c (struct dwp_file): Fix comment.
5581 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5582
5583 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5584 better.
5585
5586 2013-06-20 Yao Qi <yao@codesourcery.com>
5587
5588 * breakpoint.c (create_breakpoint): Fix code indentation.
5589
5590 2013-06-20 Yao Qi <yao@codesourcery.com>
5591
5592 * breakpoint.c (create_breakpoints_sal_default): Remove
5593 parameter 'lsal'. Update declaration.
5594 (bkpt_create_breakpoints_sal): Caller update.
5595 (tracepoint_create_breakpoints_sal): Likewise.
5596
5597 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5598 Yao Qi <yao@codesourcery.com>
5599
5600 * NEWS: Mention the new option '--skip-unavailable' of command
5601 -data-list-register-values.
5602 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5603 --skip-unavailable option. Adjust to use output_register.
5604 (output_register): Add new 'skip_unavailable' parameter.
5605 Handle it.
5606
5607 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5608
5609 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5610 common/i386-gcc-cpuid.h.
5611 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5612 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5613 Copy the latest version from upstream gcc.
5614 * common/linux-btrace.c: Include i386-cpuid.h.
5615 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5616 call to i386_cpuid.
5617 (cpu_supports_btrace): Likewise.
5618 * go32-nat.c: Include i386-cpuid.h.
5619 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5620
5621 2013-06-19 Doug Evans <dje@google.com>
5622
5623 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5624 (get_section_index): Ditto.
5625
5626 2013-06-19 Tom Tromey <tromey@redhat.com>
5627
5628 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5629 "dprintf" help.
5630
5631 2013-06-18 Doug Evans <dje@google.com>
5632
5633 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5634 before using it.
5635 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5636 Move test of cu_index closer to use. Print complaint if cu_index
5637 is bad.
5638
5639 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5640
5641 * machoread.c (oso_vector): Delete this global.
5642 (macho_register_oso): Add new parameter "oso_vector_ptr".
5643 Use it instead of the "oso_vector" global.
5644 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5645 (macho_symfile_read): Use a local oso_vector, to be free'ed
5646 at the end of this function, in place of the old "oso_vector"
5647 global. Update various function calls accordingly. Use one
5648 single cleanup chain for the entire function.
5649
5650 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5651
5652 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5653 DWARF2_PER_OBJFILE by uses of DATA instead.
5654
5655 2013-06-18 Tom Tromey <tromey@redhat.com>
5656
5657 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5658 argument.
5659 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5660 Special case signals other than GDB_SIGNAL_TRAP.
5661 (explains_signal_watchpoint): New function.
5662 (base_breakpoint_explains_signal): Add 'sig' argument.
5663 (initialize_breakpoint_ops): Set 'explains_signal' method for
5664 watchpoints.
5665 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5666 signal argument.
5667 (bpstat_explains_signal): Likewise.
5668 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5669
5670 2013-06-18 Tom Tromey <tromey@redhat.com>
5671
5672 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5673
5674 2013-06-18 Tom Tromey <tromey@redhat.com>
5675
5676 * python/python.c (finish_python_initialization): Decref
5677 'pythondir' on failure path as well.
5678
5679 2013-06-18 Tom Tromey <tromey@redhat.com>
5680
5681 PR symtab/15391:
5682 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5683 after taking bits_to_skip into account. Sign extend byte_offset.
5684 * utils.h (gdb_sign_extend): Declare.
5685 * utils.c (gdb_sign_extend): New function.
5686
5687 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5688
5689 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5690
5691 2013-06-17 Pierre Muller <muller@sourceware.org>
5692
5693 * corelow.c (core_open): Print GDB signal name instead of target
5694 signal number.
5695
5696 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5697
5698 * .gitignore: Add /gcore.
5699
5700 2013-06-13 Doug Evans <dje@google.com>
5701
5702 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5703 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5704
5705 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5706
5707 * stack.c (backtrace_command_1): Fix indentation.
5708
5709 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5710
5711 * window-nat.c (thread_rec): Add missing empty line after
5712 local variable declaration.
5713
5714 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5715
5716 * windows-nat.c (thread_rec): Revert format used to print
5717 error code returned by SuspendThread from %d back to %u.
5718
5719 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5720
5721 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5722 ID in debug trace.
5723 (get_windows_debug_event): Likewise, for all debug traces.
5724
5725 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5726
5727 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5728 warning message.
5729
5730 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5731 Yao Qi <yao@codesourcery.com>
5732
5733 * mi/mi-main.c (get_register): Remove declaration.
5734 (output_register): Declare.
5735 (mi_cmd_data_list_register_values): Remove local variable
5736 'tuple_cleanup'. Move some code into output_register.
5737 (get_register): Renamed to ...
5738 (output_register): ... this. Output the register's
5739 "number" ui_out tuple here.
5740
5741 2013-06-07 Pedro Alves <palves@redhat.com>
5742
5743 * darwin-nat.c: Fix formating in copyright header.
5744 * darwin-nat.h: Likewise.
5745 * gnu-nat.c: Likewise.
5746 * machoread.c: Likewise.
5747
5748 2013-06-07 Pedro Alves <palves@redhat.com>
5749
5750 PR server/14823
5751 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5752 static. Output a global target description pointer.
5753 (init_registers_${name}): Adjust to initialize a
5754 target description structure.
5755
5756 2013-06-07 Will Newton <will.newton@linaro.org>
5757
5758 * printcmd.c (build_address_symbolic): Call
5759 gdbarch_addr_bits_remove for text minimal symbols.
5760
5761 2013-06-07 Will Newton <will.newton@linaro.org>
5762
5763 * MAINTAINERS: Add myself to Write After Approval.
5764
5765 2013-06-07 Yao Qi <yao@codesourcery.com>
5766
5767 * tracepoint.c (start_tracing): Move code to ...
5768 (trace_reset_local_state): ... here. New.
5769 (disconnect_tracing): Don't call set_current_traceframe,
5770 set_tracepoint_num, and set_traceframe_context. Call
5771 trace_reset_local_state instead.
5772 (tfile_close): Call trace_reset_local_state.
5773 * ctf.c (ctf_close): Likewise.
5774 * remote.c (remote_close): Likewise.
5775 * tracepoint.h (trace_reset_local_state): Declare.
5776
5777 2013-06-06 Doug Evans <dje@google.com>
5778
5779 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5780 and fix header docs.
5781
5782 2013-06-05 Doug Evans <dje@google.com>
5783 Keith Seitz <keiths@redhat.com>
5784
5785 PR 15519
5786 * cp-namespace.c (find_symbol_in_baseclass): Call
5787 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5788 Check result of call to lookup_symbol_static.
5789 Call lookup_static_symbol_aux unconditionally.
5790 Call check_typedef on base types before accessing them.
5791 (cp_lookup_nested_symbol): Fix comment.
5792
5793 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5794
5795 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5796 minimal symbols pointing to function descriptors.
5797
5798 2013-06-05 Tom Tromey <tromey@redhat.com>
5799
5800 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5801
5802 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5803 Pedro Alves <palves@redhat.com>
5804
5805 * remote.c (remote_wait_as): Restore signal handler before returning
5806 when GDB gets a notification.
5807
5808 2013-06-04 Gary Benson <gbenson@redhat.com>
5809
5810 PR 2328
5811 * breakpoint.h (handle_solib_event): Moved function declaration
5812 to solib.h.
5813 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5814 (bpstat_stop_status): Pass new argument to handle_solib_event.
5815 * solib.h (update_solib_breakpoints): New function declaration.
5816 (handle_solib_event): Moved function declaration from
5817 breakpoint.h.
5818 * solib.c (update_solib_breakpoints): New function.
5819 (handle_solib_event): Moved function from breakpoint.c.
5820 Updated to call solib_ops->handle_event if not NULL.
5821 * solist.h (target_so_ops): New fields "update_breakpoints" and
5822 "handle_event".
5823 * infrun.c (set_stop_on_solib_events): New function.
5824 (_initialize_infrun): Use the above for "set
5825 stop-on-solib-events".
5826 (handle_inferior_event): Pass new argument to handle_solib_event.
5827 * solib-svr4.c (probe.h): New include.
5828 (svr4_free_library_list): New forward declaration.
5829 (probe_action): New enum.
5830 (probe_info): New struct.
5831 (probe_info): New static variable.
5832 (NUM_PROBES): New definition.
5833 (svr4_info): New fields "using_xfer", "probes_table" and
5834 "solib_list".
5835 (free_probes_table): New function.
5836 (free_solib_list): New function.
5837 (svr4_pspace_data_cleanup): Free probes table and solib list.
5838 (svr4_copy_library_list): New function.
5839 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5840 (svr4_read_so_list): New parameter "prev_lm".
5841 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5842 (svr4_current_sos): New function.
5843 (probe_and_action): New struct.
5844 (hash_probe_and_action): New function.
5845 (equal_probe_and_action): Likewise.
5846 (register_solib_event_probe): Likewise.
5847 (solib_event_probe_at): Likewise.
5848 (solib_event_probe_action): Likewise.
5849 (solist_update_full): Likewise.
5850 (solist_update_incremental): Likewise.
5851 (disable_probes_interface_cleanup): Likewise.
5852 (svr4_handle_solib_event): Likewise.
5853 (svr4_update_solib_event_breakpoint): Likewise.
5854 (svr4_update_solib_event_breakpoints): Likewise.
5855 (svr4_create_solib_event_breakpoints): Likewise.
5856 (enable_break): Free probes table before creating breakpoints.
5857 Use svr4_create_solib_event_breakpoints to create breakpoints.
5858 (svr4_solib_create_inferior_hook): Free the solib list.
5859 (_initialize_svr4_solib): Initialise
5860 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5861
5862 2013-06-04 Gary Benson <gbenson@redhat.com>
5863
5864 * target.h (target_ops): New field
5865 "to_augmented_libraries_svr4_read".
5866 (target_augmented_libraries_svr4_read): New macro.
5867 * target.c (update_current_target): Handle
5868 to_augmented_libraries_svr4_read.
5869 * remote.c (remote_state): New field
5870 "augmented_libraries_svr4_read".
5871 (remote_augmented_libraries_svr4_read_feature): New function.
5872 (remote_protocol_features): Add entry for
5873 "augmented-libraries-svr4-read".
5874 (remote_augmented_libraries_svr4_read): New function.
5875 (init_remote_ops): Initialize
5876 remote_ops.to_augmented_libraries_svr4_read.
5877
5878 2013-06-04 Gary Benson <gbenson@redhat.com>
5879
5880 * NEWS: Update.
5881
5882 2013-06-04 Gary Benson <gbenson@redhat.com>
5883
5884 * objfiles.h (inhibit_section_map_updates): New function
5885 declaration.
5886 (resume_section_map_updates): Likewise.
5887 (resume_section_map_updates_cleanup): Likewise.
5888 * objfiles.c (objfile_pspace_info): Removed field
5889 "objfiles_changed_p". New fields "new_objfiles_available",
5890 "section_map_dirty" and "inhibit_updates".
5891 (allocate_objfile): Set new_objfiles_available.
5892 (free_objfile): Set section_map_dirty.
5893 (objfile_relocate1): Likewise.
5894 (in_plt_section): Likewise.
5895 (find_pc_section): Update the conditions under which the
5896 section map will be updated.
5897 (inhibit_section_map_updates): New function.
5898 (resume_section_map_updates): Likewise.
5899 (resume_section_map_updates_cleanup): Likewise.
5900
5901 2013-06-04 Gary Benson <gbenson@redhat.com>
5902
5903 * probe.h (get_probe_argument_count): New declaration.
5904 (evaluate_probe_argument): Likewise.
5905 * probe.c (get_probe_argument_count): New function.
5906 (evaluate_probe_argument): Likewise.
5907 (probe_safe_evaluate_at_pc): Use the above new functions.
5908
5909 2013-06-04 Alan Modra <amodra@gmail.com>
5910
5911 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5912 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5913 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5914 target mem reads on optional insns.
5915 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5916 ppc_insns_match_pattern calls.
5917 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5918 Add match for power7 thread safety insns, and new order of
5919 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5920 invocation in comment, and update rest of comment.
5921 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5922 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5923 (ppc64_standard_linkage2_target): Update insn offsets.
5924 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5925 stubs first. Update calls.
5926
5927 2013-06-04 Yao Qi <yao@codesourcery.com>
5928
5929 * solib.c (solib_find): Don't need dir separator if path has
5930 drive spec.
5931
5932 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5933
5934 Revert (indirectly causes a SIGSEGV):
5935 * machoread.c (macho_symfile_read): Assign first cleanup to
5936 'back_to'.
5937
5938 2013-06-03 Yao Qi <yao@codesourcery.com>
5939
5940 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5941 mi-parse.c. Make them static.
5942 (mi_all_values): Likewise.
5943 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5944 mi_parse_print_values. Make it external.
5945 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5946 Remove the declarations.
5947 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5948 * mi/mi-parse.h (mi_parse_print_values): Declare.
5949 * mi/mi-cmd-stack.c: Include mi-parse.h.
5950 (parse_print_values): Remove
5951 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5952 of parse_print_values.
5953 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5954
5955 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5956 Yao Qi <yao@codesourcery.com>
5957
5958 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5959 (encode_actions): Move code to ...
5960 (all_tracepoint_actions_and_cleanup): ... here. New.
5961 (trace_dump_command): Likewise.
5962
5963 2013-05-30 Tom Tromey <tromey@redhat.com>
5964
5965 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5966
5967 2013-05-30 Tom Tromey <tromey@redhat.com>
5968
5969 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5970 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5971 'old_chain' argument. Add 'parser_result' argument.
5972 (gdb_xml_create_parser_and_cleanup): Remove old version.
5973 (gdb_xml_parse_quick): Update.
5974 (xml_process_xincludes): Update.
5975 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5976 declare.
5977
5978 2013-05-30 Tom Tromey <tromey@redhat.com>
5979
5980 * probe.c (collect_probes): Check arguments for NULL before
5981 calling compile_rx_or_error.
5982 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5983 Remove NULL return.
5984
5985 2013-05-30 Tom Tromey <tromey@redhat.com>
5986
5987 * infrun.c (adjust_pc_after_break): Introduce an outer null
5988 cleanup.
5989
5990 2013-05-30 Tom Tromey <tromey@redhat.com>
5991
5992 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5993
5994 2013-05-30 Tom Tromey <tromey@redhat.com>
5995
5996 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5997 for 'old_chain'. Do not check 'head' before processing
5998 cleanups.
5999
6000 2013-05-30 Tom Tromey <tromey@redhat.com>
6001
6002 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6003 "cleanup_tuple".
6004
6005 2013-05-30 Tom Tromey <tromey@redhat.com>
6006
6007 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6008 inner scope. Unconditionally call do_cleanups.
6009
6010 2013-05-30 Tom Tromey <tromey@redhat.com>
6011
6012 * source.c (find_and_open_source): Call do_cleanups.
6013
6014 2013-05-30 Tom Tromey <tromey@redhat.com>
6015
6016 * linux-thread-db.c (thread_db_load_search): Unconditionally
6017 call do_cleanups.
6018
6019 2013-05-30 Tom Tromey <tromey@redhat.com>
6020
6021 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6022 for 'cleanup'; instead use a later one.
6023
6024 2013-05-30 Tom Tromey <tromey@redhat.com>
6025
6026 * python/py-breakpoint.c (bppy_get_commands): Use
6027 explicit, unconditional return.
6028 * python/py-frame.c (frapy_read_var): Likewise.
6029 * python/python.c (gdbpy_decode_line): Likewise.
6030
6031 2013-05-30 Tom Tromey <tromey@redhat.com>
6032
6033 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6034 do_cleanups on all return paths.
6035
6036 2013-05-30 Tom Tromey <tromey@redhat.com>
6037
6038 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6039
6040 2013-05-30 Tom Tromey <tromey@redhat.com>
6041
6042 * stabsread.c (read_struct_type): Call do_cleanups along
6043 all return paths.
6044
6045 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6046
6047 * mips-linux-tdep.c: Adjust formatting throughout.
6048
6049 2013-05-30 Tom Tromey <tromey@redhat.com>
6050
6051 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6052 along all return paths.
6053
6054 2013-05-30 Tom Tromey <tromey@redhat.com>
6055
6056 * symfile.c (find_separate_debug_file): Call do_cleanups
6057 along all return paths.
6058
6059 2013-05-30 Tom Tromey <tromey@redhat.com>
6060
6061 * symtab.c (search_symbols): Introduce a null cleanup for
6062 'retval_chain'.
6063
6064 2013-05-30 Tom Tromey <tromey@redhat.com>
6065
6066 * python/py-value.c (valpy_binop): Call do_cleanups before
6067 exiting loop.
6068
6069 2013-05-30 Tom Tromey <tromey@redhat.com>
6070
6071 * python/py-prettyprint.c (print_children): Remove extra
6072 do_cleanups call.
6073
6074 2013-05-30 Tom Tromey <tromey@redhat.com>
6075
6076 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6077 all return paths.
6078
6079 2013-05-30 Tom Tromey <tromey@redhat.com>
6080
6081 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6082 along all return paths.
6083
6084 2013-05-30 Tom Tromey <tromey@redhat.com>
6085
6086 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6087 call do_cleanups.
6088
6089 2013-05-30 Tom Tromey <tromey@redhat.com>
6090
6091 * varobj.c (c_value_of_root): Call do_cleanups along all
6092 return paths.
6093
6094 2013-05-30 Tom Tromey <tromey@redhat.com>
6095
6096 * tracepoint.c (trace_dump_command): Unconditionally call
6097 do_cleanups.
6098
6099 2013-05-30 Tom Tromey <tromey@redhat.com>
6100
6101 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6102 do_cleanups earlier.
6103
6104 2013-05-30 Tom Tromey <tromey@redhat.com>
6105
6106 * machoread.c (macho_symfile_read): Assign first cleanup to
6107 'back_to'.
6108
6109 2013-05-30 Tom Tromey <tromey@redhat.com>
6110
6111 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6112
6113 2013-05-30 Tom Tromey <tromey@redhat.com>
6114
6115 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6116
6117 2013-05-30 Tom Tromey <tromey@redhat.com>
6118
6119 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6120 call discard_cleanups.
6121 (inf_ptrace_attach): Likewise.
6122
6123 2013-05-30 Tom Tromey <tromey@redhat.com>
6124
6125 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6126 return paths.
6127 (mips_initialize): Likewise.
6128 (common_open): Call do_cleanups.
6129
6130 2013-05-30 Tom Tromey <tromey@redhat.com>
6131
6132 * utils.c (internal_vproblem): Call do_cleanups.
6133
6134 2013-05-30 Tom Tromey <tromey@redhat.com>
6135
6136 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6137
6138 2013-05-30 Tom Tromey <tromey@redhat.com>
6139
6140 * cli/cli-script.c (setup_user_args): Don't return after error.
6141
6142 2013-05-30 Tom Tromey <tromey@redhat.com>
6143
6144 * somread.c (som_symtab_read): Call do_cleanups.
6145
6146 2013-05-30 Tom Tromey <tromey@redhat.com>
6147
6148 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6149
6150 2013-05-30 Tom Tromey <tromey@redhat.com>
6151
6152 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6153 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6154 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6155 * source.c (show_substitute_path_command): Call do_cleanups.
6156 (unset_substitute_path_command, set_substitute_path_command):
6157 Likewise.
6158 * symfile.c (load_command): Call do_cleanups.
6159
6160 2013-05-30 Tom Tromey <tromey@redhat.com>
6161
6162 * contrib/cleanup_check.py: New file.
6163 * contrib/gcc-with-excheck: Add option parsing.
6164
6165 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6166
6167 * windows-nat.c (windows_delete_thread): Add missing space
6168 in cast expression.
6169
6170 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6171
6172 * inferior.c (top level): Include tilde.h.
6173 (add_inferior_command): Call tilde_expand on the value of 'exec'
6174 argument.
6175
6176 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6177 Yao Qi <yao@codesourcery.com>
6178
6179 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6180 Caller update.
6181 (encode_actions): Likewise.
6182 * remote.c (remote_download_tracepoint): Caller update.
6183 * tracepoint.h (encode_actions): Update declaration.
6184
6185 2013-05-30 Pedro Alves <palves@redhat.com>
6186
6187 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6188 pointer.
6189
6190 2013-05-30 Yao Qi <yao@codesourcery.com>
6191
6192 * remote.c (remote_check_symbols): Remove unused parameter
6193 'objfile'.
6194 Declaration update.
6195 (remote_start_remote, remote_new_objfile): Caller update.
6196
6197 2013-05-30 Yao Qi <yao@codesourcery.com>
6198
6199 * mi/mi-cmds.c (mi_cmds): Define MI command
6200 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6201 DEF_MI_CMD_CLI.
6202
6203 2013-05-29 Pedro Alves <palves@redhat.com>
6204
6205 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6206 (remote_insert_watchpoint, remote_remove_watchpoint)
6207 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6208 (remote_verify_memory, compare_sections_command)
6209 (remote_search_memory): Set the general process/thread on the
6210 remote side.
6211
6212 2013-05-29 Pedro Alves <palves@redhat.com>
6213
6214 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6215 (_initialize_aarch64_tdep): Don't call
6216 initialize_tdesc_aarch64_without_fpu.
6217 * features/Makefile (WHICH): Remove reference to
6218 aarch64-without-fpu.
6219 * features/aarch64-without-fpu.c: Delete file.
6220 * regformats/aarch64-without-fpu.dat: Delete file.
6221
6222 2013-05-28 Yao Qi <yao@codesourcery.com>
6223
6224 * tracepoint.c (stringify_collection_list): Remove parameter
6225 'string'.
6226 (encode_actions): Caller update. Remove local variables.
6227
6228 2013-05-24 Yao Qi <yao@codesourcery.com>
6229
6230 * tracepoint.c (TFILE_PID): Remove.
6231 (tfile_open): Don't add thread and inferior.
6232 (tfile_close): Don't set 'inferior_ptid'. Don't call
6233 exit_inferior_silent.
6234 (tfile_thread_alive): Remove.
6235 (init_tfile_ops): Don't set field 'to_thread_alive' of
6236 tfile_ops.
6237
6238 2013-05-23 Doug Evans <dje@google.com>
6239
6240 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6241
6242 2013-05-23 Pedro Alves <palves@redhat.com>
6243
6244 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6245 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6246 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6247 Only define if HAVE_SOCKETS is defined.
6248 * configure.ac: Check for sys/socket.h.
6249 * config.in, configure: Regenerate.
6250
6251 2013-05-23 Pedro Alves <palves@redhat.com>
6252
6253 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6254 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6255 printing uint32_t variables.
6256
6257 2013-05-23 Pedro Alves <palves@redhat.com>
6258
6259 * NEWS: Mention GDBserver range stepping support.
6260
6261 2013-05-23 Yao Qi <yao@codesourcery.com>
6262 Pedro Alves <palves@redhat.com>
6263
6264 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6265 field.
6266 * infcmd.c (step_once, until_next_command): Enable range stepping.
6267 * infrun.c (displaced_step_prepare): Disable range stepping.
6268 (resume): Disable range stepping if stepping over a breakpoint or
6269 we have software watchpoints. If range stepping is enabled,
6270 assert the thread is in the stepping range.
6271 (clear_proceed_status_thread): Clear may_range_step.
6272 (handle_inferior_event): Disable range stepping as soon as we know
6273 the thread that hit the event. Re-enable it whenever we're going
6274 to step with a step range.
6275 * remote.c (struct vCont_action_support) <r>: New field.
6276 (use_range_stepping): New global.
6277 (remote_vcont_probe): Handle 'r' action.
6278 (append_resumption): Append an 'r' action if the thread may range
6279 step.
6280 (show_range_stepping): New function.
6281 (set_range_stepping): New function.
6282 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6283 'set range-stepping' and 'show range-stepping' commands.
6284 * NEWS: Mention range stepping, the new vCont;r action, and the
6285 new "set/show range-stepping" commands.
6286
6287 2013-05-23 Yao Qi <yao@codesourcery.com>
6288 Pedro Alves <palves@redhat.com>
6289
6290 * remote.c (struct vCont_action_support): New struct.
6291 (struct remote_state) <support_vCont_t>: Remove field.
6292 <vCont_actions_support>: New field.
6293 (remote_vcont_probe, remote_stop_ns): Update.
6294
6295 2013-05-23 Yao Qi <yao@codesourcery.com>
6296 Pedro Alves <palves@redhat.com>
6297
6298 * gdbthread.h (pc_in_thread_step_range): New declaration.
6299 * thread.c (pc_in_thread_step_range): New function.
6300 * infrun.c (handle_inferior_event): Use it.
6301
6302 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6303
6304 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6305 of sprintf.
6306
6307 2013-05-22 Keith Seitz <keiths@redhat.com>
6308
6309 * ada-lang.c (is_known_support_routine): Add explicit free of
6310 'func_name' from find_frame_funname.
6311 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6312 for func_name from find_frame_funname.
6313 * python/py-frame.c (frapy_name): Add explicit free of
6314 'name' from find_frame_funname.
6315 * stack.c (find_frame_funname): Add comment explaining that
6316 funcp must be freed by the caller.
6317 Return copy of symbol names instead of pointers.
6318 (print_frame): Add a cleanup for 'funname' from
6319 find_frame_funname.
6320 * stack.h (find_frame_funname): Remove "const" from
6321 'funname' parameter.
6322
6323 2013-05-22 Tom Tromey <tromey@redhat.com>
6324
6325 PR c++/15401:
6326 * c-valprint.c (c_value_print): Use value_addr for
6327 references. Convert back to reference type with value_ref.
6328
6329 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6330
6331 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6332 unloaded DLL, it will be done by handle_solib_event. See
6333 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6334 details.
6335
6336 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6337
6338 * ui-out.c: Create typedef ui_out_level_p and define vector
6339 operations for that type.
6340 (struct ui_out): Use a vector instead of an array.
6341 (current_level): Return level from a vector.
6342 (push_level): Create a level in a vector.
6343 (pop_level): Delete a level in a vector.
6344 (ui_out_new): Create initial level zero level, and store in a
6345 vector.
6346 (ui_out_destroy): Add vector cleanup.
6347
6348 2013-05-22 Pedro Alves <palves@redhat.com>
6349
6350 * python/python-internal.h (gdb_Py_DECREF): Tag with
6351 "ARI: editCase function".
6352
6353 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6354
6355 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6356
6357 2013-05-21 Pedro Alves <palves@redhat.com>
6358
6359 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6360 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6361 * python/py-utils.c (py_decref): Don't check for NULL before
6362 calling Py_DECREF.
6363
6364 2013-05-21 Pedro Alves <palves@redhat.com>
6365
6366 * python/py-utils.c (py_decref): Remove extra braces.
6367 (gdb_pymodule_addobject): Remove extra braces.
6368 * python-internal.h (gdb_Py_DECREF): New static inline function.
6369 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6370
6371 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6372
6373 * breakpoints.c (detach_breakpoints): Do not
6374 detach breakpoints locations with loc_type bp_loc_other.
6375
6376 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6377
6378 Workaround Python 2.6.
6379 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6380 a block.
6381
6382 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6383
6384 Code cleanup: constification.
6385 * solib.c (solib_ops): Make return type and ops variable type const.
6386 (set_solib_ops): Make the new_ops parameter and ops variable const.
6387 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6388 (solib_add, solib_keep_data_in_core, clear_solib)
6389 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6390 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6391 const.
6392 * solib.h (set_solib_ops): Make the new_ops parameter const.
6393
6394 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6395
6396 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6397 variable.
6398 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6399 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6400 (SYSTEM_GDBINIT_FILES): New variables.
6401 (all): Add stamp-system-gdbinit.
6402 (stamp-system-gdbinit): New rule.
6403 (clean-system-gdbinit, install-system-gdbinit)
6404 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6405 (install-only): Add dependency on install-system-gdbinit.
6406 (uninstall): Add dependency on uninstall-system-gdbinit.
6407 (clean): Add dependency on clean-system-gdbinit.
6408 * system-gdbinit/elinos.py: New file.
6409 * system-gdbinit/wrs-linux.py: New file.
6410
6411 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6412
6413 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6414
6415 2013-05-21 Hui Zhu <hui@codesourcery.com>
6416
6417 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6418 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6419 * mi/mi-cmd-break.c (ctype.h): New include.
6420 (gdb_obstack.h): New include.
6421 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6422 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6423 (mi_cmd_dprintf_insert): New.
6424 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6425 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6426
6427 2013-05-20 Tom Tromey <tromey@redhat.com>
6428
6429 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6430
6431 2013-05-20 Tom Tromey <tromey@redhat.com>
6432
6433 * python/py-value.c (valpy_get_dynamic_type): Simplify
6434 dynamic_type assignment. Use Py_XINCREF.
6435
6436 2013-05-20 Tom Tromey <tromey@redhat.com>
6437
6438 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6439
6440 2013-05-20 Tom Tromey <tromey@redhat.com>
6441
6442 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6443 (gdbpy_selected_frame): Move object-construction code
6444 out of TRY_CATCH.
6445
6446 2013-05-20 Tom Tromey <tromey@redhat.com>
6447
6448 * python/py-arch.c (gdbpy_initialize_arch): Use
6449 gdb_pymodule_addobject.
6450 * python/py-block.c (gdbpy_initialize_blocks): Use
6451 gdb_pymodule_addobject.
6452 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6453 gdb_pymodule_addobject.
6454 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6455 gdb_pymodule_addobject.
6456 * python/py-event.c (gdbpy_initialize_event_generic): Use
6457 gdb_pymodule_addobject.
6458 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6459 gdb_pymodule_addobject.
6460 * python/py-evts.c (add_new_registry): Use
6461 gdb_pymodule_addobject.
6462 (gdbpy_initialize_py_events): Likewise.
6463 * python/py-finishbreakpoint.c
6464 (gdbpy_initialize_finishbreakpoints): Use
6465 gdb_pymodule_addobject.
6466 * python/py-frame.c (gdbpy_initialize_frames): Use
6467 gdb_pymodule_addobject.
6468 * python/py-function.c (gdbpy_initialize_functions): Use
6469 gdb_pymodule_addobject.
6470 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6471 gdb_pymodule_addobject.
6472 * python/py-infthread.c (gdbpy_initialize_thread): Use
6473 gdb_pymodule_addobject.
6474 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6475 gdb_pymodule_addobject.
6476 * python/py-param.c (gdbpy_initialize_parameters): Use
6477 gdb_pymodule_addobject.
6478 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6479 gdb_pymodule_addobject.
6480 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6481 gdb_pymodule_addobject.
6482 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6483 gdb_pymodule_addobject.
6484 * python/py-type.c (gdbpy_initialize_types): Use
6485 gdb_pymodule_addobject.
6486 * python/py-utils.c (gdb_pymodule_addobject): New function.
6487 * python/py-value.c (gdbpy_initialize_values): Use
6488 gdb_pymodule_addobject.
6489 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6490 * python/python.c (_initialize_python): Use
6491 gdb_pymodule_addobject.
6492
6493 2013-05-20 Tom Tromey <tromey@redhat.com>
6494
6495 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6496 * python/py-param.c (get_set_value, get_show_value): Use
6497 explicit decrefs.
6498 * python/python.c (start_type_printers, apply_type_printers):
6499 Use explicit decrefs.
6500
6501 2013-05-20 Tom Tromey <tromey@redhat.com>
6502
6503 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6504 incref the module.
6505
6506 2013-05-20 Tom Tromey <tromey@redhat.com>
6507
6508 * python/python.c (gdbpy_run_events): Decref the result
6509 of PyObject_CallObject.
6510
6511 2013-05-20 Tom Tromey <tromey@redhat.com>
6512
6513 * python/py-symtab.c (set_sal): Use
6514 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6515 (symtab_and_line_to_sal_object): Update.
6516
6517 2013-05-20 Tom Tromey <tromey@redhat.com>
6518
6519 * python/py-param.c (compute_enum_values): Decref 'item'.
6520
6521 2013-05-20 Tom Tromey <tromey@redhat.com>
6522
6523 * mi/mi-main.c: Include python-internal.h.
6524 (mi_cmd_list_features): Check gdb_python_initialized.
6525 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6526 (python_inferior_exit, python_new_objfile, add_thread_object)
6527 (delete_thread_object, py_free_inferior): Check
6528 gdb_python_initialized.
6529 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6530 gdb_python_initialized.
6531 * python/py-type.c (save_objfile_types): Check
6532 gdb_python_initialized.
6533 * python/python-internal.h (gdb_python_initialized): Declare.
6534 * python/python.c (ensure_python_env): Throw exception if
6535 Python not initialized.
6536 (before_prompt_hook, source_python_script_for_objfile)
6537 (start_type_printers, apply_type_printers,
6538 free_type_printers): Check gdb_python_initialized.
6539 * varobj.c (varobj_get_display_hint)
6540 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6541 (install_new_value_visualizer, varobj_set_visualizer)
6542 (value_get_print_value): Check gdb_python_initialized.
6543
6544 2013-05-20 Tom Tromey <tromey@redhat.com>
6545
6546 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6547 Check errors.
6548 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6549 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6550 Check errors.
6551 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6552 Check errors.
6553 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6554 Check errors.
6555 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6556 Check errors.
6557 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6558 init function to return 'int'.
6559 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6560 Return 'int'. Check errors.
6561 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6562 Check errors.
6563 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6564 Return 'int'. Check errors.
6565 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6566 Check errors.
6567 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6568 Check errors.
6569 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6570 Check errors.
6571 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6572 Check errors.
6573 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6574 Check errors.
6575 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6576 Check errors.
6577 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6578 Check errors.
6579 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6580 Check errors.
6581 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6582 Check errors.
6583 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6584 Check errors.
6585 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6586 Check errors.
6587 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6588 Check errors.
6589 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6590 Check errors.
6591 * python/python-internal.h (gdbpy_initialize_auto_load,
6592 gdbpy_initialize_values, gdbpy_initialize_frames,
6593 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6594 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6595 gdbpy_initialize_blocks, gdbpy_initialize_types,
6596 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6597 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6598 gdbpy_initialize_finishbreakpoints,
6599 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6600 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6601 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6602 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6603 gdbpy_initialize_signal_event,
6604 gdbpy_initialize_breakpoint_event,
6605 gdbpy_initialize_continue_event,
6606 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6607 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6608 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6609 * python/python.c (gdb_python_initialized): New global.
6610 (gdbpy_initialize_events): Return 'int'. Check errors.
6611 (_initialize_python): Check errors. Set
6612 gdb_python_initialized.
6613
6614 2013-05-20 Tom Tromey <tromey@redhat.com>
6615
6616 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6617 Decref the reslut of PyObject_CallMethod.
6618
6619 2013-05-20 Tom Tromey <tromey@redhat.com>
6620
6621 * python/py-event.c (gdbpy_initialize_event_generic): Return
6622 early if PyType_Ready fails.
6623
6624 2013-05-20 Tom Tromey <tromey@redhat.com>
6625
6626 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6627 as 'default' in the switch.
6628
6629 2013-05-20 Tom Tromey <tromey@redhat.com>
6630
6631 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6632 get_addr_from_python calls out of TRY_CATCH.
6633 (infpy_write_memory, infpy_search_memory): Likewise.
6634 * python/py-utils.c (get_addr_from_python): Return negative
6635 value on error. Use TRY_CATCH.
6636 * python/python-internal.h (get_addr_from_python): Use
6637 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6638
6639 2013-05-20 Tom Tromey <tromey@redhat.com>
6640
6641 * python/py-event.c (evpy_emit_event): Decref the
6642 result of PyObject_CallFunctionObjArgs.
6643
6644 2013-05-20 Tom Tromey <tromey@redhat.com>
6645
6646 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6647 Correctly decref.
6648
6649 2013-05-20 Tom Tromey <tromey@redhat.com>
6650
6651 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6652
6653 2013-05-20 Tom Tromey <tromey@redhat.com>
6654
6655 * python/py-event.h (gdbpy_initialize_event_generic): Use
6656 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6657 * python/py-evts.c (add_new_registry): Use
6658 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6659 * python/python-internal.h
6660 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6661
6662 2013-05-20 Tom Tromey <tromey@redhat.com>
6663
6664 * python/py-arch.c (archpy_disassemble): Update.
6665 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6666 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6667 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6668 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6669 macro.
6670 (GDB_PY_HANDLE_EXCEPTION): Update.
6671 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6672
6673 2013-05-20 Tom Tromey <tromey@redhat.com>
6674
6675 * python/python-internal.h (events_object_type): Remove.
6676
6677 2013-05-20 Tom Tromey <tromey@redhat.com>
6678
6679 * python/py-event.h (evpy_emit_event): Use
6680 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6681 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6682 New macro.
6683
6684 2013-05-20 Tom Tromey <tromey@redhat.com>
6685
6686 * py-evtregistry.c (create_event_object): Decref
6687 eventregistry_object if PyList_New fails.
6688
6689 2013-05-20 Tom Tromey <tromey@redhat.com>
6690
6691 * py-cmd.c (gdbpy_string_to_argv): Check result of
6692 PyList_New.
6693
6694 2013-05-20 Tom Tromey <tromey@redhat.com>
6695
6696 * python/python.c (before_prompt_hook): Add cleanup to
6697 decref 'hook'.
6698
6699 2013-05-20 Tom Tromey <tromey@redhat.com>
6700
6701 * python/py-function.c (fnpy_init): Decref result of
6702 PyObject_GetAttrString.
6703
6704 2013-05-20 Tom Tromey <tromey@redhat.com>
6705
6706 * python/py-threadevent.c (get_event_thread): Use
6707 CPYCHECKER_RETURNS_BORROWED_REF.
6708 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6709 New define.
6710 (pspace_to_pspace_object, objfile_to_objfile_object)
6711 (find_thread_object): Use it.
6712
6713 2013-05-20 Tom Tromey <tromey@redhat.com>
6714
6715 * python/py-arch.c (arch_object_type): Use
6716 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6717 * python/py-block.c (block_syms_iterator_object_type):
6718 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6719 * python/py-bpevent.c (breakpoint_event_object_type):
6720 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6721 * python/py-cmd.c (cmdpy_object_type): Use
6722 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6723 * python/py-continueevent.c (continue_event_object_type):
6724 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6725 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6726 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6727 * python/py-events.h (thread_event_object_type):
6728 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6729 * python/py-evtregistry.c (eventregistry_object_type): Use
6730 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6731 * python/py-exitedevent.c (exited_event_object_type):
6732 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6733 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6734 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6735 * python/py-function.c (fnpy_object_type): Use
6736 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6737 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6738 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6739 * python/py-infthread.c (thread_object_type): Use
6740 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6741 * python/py-lazy-string.c (lazy_string_object_type):
6742 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6743 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6744 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6745 * python/py-objfile.c (objfile_object_type): Use
6746 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6747 * python/py-param.c (parmpy_object_type):
6748 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6749 * python/py-progspace.c (pspace_object_type):
6750 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6751 * python/py-signalevent.c (signal_event_object_type):
6752 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6753 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6754 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6755 * python/py-type.c (type_object_type, field_object_type)
6756 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6757 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6758 define.
6759 (value_object_type, block_object_type, symbol_object_type)
6760 (event_object_type, stop_event_object_type, breakpoint_object_type)
6761 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6762
6763 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6764
6765 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6766 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6767
6768 2013-05-20 Doug Evans <dje@google.com>
6769
6770 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6771 For Fission.
6772 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6773 reading_dwo_directly.
6774 (struct signatured_type): New member dwo_unit.
6775 (struct die_reader_specs): New member comp_dir.
6776 (create_signatured_type_table_from_index): Use malloc for
6777 all_type_units instead of objfile's obstack.
6778 (create_all_type_units): Ditto.
6779 (fill_in_sig_entry_from_dwo_entry): New function.
6780 (add_type_unit): New function.
6781 (lookup_dwo_signatured_type): New function.
6782 (lookup_dwp_signatured_type): New function.
6783 (lookup_signatured_type): New arg cu. All callers updated.
6784 (init_cu_die_reader): Initialize comp_dir.
6785 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6786 Change assert of matching type signatures to call error on mismatch.
6787 (lookup_dwo_unit): Add assert.
6788 (init_tu_and_read_dwo_dies): New function.
6789 (init_cutu_and_read_dies): Call it.
6790 (build_type_unit_groups): Handle case of no type unit groups created.
6791 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6792 (lookup_dwo_cutu): Tweak complaint.
6793 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6794 (dwarf2_per_objfile_free): Free all_type_units.
6795
6796 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6797
6798 * windows-nat.c (handle_unload_dll): Add missing empty line.
6799
6800 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6801
6802 * dwarf2read.c (prototyped_function_p): New function.
6803 (read_subroutine_type): Use it.
6804
6805 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6806
6807 * rs6000-aix-tdep.c: De-indent some example code provided
6808 as a comment.
6809
6810 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6811
6812 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6813 region is ok for a hardware watchpoint using the new ptrace interface
6814 on Power servers.
6815
6816 2013-05-17 Doug Evans <dje@google.com>
6817
6818 * NEWS: Mention new maintenance commands check-symtabs, and
6819 expand-symtabs, and renamed check-psymtabs.
6820 * psymtab.c (maintenance_check_psymtabs): Renamed from
6821 maintenance_check_symtabs. Only process already-expanded symbol
6822 tables.
6823 (_initialize_psymtab): Update.
6824 * symmisc.c (maintenance_check_symtabs): New function.
6825 (maintenance_expand_name_matcher): New function
6826 (maintenance_expand_file_matcher): New function
6827 (maintenance_expand_symtabs): New function.
6828 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6829 commands.
6830
6831 2013-05-17 Tom Tromey <tromey@redhat.com>
6832
6833 * python/py-inferior.c (infpy_read_memory): Don't call
6834 PyErr_SetString if PyObject_New fails.
6835 * python/py-frame.c (frame_info_to_frame_object): Don't call
6836 PyErr_SetString if PyObject_New fails.
6837
6838 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6839
6840 * acinclude.m4: Add check for dlopen in libdl.
6841 * configure.ac: Ditto.
6842 * configure: Regenerate.
6843
6844 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6845
6846 * frame.c (frame_stash): Convert to htab.
6847 (frame_addr_hash): New function.
6848 (frame_addr_hash_eq): New function.
6849 (frame_stash_create): Convert function to create
6850 a hash table.
6851 (frame_stash_add): Convert function to add an entry to a hash
6852 table.
6853 (frame_stash_find): Convert function to search the hash table.
6854 (frame_stash_invalidate): Convert function to empty the hash
6855 table.
6856 (get_frame_id): Only add to stash if a frame_id is created.
6857 (_initialize_frame): Call frame_stash_create.
6858
6859 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6860
6861 * configure.ac: Ensure MIG is available when building for GNU Hurd
6862 hosts.
6863 * configure: Regenerate.
6864
6865 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6866
6867 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6868
6869 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6870
6871 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6872 all cleanups are done before returning from this function.
6873
6874 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6875
6876 * utils.h: #include "exceptions.h".
6877 (enum errors): Remove partial declaration.
6878
6879 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6880
6881 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6882 * gdbarch.h, gdbarch.c: Regenerate.
6883 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6884 handling.
6885
6886 * rs6000-aix-tdep.h: New file.
6887 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6888 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6889 "xml-utils.h".
6890 (struct field_info, struct ld_info_desc): New types.
6891 (ld_info32_desc, ld_info64_desc): New static constants.
6892 (struct ld_info): New type.
6893 (rs6000_aix_extract_ld_info): New function.
6894 (rs6000_aix_shared_library_to_xml): Likewise.
6895 (rs6000_aix_ld_info_to_xml): Likewise.
6896 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6897 (rs6000_aix_init_osabi): Add call to
6898 set_gdbarch_core_xfer_shared_libraries_aix.
6899 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6900 Remove "xml-utils.h" include.
6901 (LdInfo): Delete typedef.
6902 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6903 Delete macros.
6904 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6905 Adjust code accordingly.
6906 (rs6000_core_ldinfo): Delete, folded into
6907 rs6000_aix_core_xfer_shared_libraries_aix.
6908 (rs6000_xfer_shared_library): Delete.
6909 (rs6000_xfer_shared_libraries): Reimplement.
6910
6911 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6912
6913 * record.c (record_goto_cmdlist): New.
6914 (cmd_record_goto): Split into this ...
6915 (cmd_record_goto_begin): ... this
6916 (cmd_record_goto_end): ... and this.
6917 (_initialize_record): Change "record goto" to prefix command.
6918 Add commands for "record goto begin" and "record goto end".
6919 Add an alias for "record goto start" to "record goto begin".
6920
6921 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6922
6923 * linespec.c (convert_linespec_to_sals): New comment for
6924 SOURCE_FILENAME assignment.
6925
6926 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6927
6928 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6929 internal_warning.
6930
6931 2013-05-14 Tom Tromey <tromey@redhat.com>
6932
6933 * eval.c (parse_and_eval_long): Make 'exp' const.
6934 * value.h (parse_and_eval_long): Update.
6935
6936 2013-05-14 Tom Tromey <tromey@redhat.com>
6937
6938 * ui-file.c (gdb_fopen): Make arguments const.
6939 * ui-file.h (gdb_fopen): Make arguments const.
6940
6941 2013-05-14 Tom Tromey <tromey@redhat.com>
6942
6943 * remote.c (remote_set_trace_notes): Make arguments const.
6944 * target.c (update_current_target): Update cast.
6945 * target.h (to_set_trace_notes): Make arguments const.
6946
6947 2013-05-14 Tom Tromey <tromey@redhat.com>
6948
6949 * go32-nat.c (go32_terminal_info): Make 'args' const.
6950 * inferior.h (child_terminal_info): Update.
6951 * inflow.c (child_terminal_info): Make 'args' const.
6952 * target.c (default_terminal_info): Make 'args' const.
6953 (debug_to_terminal_save_ours): Likewise.
6954 * target.h (struct target_ops) <to_terminal_info>: Make argument
6955 const.
6956
6957 2013-05-13 Tom Tromey <tromey@redhat.com>
6958
6959 * gcore.c (create_gcore_bfd): Make 'filename' const.
6960 * gcore.h (create_gcore_bfd): Make 'filename' const.
6961 * record-full.c (record_full_save): Make 'recfilename' const.
6962 * target.c (target_save_record): Make 'filename' const.
6963 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6964 const.
6965 (target_save_record): Likewise.
6966
6967 2013-05-13 Tom Tromey <tromey@redhat.com>
6968
6969 PR gdb/15338:
6970 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6971 ranges section has been read.
6972
6973 2013-05-13 Tom Tromey <tromey@redhat.com>
6974
6975 PR exp/15364:
6976 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6977 STRUCTOP_PTR>: Return a not_lval value for
6978 EVAL_AVOID_SIDE_EFFECTS.
6979 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6980 for EVAL_AVOID_SIDE_EFFECTS.
6981
6982 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6983
6984 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6985 floating point registers to register type before storing
6986 value.
6987 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6988 Likewise.
6989
6990 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6991 Tom Tromey <tromey@redhat.com>
6992
6993 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6994 New functions.
6995 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6996 Declare.
6997 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6998 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6999 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7000 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7001
7002 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7003 Tom Tromey <tromey@redhat.com>
7004
7005 PR build/15414:
7006 * configure: Rebuild.
7007 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7008 with -Wno-format.
7009
7010 2013-05-10 Pedro Alves <palves@redhat.com>
7011
7012 * remote.c (_initialize_remote): Fix spelling of
7013 qXfer:traceframe-info:read packet in packet config command.
7014
7015 2013-05-10 David Taylor <dtaylor@emc.com>
7016
7017 PR remote/15455
7018
7019 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7020 "QTro" at start of packet.
7021
7022 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7023
7024 * solib-aix.c (solib_aix_relocate_section_addresses):
7025 For the .bss section action, apply the same offset as
7026 the .data section.
7027
7028 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7029
7030 * solib-aix.c (solib_aix_relocate_section_addresses):
7031 Remove FIXME comment.
7032
7033 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7034
7035 PR tdep/15420:
7036 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7037 New functions, directly copied from sparc-sol-thread.c.
7038 * sparc-sol-thread.c: Delete.
7039 * configure.ac: Remove code handling sparc-solaris-thread.c.
7040 * configure: Regenerate.
7041
7042 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7043
7044 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7045 filter logic.
7046 (backtrace_command): Add "no-filters" option parsing.
7047 (_initialize_stack): Alter help to reflect "no-filters" option.
7048 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7049 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7050 (py-frame.o): Add target
7051 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7052 filter files.
7053 * python/python.h: Add new frame filter constants, and flag enum.
7054 (apply_frame_filter): Add definition.
7055 * python/python.c (apply_frame_filter): New non-Python
7056 enabled function.
7057 * python/py-utils.c (py_xdecref): New function.
7058 (make_cleanup_py_xdecref): Ditto.
7059 * python/py-objfile.c: Declare frame_filters dictionary.
7060 (objfpy_dealloc): Add frame_filters dealloc.
7061 (objfpy_new): Initialize frame_filters attribute.
7062 (objfile_to_objfile_object): Ditto.
7063 (objfpy_get_frame_filters): New function.
7064 (objfpy_set_frame_filters): New function.
7065 * python/py-progspace.c: Declare frame_filters dictionary.
7066 (pspy_dealloc): Add frame_filters dealloc.
7067 (pspy_new): Initialize frame_filters attribute.
7068 (pspacee_to_pspace_object): Ditto.
7069 (pspy_get_frame_filters): New function.
7070 (pspy_set_frame_filters): New function.
7071 * python/py-framefilter.c: New file.
7072 * python/lib/gdb/command/frame_filters.py: New file.
7073 * python/lib/gdb/frames.py: New file.
7074 * python/lib/gdb/__init__.py: Initialize global frame_filters
7075 dictionary
7076 * python/lib/gdb/FrameDecorator.py: New file.
7077 * python/lib/gdb/FrameIterator.py: New file.
7078 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7079 * mi/mi-cmds.h: Declare.
7080 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7081 --no-frame-filter logic, and Python frame filter logic.
7082 (stack_enable_frame_filters): New function.
7083 (parse_no_frame_option): Ditto.
7084 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7085 filter logic.
7086 (mi_cmd_stack_list_locals): Ditto.
7087 (mi_cmd_stack_list_args): Ditto.
7088 (mi_cmd_stack_list_variables): Ditto.
7089 * NEWS: Add frame filter note.
7090
7091 2013-05-09 Doug Evans <dje@google.com>
7092
7093 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7094 All callers updated.
7095 (syms_from_objfile): Ditto. Make static.
7096 (symbol_file_add_with_addrs): Renamed from
7097 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7098 num_offsets. All callers updated.
7099 * symfile.h (syms_from_objfile): Delete.
7100
7101 * symfile.c (decrement_reading_symtab): Add assert.
7102 (increment_reading_symtab): Ditto.
7103
7104 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7105
7106 * source.c (forward_search_command): Replace call to getc
7107 by call to fgetc.
7108 (reverse_search_command): Likewise.
7109
7110 2013-05-08 Doug Evans <dje@google.com>
7111
7112 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7113 matching test.
7114
7115 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7116
7117 * sol-thread.c (info_cb): Factorize the code a little.
7118
7119 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7120
7121 * sol-thread.c (info_cb): Rework the output of the "maintenance
7122 info sol-threads" command a bit.
7123
7124 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7125
7126 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7127 Replace ti.ti_startfunc by ti.ti_pc.
7128
7129 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7130
7131 * solib-aix.c (solib_aix_free_library_list): New function
7132 for the case where HAVE_LIBEXPAT is not defined.
7133
7134 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7135
7136 PR breakpoints/15413:
7137 * breakpoint.c (condition_completer): Simplify the code to
7138 disconsider multiple locations of breakpoints when completing the
7139 "condition" command.
7140
7141 2013-05-07 Pierre Muller <muller@sourceware.org>
7142
7143 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7144 instead of <sys/wait.h>.
7145
7146 2013-05-07 Pierre Muller <muller@sourceware.org>
7147
7148 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7149 trailing new line from warning message.
7150
7151 2013-05-07 Pierre Muller <muller@sourceware.org>
7152
7153 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7154 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7155
7156 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7157
7158 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7159 error message (ARI fix).
7160
7161 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7162
7163 * features/library-list-aix.dtd: Replace library-list by
7164 library-list-aix.
7165 * rs6000-nat.c: Replace library-list by library-list-aix
7166 throughout.
7167 * solib-aix.c: Likewise.
7168
7169 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7170
7171 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7172 Renames TARGET_OBJECT_AIX_LIBRARIES.
7173 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7174 TARGET_OBJECT_LIBRARIES_AIX throughout.
7175 * solib-aix.c: Likwise.
7176
7177 2013-05-07 Yao Qi <yao@codesourcery.com>
7178
7179 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7180 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7181
7182 2013-05-07 Yao Qi <yao@codesourcery.com>
7183
7184 * solib-dsbt.c (enable_break): Declare.
7185 (dsbt_current_sos): Remove call to enable_break2.
7186 (enable_break2): Rename to enable_break. Set solib breakpoint
7187 on '_dl_debug_state'.
7188 (enable_break): Remove.
7189
7190 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7191
7192 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7193 debug state prior to replicating existing hardware watchpoints or
7194 breakpoints.
7195
7196 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7197
7198 * gcore.c (gcore_create_callback): Ignore sections with
7199 separate_debug_objfile_backlink != NULL.
7200
7201 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7202 Andrew Jenner <andrew@codesourcery.com>
7203 Chung-Lin Tang <cltang@codesourcery.com>
7204 Julian Brown <julian@codesourcery.com>
7205
7206 Based on the nios2-elf port from Altera Corporation.
7207
7208 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7209 nios2-linux-tdep.o.
7210 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7211 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7212 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7213 * nios2-tdep.h: New.
7214 * nios2-tdep.c: New.
7215 * nios2-linux-tdep.c: New.
7216 * features/Makefile (WHICH): Add nios2-linux.
7217 (nios2-linux-expedite): Set.
7218 * features/nios2-cpu.xml: New.
7219 * features/nios2.xml: New.
7220 * features/nios2-linux.xml: New.
7221 * features/nios2.c: New (autogenerated).
7222 * features/nios2-linux.c: New (autogenerated).
7223 * regformats/nios2-linux.dat: New (autogenerated).
7224 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7225 and commands.
7226
7227 2013-05-06 Doug Evans <dje@google.com>
7228
7229 * symfile.c: Whitespace cleanup.
7230
7231 * solist.h (struct target_so_ops): New member clear_so.
7232 * solib-svr4.c (svr4_clear_so): New function.
7233 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7234 * solib.c (clear_so): Renamed from free_so_symbols.
7235 All callers updated. Call target clear_so if it exists.
7236
7237 2013-05-06 Tom Tromey <tromey@redhat.com>
7238
7239 * ada-lang.c (ada_value_primitive_packed_val): Don't
7240 call value_incref.
7241 * value.c (set_value_parent): Incref the new parent and decref
7242 the old parent.
7243 (value_copy, value_primitive_field): Use set_value_parent.
7244
7245 2013-05-06 Tom Tromey <tromey@redhat.com>
7246
7247 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7248 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7249 if needed.
7250 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7251 * dwarf2read.c (write_constant_as_bytes)
7252 (dwarf2_fetch_constant_bytes): New functions.
7253
7254 2013-05-06 Tom Tromey <tromey@redhat.com>
7255
7256 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7257 parameters.
7258 (dwarf2_const_value_attr): Update.
7259
7260 2013-05-06 Tom Tromey <tromey@redhat.com>
7261
7262 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7263 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7264 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7265 Remove declaration.
7266
7267 2013-05-06 Tom Tromey <tromey@redhat.com>
7268
7269 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7270 objfile's obstack.
7271
7272 2013-05-06 Doug Evans <dje@google.com>
7273
7274 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7275 * stabsread.h (process_one_symbol): Update declaration.
7276 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7277 * elfread.c (elf_symfile_relocate_probe): Ditto.
7278 * psymtab.c (relocate_psymtabs): Ditto.
7279 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7280 (objfile_relocate): Ditto.
7281 * objfiles.h (objfile_relocate): Update declaration.
7282 * symfile.c (relative_addr_info_to_section_offsets): Constify
7283 addrs parameter.
7284 (default_symfile_offsets): Ditto.
7285 (syms_from_objfile_1): Constify offsets parameter.
7286 (syms_from_objfile): Ditto.
7287 (symbol_file_add_with_addrs_or_offsets): Ditto.
7288 (symfile_map_offsets_to_segments): Constify data parameter.
7289 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7290 delta parameters of member relocate.
7291 (struct sym_probe_fns): Constify new_offsets,
7292 delta parameters of member sym_relocate_probe.
7293 (struct sym_fns): Constify section_addr_info parameter of member
7294 sym_offsets.
7295 (relative_addr_info_to_section_offsets): Update declaration.
7296 (default_symfile_offsets): Ditto.
7297 (syms_from_objfile): Ditto.
7298 (symfile_map_offsets_to_segments): Ditto.
7299
7300 * symfile.c (syms_from_objfile_1): Use correct section count when
7301 objfile->sf == NULL.
7302
7303 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7304
7305 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7306
7307 2013-05-06 Doug Evans <dje@google.com>
7308
7309 * psympriv.h (struct partial_symtab): Augment comment for member
7310 section_offsets.
7311
7312 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7313
7314 Reimplement shared library support on ppc-aix...
7315 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7316 * features/library-list-aix.dtd: New file.
7317 * solib-aix.h, solib-aix.c: New file.
7318 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7319 (rs6000_find_toc_address_hook): Delete.
7320 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7321 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7322 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7323 "xml-utils.h".
7324 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7325 (vmap_symtab, fixup_breakpoints): Delete.
7326 (rs6000_xfer_shared_libraries): New function.
7327 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7328 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7329 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7330 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7331 (rs6000_xfer_shared_library): New function.
7332 (find_toc_address): Delete.
7333 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7334 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7335 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7336 before creating minimal symbol. Adjust function description
7337 accordingly.
7338 (scan_xcoff_symtab): Replace call to
7339 prim_record_minimal_symbol_and_info by call to
7340 record_minimal_symbol.
7341 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7342 around default_symfile_offsets.
7343 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7344 powerpc-aix targets.
7345 * config/rs6000/nm-rs6000.h: Delete.
7346 * config/powerpc/aix.mh (NAT_FILE): Delete.
7347 (NATDEPFILES): Remove xcoffsolib.o.
7348 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7349 (ALL_TARGET_OBS): Add solib-aix.o.
7350 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7351 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7352 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7353 * xcoffsolib.h, xcoffsolib.c: Delete.
7354
7355 * solib.c (reload_shared_libraries): Remove reference to
7356 SOLIB_CREATE_INFERIOR_HOOK.
7357 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7358 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7359 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7360 comment.
7361 * corelow.c (deprecated_core_resize_section_table): Delete.
7362 * exec.c: Remove include of xcoffsolib.h".
7363 (map_vmap, vmap): Delete.
7364 (exec_close_1): Remove references to vmap.
7365 (exec_file_attach): Remove vmap handling code, and reference
7366 to DEPRECATED_IBM6000_TARGET.
7367 (bfdsec_to_vmap): Delete.
7368 (exec_files_info): Remove block of code handling VMAP.
7369 * infcmd.c (post_create_inferior): Remove reference to
7370 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7371 * infrun.c (follow_exec): Remove reference to
7372 SOLIB_CREATE_INFERIOR_HOOK.
7373 * stack.c (print_frame): Remove reference to PC_SOLIB.
7374 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7375 (dsbt_relocate_main_executable): Likewise.
7376 * solib-frv.c (frv_current_sos): Likewise.
7377
7378 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7379
7380 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7381 to target_write_memory and target_read_memory.
7382
7383 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7384
7385 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7386 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7387
7388 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7389
7390 * darwin-nat.c: Replace all "%x" instances in format strings
7391 into "0x%x" throughout.
7392
7393 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7394
7395 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7396 gdb_assert by call to MACH_CHECK_ERROR.
7397 (darwin_attach_pid): Raise an error rather than a failed
7398 assertion when various system calls failed. Report a warning
7399 instead of raising a failed assertion when PREV_NOT is not NULL
7400 after call to mach_port_request_notification.
7401 (darwin_ptrace_me): Raise an error rather than a failed
7402 assertion when read returns nonzero.
7403
7404 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7405
7406 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7407
7408 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7409
7410 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7411
7412 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7413
7414 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7415 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7416 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7417 a stale cleanup. Fix double free of NAME.
7418
7419 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7420
7421 * windows-nat.c (windows_delete_thread): Accept an additional
7422 argument, the thread's exit code, and announce thread death when
7423 print_thread_events is non-zero and we are deleting a thread that
7424 is not the main thread.
7425 (get_windows_debug_event): Pass thread exit code to
7426 windows_delete_thread.
7427
7428 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7429
7430 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7431 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7432 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7433 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7434 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7435 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7436 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7437 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7438 (gdbarch_tdep): New struct.
7439 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7440 E_NUM_REGS.
7441 (v850e3v5_register_name): New function.
7442 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7443 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7444 code handling the struct return conventions for the RH850 ABI.
7445 Update all callers.
7446 (v850_eight_byte_align_p): New function.
7447 (v850_push_call_dummy): Push structs by value, not by reference
7448 for the RH850 ABI. Add support for eight byte alignment.
7449 (v850_dbtrap_breakpoint_from_pc): New function.
7450 (v850_gdbarch_init): Add ABI detection code. Register
7451 v850e3v5_register_name for the v850e3v5 architecture. Set the
7452 number of registers for v850e3v5. Register
7453 v850_dbtrap_breakpoint_from_pc as appropriate.
7454 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7455
7456 2013-05-03 Doug Evans <dje@google.com>
7457
7458 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7459 of bfd_count_sections.
7460 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7461 * symfile.c (default_symfile_offsets): Ditto.
7462 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7463 one entry, not bfd_count_sections entries.
7464
7465 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7466
7467 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7468 `save' and `restore' register groups. Don't include SPL
7469 or SPH in these groups.
7470 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7471 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7472 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7473 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7474 dwarf2_append_unwinders().
7475
7476 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7477
7478 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7479 ignore SIGINT and SIGTRAP in case these internal signals are
7480 caught explicitely.
7481
7482 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7483
7484 * darwin-nat.c (darwin_read_write_inferior): Change types
7485 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7486 of copy_count to "mach_msg_type_number_t".
7487 (darwin_read_dyld_info): Change type of parameter
7488 rdaddr to "gdb_byte *".
7489
7490 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7491
7492 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7493 of &info->load_map from "char *" to "gdb_byte *".
7494
7495 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7496
7497 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7498 from "char *" to "gdb_byte *".
7499 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7500
7501 2013-04-30 Doug Evans <dje@google.com>
7502
7503 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7504 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7505 DWO stub. If DWO isn't found, just use stub.
7506 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7507
7508 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7509 calling init_cutu_and_read_dies.
7510
7511 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7512
7513 * target-descriptions.c (maint_print_c_tdesc_cmd):
7514 Add case to parse structures as register types and
7515 bitfields.
7516
7517 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7518
7519 * MAINTAINERS (Write After Approval): Add myself to the list.
7520
7521 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7522
7523 * sol-thread.c (rw_common): Change type of parameter "buf"
7524 to "gdb_byte *".
7525 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7526 rw_common to "gdb_byte *" instead of "char *".
7527
7528 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7529
7530 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7531 of local variable msym to const struct bound_minimal_symbol.
7532 Adjust use accordingly.
7533 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7534
7535 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7536
7537 * i386gnu-nat.c (CREG_OFFSET): New macro.
7538 (creg_offset): New array.
7539 (CREG_ADDR): Use creg_offset instead of reg_offset.
7540
7541 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7542
7543 * mep-tdep.c (mep_write_pc): Delete.
7544 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7545 Add call to set_gdbarch_pc_regnum.
7546
7547 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7548
7549 * common/filestuff.c: Replace #include <dirent.h> by
7550 #include "gdb_dirent.h".
7551
7552 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7553
7554 * common/filestuff.c: Replace #include <sys/stat.h> by
7555 #include "gdb_stat.h".
7556
7557 2013-04-29 Pierre Muller <muller@sourceware.org>
7558
7559 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7560 editCase function rule.
7561 (get_DW_AT_signature_type): Likewise.
7562
7563 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7564
7565 * m32r-tdep.c (m32r_write_pc): Delete.
7566 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7567 Add call to set_gdbarch_pc_regnum.
7568
7569 2013-04-29 Pierre Muller <muller@sourceware.org>
7570
7571 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7572
7573 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7574
7575 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7576
7577 2013-04-28 Yao Qi <yao@codesourcery.com>
7578
7579 * solib-dsbt.c (fetch_loadmap): Re-indent.
7580 (displacement_from_map, enable_break2): Likewise.
7581 (dsbt_relocate_section_addresses): Likewise.
7582
7583 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7584
7585 GDB 7.6 released.
7586
7587 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7588
7589 PR corefiles/14983:
7590 * dwarf2read.c (process_full_comp_unit): Always create a static
7591 block.
7592
7593 2013-04-25 Hui Zhu <hui@codesourcery.com>
7594
7595 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7596 to loc->cmd_bytecode.
7597
7598 2013-04-24 Doug Evans <dje@google.com>
7599
7600 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7601
7602 2013-04-22 Keith Seitz <keiths@redhat.com>
7603
7604 * tracepoint.c (trace_save): Call the writer's start method.
7605
7606 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7607
7608 PR gdb/10462
7609 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7610 before argument.
7611
7612 2013-04-23 Tom Tromey <tromey@redhat.com>
7613
7614 * common/filestuff.c: Check USE_WIN32API before including
7615 sys/socket.h.
7616 (HAVE_F_GETFD): New define.
7617 (mark_cloexec): Check HAVE_F_GETFD.
7618 (gdb_open_cloexec): Change 'mode' to unsigned long.
7619 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7620 (gdb_pipe_cloexec): Check HAVE_PIPE.
7621 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7622 long.
7623
7624 2013-04-23 Hui Zhu <hui@codesourcery.com>
7625
7626 PR gdb/15293
7627 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7628
7629 2013-04-23 Hui Zhu <hui@codesourcery.com>
7630
7631 PR gdb/15165
7632 * breakpoint.c (dprintf_print_recreate): New.
7633 (save_breakpoints): Let it not save dprintf commands.
7634 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7635
7636 2013-04-22 Tom Tromey <tromey@redhat.com>
7637
7638 PR gdb/7912:
7639 * Makefile.in (SFILES): Add filestuff.c
7640 (COMMON_OBS): Add filestuff.o.
7641 (filestuff.o): New target.
7642 * auto-load.c (auto_load_objfile_script_1): Use
7643 gdb_fopen_cloexec.
7644 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7645 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7646 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7647 * common/agent.c (gdb_connect_sync_socket): Use
7648 gdb_socket_cloexec.
7649 * common/filestuff.c: New file.
7650 * common/filestuff.h: New file.
7651 * common/linux-osdata.c (linux_common_core_of_thread)
7652 (command_from_pid, commandline_from_pid, print_source_lines)
7653 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7654 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7655 gdb_fopen_cloexec.
7656 * common/linux-procfs.c (linux_proc_get_int)
7657 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7658 * config.in, configure: Rebuild.
7659 * configure.ac: Don't check for sys/socket.h. Check for
7660 fdwalk, pipe2.
7661 * corelow.c (core_open): Use gdb_open_cloexec.
7662 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7663 * fork-child.c (fork_inferior): Call close_most_fds.
7664 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7665 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7666 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7667 Use gdb_fopen_cloexec.
7668 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7669 gdb_open_cloexec.
7670 (linux_async_pipe): Use gdb_pipe_cloexec.
7671 * remote-fileio.c (remote_fileio_func_open): Use
7672 gdb_open_cloexec.
7673 * remote.c (remote_file_put, remote_file_get): Use
7674 gdb_fopen_cloexec.
7675 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7676 close_most_fds.
7677 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7678 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7679 * solib.c (solib_find): Use gdb_open_cloexec.
7680 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7681 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7682 (tfile_open): Use gdb_open_cloexec.
7683 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7684 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7685 * xml-support.c (xml_fetch_content_from_file): Use
7686 gdb_fopen_cloexec.
7687 * main.c (captured_main): Call notice_open_fds.
7688
7689 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7690
7691 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7692 'char *' to 'gdb_byte *'.
7693 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7694 'gdb_byte'.
7695
7696 2013-04-22 Yao Qi <yao@codesourcery.com>
7697
7698 * infrun.c: Fix typo in comment.
7699
7700 2013-04-22 Andrew Haley <aph@redhat.com>
7701
7702 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7703 instead of "long".
7704
7705 2013-04-20 Yao Qi <yao@codesourcery.com>
7706
7707 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7708 'char *' to 'gdb_byte *'. Cast the return value of
7709 'bt_ctf_get_char_array' to 'gdb_byte *'.
7710
7711 2013-04-19 Pedro Alves <palves@redhat.com>
7712
7713 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7714 -Wpointer-sign.
7715 * configure: Regenerate.
7716
7717 2013-04-19 Pedro Alves <palves@redhat.com>
7718
7719 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7720 'void *'.
7721
7722 2013-04-19 Pedro Alves <palves@redhat.com>
7723
7724 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7725 Change type of 'myaddr' parameter to gdb_byte pointer.
7726 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7727 to 'long long' pointer instead of to 'unsigned long long'.
7728 (monitor_write_memory_block, monitor_read_memory_single)
7729 (monitor_read_memory): Change type of 'myaddr' parameter to
7730 gdb_byte pointer.
7731
7732 2013-04-19 Pedro Alves <palves@redhat.com>
7733
7734 * record.c (validate_history_size): Make parameter 'setting'
7735 unsigned.
7736
7737 2013-04-19 Pedro Alves <palves@redhat.com>
7738
7739 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7740 to 'gdb_byte *'.
7741
7742 2013-04-19 Pedro Alves <palves@redhat.com>
7743
7744 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7745 local to int.
7746
7747 2013-04-19 Pedro Alves <palves@redhat.com>
7748
7749 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7750 * ada-tasks.c (read_fat_string_value): Likewise.
7751
7752 2013-04-19 Pedro Alves <palves@redhat.com>
7753
7754 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7755 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7756 'offset', and adjust.
7757
7758 2013-04-19 Pedro Alves <palves@redhat.com>
7759
7760 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7761 (read_index_from_section): Add cast to 'char *'.
7762
7763 2013-04-19 Pedro Alves <palves@redhat.com>
7764
7765 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7766
7767 2013-04-19 Pedro Alves <palves@redhat.com>
7768
7769 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7770
7771 2013-04-19 Pedro Alves <palves@redhat.com>
7772
7773 * record-full.c (record_full_get_bookmark): Change local 'ret'
7774 type to char * and add cast to gdb_byte *.
7775 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7776 string.
7777 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7778
7779 2013-04-19 Pedro Alves <palves@redhat.com>
7780
7781 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7782 * python/py-prettyprint.c (print_string_repr): Change type of
7783 'output' local to char *. Add cast to gdb_byte * in
7784 LA_PRINT_STRING call.
7785 (print_children): Change type of 'output' local to char *.
7786 * python/py-value.c (valpy_string): Add cast to const char * in
7787 PyUnicode_Decode call.
7788
7789 2013-04-19 Pedro Alves <palves@redhat.com>
7790
7791 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7792 and change its type to 'const char *'. Adjust.
7793 (mips_send_packet): Add cast to 'char *', and remove cast to
7794 'unsigned char *'.
7795 (mips_receive_packet): Remove cast to 'unsigned char *'.
7796 (mips_load_srec): Use bfd_byte.
7797 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7798 (pmon_checkset): Make 'value' parameter unsigned.
7799
7800 2013-04-19 Pedro Alves <palves@redhat.com>
7801
7802 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7803
7804 2013-04-19 Pedro Alves <palves@redhat.com>
7805
7806 * remote.c (remote_write_bytes_aux, compare_sections_command)
7807 (remote_read_qxfer)
7808 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7809 (remote_hostio_readlink, remote_bfd_iovec_pread)
7810 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7811 binary buffer, and char when buffer is used as string.
7812 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7813 (trace_save, tfile_open, traceframe_walk_blocks)
7814 (tfile_fetch_registers): Likewise.
7815
7816 2013-04-19 Pedro Alves <palves@redhat.com>
7817
7818 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7819 buffer and size_t size. Adjust.
7820 * ser-base.h (ser_base_write): Adjust.
7821 * ser-go32.c (cnts): Change type to size_t.
7822 (dos_write): Change prototype -- take 'void *'
7823 buffer and size_t size. Adjust.
7824 (dos_info): Print elements of 'cnts' as unsigned long.
7825 * serial.c (serial_write): Likewise.
7826 * serial.h (serial_write): Adjust.
7827 (struct serial_ops) <write>: Change prototype -- take 'void *'
7828 buffer and size_t size. Adjust.
7829
7830 2013-04-19 Pedro Alves <palves@redhat.com>
7831
7832 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7833 gdb_byte *.
7834 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7835
7836 2013-04-19 Pedro Alves <palves@redhat.com>
7837
7838 * alpha-tdep.c (alpha_extract_return_value): Use
7839 regcache_cooked_read_unsigned to read 'v0'.
7840
7841 2013-04-19 Pedro Alves <palves@redhat.com>
7842
7843 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7844 parameters 'at', 'as' and 'offset' to uint32_t.
7845
7846 2013-04-19 Pedro Alves <palves@redhat.com>
7847
7848 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7849 'is64' to signed 'int'.
7850
7851 2013-04-19 Pedro Alves <palves@redhat.com>
7852
7853 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7854 parameter to int *.
7855
7856 2013-04-19 Pedro Alves <palves@redhat.com>
7857
7858 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7859 'insnbuf' buffer type to unsigned int[].
7860
7861 2013-04-19 Pedro Alves <palves@redhat.com>
7862
7863 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7864
7865 2013-04-19 Pedro Alves <palves@redhat.com>
7866
7867 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7868 unsigned long *.
7869
7870 2013-04-19 Pedro Alves <palves@redhat.com>
7871
7872 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7873 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7874 UINT_MAX.
7875 * mips-tdep.c (heuristic_fence_post): Change type to int.
7876 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7877
7878 2013-04-19 Pedro Alves <palves@redhat.com>
7879
7880 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7881 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7882 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7883
7884 2013-04-19 Pedro Alves <palves@redhat.com>
7885
7886 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7887 it to get a string view of the byte buffer.
7888 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7889 type to gdb_byte *. Adjust.
7890 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7891 Change local to char *.
7892 * solib-darwin.c (find_program_interpreter): Change return type to
7893 char *. Adjust.
7894 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7895 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7896 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7897 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7898 * solib-svr4.c (find_program_interpreter): Change return type to
7899 char *. Adjust.
7900 (enable_break): Change local 'interp_name' to char *.
7901 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7902 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7903 (spu_pseudo_register_write_spu): Use char for string buffer.
7904 Adjust.
7905 (info_spu_event_command, info_spu_signal_command): Add casts to
7906 'char *'.
7907
7908 2013-04-19 Pedro Alves <palves@redhat.com>
7909
7910 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7911 gdb_byte[].
7912 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7913 * ada-lang.c (ada_value_assign): Use gdb_byte.
7914 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7915 (alphanbsd_sigtramp_offset): Use gdb_byte.
7916 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7917 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7918 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7919 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7920 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7921 * arm-tdep.c (arm_stub_unwind_sniffer)
7922 (arm_displaced_init_closure): Use gdb_byte.
7923 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7924 (arm_default_thumb_le_breakpoint)
7925 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7926 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7927 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7928 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7929 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7930 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7931 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7932 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7933 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7934 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7935 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7936 (cris_store_return_value, cris_extract_return_value): Use
7937 gdb_byte.
7938 (constraint): Change type of parameter to char * from signed
7939 char*. Use gdb_byte.
7940 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7941 of local buffer to gdb_byte *.
7942 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7943 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7944 (add_address_entry): Change type of local buffer to gdb_byte[].
7945 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7946 (frv_push_dummy_call): Use gdb_byte.
7947 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7948 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7949 (hppa_hpux_supply_save_state): Use gdb_byte.
7950 * hppa-tdep.c (hppa32_push_dummy_call)
7951 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7952 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7953 (slotN_contents, replace_slotN_contents): Change type of parameter
7954 to gdb_byte *.
7955 (fetch_instruction, ia64_pseudo_register_write)
7956 (ia64_register_to_value, ia64_value_to_register)
7957 (ia64_extract_return_value, ia64_store_return_value)
7958 (ia64_push_dummy_call): Use gdb_byte.
7959 * m32c-tdep.c (m32c_return_value): Remove cast.
7960 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7961 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7962 gdb_byte.
7963 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7964 * mn10300-tdep.c (mn10300_store_return_value)
7965 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7966 gdb_byte.
7967 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7968 (moxie_process_record): Remove casts.
7969 * ppc-ravenscar-thread.c (supply_register_at_address)
7970 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7971 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7972 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7973 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7974 * remote.c (compare_sections_command): Use gdb_byte.
7975 * score-tdep.c (score7_free_memblock): Change type of parameter to
7976 gdb_byte *.
7977 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7978 gdb_byte *. Use gdb_byte.
7979 (sh_push_dummy_call_fpu): Use gdb_byte.
7980 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7981 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7982 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7983 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7984 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7985 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7986 (sh64_store_return_value, sh64_register_convert_to_virtual):
7987 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7988 (sh64_pseudo_register_write): Use gdb_byte.
7989 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7990 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7991 buffer.
7992 (irix_current_sos): Use gdb_byte.
7993 * solib-som.c (som_current_sos): Use gdb_byte.
7994 * sparc-ravenscar-thread.c (supply_register_at_address)
7995 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7996 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7997 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7998 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7999 'gdb_byte *'.
8000 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8001 'gdb_byte *'.
8002 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8003 * xstormy16-tdep.c (xstormy16_extract_return_value)
8004 (xstormy16_store_return_value): Change parameter type to
8005 'gdb_byte *'. Adjust.
8006 (xstormy16_push_dummy_call): Use gdb_byte.
8007 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8008 (call0_analyze_prologue, execute_code): Use gdb_byte.
8009
8010 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8011 Pedro Alves <palves@redhat.com>
8012
8013 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8014 value contents.
8015
8016 2013-04-17 Doug Evans <dje@google.com>
8017
8018 * dwarf2read.c (struct signatured_type): New member type.
8019 (struct attribute): Replace member signatured_type with signature.
8020 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8021 (read_call_site_scope): Call follow_die_ref instead of
8022 follow_die_ref_or_sig.
8023 (read_structure_type): Rewrite handling of signatured types.
8024 (read_enumeration_type): Ditto.
8025 (read_attribute_value): Update.
8026 (build_error_marker_type): New function.
8027 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8028 Don't call error for bad types, just build an error marker type.
8029 (dump_die_shallow): Update.
8030 (follow_die_sig_1): Renamed from follow_die_sig.
8031 Don't call error for bad types, instead return NULL.
8032 (follow_die_sig): New function.
8033 (get_signatured_type, get_DW_AT_signature_type): New functions.
8034
8035 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8036
8037 * aarch64-tdep.c (aarch64_write_pc): Removed.
8038 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8039 function.
8040
8041 2013-04-17 Yao Qi <yao@codesourcery.com>
8042
8043 * top.c (print_gdb_configuration): Print configure-time
8044 parameter on using libbabeltrace or not.
8045
8046 2013-04-16 Pedro Alves <palves@redhat.com>
8047
8048 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8049
8050 2013-04-16 Pedro Alves <palves@redhat.com>
8051
8052 * common/glibc_thread_db.h: Update from upstream glibc
8053 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8054
8055 2013-04-16 Pedro Alves <palves@redhat.com>
8056
8057 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8058 * common/glibc_thread_db.h: ... this new file ...
8059 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8060
8061 2013-04-16 Will Newton <will.newton@gmail.com>
8062 Pedro Alves <palves@redhat.com>
8063
8064 PR build/11881
8065
8066 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8067 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8068 HAVE_THREAD_DB_H.
8069
8070 2013-04-16 Pedro Alves <palves@redhat.com>
8071 Eli Zaretskii <eliz@gnu.org>
8072
8073 * NEWS: Mention "set foo unlimited".
8074
8075 2013-04-15 Doug Evans <dje@google.com>
8076
8077 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8078 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8079 (create_dwo_cu_reader): Renamed from
8080 create_dwo_debug_info_hash_table_reader.
8081 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8082 Remove support for multiple CUs in a DWO file.
8083 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8084
8085 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8086 instead of phex.
8087 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8088 (create_dwo_in_dwp): Ditto.
8089
8090 2013-04-15 Tom Tromey <tromey@redhat.com>
8091
8092 * NEWS: Move recent entries into "since 7.6" section.
8093
8094 2013-04-15 Tom Tromey <tromey@redhat.com>
8095
8096 PR c++/13588:
8097 * NEWS: Update.
8098 * break-catch-throw.c (struct exception_catchpoint)
8099 <exception_rx, pattern>: New fields.
8100 (fetch_probe_arguments, dtor_exception_catchpoint)
8101 (check_status_exception_catchpoint)
8102 (print_one_detail_exception_catchpoint): New functions.
8103 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8104 Compile regular expression if needed.
8105 (extract_exception_regexp): New function.
8106 (catch_exception_command_1): Use extract_exception_regexp.
8107 (compute_exception): Use fetch_probe_arguments.
8108 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8109 and check_status fields.
8110 * cp-abi.c (cplus_typename_from_type_info): New function.
8111 * cp-abi.h (cplus_typename_from_type_info): Declare.
8112 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8113 * gdb_regex.h (compile_rx_or_error): Declare.
8114 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8115 comment.
8116 (init_gnuv3_ops): Set get_type_from_type_info field.
8117 * probe.c (compile_rx_or_error): Move...
8118 * utils.c (compile_rx_or_error): ... here.
8119
8120 2013-04-15 Tom Tromey <tromey@redhat.com>
8121
8122 PR c++/15176:
8123 * NEWS: Update.
8124 * break-catch-throw.c (compute_exception): New function.
8125 (exception_funcs): New global.
8126 (_initialize_break_catch_throw): Create $_exception.
8127 * cp-abi.c (cplus_type_from_type_info): New function.
8128 * cp-abi.h (cplus_type_from_type_info): Declare.
8129 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8130 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8131 (gnuv3_get_type_from_type_info): New functions.
8132 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8133
8134 2013-04-15 Tom Tromey <tromey@redhat.com>
8135
8136 * break-catch-throw.c (struct exception_names): New.
8137 (exception_functions): Change type.
8138 (re_set_exception_catchpoint): Look for SDT probes.
8139
8140 2013-04-15 Tom Tromey <tromey@redhat.com>
8141
8142 PR c++/10119:
8143 * break-catch-throw.c (exception_functions): New global.
8144 (gnu_v3_exception_catchpoint_ops): Move earlier.
8145 (struct exception_catchpoint): New.
8146 (classify_exception_breakpoint): Rewrite.
8147 (re_set_exception_catchpoint): New function.
8148 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8149 Allocate a struct exception_catchpoint.
8150 (catch_exception_command_1): Update.
8151 (initialize_throw_catchpoint_ops): Set 're_set' method.
8152
8153 2013-04-15 Tom Tromey <tromey@redhat.com>
8154
8155 * Makefile.in (SFILES): Add break-catch-throw.c
8156 (COMMON_OBS): Add break-catch-throw.o.
8157 * break-catch-throw.c: New file.
8158 * breakpoint.c: Move exception-catching code to new file.
8159 (ep_parse_optional_if_clause): No longer static.
8160 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8161
8162 2013-04-15 Tom Tromey <tromey@redhat.com>
8163
8164 PR c++/9065:
8165 * NEWS: Update.
8166 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8167 * c-exp.y (TYPEID): New token.
8168 (exp): Add new TYPEID productions.
8169 (ident_tokens): Add "typeid".
8170 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8171 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8172 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8173 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8174 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8175 case.
8176 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8177 (build_std_type_info_type, gnuv3_get_typeid_type)
8178 (gnuv3_get_typeid): New functions.
8179 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8180 new fields on ABI object.
8181 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8182 * std-operator.def (OP_TYPEID): New.
8183
8184 2013-04-15 Tom Tromey <tromey@redhat.com>
8185
8186 * elfread.c (elf_symtab_read): Install versioned symbol under
8187 unversioned name as well.
8188
8189 2013-04-15 Tom Tromey <tromey@redhat.com>
8190
8191 PR c++/11990:
8192 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8193 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8194 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8195 (gdb_demangle): New function.
8196 * cp-support.h (gdb_demangle): Declare.
8197 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8198 (dwarf2_name): Use gdb_demangle.
8199 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8200 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8201 suffixes from name.
8202 (gnuv3_print_method_ptr): Use gdb_demangle.
8203 * jv-lang.c (java_demangle): Use gdb_demangle.
8204 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8205 * language.c (unk_lang_demangle): Use gdb_demangle.
8206 * symtab.c (symbol_find_demangled_name)
8207 (demangle_for_lookup): Use gdb_demangle.
8208
8209 2013-04-15 Tom Tromey <tromey@redhat.com>
8210
8211 PR c++/12824:
8212 * NEWS: Update.
8213 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8214 New constant.
8215 (classify_exception_breakpoint): New function.
8216 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8217 (print_mention_exception_catchpoint)
8218 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8219 (catch_exception_command_1): Handle "rethrow" catchpoint.
8220 (catch_rethrow_command): New function.
8221 (_initialize_breakpoint): Add "catch rethrow" command.
8222
8223 2013-04-15 Pierre Muller <muller@sourceware.org>
8224
8225 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8226 set_gdbarch_write_pc as deprecated anymore.
8227
8228 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8229
8230 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8231 declarations.
8232
8233 2013-04-13 Yao Qi <yao@codesourcery.com>
8234
8235 * ctf.c (_initialize_ctf): Include "completer.h".
8236 Call add_target_with_completer instead of add_target.
8237
8238 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8239
8240 Fix GDB regression related to PR binutils/14813.
8241 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8242 * minidebug.c (lzma_close): Add return value comment.
8243 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8244 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8245 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8246
8247 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8248
8249 * config.in: Regenerate.
8250
8251 2013-04-12 Tom Tromey <tromey@redhat.com>
8252
8253 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8254 const.
8255 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8256 (struct die_reader_specs) <buffer>: Likewise.
8257 (die_reader_func_ftype): Make 'info_ptr' const.
8258 (struct line_header) <include_dirs, statement_program_start,
8259 statement_program_end>: Now const.
8260 (struct file_entry) <name>: Likewise.
8261 (struct partial_die_info) <sibling>: Likewise.
8262 (struct dwarf_block) <data>: Likewise.
8263 (dwarf2_read_section): Remove cast.
8264 (dwarf2_get_section_info): Make 'bufp' const.
8265 (read_index_from_section): Constify.
8266 (dw2_get_file_names_reader): Make 'info_ptr' const.
8267 (dw2_get_primary_filename_reader): Likewise.
8268 (read_comp_unit_head): Make 'info_ptr' and return type const.
8269 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8270 Likewise.
8271 (read_abbrev_offset): Constify.
8272 (dwarf2_create_include_psymtab): Make 'name' const.
8273 (create_debug_types_hash_table): Update.
8274 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8275 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8276 Constify.
8277 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8278 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8279 (read_comp_units_from_section): Constify.
8280 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8281 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8282 const.
8283 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8284 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8285 (create_dwp_hash_table, dwarf2_ranges_read)
8286 (dwarf2_record_block_ranges): Constify.
8287 (read_die_and_children, read_die_and_siblings_1)
8288 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8289 const.
8290 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8291 (abbrev_table_read_table): Constify.
8292 (load_partial_dies): Make 'info_ptr' const.
8293 (read_partial_die, read_attribute_value, read_attribute): Make
8294 'info_ptr' and return type const.
8295 (read_address, read_initial_length)
8296 (read_checked_initial_length_and_offset, read_offset)
8297 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8298 const.
8299 (read_direct_string): Make 'buf' and return type const.
8300 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8301 (read_indirect_string): Make return type const.
8302 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8303 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8304 'info_ptr' const.
8305 (read_str_index): Make return type const.
8306 (add_include_dir): Make 'include_dir' const.
8307 (add_file_name): Make 'name' const.
8308 (dwarf_decode_line_header): Constify.
8309 (psymtab_include_file_name): Make return type const.
8310 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8311 (dwarf2_start_subfile): Make 'filename' const.
8312 (dwarf2_const_value_attr): Make 'bytes' const.
8313 (read_signatured_type_reader): Make 'info_ptr' const.
8314 (decode_locdesc): Constify.
8315 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8316 const.
8317 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8318 'mac_end', and return type const.
8319 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8320 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8321 type const.
8322 (per_cu_header_read_in): Constify.
8323 * symfile.h (dwarf2_get_section_info): Update.
8324
8325 2013-04-12 Tom Tromey <tromey@redhat.com>
8326
8327 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8328
8329 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8330
8331 * NEWS: Mention "show configuration", --configuration.
8332 * top.c (print_gdb_configuration): New function, displays the
8333 details about GDB configure-time parameters.
8334 (print_gdb_version): Mention "show configuration".
8335 * cli/cli-cmds.c (show_configuration): New function.
8336 (_initialize_cli_cmds): Add the "show configuration" command.
8337 * main.c (captured_main) <print_configuration>: New static var.
8338 <long_options>: Use it.
8339 If --configuration was given, call print_gdb_configuration.
8340
8341 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8342 Pedro Alves <palves@redhat.com>
8343
8344 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8345 (generated_files): Add gcore.
8346 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8347 HAVE_NATIVE_GCORE_HOST.
8348 (gcore): New.
8349 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8350 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8351 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8352 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8353 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8354 Add HAVE_NATIVE_GCORE_HOST.
8355 * configure: Regenerate.
8356 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8357 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8358 AC_CONFIG_FILES for gcore.
8359 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8360 gdb_have_gcore.
8361 * gdb_gcore.sh: Rename to ...
8362 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8363 and GCORE_TRANSFORM_NAME substitutions.
8364
8365 Fix parsing tabs in ${gdb_target_obs}.
8366 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8367
8368 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8369
8370 * remote.c (unpush_and_perror): Add output message final dot.
8371
8372 2013-04-11 Yao Qi <yao@codesourcery.com>
8373
8374 * tracepoint.c (tfile_interp_line): Fit parameters line and
8375 utpp in one line.
8376
8377 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8378
8379 * solib.c (solib_map_sections): Remove code overwriting
8380 SO->SO_NAME with the bfd's filename.
8381
8382 2013-04-10 Pedro Alves <palves@redhat.com>
8383
8384 * cli/cli-decode.c (integer_unlimited_completer): New function.
8385 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8386 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8387 completer.
8388 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8389 (is_unlimited_literal): New function.
8390 (do_set_command): Handle literal "unlimited" arguments.
8391 * frame.c (_initialize_frame) <set backtrace limit>: Document
8392 "unlimited".
8393 * printcmd.c (_initialize_printcmd) <set print
8394 max-symbolic-offset>: Add help text.
8395 * record-full.c (_initialize_record_full) <set record full
8396 insn-number-max>: Likewise.
8397 * record.c (_initialize_record) <set record
8398 instruction-history-size, set record function-call-history-size>:
8399 Add help text.
8400 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8401 help text.
8402 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8403 Likewise.
8404 * source.c (_initialize_source) <set listsize>: Add help text.
8405 * utils.c (initialize_utils) <set height, set width>: Likewise.
8406 <set pagination>: Mention "set height unlimited".
8407 * valprint.c (_initialize_valprint) <set print elements, set print
8408 repeats>: Document "unlimited".
8409
8410 2013-04-10 Pedro Alves <palves@redhat.com>
8411
8412 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8413 instead of disconnect_tracing.
8414 * infcmd.c (detach_command, disconnect_command): Call
8415 query_if_trace_running. Adjust.
8416 * top.c: Include "tracepoint.h".
8417 (quit_target): Delete. Contents moved ...
8418 (quit_force): ... here. Wrap each stage of teardown in
8419 TRY_CATCH. Call disconnect_tracing before detaching.
8420
8421 2013-04-10 Hui Zhu <hui@codesourcery.com>
8422 Yao Qi <yao@codesourcery.com>
8423
8424 * configure.ac: Check libbabeltrace is installed.
8425 * config.in: Regenerate.
8426 * configure: Regenerate.
8427 * Makefile.in (LIBBABELTRACE): New.
8428 (CLIBS): Add LIBBABELTRACE.
8429 * ctf.c: Include "exec.h".
8430 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8431 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8432 (ctf_save_metadata_header): Define new type aliases in
8433 metadata.
8434 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8435 in metadata. Start a new faked packet for trace status.
8436 (ctf_write_status): Write trace status to CTF.
8437 (ctf_write_uploaded_tsv): Write TSV to CTF.
8438 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8439 (ctf_write_definition_end): End the faked packet.
8440
8441 (ctx, ctf_iter, trace_dirname): New.
8442 (start_pos): New variable.
8443 (ctf_destroy, ctf_open_dir, ctf_open): New.
8444 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8445 macros.
8446 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8447 (ctf_fetch_registers, ctf_xfer_partial): New.
8448 (ctf_get_trace_state_variable_value): New.
8449 (ctf_get_tpnum_from_frame_event): New.
8450 (ctf_get_traceframe_address): New.
8451 (ctf_trace_find, ctf_has_stack): New.
8452 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8453 (ctf_get_trace_status, ctf_read_status): New.
8454 (_initialize_ctf): New.
8455 * tracepoint.c (get_tracepoint_number): New
8456 (get_uploaded_tsv): Remove 'static'.
8457 (struct traceframe_info, trace_regblock_size): Move it to ...
8458 * tracepoint.h: ... here.
8459 (get_tracepoint_number): Declare it.
8460 (get_uploaded_tsv): Declare it.
8461
8462 * NEWS: Mention new configure option.
8463
8464 2013-04-10 Pedro Alves <palves@redhat.com>
8465 Hui Zhu <hui@codesourcery.com>
8466
8467 * breakpoint.c (dprintf_re_set): New.
8468 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8469 to dprintf_re_set.
8470
8471 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8472
8473 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8474 Remove solib-svr4.o from the list.
8475
8476 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8477
8478 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8479 Use gdb_assert_not_reached instead of invalid boolean expression.
8480
8481 2013-04-09 Pedro Alves <palves@redhat.com>
8482
8483 * remote.c (unpush_and_perror): New function.
8484 (readchar, remote_serial_write): Use it.
8485
8486 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8487
8488 * NEWS: Mention new btrace RSP packets.
8489
8490 2013-04-08 Tom Tromey <tromey@redhat.com>
8491
8492 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8493 long.
8494
8495 2013-04-08 Tom Tromey <tromey@redhat.com>
8496
8497 * maint.c (print_bfd_section_info): Print the section index.
8498 * symmisc.c (dump_msymbols): Print the section index.
8499
8500 2013-04-08 Tom Tromey <tromey@redhat.com>
8501
8502 PR symtab/8424:
8503 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8504 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8505 * breakpoint.c (resolve_sal_pc): Update.
8506 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8507 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8508 (minsym_lookup_iterator_cb): Use it.
8509 (default_read_var_value): Update.
8510 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8511 Update.
8512 * infcmd.c (jump_command): Update.
8513 * linespec.c (minsym_found): Update.
8514 * maint.c (maintenance_translate_address): Update.
8515 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8516 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8517 * parse.c (write_exp_msymbol): Update.
8518 * printcmd.c (address_info): Update.
8519 * psymtab.c (find_pc_sect_psymbol): Update.
8520 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8521 SYMBOL_OBJ_SECTION.
8522 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8523 Don't initialize SYMBOL_OBJ_SECTION.
8524 * spu-tdep.c (spu_catch_start): Update.
8525 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8526 * symmisc.c (dump_msymbols, print_symbol): Update.
8527 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8528 how fallback section is computed.
8529 (fixup_symbol_section): Update.
8530 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8531 Update.
8532 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8533 Initialize SYMBOL_SECTION.
8534 * symtab.h (struct general_symbol_info) <section>: Update comment.
8535 <obj_section>: Remove.
8536 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8537 (SYMBOL_OBJFILE): New macro.
8538
8539 2013-04-08 Tom Tromey <tromey@redhat.com>
8540
8541 * coffread.c (record_minimal_symbol): Update.
8542 * dbxread.c (record_minimal_symbol): Update.
8543 * elfread.c (record_minimal_symbol): Update.
8544 * machoread.c (macho_symtab_add_minsym): Update.
8545 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8546 Update.
8547 * minsyms.c (prim_record_minimal_symbol): Update.
8548 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8549 argument.
8550 (prim_record_minimal_symbol_and_info): Likewise.
8551 * minsyms.h (prim_record_minimal_symbol_full)
8552 (prim_record_minimal_symbol_and_info): Update.
8553 * symtab.c (allocate_symbol, initialize_symbol)
8554 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8555 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8556 Update.
8557
8558 2013-04-08 Tom Tromey <tromey@redhat.com>
8559
8560 PR symtab/8423:
8561 * solib-som.c (som_solib_section_offsets): Use BFD section
8562 indices. Set offsets for all sections.
8563 * somread.c (som_symtab_read): Compute BFD section for
8564 symbol. Use prim_record_minimal_symbol_and_info.
8565 (som_symfile_read): Fix comment.
8566 (struct find_section_offset_arg): New.
8567 (find_section_offset, set_section_index): New functions.
8568 (som_symfile_offsets): Use set_section_index to compute
8569 section indices.
8570
8571 2013-04-08 Tom Tromey <tromey@redhat.com>
8572
8573 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8574 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8575 gdb_bfd_section_index.
8576 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8577 New functions.
8578 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8579 Declare.
8580 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8581 Update.
8582 * objfiles.c (add_to_objfile_sections_full): New function.
8583 (add_to_objfile_sections): Use it.
8584 (build_section_table): Rewrite.
8585 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8586 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8587 (struct objfile) <sections>: Update comment.
8588 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8589 is NULL.
8590 (ALL_OBJSECTIONS): Use it.
8591 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8592 * solib-frv.c (frv_relocate_main_executable): Update.
8593 * solib-target.c (solib_target_relocate_section_addresses):
8594 Use gdb_bfd_section_index.
8595 * symfile.c (build_section_addr_info_from_section_table):
8596 Use gdb_bfd_section_index.
8597 (build_section_addr_info_from_bfd, place_section): Likewise.
8598 * symtab.c (fixup_section): Update.
8599 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8600
8601 2013-04-08 Tom Tromey <tromey@redhat.com>
8602
8603 * minsyms.h (struct bound_minimal_symbol): New.
8604 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8605 Remove objfile argument.
8606 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8607 Return bound_minimal_symbol.
8608 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8609 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8610 Return bound_minimal_symbol.
8611 (in_gnu_ifunc_stub): Update.
8612 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8613 Remove 'objfile_p' argument.
8614 (lookup_solib_trampoline_symbol_by_pc): Update.
8615 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8616 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8617 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8618 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8619 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8620 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8621 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8622 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8623 stack.c, symtab.c, tui/tui-disasm.c: Update.
8624
8625 2013-04-08 Tom Tromey <tromey@redhat.com>
8626
8627 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8628 Use symbol's obstack, not an objfile.
8629 * coffread.c (process_coff_symbol): Update.
8630 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8631 * jv-lang.c (add_class_symbol): Update.
8632 * mdebugread.c (new_symbol): Update.
8633 * minsyms.c (prim_record_minimal_symbol_full)
8634 (terminate_minimal_symbol_table): Update.
8635 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8636 * stabsread.c (define_symbol, read_enum_type): Update.
8637 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8638 Handle Ada specially.
8639 (symbol_set_language): Add 'obstack' argument.
8640 (symbol_set_names): Update.
8641 (symbol_natural_name, symbol_demangled_name): Always use
8642 ada_decode_symbol.
8643 * symtab.h (struct general_symbol_info)
8644 <language_specific::obstack>: New field.
8645 <ada_mangled>: New field.
8646 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8647 (symbol_set_language): Update.
8648
8649 2013-04-08 Tom Tromey <tromey@redhat.com>
8650
8651 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8652 Take an obstack, not an objfile.
8653 (symbol_set_names): Update.
8654 * symtab.h (symbol_set_demangled_name): Update.
8655
8656 2013-04-08 Tom Tromey <tromey@redhat.com>
8657
8658 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8659 allocate_symbol.
8660 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8661 (read_func_scope): Call allocate_template_symbol.
8662 (new_symbol_full): Call allocate_symbol.
8663 * jit.c (finalize_symtab): Call allocate_symbol.
8664 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8665 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8666 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8667 (common_block_end): Call allocate_symbol.
8668 * symtab.c (allocate_symbol, initialize_symbol)
8669 (allocate_template_symbol): New functions.
8670 * symtab.c (allocate_symbol, initialize_symbol)
8671 (allocate_template_symbol): Declare.
8672 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8673
8674 2013-04-08 Pedro Alves <palves@redhat.com>
8675 Keith Seitz <keiths@redhat.com>
8676
8677 * breakpoint.c (create_breakpoint): Rename
8678 "parse_condition_and_thread" parameter to "parse_arg". Update
8679 describing comment. If !PARSE_ARG, then error out if ARG is not
8680 the empty string after extracting the location.
8681 * breakpoint.h (create_breakpoint): Rename
8682 "parse_condition_and_thread" parameter to "parse_arg".
8683
8684 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8685
8686 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8687
8688 2013-04-07 Yao Qi <yao@codesourcery.com>
8689
8690 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8691 and 'addr2' to CORE_ADDR.
8692 * target.c (update_current_target): Update.
8693 * target.h (struct target_ops) <to_trace_find>: Change parameter
8694 type to CORE_ADDR.
8695 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8696 'addr2' to CORE_ADDR.
8697 (tfile_trace_find): Likewise.
8698 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8699 Change local variable 'addr' to type CORE_ADDR.
8700 * tracepoint.h (tfind_1): Update declaration.
8701
8702 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8703
8704 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8705 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8706 Include main.h.
8707
8708 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8709 here...
8710 * main.h (windows_get_absolute_argv0): ...to here.
8711
8712 2013-04-05 Doug Evans <dje@google.com>
8713
8714 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8715 (read_cutu_die_from_dwo): Add comments.
8716 (read_structure_type): Update comment.
8717 (read_enumeration_type, read_namespace_type): Update comment.
8718 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8719
8720 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8721
8722 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8723 * Makefile.in (gdb.z): Remove.
8724 (install-only): Remove $(man1dir) and gdb.1 installation.
8725 * gdb.1: Remove.
8726
8727 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8728
8729 Fix compatibility with Linux kernel 3.8.3.
8730 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8731 to more inner block. Remove parsing of NUMBER from outer block.
8732 Parse NUMBER only if KEYWORD has been identified.
8733
8734 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 Fix variable name shadowing.
8737 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8738 filename to mapsfilename and update its uses.
8739
8740 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8741
8742 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8743 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8744 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8745 details of the problem.
8746
8747 2013-04-04 Pedro Alves <palves@redhat.com>
8748 Hui Zhu <hui@codesourcery.com>
8749
8750 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8751 tracepoint, reset its STEP_COUNT and call validate_actionline.
8752
8753 2013-04-03 Doug Evans <dje@google.com>
8754
8755 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8756 read_die_and_siblings.
8757 (read_die_and_siblings): New function.
8758 (read_cutu_die_from_dwo): Dump die if requested.
8759 (read_die_and_children): Call read_full_die_1 and
8760 read_die_and_siblings_1.
8761 (read_full_die): Dump die if requested.
8762
8763 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8764
8765 * dwarf2read.c (struct dwo_file): New member comp_dir.
8766 Rename member name to dwo_name. All uses updated.
8767 (hash_dwo_file): Include comp_dir in computation.
8768 (eq_dwo_file): Ditto.
8769 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8770 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8771
8772 * psymtab.c (read_psymtabs_with_fullname): Don't call
8773 psymtab_to_fullname if the basenames are different.
8774
8775 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8776
8777 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8778 New entry about "fullname" presence.
8779
8780 2013-04-03 Pedro Alves <palves@redhat.com>
8781
8782 * NEWS: Mention x86_64/Cygwin as new native configuration.
8783
8784 2013-04-02 Doug Evans <dje@google.com>
8785
8786 * dwarf2read.c (read_structure_type): Fix typo in comment.
8787
8788 2013-04-02 Pedro Alves <palves@redhat.com>
8789
8790 * NEWS: Mention "set/show debug aarch64", "set/show debug
8791 coff-pe-read" and "set/show debug mach-o".
8792
8793 2013-04-02 Pedro Alves <palves@redhat.com>
8794
8795 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8796
8797 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8798
8799 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8800 gdb_string.h is now in common/.
8801
8802 2013-04-02 Pedro Alves <palves@redhat.com>
8803
8804 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8805 under "New options".
8806
8807 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8808
8809 Revert this patch:
8810 PR gdb/15275
8811 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8812
8813 2013-04-02 Pedro Alves <palves@redhat.com>
8814
8815 PR gdb/15275
8816
8817 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8818 (remote_serial_write): New function.
8819 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8820
8821 2013-04-01 Jiong Wang <jiwang@tilera.com>
8822
8823 * NEWS: Mention TILE-Gx in "New native configurations" and
8824 "New targets" sections.
8825
8826 2013-04-01 Doug Evans <dje@google.com>
8827
8828 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8829 (process_enumeration_scope): Simplify.
8830
8831 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8832 type_unit_group ...
8833 (struct signatured_type): ... to here.
8834 (sig_type_ptr): New typedef.
8835 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8836 out of union 't'. All uses updated.
8837 (dw2_get_file_names_reader): Assert not called for a type unit.
8838 (dw2_get_file_names): Assert not called for a type unit or type
8839 unit group.
8840 (build_type_psymtabs_reader): Assert called for a type unit.
8841 (build_type_psymtab_dependencies): Assert called for a type unit group.
8842
8843 * dwarf2read.c (free_dwo_file): Add comment.
8844 (dwarf2_per_objfile_free): Unref dwp bfd.
8845
8846 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8847
8848 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8849 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8850 (read_pe_exported_syms): Remove unused 'exportix'.
8851 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8852 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8853 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8854
8855 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8856
8857 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8858 (print_it_watchpoint): Remove unused 'bl'.
8859 (say_where): Remove unused 'uiout'.
8860 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8861 (bkpt_breakpoint_hit): Remove unused 'b'.
8862 (internal_bkpt_print_it): Remove unused 'uiout'.
8863 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8864
8865 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8866
8867 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8868 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8869
8870 2013-03-29 Doug Evans <dje@google.com>
8871
8872 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8873 Delete arg is_dwp. All callers updated.
8874 (open_dwp_file): New function.
8875 (open_and_init_dwp_file): Call it.
8876 (get_dwp_file): New function.
8877 (lookup_dwo_cutu): Call it.
8878
8879 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8880 unnecessary, cleanup.
8881
8882 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8883
8884 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8885 (lookup_dwo_unit): New function.
8886 (init_cutu_and_read_dies): Move DWO handling to new functions.
8887
8888 * dwarf2read.c (struct signatured_type): Tweak comment.
8889 (struct dwo_unit): Tweak comment.
8890 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8891 (create_dwo_debug_info_hash_table): Tweak comment.
8892 (dwarf2_per_cu_offset_and_type): Tweak comment.
8893
8894 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8895 missing .debug_types section.
8896
8897 2013-03-29 Yao Qi <yao@codesourcery.com>
8898
8899 * corelow.c: Include "completer.h".
8900 (_initialize_corelow): Call add_target_with_completer with
8901 argument 'filename_completer'.
8902 * tracepoint.c: Likewise.
8903 * exec.c (_initialize_exec): Likewise.
8904 * target.c (add_target): Rename to ...
8905 (add_target_with_completer): ... this. Call set_cmd_completer
8906 if parameter completer is not NULL.
8907 (add_target): New.
8908 * target.h: Include "command.h".
8909 (add_target_with_completer): Declare it.
8910
8911 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8912
8913 * coffread.c (is_import_fixup_symbol): New function.
8914 (record_minimal_symbol): Use is_import_fixup_symbol to
8915 detect import fixup symbols, and discard them.
8916
8917 2013-03-28 Doug Evans <dje@google.com>
8918
8919 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8920 types hash table until we know we need it.
8921
8922 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8923 index numbers.
8924
8925 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8926 All callers updated.
8927 (dw2_print_stats): Print #read CUs too.
8928 (dump_die_shallow): Print signatured types better.
8929
8930 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8931 info_or_types_section to section. All uses updated.
8932 (struct dwo_unit): Ditto.
8933
8934 2013-03-28 Pedro Alves <palves@redhat.com>
8935
8936 * NEWS (New options): New section.
8937 (New options): Mention set/show remote trace-status-packet.
8938 * remote.c (PACKET_qTStatus): New enumeration value.
8939 (remote_get_trace_status): Skip sending qTStatus if the packet is
8940 disabled. Use packet_ok.
8941 (_initialize_remote): Register a configuration command for
8942 qTStatus packet.
8943
8944 2013-03-28 Doug Evans <dje@google.com>
8945
8946 * symfile.c (find_separate_debug_file): Add comment.
8947 (terminate_after_last_dir_separator): Tweak comment.
8948
8949 * dwarf2read.c (create_partial_symtab): Add forward decl.
8950 (create_partial_symtab): Move to be closer to other psymtab functions.
8951 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8952
8953 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8954 (compute_symtab_includes): Remove unnecessary forward declaration.
8955 (die_needs_namespace): Add comment marking group of functions for
8956 dwarf2 name computation.
8957
8958 * typeprint.c (_initialize_typeprint): Improve type help text.
8959
8960 * python/python.c (finish_python_initialization): Provide suggestion
8961 for how to tell gdb to find its python files.
8962
8963 2013-03-28 Pedro Alves <palves@redhat.com>
8964
8965 PR gdb/15294
8966
8967 * source.c (_initialize_source): Change back "set listsize" to an
8968 integer command.
8969
8970 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8971
8972 PR gdb/15275
8973 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8974
8975 2013-03-27 Pedro Alves <palves@redhat.com>
8976
8977 * top.c (history_size): Rename to ...
8978 (history_size_setshow_var): ... this. Add comment.
8979 (show_commands): Use readline's 'history_length' instead of
8980 computing the history length by calling history_get in a loop.
8981 (set_history_size_command): Error out for sizes over INT_MAX.
8982 Restore previous history size on invalid size.
8983 (init_history): If HISTSIZE is negative, leave the history size as
8984 zero. Add comments.
8985 (init_main): Adjust.
8986
8987 2013-03-27 Pedro Alves <palves@redhat.com>
8988
8989 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8990 coff_pe_read" command to "set debug coff-pe-read".
8991
8992 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8993
8994 * record.c (command_size_to_target_size): Fix size comparison.
8995 Change parameter type from pointer to integer to integer.
8996 Update all users.
8997
8998 2013-03-27 Pierre Muller <muller@sourceware.org>
8999
9000 * windows-nat.c (handle_output_debug_string): Avoid typecast
9001 from integer of different size warning.
9002
9003 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9004
9005 * windows-nat.c (handle_output_debug_string): Add empty line
9006 after local block variable definition.
9007
9008 2013-03-26 Pedro Alves <palves@redhat.com>
9009
9010 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9011 (net_open): Make 'polls' local unsigned.
9012
9013 2013-03-26 Pedro Alves <palves@redhat.com>
9014
9015 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9016 a zuinteger command instead of uinteger.
9017
9018 2013-03-26 Pedro Alves <palves@redhat.com>
9019
9020 * record-full.c (record_full_insn_num): Make it unsigned.
9021 (record_full_check_insn_num, record_full_message)
9022 (record_full_registers_change, record_full_xfer_partial): Remove
9023 record_full_insn_max_num check (it's always != 0).
9024 (record_full_info, record_full_restore): Use %u as format string.
9025 (): Use %u as format string.
9026 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9027 check (it's always != 0).
9028
9029 2013-03-26 Pedro Alves <palves@redhat.com>
9030
9031 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9032 and "set dcache size" commands zuinteger instead of uinteger.
9033
9034 2013-03-26 Pedro Alves <palves@redhat.com>
9035
9036 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9037 command zuinteger instead of uinteger.
9038
9039 2013-03-26 Pedro Alves <palves@redhat.com>
9040
9041 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9042 zuinteger instead of uinteger.
9043
9044 2013-03-26 Pedro Alves <palves@redhat.com>
9045
9046 * record.c (record_insn_history_size_setshow_var)
9047 (record_call_history_size_setshow_var): New globals.
9048 (command_size_to_target_size): New function.
9049 (cmd_record_insn_history, cmd_record_call_history): Use
9050 command_size_to_target_size instead of cast.
9051 (validate_history_size, set_record_insn_history_size)
9052 (set_record_call_history_size): New functions.
9053 (_initialize_record): Install set_record_insn_history_size and
9054 set_record_call_history_size as "set" hooks of "set record
9055 instruction-history-size" and "set record
9056 function-call-history-size".
9057
9058 2013-03-26 Pedro Alves <palves@redhat.com>
9059
9060 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9061 use with history_max_entries use. Remove FIXME note.
9062
9063 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9064
9065 * record-btrace.c (record_btrace_close): Call
9066 record_btrace_auto_disable.
9067
9068 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9069
9070 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9071
9072 2013-03-25 Doug Evans <dje@google.com>
9073
9074 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9075
9076 2013-03-25 Tom Tromey <tromey@redhat.com>
9077
9078 PR symtab/11462:
9079 * c-exp.y (exp): Add new productions for destructors after '.' and
9080 '->'.
9081 (write_destructor_name): New function.
9082
9083 2013-03-25 Tom Tromey <tromey@redhat.com>
9084
9085 PR c++/9197:
9086 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9087 value_struct_elt, not lookup_struct_elt_type.
9088 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9089 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9090 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9091
9092 2013-03-25 Yao Qi <yao@codesourcery.com>
9093
9094 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9095 instead of '_mkdir'.
9096
9097 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9098
9099 * windows-nat.c (windows_get_absolute_argv0): New function.
9100 * windows-nat.h: Add its prototype.
9101
9102 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9103 Use IS_DIR_SEPARATOR instead of looking for a character inside
9104 SLASH_STRING. Include filenames.h.
9105 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9106 relocate_gdb_directory works when passed gdb_program_name.
9107 Include windows-nat.h.
9108
9109 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9110
9111 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9112 * remote.c (trace_error): Remove the special handling of '2'.
9113 (readchar) <SERIAL_EOF>
9114 (readchar) <SERIAL_ERROR>
9115 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9116 (remote_get_trace_status): Call throw_exception if EX is
9117 TARGET_CLOSE_ERROR.
9118 * utils.c (perror_with_name): Rename to ...
9119 (throw_perror_with_name): ... here. New parameter errcode, describe it
9120 in the function comment.
9121 (perror_with_name): New function wrapper.
9122 * utils.h (enum errors): New stub declaration.
9123 (throw_perror_with_name): New declaration.
9124
9125 2013-03-22 Pedro Alves <palves@redhat.com>
9126 Yao Qi <yao@codesourcery.com>
9127 Mark Kettenis <kettenis@gnu.org>
9128
9129 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9130 Don't let the user set the value to UINT_MAX directly.
9131 <var_integer>: Don't let the user set the value to INT_MAX
9132 directly.
9133
9134 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9135
9136 * remote.c (remote_unpush_target): New function.
9137 (remote_open_1): Remove two pop_target calls, update one comment, add
9138 comment to target_preopen call. Replace pop_target call by
9139 remote_unpush_target call.
9140 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9141 pop_target calls by remote_unpush_target calls.
9142
9143 2013-03-22 Pedro Alves <palves@redhat.com>
9144
9145 * linux-nat.c (linux_child_follow_fork): Don't call
9146 linux_enable_event_reporting.
9147 (linux_handle_extended_wait): Don't call
9148 linux_enable_event_reporting.
9149
9150 2013-03-22 Pedro Alves <palves@redhat.com>
9151
9152 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9153 use it to rewrite the trampoline buffers with type gdb_byte[], and
9154 undefine the macro. Remove char* cast.
9155
9156 2013-03-21 Doug Evans <dje@google.com>
9157
9158 New commands "mt set per-command {space,time,symtab} {on,off}".
9159 * NEWS: Add entry.
9160 * event-top.c: #include "maint.h".
9161 * main.c: #include "maint.h".
9162 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9163 timeval-utils.h, maint.h, cli/cli-setshow.h.
9164 (per_command_time, per_command_space): New static globals.
9165 (per_command_symtab): New static global.
9166 (per_command_setlist, per_command_showlist): New static globals.
9167 (struct cmd_stats): Move here from utils.c.
9168 (set_per_command_time): Renamed from set_display_time in utils.c
9169 and moved here. All callers updated.
9170 (set_per_command_space): Renamed from set_display_space in utils.c
9171 and moved here. All callers updated.
9172 (count_symtabs_and_blocks): New function.
9173 (report_command_stats): Moved here from utils.c. Add support for
9174 printing symtab stats. Only print data if enabled before command
9175 executed.
9176 (make_command_stats_cleanup): Ditto.
9177 (sert_per_command_cmd, show_per_command_cmd): New functions.
9178 (_initialize_maint_cmds): Add new commands
9179 mt set per-command {space,time,symtab} {on,off}.
9180 * maint.h: New file.
9181 * top.c: #include "maint.h".
9182 * utils.c (reset_prompt_for_continue_wait_time): New function.
9183 (get_prompt_for_continue_wait_time): New function.
9184 * utils.h (reset_prompt_for_continue_wait_time): Declare
9185 (get_prompt_for_continue_wait_time): Declare.
9186 (make_command_stats_cleanup): Moved to maint.h.
9187 (set_display_time, set_display_space): Moved to maint.h and renamed
9188 to set_per_command_time, set_per_command_space.
9189 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9190 parse_binary_operation and made non-static. Don't call error,
9191 just return an error marker. All callers updated.
9192 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9193
9194 2013-03-21 Tom Tromey <tromey@redhat.com>
9195
9196 * symfile.c (alloc_section_addr_info): Update header. Don't set
9197 'num_sections' field.
9198 (build_section_addr_info_from_section_table): Set 'num_sections'.
9199 (build_section_addr_info_from_bfd): Likewise.
9200 (build_section_addr_info_from_objfile): Remove dead loop
9201 condition.
9202 (free_section_addr_info): Unconditionally call xfree.
9203 (relative_addr_info_to_section_offsets, addrs_section_sort)
9204 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9205 condition.
9206 (syms_from_objfile_1): Remove dead 'if' condition. Check
9207 'num_sections'.
9208 (add_symbol_file_command): Set 'num_sections'.
9209 * symfile-mem.c (symbol_file_add_from_memory): Set
9210 'num_sections'.
9211 * somread.c (som_symfile_offsets): Remove dead loop condition.
9212 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9213 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9214
9215 2013-03-21 Tom Tromey <tromey@redhat.com>
9216
9217 * tracepoint.h (decode_agent_options): Add 'trace_string'
9218 argument.
9219 * tracepoint.c (decode_agent_options): Add 'trace_string'
9220 argument.
9221 (validate_actionline): Update.
9222 (collect_symbol): Add 'trace_string' argument.
9223 (struct add_local_symbols_data) <trace_string>: New field.
9224 (do_collect_symbol): Update.
9225 (add_local_symbols): Add 'trace_string' argument.
9226 (encode_actions_1): Update.
9227 (trace_dump_actions): Update.
9228 * dwarf2loc.c (access_memory): Update.
9229 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9230 * ax-general.c (new_agent_expr): Update.
9231 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9232 (gen_trace_for_return_address): Add argument.
9233 (trace_kludge, trace_string_kludge): Remove.
9234 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9235 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9236 (gen_trace_for_var): Add 'trace_string' argument.
9237 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9238 (gen_printf, agent_eval_command_one): Update.
9239
9240 2013-03-21 Tom Tromey <tromey@redhat.com>
9241
9242 PR exp/15109:
9243 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9244 Handle FILENAME token.
9245
9246 2013-03-21 Tom Tromey <tromey@redhat.com>
9247
9248 * c-exp.y (YYPRINT): Define.
9249 (c_print_token): New function.
9250
9251 2013-03-21 Tom Tromey <tromey@redhat.com>
9252
9253 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9254
9255 2013-03-21 Yao Qi <yao@codesourcery.com>
9256
9257 * ctf.c: Include "gdb_stat.h".
9258 [USE_WIN32API]: New macro 'mkdir'.
9259 (ctf_start): Use permission bits macros if they are defined.
9260
9261 2013-03-20 Keith Seitz <keiths@redhat.com>
9262
9263 * breakpoint.h (struct breakpoint): Add comment to
9264 extra_string indicating that this member is mallod'd.
9265 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9266
9267 2013-03-20 Pedro Alves <palves@redhat.com>
9268
9269 PR gdb/15289
9270
9271 * cli/cli-setshow.c (do_set_command)
9272 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9273 the result of parsing the command argument. Throw error if the
9274 value is greater than UINT_MAX. Print the invalid value with
9275 plongest.
9276 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9277 result of parsing the command argument. Throw error if the value
9278 is greater than INT_MAX, not greater or equal. Also throw error
9279 if the value is less than INT_MIN. Print the invalid value with
9280 plongest.
9281 <var_zuinteger_unlimited>: Throw error if the value is greater
9282 than INT_MAX, not greater or equal.
9283 (do_show_command) <var_integer, var_zinteger,
9284 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9285
9286 2013-03-20 Tom Tromey <tromey@redhat.com>
9287
9288 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9289 if possible.
9290 * dwarf2read.c (read_func_scope): Remove old FIXME.
9291 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9292 not LOC_COMPUTED.
9293 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9294 Unconditionally call via computed ops, if possible.
9295 * printcmd.c (address_info): Unconditionally call via computed ops,
9296 if possible.
9297 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9298 if possible.
9299 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9300 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9301 if possible.
9302
9303 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9304 Tom Tromey <tromey@redhat.com>
9305
9306 PR symtab/8421:
9307 * coffread.c (coff_register_index): New global.
9308 (process_coff_symbol, coff_read_enum_type): Set
9309 SYMBOL_ACLASS_INDEX.
9310 (_initialize_coffread): Initialize new global.
9311 * dwarf2loc.c (locexpr_find_frame_base_location)
9312 (dwarf2_block_frame_base_locexpr_funcs)
9313 (loclist_find_frame_base_location)
9314 (dwarf2_block_frame_base_loclist_funcs): New.
9315 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9316 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9317 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9318 (dwarf2_block_frame_base_loclist_funcs): New.
9319 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9320 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9321 globals.
9322 (read_func_scope): Update.
9323 (fixup_go_packaging, mark_common_block_symbol_computed)
9324 (var_decode_location, new_symbol_full, dwarf2_const_value):
9325 Set SYMBOL_ACLASS_INDEX.
9326 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9327 (_initialize_dwarf2_read): Initialize new globals.
9328 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9329 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9330 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9331 globals.
9332 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9333 (_initialize_mdebugread): Initialize new globals.
9334 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9335 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9336 (stab_register_index, stab_regparm_index): New globals.
9337 (define_symbol, read_enum_type, common_block_end): Set
9338 SYMBOL_ACLASS_INDEX.
9339 (_initialize_stabsread): Initialize new globals.
9340 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9341 globals.
9342 (MAX_SYMBOL_IMPLS): New define.
9343 (register_symbol_computed_impl, register_symbol_block_impl)
9344 (register_symbol_register_impl)
9345 (initialize_ordinary_address_classes): New functions.
9346 (_initialize_symtab): Call initialize_ordinary_address_classes.
9347 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9348 (struct symbol_impl): New.
9349 (SYMBOL_ACLASS_BITS): New define.
9350 (struct symbol) <aclass, ops>: Remove fields.
9351 <aclass_index>: New field.
9352 (symbol_impls): Declare.
9353 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9354 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9355 (register_symbol_computed_impl, register_symbol_block_impl)
9356 (register_symbol_register_impl): Declare.
9357 (struct symbol_computed_ops): Add location_has_loclist.
9358 (struct symbol_block_ops): New.
9359 (SYMBOL_BLOCK_OPS): New.
9360 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9361
9362 2013-03-20 Tom Tromey <tromey@redhat.com>
9363
9364 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9365 (print_partial_symbols, recursively_search_psymtabs): Use
9366 PSYMBOL_CLASS.
9367
9368 2013-03-20 Pierre Muller <muller@sourceware.org>
9369
9370 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9371 addtion, subtraction, multiplication and division binary operator.
9372
9373 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9374
9375 Code cleanup.
9376 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9377 * bsd-kvm.c (bsd_kvm_close): Likewise.
9378 * bsd-uthread.c (bsd_uthread_close): Likewise.
9379 * corelow.c (core_close): Likewise.
9380 (core_close_cleanup): Remove parameter quitting from a caller.
9381 * event-top.c (async_disconnect): Likewise.
9382 * exec.c (exec_close_1): Remove parameter quitting.
9383 * go32-nat.c (go32_close): Likewise.
9384 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9385 parameter quitting from a caller.
9386 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9387 variable.
9388 (mips_linux_close): Remove parameter quitting. Remove parameter
9389 quitting from a caller.
9390 * monitor.c (monitor_close): Remove parameter quitting.
9391 * monitor.h (monitor_close): Likewise.
9392 * record-btrace.c (record_btrace_close): Likewise.
9393 * record-full.c (record_full_close): Likewise.
9394 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9395 it also from fprintf_unfiltered.
9396 * remote-mips.c (mips_close): Remove parameter quitting.
9397 (mips_detach): Remove parameter quitting from a caller.
9398 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9399 (gdbsim_close): Remove duplicate function comment. Remove parameter
9400 quitting and remove it also from printf_filtered.
9401 * remote.c (remote_close): Remove parameter quitting.
9402 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9403 * target.c (update_current_target): Remove parameter int from to_close
9404 de_fault.
9405 (push_target, unpush_target, pop_target): Remove parameter quitting from
9406 a caller.
9407 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9408 Remove parameter quitting from a caller.
9409 (target_preopen): Remove parameter quitting from a caller.
9410 (target_close): Remove parameter quitting. Remove parameter quitting
9411 from a caller two times. Remove parameter quitting also from
9412 fprintf_unfiltered.
9413 * target.h (struct target_ops): Remove parameter quitting and as int
9414 from fields to_xclose and to_close.
9415 (extern struct target_ops current_target):
9416 (target_close, pop_all_targets): Remove parameter quitting. Update the
9417 comment.
9418 (pop_all_targets_above): Remove parameter quitting.
9419 * top.c (quit_target): Remove parameter quitting from a caller.
9420 * tracepoint.c (tfile_close): Remove parameter quitting.
9421 * windows-nat.c (windows_close): Remove parameter quitting.
9422
9423 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9424
9425 * windows-nat.c (handle_output_debug_string): Replace call
9426 to string_to_core_addr with call to strtoull.
9427
9428 2013-03-20 Yao Qi <yao@codesourcery.com>
9429
9430 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9431 and write it to CTF metadata.
9432
9433 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9434
9435 * windows-nat.c (handle_output_debug_string): Change type of n to
9436 SIZE_T to avoid crash on 64 bit systems.
9437
9438 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9439
9440 * python/python-internal.h (HAVE_SNPRINTF)
9441 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9442 about redefinition of snprintf by pyerrors.h.
9443
9444 2013-03-15 Steve Ellcey <sellcey@mips.com>
9445
9446 * remote-sim.c (sim_command_completer): Make char arguments const.
9447
9448 2013-03-15 Tom Tromey <tromey@redhat.com>
9449
9450 PR c++/15116:
9451 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9452
9453 2013-03-14 Tom Tromey <tromey@redhat.com>
9454
9455 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9456 New fields.
9457 (get_file_crc): Move from symfile.c.
9458 (gdb_bfd_crc): New function.
9459 * gdb_bfd.h (gdb_bfd_crc): Declare.
9460 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9461 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9462 (separate_debug_file_exists): Use gdb_bfd_crc.
9463
9464 2013-03-14 Tom Tromey <tromey@redhat.com>
9465
9466 * symfile.c (get_debug_link_info): Remove.
9467 (find_separate_debug_file_by_debuglink): Use
9468 bfd_get_debug_link_info.
9469
9470 2013-03-14 Tom Tromey <tromey@redhat.com>
9471
9472 * symtab.c (error_in_psymtab_expansion): New function.
9473 (lookup_symbol_aux_quick)
9474 (basic_lookup_transparent_type_quick): Remove "last resort"
9475 code. Use error_in_psymtab_expansion.
9476
9477 2013-03-14 Doug Evans <dje@google.com>
9478 Jan Kratochvil <jan.kratochvil@redhat.com>
9479
9480 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9481 any successful compare_filenames_for_search or FILENAME_CMP.
9482 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9483 * symtab.c (iterate_over_some_symtabs): Likewise.
9484
9485 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9486
9487 * source.c (print_source_lines_base): Make a local copy of
9488 symtab_to_fullname.
9489
9490 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9491 Jan Kratochvil <jan.kratochvil@redhat.com>
9492
9493 * source.c (print_source_lines_base): Suppress "file" for TUI.
9494
9495 2013-03-14 Keith Seitz <keiths@redhat.com>
9496 Alan Matsuoka <alanm@redhat.com>
9497
9498 PR c++/15203
9499 PR c++/15210
9500 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9501 TYPE_CODE_METHOD.
9502 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9503 symbols.
9504
9505 2013-03-14 Yao Qi <yao@codesourcery.com>
9506
9507 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9508 status to tfile if trace is stopped by command 'tstop'.
9509
9510 2013-03-14 Yao Qi <yao@codesourcery.com>
9511
9512 * tracepoint.c (tfile_write_status): Write trace notes and user
9513 name into tfile if they are not NULL.
9514
9515 2013-03-14 Hui Zhu <hui@codesourcery.com>
9516 Yao Qi <yao@codesourcery.com>
9517
9518 * Makefile.in (REMOTE_OBS): Add ctf.o.
9519 (SFILES): Add ctf.c.
9520 (HFILES_NO_SRCDIR): Add ctf.h.
9521 * ctf.c, ctf.h: New files.
9522 * tracepoint.c: Include 'ctf.h'.
9523 (collect_pseudocommand): Remove static.
9524 (trace_save_command): Parse option "-ctf".
9525 Produce different trace file writers per option.
9526 Adjust output message.
9527 (trace_save_tfile, trace_save_ctf): New.
9528 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9529 * mi/mi-main.c: Include 'ctf.h'.
9530 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9531 trace_save_tfile or trace_save_ctf.
9532 * NEWS: Mention these changes.
9533
9534 2013-03-14 Yao Qi <yao@codesourcery.com>
9535
9536 * tracepoint.c (trace_file_writer_xfree): New.
9537 (struct tfile_writer_data): New.
9538 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9539 (tfile_write_header, tfile_write_regblock_type): New.
9540 (tfile_write_status, tfile_write_uploaded_tsv): New.
9541 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9542 (tfile_write_raw_data, (tfile_end): New.
9543 (tfile_write_ops): New global variable.
9544 (TRACE_WRITE_R_BLOCK): New macro.
9545 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9546 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9547 (TRACE_WRITE_V_BLOCK): New macro.
9548 (trace_save): Add extra one parameter WRITER. Make it static.
9549 Use WRITER to writer trace.
9550 (tfile_trace_file_writer_new): New.
9551 (trace_save_command): Caller update.
9552 (trace_save_tfile): Write trace data in TFILE format.
9553 * tracepoint.h (struct trace_frame_write_ops): New.
9554 (struct trace_file_write_ops): New.
9555 (struct trace_file_writer): New.
9556 (trace_save): Remove its declaration.
9557 (trace_save_tfile): Declare it.
9558 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9559 instead of trace_save.
9560
9561 2013-03-13 Pedro Alves <palves@redhat.com>
9562
9563 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9564
9565 2013-03-13 Pedro Alves <palves@redhat.com>
9566
9567 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9568 commented out code.
9569 * demangle.c (current_demangling_style_string): Make it const.
9570 (set_demangling_command): Assert the demangling style is known.
9571 Remove all handling of unknown styles. Set
9572 'current_demangling_style_string' to an element of the
9573 demangling_style_names array.
9574 (set_demangling_style): Delete.
9575 (_initialize_demangler): Set current_demangling_style_string to the
9576 element of the demangling_style_names array that corresponds to
9577 the default demangling style. Remove FIXME note. Don't call
9578 set_demangling_style.
9579 * gdb-demangle.h (set_demangling_style): Remove declaration.
9580
9581 2013-03-13 Pedro Alves <palves@redhat.com>
9582
9583 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9584 fields const.
9585 (ada_make_symbol_completion_list): Make "text0" parameter const.
9586 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9587 * breakpoint.c (condition_completer): Make "text" and "word"
9588 parameters const. Adjust.
9589 (check_tracepoint_command): Adjust to validate_actionline
9590 prototype change.
9591 (catch_syscall_completer): Make "text" and "word" parameters
9592 const.
9593 * cli/cli-cmds.c (show_user): Make "comname" local const.
9594 (valid_command_p): Make "command" parameter const.
9595 (alias_command): Make "alias_prefix" and "command_prefix" locals
9596 const.
9597 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9598 (add_alias_cmd): Make "name" and "oldname" parameters const.
9599 Adjust. No longer make copy of OLDNAME.
9600 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9601 (add_setshow_cmd_full, add_setshow_enum_cmd)
9602 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9603 (add_setshow_filename_cmd, add_setshow_string_cmd)
9604 (add_setshow_string_noescape_cmd)
9605 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9606 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9607 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9608 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9609 Make "name" parameter const.
9610 (help_cmd): Rename "command" parameter to "arg". New const local
9611 "command".
9612 (find_cmd): Make "command" parameter const.
9613 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9614 deprecated_cmd_warning prototype change.
9615 (undef_cmd_error): Make "cmdtype" parameter const.
9616 (lookup_cmd): Make "line" parameter const.
9617 (deprecated_cmd_warning): Change type of "text" parameter to
9618 pointer to const char, from pointer to pointer to char. Adjust.
9619 (lookup_cmd_composition): Make "text" parameter const.
9620 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9621 parameters const.
9622 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9623 const.
9624 * cli/cli-script.c (validate_comname): Make "tem" local const.
9625 (define_command): New const local "tem_c". Use it in calls to
9626 lookup_cmd.
9627 (document_command): Make "tem" and "comfull" locals const.
9628 (show_user_1): Make "prefix" and "name" parameters const.
9629 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9630 const.
9631 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9632 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9633 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9634 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9635 (complete_on_enum, add_setshow_enum_cmd)
9636 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9637 (add_setshow_filename_cmd, add_setshow_string_cmd)
9638 (add_setshow_string_noescape_cmd)
9639 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9640 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9641 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9642 Change prototypes, constifying strings.
9643 * completer.c (noop_completer, filename_completer): Make "text"
9644 and "prefix" parameters const.
9645 (location_completer, expression_completer)
9646 (complete_line_internal): Make "text" and "prefix" parameters
9647 const and adjust.
9648 (command_completer, signal_completer): Make "text" and "prefix"
9649 parameters const.
9650 * completer.h (noop_completer, filename_completer)
9651 (expression_completer, location_completer, command_completer)
9652 (signal_completer): Change prototypes.
9653 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9654 parameters const.
9655 * cp-abi.c (cp_abi_completer): Likewise.
9656 * expression.h (parse_expression_for_completion): Change
9657 prototype.
9658 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9659 parameters const.
9660 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9661 * infrun.c (handle_completer): Make "text" and "word" parameters
9662 const.
9663 * interps.c (interpreter_completer): Make "text" and "word"
9664 parameters const.
9665 * language.h (struct language_defn)
9666 <la_make_symbol_completion_list>: Make "text" and "word"
9667 parameters const.
9668 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9669 (parse_exp_in_context): Rename to ...
9670 (parse_exp_in_context_1): ... this.
9671 (parse_exp_in_context): Reimplement, with const hack from
9672 parse_exp_1.
9673 (parse_expression_for_completion): Make "string" parameter const.
9674 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9675 to pointer to const char. Adjust.
9676 (print_command_1): Make "exp" parameter const.
9677 (output_command): Rename to ...
9678 (output_command_const): ... this. Make "exp" parameter const.
9679 (output_command): Reimplement.
9680 (x_command): Adjust.
9681 (display_command): Rename "exp" parameter to "arg". New "exp"
9682 local, const version of "arg".
9683 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9684 "cmd_name" local const.
9685 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9686 call.
9687 (cmdpy_completer): Make "text" and "word" parameters const.
9688 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9689 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9690 const.
9691 * remote.c (_initialize_remote): Make "cmd_name" local const.
9692 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9693 parameters const. Adjust.
9694 (completion_list_add_fields): Make "sym_text", "text" and "word"
9695 parameters const.
9696 (struct add_name_data) <sym_text, text, word>: Make fields const.
9697 (default_make_symbol_completion_list_break_on): Make "text" and
9698 "word" parameters const. Adjust locals.
9699 (default_make_symbol_completion_list)
9700 (make_symbol_completion_list, make_symbol_completion_type)
9701 (make_symbol_completion_list_fn): Make "text" and "word"
9702 parameters const.
9703 (make_file_symbol_completion_list): Make "text", "word" and
9704 "srcfile" parameters const. Adjust locals.
9705 (add_filename_to_list): Make "text" and "word" parameters const.
9706 (struct add_partial_filename_data) <text, word>: Make fields
9707 const.
9708 (make_source_files_completion_list): Make "text" and "word"
9709 parameters const.
9710 * symtab.h (default_make_symbol_completion_list_break_on)
9711 (default_make_symbol_completion_list, make_symbol_completion_list)
9712 (make_symbol_completion_type enum type_code)
9713 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9714 (make_source_files_completion_list): Change prototype.
9715 * top.c (execute_command): Adjust to pass pointer to pointer to
9716 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9717 change.
9718 (set_verbose): Make "cmdname" local const.
9719 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9720 and adjust.
9721 (validate_actionline): Make "line" parameter a pointer to const
9722 char, and adjust.
9723 (encode_actions_1): Make "action_exp" local const, and adjust.
9724 (encode_actions): Adjust.
9725 (replace_comma): Delete.
9726 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9727 const, and adjust. Don't frob the action string while splitting
9728 it at commas. Instead, make a copy of each split substring in
9729 turn.
9730 (trace_dump_command): Adjust to validate_actionline prototype
9731 change.
9732 * tracepoint.h (decode_agent_options, decode_agent_options)
9733 (encode_actions, validate_actionline): Change prototypes.
9734 * valprint.h (output_command): Delete declaration.
9735 (output_command_const): Declare.
9736 * value.c (function_destroyer): Cast const away in xfree call.
9737
9738 2013-03-13 Pedro Alves <palves@redhat.com>
9739
9740 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9741 rather than casting 'const char * const *' to 'const char **'.
9742 * ada-lex.l (processInt): Make "trailer" local const. Remove
9743 'const char **' cast.
9744 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9745 locals, and use those as strtol output pointer, instead than doing
9746 invalid casts to from 'const char **' to 'char **'.
9747 (_initialize_demangle): Remove cast.
9748 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9749 locals, and use those as strtol output pointer, instead than doing
9750 invalid casts to from 'const char **' to 'char **'.
9751 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9752 casts.
9753 * stap-probe.c (stap_parse_register_operand)
9754 (stap_parse_single_operand): Likewise.
9755
9756 2013-03-13 Yao Qi <yao@codesourcery.com>
9757
9758 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9759 the last matched 'V' blcok in trace frame.
9760
9761 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9762
9763 * NEWS: Create a new section for the next release branch.
9764 Rename the section of the current branch, now that it has
9765 been cut.
9766
9767 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9768
9769 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9770 * version.in: Bump version to 7.6.50.20130312-cvs.
9771
9772 2013-03-12 Keith Seitz <keiths@redhat.com>
9773
9774 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9775 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9776 Remove temporary copy of input string.
9777 (mi_execute_command_wrapper): Make "cmd" const.
9778 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9779 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9780 Use const strings.
9781 (mi_parse): Make "cmd" const.
9782 Use const strings.
9783 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9784
9785 2013-03-12 Keith Seitz <keiths@redhat.com>
9786
9787 * ada-lang.c (ada_read_renaming_var_value): Pass const
9788 pointer to expression string to parse_exp_1.
9789 (create_excep_cond_exprs): Likewise.
9790 * ax-gdb.c (agent_eval_command_one): Likewise.
9791 (maint_agent_printf_command): Likewise.
9792 Constify much of the string handling/parsing.
9793 * breakpoint.c (set_breakpoint_condition): Pass const
9794 pointer to expression string to parse_exp_1.
9795 (update_watchpoint): Likewise.
9796 (parse_cmd_to_aexpr): Constify string handling.
9797 Pass const pointer to parse_exp_1.
9798 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9799 (find_condition_and_thread): Likewise.
9800 Make TOK const.
9801 (watch_command_1): Make "arg" const.
9802 Constify string handling.
9803 Copy the expression string instead of changing the input
9804 string.
9805 (update_breakpoint_location): Pass const pointer to
9806 parse_exp_1.
9807 * eval.c (parse_and_eval_address): Make "exp" const.
9808 (parse_to_comma_and_eval): Make "expp" const.
9809 (parse_and_eval): Make "exp" const.
9810 * expression.h (parse_expression): Make argument const.
9811 (parse_exp_1): Make first argument const.
9812 * findcmd.c (parse_find_args): Treat "args" as const.
9813 * linespec.c (parse_linespec): Pass const pointer to
9814 linespec_expression_to_pc.
9815 (linespec_expression_to_pc): Make "exp_ptr" const.
9816 * parse.c (parse_exp_1): Make "stringptr" const.
9817 Make a copy of the expression to pass to parse_exp_in_context until
9818 this whole interface can be constified.
9819 (parse_expression): Make "string" const.
9820 * printcmd.c (ui_printf): Treat "arg" as const.
9821 Handle const strings.
9822 * tracepoint.c (validate_actionline): Pass const pointer to
9823 all calls to parse_exp_1.
9824 (encode_actions_1): Likewise.
9825 * value.h (parse_to_comma_and_eval): Make argument const.
9826 (parse_and_eval_address): Likewise.
9827 (parse_and_eval): Likewise.
9828 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9829 (varobj_set_value): Likewise.
9830 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9831 constify string handling.
9832 Pass const pointers to parse_and_eval_address and
9833 parse_to_comman_and_eval.
9834 * cli/cli-utils.c (skip_to_space): Rename to ...
9835 (skip_to_space_const): ... this. Handle const strings.
9836 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9837 skip_to_space_const.
9838 (skip_to_space_const): Declare.
9839 * common/format.c (parse_format_string): Make "arg" const.
9840 Handle const strings.
9841 * common/format.h (parse_format_string): Make "arg" const.
9842 * gdbserver/ax.c (ax_printf): Make "format" const.
9843 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9844 of the expression string.
9845
9846 2013-03-12 Hui Zhu <hui@codesourcery.com>
9847
9848 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9849
9850 2013-03-12 Yao Qi <yao@codesourcery.com>
9851 Hui Zhu <hui@codesourcery.com>
9852
9853 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9854 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9855 DW_OP_deref_size.
9856
9857 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9858
9859 * ada-lex.l (rules): Only recognize 'thread' as a
9860 delimiter when followed by numerals, as for c-exp.y.
9861 Use new rewind_to_char function to rewind the input for
9862 expression-delimiting tokens.
9863 (rewind_to_char): New function.
9864
9865 2013-03-11 Pedro Alves <palves@redhat.com>
9866 Jan Kratochvil <jan.kratochvil@redhat.com>
9867
9868 * configure: Regenerate.
9869 * configure.ac (check dynamic export flag): Link python test with
9870 $PYTHON_LIBS.
9871
9872 2013-03-11 Doug Evans <dje@google.com>
9873 Keith Seitz <keiths@redhat.com>
9874
9875 * linespec.c (find_linespec_symbols): Call find_function_symbols
9876 first, and then call lookup_prefix_sym/find_method.
9877
9878 2013-03-11 Pedro Alves <palves@redhat.com>
9879
9880 * charset.c (convert_between_encodings): Don't cast between
9881 different pointer to pointer types. Instead, make the 'inp' local
9882 be of the type iconv expects.
9883 (wchar_iterate): Don't cast between different pointer to pointer
9884 types. Instead, use new pointer local of the type iconv expects.
9885 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9886 Add new local of type char pointer, and use it to get a
9887 char/string view of the byte buffer, instead of casting between
9888 pointer to pointer types.
9889
9890 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9891
9892 * remote.c (remote_set_trace_buffer_size): Move != operator
9893 to the start of next line to fix an ARI warning.
9894
9895 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9896
9897 * NEWS: Add record changes.
9898
9899 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9900
9901 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9902 the instruction history disassembly.
9903 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9904 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9905
9906 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9907
9908 * Makefile.in (SFILES): Add record-btrace.c
9909 (COMMON_OBS): Add record-btrace.o
9910 * record-btrace.c: New.
9911 * objfiles.c: Include btrace.h.
9912 (free_objfile): call btrace_free_objfile.
9913
9914 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9915
9916 * target.c (target_call_history, target_call_history_from,
9917 target_call_history_range): New.
9918 * target.h (target_ops) <to_call_history, to_call_history_from,
9919 to_call_history_range>: New fields.
9920 (target_call_history, target_call_history_from,
9921 target_call_history_range): New declaration.
9922 * record.c (get_call_history_modifiers, cmd_record_call_history,
9923 record_call_history_size): New.
9924 (_initialize_record): Add the "record function-call-history" command.
9925 Add "set/show record function-call-history-size" commands.
9926 * record.h (record_print_flag): New.
9927
9928 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9929
9930 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9931 to_insn_history_range>: New fields.
9932 (target_insn_history): New.
9933 (target_insn_history_from): New.
9934 (target_insn_history_range): New.
9935 * target.c (target_insn_history): New.
9936 (target_insn_history_from): New.
9937 (target_insn_history_range): New.
9938 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9939 (record_insn_history_size): New.
9940 (get_insn_number): New.
9941 (get_context_size): New.
9942 (no_chunk): New.
9943 (get_insn_history_modifiers): New.
9944 (cmd_record_insn_history): New.
9945 (_initialize_record): Add "set/show record instruction-history-size"
9946 command. Add "record instruction-history" command.
9947
9948 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9949
9950 * record.h (record_disconnect): New.
9951 (record_detach): New.
9952 (record_mourn_inferior): New.
9953 (record_kill): New.
9954 * record-full.c (record_disconnect, record_detach,
9955 record_mourn_inferior, record_kill): Move to...
9956 * record.c: ...here.
9957 (DEBUG): New.
9958 (record_stop): New.
9959 (record_unpush): New.
9960 (cmd_record_stop): Call record_stop. Replace unpush_target
9961 call with record_unpush call.
9962 (record_disconnect, record_detach): Assert that the target
9963 is of record stratum. Call record_unpush, record_stop, and
9964 DEBUG.
9965 (record_mourn_inferior, record_kill): Assert that the target
9966 is of record stratum. Call record_unpush and DEBUG.
9967
9968 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9969
9970 * record-full.h, record-full.c (record_memory_query): Rename
9971 to ...
9972 (record_full_memory_query): ...this. Update all users.
9973 (record_arch_list_add_reg): Rename to ...
9974 (record_full_arch_list_add_reg): ...this. Update all users.
9975 (record_arch_list_add_mem): Rename to ...
9976 (record_full_arch_list_add_mem): ...this. Update all users.
9977 (record_arch_list_add_end): Rename to ...
9978 (record_full_arch_list_add_end): ...this. Update all users.
9979 (record_gdb_operation_disable_set): Rename to ...
9980 (record_full_gdb_operation_disable_set): ...this.
9981 Update all users.
9982
9983 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9984
9985 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9986 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9987 (RECORD_IS_REPLAY): Renamed to ...
9988 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9989 (RECORD_FILE_MAGIC): Renamed to ...
9990 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9991 (record_mem_entry): Renamed to ...
9992 (record_full_mem_entry): ... this. Updated all users.
9993 (record_reg_entry): Renamed to ...
9994 (record_full_reg_entry): ... this. Updated all users.
9995 (record_end_entry): Renamed to ...
9996 (record_full_end_entry): ... this. Updated all users.
9997 (record_type) <record_end, record_reg, record_mem>: Renamed
9998 to ...
9999 (record_full_type) <record_full_end, record_full_reg,
10000 record_full_mem>: ... this. Updated all users.
10001 (record_entry): Renamed to ...
10002 (record_full_entry): ... this. Updated all users.
10003 (record_core_buf_entry): Renamed to ...
10004 (record_full_core_buf_entry): ... this. Updated all users.
10005 (record_core_regbuf): Renamed to ...
10006 (record_full_core_regbuf): ... this. Updated all users.
10007 (record_core_start): Renamed to ...
10008 (record_full_core_start): ... this. Updated all users.
10009 (record_core_end): Renamed to ...
10010 (record_full_core_end): ... this. Updated all users.
10011 (record_core_buf_list): Renamed to ...
10012 (record_full_core_buf_list): ... this. Updated all users.
10013 (record_first): Renamed to ...
10014 (record_full_first): ... this. Updated all users.
10015 (record_list): Renamed to ...
10016 (record_full_list): ... this. Updated all users.
10017 (record_arch_list_head): Renamed to ...
10018 (record_full_arch_list_head): ... this. Updated all users.
10019 (record_arch_list_tail): Renamed to ...
10020 (record_full_arch_list_tail): ... this. Updated all users.
10021 (record_stop_at_limit): Renamed to ...
10022 (record_full_stop_at_limit): ... this. Updated all users.
10023 (record_insn_max_num): Renamed to ...
10024 (record_full_insn_max_num): ... this. Updated all users.
10025 (record_insn_num): Renamed to ...
10026 (record_full_insn_num): ... this. Updated all users.
10027 (record_insn_count): Renamed to ...
10028 (record_full_insn_count): ... this. Updated all users.
10029 (record_ops): Renamed to ...
10030 (record_full_ops): ... this. Updated all users.
10031 (record_core_ops): Renamed to ...
10032 (record_full_core_ops): ... this. Updated all users.
10033 (set_record_cmdlist): Renamed to ...
10034 (set_record_full_cmdlist): ... this. Updated all users.
10035 (show_record_cmdlist): Renamed to ...
10036 (show_record_full_cmdlist): ... this. Updated all users.
10037 (record_cmdlist): Renamed to ...
10038 (record_full_cmdlist): ... this. Updated all users.
10039 (record_beneath_to_resume_ops): Renamed to ...
10040 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10041 (record_beneath_to_resume): Renamed to ...
10042 (record_full_beneath_to_resume): ... this. Updated all users.
10043 (record_beneath_to_wait_ops): Renamed to ...
10044 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10045 (record_beneath_to_wait): Renamed to ...
10046 (record_full_beneath_to_wait): ... this. Updated all users.
10047 (record_beneath_to_store_registers_ops): Renamed to ...
10048 (record_full_beneath_to_store_registers_ops): ... this.
10049 Updated all users.
10050 (record_beneath_to_store_registers): Renamed to ...
10051 (record_full_beneath_to_store_registers): ... this.
10052 Updated all users.
10053 (record_beneath_to_xfer_partial_ops): Renamed to ...
10054 (record_full_beneath_to_xfer_partial_ops): ... this.
10055 Updated all users.
10056 (record_beneath_to_xfer_partial): Renamed to ...
10057 (record_full_beneath_to_xfer_partial): ... this.
10058 Updated all users.
10059 (record_beneath_to_insert_breakpoint): Renamed to ...
10060 (record_full_beneath_to_insert_breakpoint): ... this.
10061 Updated all users.
10062 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10063 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10064 Updated all users.
10065 (record_beneath_to_stopped_data_address): Renamed to ...
10066 (record_full_beneath_to_stopped_data_address): ... this.
10067 Updated all users.
10068 (record_beneath_to_async): Renamed to ...
10069 (record_full_beneath_to_async): ... this. Updated all users.
10070 (record_goto_insn): Renamed to ...
10071 (record_full_goto_insn): ... this. Updated all users.
10072 (record_save): Renamed to ...
10073 (record_full_save): ... this. Updated all users.
10074 (record_reg_alloc): Renamed to ...
10075 (record_full_reg_alloc): ... this. Updated all users.
10076 (record_reg_release): Renamed to ...
10077 (record_full_reg_release): ... this. Updated all users.
10078 (record_mem_alloc): Renamed to ...
10079 (record_full_mem_alloc): ... this. Updated all users.
10080 (record_mem_release): Renamed to ...
10081 (record_full_mem_release): ... this. Updated all users.
10082 (record_end_alloc): Renamed to ...
10083 (record_full_end_alloc): ... this. Updated all users.
10084 (record_end_release): Renamed to ...
10085 (record_full_end_release): ... this. Updated all users.
10086 (record_entry_release): Renamed to ...
10087 (record_full_entry_release): ... this. Updated all users.
10088 (record_list_release): Renamed to ...
10089 (record_full_list_release): ... this. Updated all users.
10090 (record_list_release_following): Renamed to ...
10091 (record_full_list_release_following): ... this.
10092 Updated all users.
10093 (record_list_release_first): Renamed to ...
10094 (record_full_list_release_first): ... this. Updated all users.
10095 (record_arch_list_add): Renamed to ...
10096 (record_full_arch_list_add): ... this. Updated all users.
10097 (record_get_loc): Renamed to ...
10098 (record_full_get_loc): ... this. Updated all users.
10099 (record_check_insn_num): Renamed to ...
10100 (record_full_check_insn_num): ... this. Updated all users.
10101 (record_arch_list_cleanups): Renamed to ...
10102 (record_full_arch_list_cleanups): ... this. Updated all users.
10103 (record_message): Renamed to ...
10104 (record_full_message): ... this. Updated all users.
10105 (record_message_wrapper): Renamed to ...
10106 (record_full_message_wrapper): ... this. Updated all users.
10107 (record_message_wrapper_safe): Renamed to ...
10108 (record_full_message_wrapper_safe): ... this. Updated all users.
10109 (record_gdb_operation_disable): Renamed to ...
10110 (record_full_gdb_operation_disable): ... this. Updated all users.
10111 (record_hw_watchpoint): Renamed to ...
10112 (record_full_hw_watchpoint): ... this. Updated all users.
10113 (record_exec_insn): Renamed to ...
10114 (record_full_exec_insn): ... this. Updated all users.
10115 (record_restore): Renamed to ...
10116 (record_full_restore): ... this. Updated all users.
10117 (record_async_inferior_event_token): Renamed to ...
10118 (record_full_async_inferior_event_token): ... this.
10119 Updated all users.
10120 (record_async_inferior_event_handler): Renamed to ...
10121 (record_full_async_inferior_event_handler): ... this.
10122 Updated all users.
10123 (record_core_open_1): Renamed to ...
10124 (record_full_core_open_1): ... this. Updated all users.
10125 (record_open_1): Renamed to ...
10126 (record_full_open_1): ... this. Updated all users.
10127 (record_open): Renamed to ...
10128 (record_full_open): ... this. Updated all users.
10129 (record_close): Renamed to ...
10130 (record_full_close): ... this. Updated all users.
10131 (record_resume_step): Renamed to ...
10132 (record_full_resume_step): ... this. Updated all users.
10133 (record_resumed): Renamed to ...
10134 (record_full_resumed): ... this. Updated all users.
10135 (record_execution_dir): Renamed to ...
10136 (record_full_execution_dir): ... this. Updated all users.
10137 (record_resume): Renamed to ...
10138 (record_full_resume): ... this. Updated all users.
10139 (record_get_sig): Renamed to ...
10140 (record_full_get_sig): ... this. Updated all users.
10141 (record_sig_handler): Renamed to ...
10142 (record_full_sig_handler): ... this. Updated all users.
10143 (record_wait_cleanups): Renamed to ...
10144 (record_full_wait_cleanups): ... this. Updated all users.
10145 (record_wait_1): Renamed to ...
10146 (record_full_wait_1): ... this. Updated all users.
10147 (record_wait): Renamed to ...
10148 (record_full_wait): ... this. Updated all users.
10149 (record_stopped_by_watchpoint): Renamed to ...
10150 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10151 (record_disconnect): Renamed to ...
10152 (record_full_disconnect): ... this. Updated all users.
10153 (record_detach): Renamed to ...
10154 (record_full_detach): ... this. Updated all users.
10155 (record_mourn_inferior): Renamed to ...
10156 (record_full_mourn_inferior): ... this. Updated all users.
10157 (record_kill): Renamed to ...
10158 (record_full_kill): ... this. Updated all users.
10159 (record_stopped_data_address): Renamed to ...
10160 (record_full_stopped_data_address): ... this. Updated all users.
10161 (record_registers_change): Renamed to ...
10162 (record_full_registers_change): ... this. Updated all users.
10163 (record_store_registers): Renamed to ...
10164 (record_full_store_registers): ... this. Updated all users.
10165 (record_xfer_partial): Renamed to ...
10166 (record_full_xfer_partial): ... this. Updated all users.
10167 (record_breakpoint): Renamed to ...
10168 (record_full_breakpoint): ... this. Updated all users.
10169 (record_breakpoint_p): Renamed to ...
10170 (record_full_breakpoint_p): ... this. Updated all users.
10171 (record_breakpoints): Renamed to ...
10172 (record_full_breakpoints): ... this. Updated all users.
10173 (record_sync_record_breakpoints): Renamed to ...
10174 (record_full_sync_record_breakpoints): ... this.
10175 Updated all users.
10176 (record_init_record_breakpoints): Renamed to ...
10177 (record_full_init_record_breakpoints): ... this.
10178 Updated all users.
10179 (record_insert_breakpoint): Renamed to ...
10180 (record_full_insert_breakpoint): ... this. Updated all users.
10181 (record_remove_breakpoint): Renamed to ...
10182 (record_full_remove_breakpoint): ... this. Updated all users.
10183 (record_can_execute_reverse): Renamed to ...
10184 (record_full_can_execute_reverse): ... this. Updated all users.
10185 (record_get_bookmark): Renamed to ...
10186 (record_full_get_bookmark): ... this. Updated all users.
10187 (record_goto_bookmark): Renamed to ...
10188 (record_full_goto_bookmark): ... this. Updated all users.
10189 (record_async): Renamed to ...
10190 (record_full_async): ... this. Updated all users.
10191 (record_can_async_p): Renamed to ...
10192 (record_full_can_async_p): ... this. Updated all users.
10193 (record_is_async_p): Renamed to ...
10194 (record_full_is_async_p): ... this. Updated all users.
10195 (record_execution_direction): Renamed to ...
10196 (record_full_execution_direction): ... this. Updated all users.
10197 (record_info): Renamed to ...
10198 (record_full_info): ... this. Updated all users.
10199 (record_delete): Renamed to ...
10200 (record_full_delete): ... this. Updated all users.
10201 (record_is_replaying): Renamed to ...
10202 (record_full_is_replaying): ... this. Updated all users.
10203 (record_goto_entry): Renamed to ...
10204 (record_full_goto_entry): ... this. Updated all users.
10205 (record_goto_begin): Renamed to ...
10206 (record_full_goto_begin): ... this. Updated all users.
10207 (record_goto_end): Renamed to ...
10208 (record_full_goto_end): ... this. Updated all users.
10209 (record_goto): Renamed to ...
10210 (record_full_goto): ... this. Updated all users.
10211 (init_record_ops): Renamed to ...
10212 (init_record_full_ops): ... this. Updated all users.
10213 (record_core_resume): Renamed to ...
10214 (record_full_core_resume): ... this. Updated all users.
10215 (record_core_kill): Renamed to ...
10216 (record_full_core_kill): ... this. Updated all users.
10217 (record_core_fetch_registers): Renamed to ...
10218 (record_full_core_fetch_registers): ... this. Updated all users.
10219 (record_core_prepare_to_store): Renamed to ...
10220 (record_full_core_prepare_to_store): ... this. Updated all users.
10221 (record_core_store_registers): Renamed to ...
10222 (record_full_core_store_registers): ... this. Updated all users.
10223 (record_core_xfer_partial): Renamed to ...
10224 (record_full_core_xfer_partial): ... this. Updated all users.
10225 (record_core_insert_breakpoint): Renamed to ...
10226 (record_full_core_insert_breakpoint): ... this. Updated all users.
10227 (record_core_remove_breakpoint): Renamed to ...
10228 (record_full_core_remove_breakpoint): ... this. Updated all users.
10229 (record_core_has_execution): Renamed to ...
10230 (record_full_core_has_execution): ... this. Updated all users.
10231 (init_record_core_ops): Renamed to ...
10232 (init_record_full_core_ops): ... this. Updated all users.
10233 (cmd_record_restore): Renamed to ...
10234 (cmd_record_full_restore): ... this. Updated all users.
10235 (record_save_cleanups): Renamed to ...
10236 (record_full_save_cleanups): ... this. Updated all users.
10237 (cmd_record_start): Renamed to ...
10238 (cmd_record_full_start): ... this. Updated all users.
10239 (set_record_insn_max_num): Renamed to ...
10240 (set_record_full_insn_max_num): ... this. Updated all users.
10241 (set_record_command): Renamed to ...
10242 (set_record_full_command): ... this. Updated all users.
10243 (show_record_command): Renamed to ...
10244 (show_record_full_command): ... this. Updated all users.
10245 (_initialize_record): Renamed to ...
10246 (_initialize_record_full): ... this. Updated all users.
10247
10248 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10249
10250 * record.h: Split into this and ...
10251 * record-full.h: ... this.
10252 * record.c: Split into this and ...
10253 * record-full.c: ... this.
10254 * target.h (target_ops): Add new fields to_info_record,
10255 to_save_record, to_delete_record, to_record_is_replaying,
10256 to_goto_record_begin, to_goto_record_end, to_goto_record.
10257 (target_info_record): New.
10258 (target_save_record): New.
10259 (target_supports_delete_record): New.
10260 (target_delete_record): New.
10261 (target_record_is_replaying): New.
10262 (target_goto_record_begin): New.
10263 (target_goto_record_end): New.
10264 (target_goto_record): New.
10265 * target.c (target_info_record): New.
10266 (target_save_record): New.
10267 (target_supports_delete_record): New.
10268 (target_delete_record): New.
10269 (target_record_is_replaying): New.
10270 (target_goto_record_begin): New.
10271 (target_goto_record_end): New.
10272 (target_goto_record): New.
10273 * record.h: Declare struct cmd_list_element.
10274 (record_cmdlist): New declaration.
10275 (set_record_cmdlist): New declaration.
10276 (show_record_cmdlist): New declaration.
10277 (info_record_cmdlist): New declaration.
10278 (cmd_record_goto): New declaration.
10279 * record.c: Remove unnecessary includes.
10280 Include inferior.h.
10281 (cmd_record_goto): Remove declaration.
10282 (record_cmdlist): Now extern. Initialize.
10283 (set_record_cmdlist): Now extern. Initialize.
10284 (show_record_cmdlist): Now extern. Initialize.
10285 (info_record_cmdlist): Now extern. Initialize.
10286 (find_record_target): New.
10287 (require_record_target): New.
10288 (cmd_record_start): Update.
10289 (cmd_record_delete): Remove target-specific code.
10290 Call target_delete_record.
10291 (cmd_record_stop): Unpush any record target.
10292 (set_record_insn_max_num): Move to record-full.c
10293 (set_record_command): Add comment.
10294 (show_record_command): Add comment.
10295 (info_record_command): Update comment.
10296 Remove target-specific code.
10297 Call the record target's to_info_record.
10298 (cmd_record_start): New.
10299 (cmd_record_goto): Now extern.
10300 Remove target-specific code.
10301 Call target_goto_begin, target_goto_end, or target_goto.
10302 (_initialize_record): Move record target ops initialization to
10303 record-full.c.
10304 Change "record" command help text.
10305 Move "record restore", "record set", and "record show" commands to
10306 record-full.c.
10307 * Makefile.in (SFILES): Add record-full.c.
10308 (HFILES_NO_SRCDIR): Add record-full.h.
10309 (COMMON_OBS): Add record-full.o.
10310 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10311 * arm-tdep.c: Include record-full.h.
10312 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10313 * i386-tdep.c: Include record-full.h.
10314 * infrun.c: Include record-full.h.
10315 * linux-record.c: Include record-full.h.
10316 * moxie-tdep.c: Include record-full.h.
10317 * record-full.c: Include record-full.h.
10318 Change module comment.
10319 (set_record_full_cmdlist): New.
10320 (show_record_full_cmdlist): New.
10321 (record_full_cmdlist): New.
10322 (record_goto_insn): New declaration.
10323 (record_save): New declaration.
10324 (record_check_insn_num): Change query string.
10325 (record_info): New.
10326 (record_delete): New.
10327 (record_is_replaying): New.
10328 (record_goto_entry): New.
10329 (record_goto_begin): New.
10330 (record_goto_end): New.
10331 (record_goto): New.
10332 (init_record_ops): Update.
10333 (init_record_core_ops): Update.
10334 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10335 (cmd_record_start): New.
10336 (set_record_insn_max_num): Moved from record.c
10337 (set_record_full_command): New.
10338 (show_record_full_command): New.
10339 (_initialize_record_full): New.
10340
10341 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10342
10343 * target.h (add_deprecated_target_alias): New.
10344 * target.c (add_deprecated_target_alias): New.
10345
10346 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10347
10348 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10349 and signal.h.
10350 (linux_supports_btrace): Add kernel and
10351 cpuid check.
10352 (kernel_supports_btrace): New function.
10353 (cpu_supports_btrace): New function.
10354 (intel_supports_btrace): New function.
10355
10356 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10357
10358 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10359 * remote.c: Include btrace.h.
10360 (struct btrace_target_info): New struct.
10361 (remote_supports_btrace): New function.
10362 (send_Qbtrace): New function.
10363 (remote_enable_btrace): New function.
10364 (remote_disable_btrace): New function.
10365 (remote_teardown_btrace): New function.
10366 (remote_read_btrace): New function.
10367 (init_remote_ops): Add btrace ops.
10368 (enum <unnamed>): Add btrace packets.
10369 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10370 (_initialize_remote): Add packet configuration for branch tracing.
10371
10372 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10373
10374 * features/btrace.dtd: New file.
10375 * Makefile.in (XMLFILES): Add btrace.dtd.
10376 * btrace.h (parse_xml_btrace): New declaration.
10377 * btrace.c: Include xml-support.h.
10378 (parse_xml_btrace): New function.
10379 (parse_xml_btrace_block): New function.
10380 (block_attributes): New struct.
10381 (btrace_attributes): New struct.
10382 (btrace_children): New struct.
10383 (btrace_elements): New struct.
10384
10385 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10386
10387 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10388 (amd64_linux_enable_btrace): New.
10389 (amd64_linux_disable_btrace): New.
10390 (amd64_linux_teardown_btrace): New.
10391 (_initialize_amd64_linux_nat): Initialize btrace ops.
10392 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10393 (i386_linux_enable_btrace): New.
10394 (i386_linux_disable_btrace): New.
10395 (i386_linux_teardown_btrace): New.
10396 (_initialize_i386_linux_nat): Initialize btrace ops.
10397 * config/i386/linux.mh: Add linux-btrace.o.
10398 * config/i386/linux64.mh: Add linux-btrace.o.
10399
10400 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10401
10402 * common/linux_btrace.h: New file.
10403 * common/linux_btrace.c: New file.
10404 * Makefile.in (SFILES): Add btrace.c.
10405 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10406 (COMMON_OBS): Add btrace.o.
10407 (linux-btrace.o): New rule.
10408
10409 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10410
10411 * target.h: Include btrace.h.
10412 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10413 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10414 * target.c (target_supports_btrace): New function.
10415 (target_enable_btrace): New function.
10416 (target_disable_btrace): New function.
10417 (target_teardown_btrace): New function.
10418 (target_read_btrace): New function.
10419 * btrace.h: New file.
10420 * btrace.c: New file.
10421 * Makefile.in: Add btrace.c.
10422 * gdbthread.h: Include btrace.h.
10423 (struct thread_info): Add btrace field.
10424 * thread.c: Include btrace.h.
10425 (clear_thread_inferior_resources): Call target_teardown_btrace.
10426 * common/btrace-common.h: New file.
10427
10428 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10429
10430 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10431 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10432 kill_status to outer block.
10433
10434 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10435
10436 Fix entry-values if the callee called a noreturn function.
10437 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10438 get_frame_address_in_block. Add new comment.
10439
10440 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10441
10442 Fix entry-values in C++ across CUs.
10443 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10444 lookup_minimal_symbol. Add a comment.
10445 * dwarf2read.c
10446 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10447 DW_AT_linkage_name.
10448
10449 2013-03-08 Yao Qi <yao@codesourcery.com>
10450
10451 * tracepoint.c (_initialize_tracepoint): Indent the code.
10452
10453 2013-03-08 Pedro Alves <palves@redhat.com>
10454
10455 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10456 (parse_find_args, find_command): Change type of pattern buffer
10457 locals to 'gdb_byte *'.
10458
10459 2013-03-08 Stan Shebs <stan@codesourcery.com>
10460 Hafiz Abid Qadeer <abidh@codesourcery.com>
10461
10462 * NEWS: Mention set and show trace-buffer-size commands.
10463 Mention new packet.
10464 * target.h (struct target_ops): New method
10465 to_set_trace_buffer_size.
10466 (target_set_trace_buffer_size): New macro.
10467 * target.c (update_current_target): Set up new method.
10468 * tracepoint.c (trace_buffer_size): New global.
10469 (start_tracing): Send it to the target.
10470 (set_trace_buffer_size): New function.
10471 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10472 * remote.c (remote_set_trace_buffer_size): New function.
10473 (_initialize_remote): Use it.
10474 (QTBuffer:size) New remote command.
10475 (PACKET_QTBuffer_size): New enum.
10476 (remote_protocol_features): Add an entry for
10477 PACKET_QTBuffer_size.
10478
10479 2013-03-08 Tom Tromey <tromey@redhat.com>
10480
10481 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10482 variable.
10483
10484 2013-03-07 Pedro Alves <palves@redhat.com>
10485
10486 * target.c (target_read_stralloc, target_fileio_read_alloc):
10487 *Cast pointer to 'gdb_byte *' in target call.
10488
10489 2013-03-07 Pedro Alves <palves@redhat.com>
10490
10491 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10492 call.
10493
10494 2013-03-07 Keith Seitz <keiths@redhat.com>
10495
10496 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10497 (trace_pass_command): Likewise.
10498 * cli/cli-cmds.c: Include cli/cli-utils.h.
10499 (source_command): Use skip-spaces.
10500 (disassemble_command): Likewise.
10501 * findcmd.c: Include cli/cli-utils.h.
10502 (parse_find_args): Use skip_spaces.
10503 * go32-nat.c: Include cli/cli-utils.h.
10504 (go32_sldt): Use skip_spaces.
10505 (go32_sgdt): Likewise.
10506 (go32_sidt): Likewise.
10507 (go32_pde): Likewise.
10508 (go32_pte): Likewise.
10509 (go32_pte_for_address): Likewise.
10510 * infcmd.c: Include cli/cli-utils.h.
10511 (registers_info): Use skip_spaces.
10512 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10513 (linux_info_proc): Likewise.
10514 * linux-thread-db.c: Include cli/cli-utils.h.
10515 (info_auto_load_libthread_db): Use skip_spaces_const.
10516 * m32r-rom.c: Include cli/cli-utils.h.
10517 (m32r_upload_command): Use skip_spaces.
10518 * maint.c: Include cli/cli-utils.h.
10519 (maintenance_translate_address): Use skip_spaces.
10520 * mi/mi-parse.c: Include cli/cli-utils.h.
10521 (mi_parse_argv): Use skip_spaces.
10522 (mi_parse): Likewise.
10523 * minsyms.c: Include cli/cli-utils.h.
10524 (msymbol_hash_iw): Use skip_spaces_const.
10525 * objc-lang.c: Include cli/cli-utils.h.
10526 (parse_selector): Use skip_spaces.
10527 (parse_method): Likewise.
10528 * python/python.c: Include cli/cli-utils.h.
10529 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10530 (python_command)[HAVE_PYTHON]: Likewise.
10531 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10532 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10533 (m32r_load): Use skip_spaces.
10534 * serial.c: Include cli/cli-utils.h.
10535 (serial_open): Use skip_spaces_const.
10536 * stack.c: Include cli/cli-utils.h.
10537 (parse_frame_specification_1): Use skip_spaces_const.
10538 * symfile.c: Include cli/cli-utils.h.
10539 (set_ext_lang_command): Use skip_spaces.
10540 * symtab.c: Include cli/cli-utils.h.
10541 (rbreak_command): Use skip_spaces.
10542 * thread.c (thread_name_command): Use skip_spaces.
10543 * tracepoint.c (validate_actionline): Use skip_spaces.
10544 (encode_actions_1): Likewise.
10545 (trace_find_range_command): Likewise.
10546 (trace_find_outside_command): Likewise.
10547 (trace_dump_actions): Likewise.
10548
10549 2013-03-07 Pedro Alves <palves@redhat.com>
10550
10551 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10552 * expprint.c (print_subexp_standard): Likewise.
10553 * utils.c (host_char_to_target): Likewise.
10554 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10555 * varobj.c (value_get_print_value): Change type of local to char*.
10556 Cast it gdb_byte * in call to language printer.
10557
10558 2013-03-07 Pedro Alves <palves@redhat.com>
10559
10560 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10561 gdb_byte *'.
10562 (make_wchar_iterator): Remove cast to char*.
10563 (wchar_iterate): Change type of local.
10564
10565 2013-03-07 Pedro Alves <palves@redhat.com>
10566
10567 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10568 for 'regcache->register_status'.
10569
10570 2013-03-07 Pedro Alves <palves@redhat.com>
10571
10572 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10573 int.
10574
10575 2013-03-07 Pedro Alves <palves@redhat.com>
10576
10577 * stap-probe.c (handle_stap_probe): Add cast to char*.
10578
10579 2013-03-07 Pedro Alves <palves@redhat.com>
10580
10581 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10582 RECORD_MSGRCV>: Pass a signed variable to
10583 regcache_raw_read_signed, instead of an unsigned one.
10584
10585 2013-03-07 Pedro Alves <palves@redhat.com>
10586
10587 * remote-notif.c (notif_debug): Change type to int.
10588 * remote-notif.h (notif_debug): Likewise.
10589
10590 2013-03-07 Pedro Alves <palves@redhat.com>
10591
10592 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10593
10594 2013-03-07 Pedro Alves <palves@redhat.com>
10595
10596 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10597 * remote.h (hex2bin, bin2hex): ... here.
10598 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10599
10600 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10601
10602 * utils.c (initialize_utils): Improve doc strings of "set/show
10603 width", "set/show height", and "set/show pagination".
10604
10605 2013-03-06 Keith Seitz <keiths@redhat.com>
10606
10607 * ax-gdb.c (gen_printf): Make FORMAT const.
10608 * ax-gdb.h (gen_printf): Likewise.
10609 * ax-general.c (ax_string): Make STR const.
10610 * ax.h (ax_string): Likewise.
10611
10612 2013-03-06 Doug Evans <dje@google.com>
10613
10614 * elfread.c (elf_symfile_read): Move debugging printf to more
10615 logical location.
10616
10617 2013-03-06 Pedro Alves <palves@redhat.com>
10618
10619 * python/py-utils.c (target_string_to_unicode): Delete function.
10620 * python/python-internal.h (target_string_to_unicode): Delete
10621 declaration.
10622
10623 2013-03-06 Pierre Muller <muller@sourceware.org>
10624
10625 * linespec.c (get_current_search_block): ARI fix, use (void)
10626 for empty parameter list.
10627
10628 2013-03-05 Doug Evans <dje@google.com>
10629
10630 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10631 of old ada_lookup_symbol_list. In !full_search case, don't
10632 search superblocks.
10633 (ada_lookup_symbol_list): Delete arg full_search, all callers
10634 updated. Call ada_lookup_symbol_list_worker.
10635 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10636 * ada-lang.h (ada_lookup_symbol_list): Update.
10637 * language.h (language_defn): Update comment for
10638 la_iterate_over_symbols.
10639 * linespec.c (iterate_over_file_blocks): New function.
10640 (iterate_over_all_matching_symtabs): Call it.
10641 (lookup_prefix_sym): Ditto.
10642 (get_current_search_block): New function.
10643 (get_search_block): Delete.
10644 (find_label_symbols): Call get_current_search_block.
10645 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10646 * symtab.c (iterate_over_symbols): Don't search superblocks.
10647
10648 2013-03-05 Yao Qi <yao@codesourcery.com>
10649
10650 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10651 parameter VAR's type from "unsigned int" to "int".
10652 * command.h (var_zuinteger_unlimited): Update its comments.
10653 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10654
10655 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10656
10657 * NEWS: Mention new target x86_64-*-cygwin*.
10658
10659 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10660
10661 * configure.host: Add x86_64-*-cygwin* as host.
10662 * configure.tgt: Add x86_64-*-cygwin* as target.
10663 * config/i386/cygwin64.mh: New file.
10664
10665 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10666
10667 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10668
10669 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10670
10671 * linespec.c (struct linespec_canonical_name): New.
10672 (struct linespec_state): Change canonical_names type to it.
10673 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10674 xrealloc element size. Initialize the different CANONICAL fields.
10675 (canonical_to_fullform): New.
10676 (filter_results): Use it. Add variables canonical, fullform and
10677 cleanup.
10678 (struct decode_line_2_item, decode_line_2_compare_items): New.
10679 (decode_line_2): Remove variables iter and item_names, add variables
10680 items and items_count. Modify the code for these new variables.
10681
10682 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10683
10684 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10685 calling do_cleanup.
10686
10687 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10688
10689 * tracepoint.c (build_traceframe_info): Add code for byte order.
10690
10691 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10692
10693 * v850-tdep.c: (v850e2_register_name): Revise system register
10694 names to match current V850E2M architecture specifications.
10695 Update register number enum comments too.
10696
10697 2013-03-01 Jiong Wang <jiwang@tilera.com>
10698 Pedro Alves <palves@redhat.com>
10699
10700 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10701 to END_ADDR.
10702 (tilegx_skip_prologue): Limit prologue analysis to section end.
10703
10704 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10705
10706 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10707 use it.
10708
10709 2013-03-01 Pedro Alves <palves@redhat.com>
10710
10711 Use gdb_byte for bytes from the program being debugged.
10712
10713 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10714 Change type of local 'buf' to gdb_byte.
10715 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10716 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10717 * cris-tdep.c (cris_sigcontext_addr)
10718 (cris_sigtramp_frame_unwind_cache): Likewise.
10719 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10720 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10721 Likewise.
10722 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10723 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10724 (hppa32_hpux_search_dummy_call_sequence)
10725 (hppa_hpux_supply_save_state): Likewise.
10726 * hppa-linux-tdep.c (insns_match_pattern)
10727 (hppa_linux_find_global_pointer): Likewise.
10728 * hppa-tdep.c (hppa_in_function_epilogue_p)
10729 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10730 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10731 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10732 (i386fbsd_collect_uthread): Likewise.
10733 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10734 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10735 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10736 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10737 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10738 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10739 (ia64_libunwind_frame_prev_register)
10740 (ia64_libunwind_sigtramp_frame_this_id)
10741 (ia64_find_global_pointer_from_dynamic_section)
10742 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10743 (ia64_unwind_pc): Likewise.
10744 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10745 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10746 (m68hc11_extract_return_value): Likewise.
10747 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10748 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10749 (mep_get_insn, mep_push_dummy_call): Likewise.
10750 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10751 (mips_linux_in_dynsym_stub): Likewise.
10752 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10753 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10754 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10755 to gdb_byte.
10756 * remote-mips.c (mips_set_register): Likewise.
10757 * remote-sim.c (gdbsim_fetch_register): Likewise.
10758 * score-tdep.c (score7_fetch_inst): Change type of parameter
10759 'memblock' and local 'buf' to gdb_byte.
10760 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10761 Change type of local 'buf' to gdb_byte. Adjust.
10762 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10763 to gdb_byte**.
10764 (score7_analyze_prologue): Change type of 'memblock' and
10765 'memblock_ptr' locals to gdb_byte*.
10766 * sh64-tdep.c (sh64_extract_return_value)
10767 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10768 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10769 * solib-pa64.c (pa64_solib_create_inferior_hook)
10770 (pa64_open_symbol_file_object): Remove local 'buf'.
10771 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10772 (som_open_symbol_file_object): Likewise.
10773 * solib-spu.c (spu_current_sos): Likewise.
10774 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10775 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10776 (spu_store_registers): Likewise.
10777 * target.c (debug_print_register): Likewise.
10778 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10779 * xstormy16-tdep.c (xstormy16_store_return_value)
10780 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10781 (xstormy16_find_jmp_table_entry): Likewise.
10782
10783 2013-03-01 Jiong Wang <jiwang@tilera.com>
10784
10785 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10786 (tilegx_gdbarch_init): Install it.
10787
10788 2013-02-28 Tom Tromey <tromey@redhat.com>
10789
10790 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10791 PyLong_Check.
10792
10793 2013-02-28 Doug Evans <dje@google.com>
10794
10795 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10796 * python/python.c (gdbpy_find_pc_line): Ditto.
10797
10798 2013-02-28 Tom Tromey <tromey@redhat.com>
10799
10800 * contrib/excheck.py: New file.
10801 * contrib/exsummary.py: New file.
10802 * contrib/gcc-with-excheck: New file.
10803
10804 2013-02-28 Tom Tromey <tromey@redhat.com>
10805
10806 * python/python.c (gdbpy_print_stack): Call begin_line and
10807 fprintf_filtered inside TRY_CATCH.
10808
10809 2013-02-28 Tom Tromey <tromey@redhat.com>
10810
10811 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10812 inside TRY_CATCH.
10813
10814 2013-02-28 Tom Tromey <tromey@redhat.com>
10815
10816 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10817 frame_object_to_frame_info inside TRY_CATCH.
10818
10819 2013-02-28 Tom Tromey <tromey@redhat.com>
10820
10821 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10822 TRY_CATCH.
10823
10824 2013-02-28 Tom Tromey <tromey@redhat.com>
10825
10826 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10827
10828 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10829
10830 * windows-nat.c: Throughout, fix format strings and casts of
10831 printf-like functions to avoid type related warnings on all
10832 platforms.
10833 (handle_output_debug_string): Fetch context information address
10834 from debug string using string_to_core_addr.
10835
10836 2013-02-27 Jiong Wang <jiwang@tilera.com>
10837
10838 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10839 * regformats/reg-tilegx32.dat: New.
10840
10841 2013-02-27 Jiong Wang <jiwang@tilera.com>
10842
10843 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10844
10845 2013-02-27 Jiong Wang <jiwang@tilera.com>
10846
10847 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10848
10849 2013-02-27 Yao Qi <yao@codesourcery.com>
10850 Pedro Alves <palves@redhat.com>
10851
10852 * tracepoint.c (tfile_trace_find): For tfind
10853 pc/tp/range/outside, look for the next trace frame instead of
10854 always starting from frame 0.
10855
10856 2013-02-26 Anthony Green <green@moxielogic.com>
10857
10858 * configure.tgt: Add support for moxie-*-rtems* target.
10859
10860 2013-02-25 Pedro Alves <palves@redhat.com>
10861
10862 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10863 warning text.
10864
10865 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10866
10867 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10868 if $fp is used as the virtual frame pointer.
10869
10870 2013-02-23 Alan Modra <amodra@gmail.com>
10871
10872 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10873 symbol size.
10874 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10875 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10876 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10877 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10878
10879 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10880
10881 Code cleanup.
10882 * elfread.c (build_id_bfd_get): Make the return type const.
10883 (build_id_verify): Make the check parameter const.
10884 (build_id_to_debug_filename): Make the build_id parameter and variable
10885 data const.
10886 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10887
10888 2013-02-21 Alan Modra <amodra@gmail.com>
10889
10890 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10891
10892 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10893
10894 Add a new method 'disassemble' to gdb.Architecture class.
10895 * python/py-arch.c (archpy_disassmble): Implementation of the
10896 new method gdb.Architecture.disassemble.
10897 (arch_object_methods): Add entry for the new method.
10898
10899 2013-02-20 Jiong Wang <jiwang@tilera.com>
10900
10901 * MAINTAINERS (Write After Approval): Add myself to the list.
10902
10903 2013-02-19 Pedro Alves <palves@redhat.com>
10904
10905 Garbage collect 'struct monitor_ops'::load_routine.
10906
10907 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10908 * monitor.c (monitor_load): No longer call
10909 current_monitor->load_routine.
10910 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10911 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10912 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10913
10914 2013-02-19 Pedro Alves <palves@redhat.com>
10915
10916 PR gdb/15161
10917
10918 Harmonize with generic_load.
10919
10920 * monitor.c: Include "readline/readline.h".
10921 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10922 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10923 long/strtol for the 'load_offset' local. Error out if no argument
10924 is given or if too many arguments are given. Tilde expand the
10925 passed in file name.
10926
10927 2013-02-19 Kai Tietz <ktietz@redhat.com>
10928
10929 PR gdb/15161
10930 * symfile.c (load_section_data): Change type of load_offset
10931 to CORE_ADDR.
10932 (generic_load): User strtoulst instead of strtoul for conversion
10933 of load_offset.
10934
10935 2013-02-19 Jiong Wang <jiwang@tilera.com>
10936
10937 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10938 for return address, "lr" register, saved on stack.
10939 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10940 after we invoke tilegx_analyze_prologue.
10941
10942 2013-02-19 Jiong Wang <jiwang@tilera.com>
10943
10944 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10945
10946 2013-02-19 Jiong Wang <jiwang@tilera.com>
10947
10948 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10949
10950 2013-02-19 Jiong Wang <jiwang@tilera.com>
10951
10952 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10953 (tilegx_write_pc): New function.
10954 (tilegx_cannot_reference_register): Return zero if REGNO
10955 is TILEGX_FAULTNUM_REGNUM.
10956 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10957 (tilegx_register_name): Add handling of "faultnum" register.
10958 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10959 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10960 handling of TILEGX_FAULTNUM_REGNUM.
10961 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10962
10963 2013-02-19 Jiong Wang <jiwang@tilera.com>
10964
10965 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10966 should be aligned to 64bit.
10967
10968 2013-02-19 Kai Tietz <ktietz@redhat.com>
10969
10970 * windows-nat.c (windows_xfer_memory): Fix debug-output
10971 for LLP64.
10972
10973 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10974
10975 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10976 Don't check DSP register number if HAVE_DSP is not set.
10977
10978 2013-02-19 Alan Modra <amodra@gmail.com>
10979
10980 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10981 throughout file instead.
10982 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10983 Don't xmalloc return value.
10984 (build_id_verify): Similarly. Don't xfree.
10985 (build_id_to_debug_filename): Update.
10986 (find_separate_debug_file_by_buildid): Update, don't xfree.
10987
10988 2013-02-18 Tom Tromey <tromey@redhat.com>
10989
10990 PR gdb/15102:
10991 * dwarf2read.c (read_subrange_type): Use result of
10992 'check_typedef'.
10993
10994 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10995
10996 * frame.c: Remove one extra white space after #include
10997 directive.
10998
10999 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11000
11001 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11002
11003 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11004
11005 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11006 and dir commands into an if block.
11007
11008 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11009
11010 * python/py-breakpoint (struct pybp_code): Use int instead of
11011 enum type_code.
11012
11013 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11014 Hafiz Abid Qadeer <abidh@codesourcery.com>
11015
11016 * NEWS: Mention new field "trace-file".
11017 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11018 (tfile_open): Record the trace file's filename in the trace
11019 status.
11020 (tfile_files_info): Mention the name of the trace file.
11021 Check the "filename" field explicitely.
11022 (trace_status_command): Explicitely check "filename" field.
11023 (trace_find_command): Ditto.
11024 (trace_find_pc_command): Ditto.
11025 (trace_find_tracepoint_command): Ditto.
11026 (trace_find_line_command): Ditto.
11027 (trace_find_range_command): Ditto.
11028 (trace_find_outside_command): Ditto.
11029 * tracepoint.h (struct trace_status) <from_file>: Rename it
11030 to "filename" and make it hold the trace file's filename
11031 instead of a boolean.
11032 * remote.c (remote_get_trace_status): Initialize "filename"
11033 field with NULL instead of 0.
11034
11035 2013-02-15 Yao Qi <yao@codesourcery.com>
11036
11037 * remote.c: Fix a typo.
11038
11039 2013-02-14 Pierre Muller <muller@sourceware.org>
11040
11041 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11042
11043 2013-02-14 Pedro Alves <palves@redhat.com>
11044
11045 * utils.c (savestring): Don't #undef it. Move function to
11046 common/common-utils.c.
11047 * common/common-utils.c: Include gdb_string.h.
11048 (savestring): Move here from utils.c.
11049 * common/common-utils.h (savestring): Declare.
11050
11051 2013-02-14 Pedro Alves <palves@redhat.com>
11052
11053 * utils.c (savestring): Rename parameter 'size' to 'len'.
11054
11055 2013-02-14 Pedro Alves <palves@redhat.com>
11056 Yufeng Zhang <yufeng.zhang@arm.com>
11057
11058 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11059 (aarch64_inferior_data, struct aarch64_inferior_data):
11060 Delete.
11061 (struct aarch64_process_info): New.
11062 (aarch64_process_list): New global.
11063 (aarch64_find_process_pid, aarch64_add_process)
11064 (aarch64_process_info_get): New functions.
11065 (aarch64_inferior_data_get): Delete.
11066 (aarch64_process_info_get): New function.
11067 (aarch64_forget_process): New function.
11068 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11069 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11070 aarch64_get_debug_reg_state.
11071 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11072 instead of linux_nat_iterate_watchpoint_lwps.
11073 (aarch64_linux_new_fork): New function.
11074 (aarch64_linux_child_post_startup_inferior): Use
11075 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11076 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11077 (aarch64_linux_remove_hw_breakpoint)
11078 (aarch64_handle_aligned_watchpoint)
11079 (aarch64_handle_unaligned_watchpoint)
11080 (aarch64_linux_insert_watchpoint)
11081 (aarch64_linux_remove_watchpoint)
11082 (aarch64_linux_stopped_data_address): Adjust to pass the current
11083 process id to aarch64_debug_reg_state.
11084 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11085 linux_nat_new_fork hook, and aarch64_forget_process as
11086 linux_nat_forget_process hook; remove the call to
11087 register_inferior_data_with_cleanup.
11088
11089 2013-02-14 Pedro Alves <palves@redhat.com>
11090
11091 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11092 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11093 lval_memory.
11094
11095 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11096 Hafiz Abid Qadeer <abidh@codesourcery.com>
11097
11098 * tracepoint.h (validate_trace_state_variable_name): Declare.
11099 * tracepoint.c (validate_trace_state_variable_name): New.
11100 (trace_variable_command): Parse the trace state variable's name
11101 without using parse_expression. Do several validations.
11102 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11103 trace state variable's name with parse_expression. Validate it.
11104
11105 2013-02-14 Yao Qi <yao@codesourcery.com>
11106
11107 * infcmd.c (breakpoint_proceeded): Remove it.
11108
11109 2013-02-14 Yao Qi <yao@codesourcery.com>
11110
11111 * tracepoint.c (end_actions_pseudocommand): Make it static.
11112 (while_stepping_pseudocommand): Likewise.
11113 * tracepoint.h (end_actions_pseudocommand): Remove the
11114 declaration.
11115 (while_stepping_pseudocommand): Likewise.
11116
11117 2013-02-14 Yao Qi <yao@codesourcery.com>
11118
11119 * cli/cli-decode.c (help_cmd): Remove the declaration of
11120 "cmdlist".
11121 (help_all): Likewise.
11122
11123 2013-02-13 Pedro Alves <palves@redhat.com>
11124
11125 * amd64-linux-nat.c (update_debug_registers_callback):
11126 Update comment.
11127 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11128 iterate_over_lwps.
11129 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11130 i386_debug_reg_state.
11131 (amd64_linux_new_fork): New function.
11132 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11133 linux_nat_new_fork hook, and i386_forget_process as
11134 linux_nat_forget_process hook.
11135 * i386-linux-nat.c (update_debug_registers_callback):
11136 Update comment.
11137 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11138 iterate_over_lwps.
11139 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11140 i386_debug_reg_state.
11141 (i386_linux_new_fork): New function.
11142 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11143 linux_nat_new_fork hook, and i386_forget_process as
11144 linux_nat_forget_process hook.
11145 * i386-nat.c (i386_init_dregs): Delete.
11146 (i386_inferior_data, struct i386_inferior_data):
11147 Delete.
11148 (struct i386_process_info): New.
11149 (i386_process_list): New global.
11150 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11151 New functions.
11152 (i386_inferior_data_get): Delete.
11153 (i386_process_info_get): New function.
11154 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11155 (i386_forget_process): New function.
11156 (i386_cleanup_dregs): Rewrite.
11157 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11158 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11159 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11160 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11161 to i386_debug_reg_state.
11162 (i386_use_watchpoints): Don't register inferior data.
11163 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11164 adjust comment.
11165 (i386_forget_process): Declare.
11166 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11167 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11168 New static globals.
11169 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11170 (add_initial_lwp): New, factored out from ...
11171 (add_lwp): ... this. Don't check the number of lwps before
11172 calling linux_nat_new_thread.
11173 (linux_nat_iterate_watchpoint_lwps): Delete.
11174 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11175 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11176 forks and vforks.
11177 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11178 initial lwp.
11179 (linux_nat_kill, linux_nat_mourn_inferior): Call
11180 linux_nat_forget_process.
11181 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11182 (linux_nat_forget_process): New functions.
11183 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11184 type.
11185 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11186 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11187 types.
11188 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11189 (linux_nat_forget_process): New declarations.
11190
11191 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11192 (amd64fbsd_mourn_inferior): New function.
11193 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11194 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11195
11196 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11197
11198 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11199 Adding _().
11200
11201 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11202
11203 * aarch64-linux-nat.c (debug_reg_change_callback)
11204 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11205 %s and phex().
11206
11207 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11208
11209 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11210 with LONGEST.
11211
11212 2013-02-13 Pedro Alves <palves@redhat.com>
11213 Hafiz Abid Qadeer <abidh@codesourcery.com>
11214
11215 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11216
11217 2013-02-12 Tom Tromey <tromey@redhat.com>
11218
11219 PR symtab/11464:
11220 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11221 NAME return.
11222 (classify_inner_name): Remove 'first_name' argument, add
11223 'context'. Remove unused variable.
11224 (yylex): Explicitly maintain the context type. Exit loop earlier
11225 if NAME result is seen.
11226
11227 2013-02-12 Pedro Alves <palves@redhat.com>
11228
11229 * amd64-darwin-tdep.c: Add (C) after Copyright.
11230 * cli/cli-cmds.h: Ditto.
11231 * cli/cli-decode.c: Ditto.
11232 * cli/cli-decode.h: Ditto.
11233 * cli/cli-dump.c: Ditto.
11234 * cli/cli-dump.h: Ditto.
11235 * cli/cli-interp.c: Ditto.
11236 * cli/cli-logging.c: Ditto.
11237 * cli/cli-script.c: Ditto.
11238 * cli/cli-script.h: Ditto.
11239 * cli/cli-setshow.c: Ditto.
11240 * cli/cli-setshow.h: Ditto.
11241 * cli/cli-utils.c: Ditto.
11242 * cli/cli-utils.h: Ditto.
11243 * config/alpha/nm-osf3.h: Ditto.
11244 * config/djgpp/djconfig.sh: Ditto.
11245 * config/i386/nm-fbsd.h: Ditto.
11246 * config/i386/nm-i386gnu.h: Ditto.
11247 * config/nm-linux.h: Ditto.
11248 * config/nm-nto.h: Ditto.
11249 * config/rs6000/nm-rs6000.h: Ditto.
11250 * config/sparc/nm-sol2.h: Ditto.
11251 * darwin-nat-info.c: Ditto.
11252 * dfp.c: Ditto.
11253 * dfp.h: Ditto.
11254 * gdb-demangle.h: Ditto.
11255 * i386-darwin-nat.c: Ditto.
11256 * i386-darwin-tdep.c: Ditto.
11257 * linux-fork.h: Ditto.
11258 * m32c-tdep.c: Ditto.
11259 * microblaze-linux-tdep.c: Ditto.
11260 * microblaze-rom.c: Ditto.
11261 * microblaze-tdep.c: Ditto.
11262 * microblaze-tdep.h: Ditto.
11263 * mips-linux-tdep.h: Ditto.
11264 * ppc-ravenscar-thread.c: Ditto.
11265 * ppc-ravenscar-thread.h: Ditto.
11266 * prologue-value.c: Ditto.
11267 * prologue-value.h: Ditto.
11268 * ravenscar-thread.c: Ditto.
11269 * ravenscar-thread.h: Ditto.
11270 * sparc-ravenscar-thread.c: Ditto.
11271 * sparc-ravenscar-thread.h: Ditto.
11272 * tilegx-linux-tdep.c: Ditto.
11273 * unwind_stop_reasons.def: Ditto.
11274 * windows-nat.h: Ditto.
11275 * xtensa-linux-tdep.c: Ditto.
11276 * xtensa-xtregs.c: Ditto.
11277 * regformats/regdat.sh: Ditto.
11278 * regformats/regdef.h: Ditto.
11279
11280 2013-02-12 Pedro Alves <palves@redhat.com>
11281
11282 * break-catch-sig.c: Update copyright years.
11283
11284 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11285
11286 Add support for a destructor for ui_out data and use it to
11287 provide a ui_out destructor.
11288 * ui-out.h: Declare the new ui_out destructor.
11289 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11290 * ui-out.c (default_data_destroy): Add a default data destructor
11291 which does nothing.
11292 (default_ui_out_impl): Set the new data_destroy field to
11293 default_data_destroy
11294 (uo_data_destroy): Local function which invokes the data
11295 destructor if present.
11296 (clear_table): Local function which clears the table data of a
11297 ui_out object.
11298 (ui_out_destroy): Public function which frees a ui_out object.
11299 (ui_out_table_end): Use the new clear_table function.
11300 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11301 NULL.
11302 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11303 to NULL.
11304
11305 2013-02-11 Doug Evans <dje@google.com>
11306
11307 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11308 (printf_decfloat): New function. Broken out from ui_printf.
11309 Remove unnecessary code to shift the entire format string down.
11310 (printf_pointer): New function.
11311 (ui_printf): Code to print C strings, wide C strings, decfloats,
11312 and pointers moved to separate functions.
11313
11314 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11315
11316 * valops.c (value_assign): Handling bitfield offset in
11317 `lval_internalvar_component' case.
11318
11319 2013-02-08 Doug Evans <dje@google.com>
11320
11321 * common/format.c (parse_format_string): Fix whitespace.
11322
11323 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11324
11325 * stack.c (return_command): Work around uninitialized variable
11326 warning.
11327
11328 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11329
11330 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11331 number of the registers from 36 to 34.
11332
11333 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11334
11335 * NEWS: Mention new AArch64 native and target support.
11336
11337 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11338
11339 * MAINTAINERS (Write After Approval): Add myself.
11340
11341 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11342 Marcus Shawcroft <marcus.shawcroft@arm.com>
11343 Nigel Stephens <nigel.stephens@arm.com>
11344 Yufeng Zhang <yufeng.zhang@arm.com>
11345
11346 * aarch64-linux-nat.c: New file.
11347 * config/aarch64/linux.mh: New file.
11348 * configure.host: Add AArch64.
11349 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11350
11351 2013-02-07 Doug Evans <dje@google.com>
11352
11353 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11354 disassemble command.
11355
11356 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11357
11358 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11359 set_gdbarch_fetch_tls_load_module_address.
11360
11361 2013-02-06 David S. Miller <davem@davemloft.net>
11362
11363 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11364 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11365 * value.c (struct_return_convention): New function.
11366 (using_struct_return): Implement in terms of struct_return_convention.
11367 * value.h (struct_return_convention): Declare.
11368 * stack.c (return_command): Allow successful overriding of the return
11369 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11370
11371 2013-02-06 Tom Tromey <tromey@redhat.com>
11372
11373 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11374 outside of TRY_CATCH.
11375
11376 2013-02-06 Yao Qi <yao@codesourcery.com>
11377
11378 * mi/mi-interp.c: Include "tracepoint.h".
11379 (mi_tsv_modified): Declare.
11380 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11381 (mi_interpreter_init): Call observer_attach_tsv_modified.
11382 (mi_tsv_modified): New.
11383 (mi_tsv_created, mi_tsv_deleted): Update.
11384 * tracepoint.c (trace_variable_command): Call
11385 observer_notify_tsv_modified if the initial value of tsv is
11386 changed.
11387 (delete_trace_state_variable): Call
11388 observer_notify_tsv_deleted earlier.
11389 (trace_variable_command): Caller update.
11390 (create_tsv_from_upload): Likewise.
11391 * observer.sh: Declare "struct trace_state_variable".
11392
11393 * NEWS: Mention the new MI notification "=tsv-modified".
11394
11395 2013-02-05 Doug Evans <dje@google.com>
11396
11397 * completer.c (location_completer): Fix typo in comment.
11398
11399 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11400
11401 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11402 ADDRESS sorted.
11403
11404 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11405
11406 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11407 Refactor if statement to avoid trailing || operator.
11408
11409 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11410
11411 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11412
11413 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11414
11415 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11416 * configure.host: Add powerpc*-*-freebsd* target.
11417 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11418 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11419 * config/powerpc/fbsd.mh: New file.
11420
11421 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11422 Denys Vlasenko <dvlasenk@redhat.com>
11423 Pedro Alves <palves@redhat.com>
11424
11425 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11426 (struct elf_internal_linux_prpsinfo): Forward declare.
11427 * gdbarch.h, gdbarch.c: Regenerate.
11428 * linux-tdep.c: Include `cli/cli-utils.h'.
11429 (linux_fill_prpsinfo): New function.
11430 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11431 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11432 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11433 depending on gdbarch pointer bitness.
11434 * ppc-linux-tdep.c: Include elf-bfd.h.
11435 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11436 on 32-bit.
11437
11438 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11439 Marcus Shawcroft <marcus.shawcroft@arm.com>
11440 Nigel Stephens <nigel.stephens@arm.com>
11441 Yufeng Zhang <yufeng.zhang@arm.com>
11442
11443 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11444
11445 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11446 Marcus Shawcroft <marcus.shawcroft@arm.com>
11447 Nigel Stephens <nigel.stephens@arm.com>
11448 Yufeng Zhang <yufeng.zhang@arm.com>
11449
11450 * aarch64-newlib-tdep.c: New file.
11451 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11452 aarch64*-*-elf.
11453 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11454 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11455 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11456 * osabi.c (gdb_osabi_names): Add "Newlib".
11457
11458 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11459 Marcus Shawcroft <marcus.shawcroft@arm.com>
11460 Nigel Stephens <nigel.stephens@arm.com>
11461 Yufeng Zhang <yufeng.zhang@arm.com>
11462
11463 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11464 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11465 * aarch64-linux-tdep.c: New file.
11466 * aarch64-linux-tdep.h: New file.
11467 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11468 * configure.tgt: Add aarch64-none-linux-gnu.
11469
11470 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11471 Marcus Shawcroft <marcus.shawcroft@arm.com>
11472 Nigel Stephens <nigel.stephens@arm.com>
11473 Yufeng Zhang <yufeng.zhang@arm.com>
11474
11475 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11476 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11477 (ALLDEPFILES): Add aarch64-tdep.c.
11478 * aarch64-tdep.c: New file.
11479 * aarch64-tdep.h: New file.
11480 * configure.tgt: Add AArch64.
11481 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11482 (aarch64-expedite): New definition.
11483 * features/aarch64-core.xml: New file.
11484 * features/aarch64-fpu.xml: New file.
11485 * features/aarch64-without-fpu.c: New file (generated).
11486 * features/aarch64-without-fpu.xml: New file.
11487 * features/aarch64.c: New file (generated).
11488 * features/aarch64.xml: New file.
11489 * regformats/aarch64-without-fpu.dat: New file (generated).
11490 * regformats/aarch64.dat: New file (generated).
11491
11492 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11493
11494 * contrib/expect-read1.c: New file.
11495 * contrib/expect-read1.sh: New file.
11496
11497 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11498
11499 * dwarf2read.c (file_file_name): New function with code from
11500 file_full_name.
11501 (file_full_name): Move most of the code to file_file_name.
11502 (macro_start_file): Rename variable full_name to file_name and use
11503 file_file_name for it. Add comp_dir parameter to new_macro_table.
11504 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11505 macro_source_file->filename access by macro_source_fullname call.
11506 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11507 caller.
11508 * macrotab.c (struct macro_table): New field comp_dir.
11509 (macro_include): New variables link_fullname and source_fullname.
11510 Replace any macro_source_file->filename access by macro_source_fullname
11511 call.
11512 (macro_lookup_inclusion): Remove the partial filenames checking code.
11513 (check_for_redefinition): New variables source_fullname and
11514 found_key_fullname. Replace any macro_source_file->filename access by
11515 macro_source_fullname call.
11516 (macro_undef): New variables source_fullname and key_fullname. Replace
11517 any macro_source_file->filename access by macro_source_fullname call.
11518 (macro_lookup_definition): New variables retval and source_fullname.
11519 Replace any macro_source_file->filename access by macro_source_fullname
11520 call.
11521 (foreach_macro): New variable key_fullname. Replace any
11522 macro_source_file->filename access by macro_source_fullname call.
11523 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11524 macro_source_file->filename access by macro_source_fullname call.
11525 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11526 (macro_source_fullname): New function.
11527 * macrotab.h (struct macro_source_file): Extent the filename field
11528 comment.
11529 (new_macro_table): New parameter comp_dir, add a comment for it.
11530 (macro_source_fullname): new declaration.
11531
11532 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11533
11534 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11535 this_real_name to outer block. Use it also for
11536 compare_filenames_for_search.
11537 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11538 with dw2_get_real_path for file_matcher, considering also
11539 BASENAMES_MAY_DIFFER.
11540 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11541
11542 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11543
11544 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11545 to the file_matcher parameter. Pass 0 to it.
11546 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11547 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11548 NULL psymtab_to_fullname result.
11549 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11550 an expected filename instead.
11551 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11552 file_matcher parameter. Call also psymtab_to_fullname, after newly
11553 considering BASENAMES_MAY_DIFFER.
11554 * source.c (rewrite_source_path): Remove static.
11555 * source.h (rewrite_source_path): New declaration.
11556 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11557 the expand_symtabs_matching field. Comment it.
11558 * symtab.c (file_matches): New function comment. Add parameter
11559 basenames, implement it.
11560 (search_symbols_file_matches): Add basenames parameter. Update the
11561 file_matches caller.
11562 (search_symbols): Match FILES also against symtab_to_fullname.
11563 Optimize it for BASENAMES_MAY_DIFFER.
11564
11565 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11566
11567 * source.c (print_source_lines_base): Print for TUI also "fullname".
11568 * tui/tui-data.c (init_content_element): Change tui_locator_element
11569 field to full_name.
11570 * tui/tui-data.h (struct tui_locator_element): Likewise.
11571 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11572 tui_update_locator_filename calls to tui_update_locator_fullname.
11573 Replace symtab->filename refererence by symtab_to_fullname call.
11574 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11575 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11576 field to full_name. Replace symtab->filename refererence by
11577 symtab_to_fullname call.
11578 (tui_show_symtab_source): Rename parameter to fullname. Change
11579 tui_locator_element field to full_name.
11580 * tui/tui-stack.c: Include source.h.
11581 (tui_set_locator_filename): Rename the declaration to ...
11582 (tui_set_locator_fullname): ... here. Rename its parameter to
11583 fullname, updates its comment.
11584 (tui_set_locator_info): Rename its parameter to fullname.
11585 (tui_set_locator_filename): Rename the definition to ...
11586 (tui_set_locator_fullname): ... here. Rename its parameter to
11587 fullname, updates its comment. Change tui_locator_element field to
11588 full_name.
11589 (tui_set_locator_info): Rename its parameter to fullname.
11590 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11591 (tui_update_locator_filename): Rename to ...
11592 (tui_update_locator_fullname): ... here. Rename callee to
11593 tui_set_locator_fullname.
11594 (tui_show_frame_info): Replace symtab->filename refererence by
11595 symtab_to_fullname call.
11596 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11597 (tui_update_locator_fullname): ... here.
11598 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11599 tui_update_locator_fullname. Replace symtab->filename refererence by
11600 symtab_to_fullname call.
11601 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11602 Rename the callee to tui_update_locator_fullname.
11603 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11604
11605 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11606
11607 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11608 by symtab_to_filename_for_display calls.
11609 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11610 (clear_command): New variable sal_fullname, initialize it. Replace
11611 compare_filenames_for_search by filename_cmp with sal_fullname.
11612 (say_where, update_static_tracepoint): Replace symtab->filename
11613 refererences by symtab_to_filename_for_display calls.
11614 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11615 Likewise.
11616 * dwarf2read.c: Include source.h.
11617 (fixup_go_packaging): Replace symtab->filename refererences by
11618 symtab_to_filename_for_display calls.
11619 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11620 Replace symtab->filename refererences by symtab_to_filename_for_display
11621 calls.
11622 (create_sals_line_offset, convert_linespec_to_sals): New variable
11623 fullname, initialize it, replace symtab->filename reference by the
11624 variable.
11625 * linux-fork.c: Include source.h.
11626 (info_checkpoints_command): Replace symtab->filename refererences by
11627 symtab_to_filename_for_display calls.
11628 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11629 by symtab_to_filename_for_display calls.
11630 * mdebugread.c: Include source.h.
11631 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11632 symtab_to_filename_for_display calls.
11633 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11634 (mi_cmd_file_list_exec_source_files): Likewise.
11635 * printcmd.c: Include source.h.
11636 (build_address_symbolic): Replace symtab->filename refererences by
11637 symtab_to_filename_for_display calls.
11638 * psymtab.c (partial_map_symtabs_matching_filename)
11639 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11640 with psymtab_to_fullname.
11641 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11642 by symtab_to_filename_for_display calls.
11643 (stpy_get_filename): New variable filename, initialize it, use instead
11644 of symtab->filename refererences.
11645 (salpy_str): Make variable filename const char *. Replace
11646 symtab->filename refererences by symtab_to_filename_for_display calls.
11647 * skip.c: Include source.h and filenames.h.
11648 (skip_file_command): Remove const from the symtab variable. Replace
11649 symtab->filename refererences by symtab_to_fullname call.
11650 (function_name_is_marked_for_skip): New variables searched_for_fullname
11651 and fullname. Use them to search also with symtab's fullname.
11652 * source.c (find_source_lines): Replace symtab->filename refererences
11653 by symtab_to_filename_for_display calls.
11654 (print_source_lines_base): New variable filename, use it instead of
11655 symtab->filename. Replace symtab->filename refererences by
11656 symtab_to_filename_for_display calls.
11657 (line_info, forward_search_command): Replace symtab->filename
11658 refererences by symtab_to_filename_for_display calls.
11659 (reverse_search_command): Replace symtab->filename refererences by
11660 symtab_to_filename_for_display calls. New variable filename for it.
11661 * stack.c (frame_info): Likewise.
11662 * symmisc.c: Include source.h.
11663 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11664 (maintenance_info_symtabs): Replace symtab->filename refererences by
11665 symtab_to_filename_for_display calls.
11666 * symtab.c (iterate_over_some_symtabs): Call
11667 compare_filenames_for_search also with symtab_to_fullname.
11668 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11669 symtab->filename refererences by symtab_to_filename_for_display calls.
11670 (find_line_symtab): Replace symtab->filename refererences by
11671 symtab_to_filename_for_display calls.
11672 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11673 (print_symbol_info): Make the last parameter const char *. New
11674 variable s_filename. Use it in the function.
11675 (symtab_symbol_info): Make the last_filename variable const char *.
11676 Replace symtab->filename refererences by symtab_to_filename_for_display
11677 calls.
11678 (rbreak_command): New variable fullname. Use it. Replace
11679 symtab->filename refererence by symtab_to_filename_for_display call.
11680 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11681 (print_one_static_tracepoint_marker): Replace symtab->filename
11682 refererences by symtab_to_filename_for_display calls.
11683 * tui/tui-source.c (tui_set_source_content): New variables filename and
11684 s_filename. Replace symtab->filename refererences by this variable.
11685 Replace other symtab->filename refererences by
11686 symtab_to_filename_for_display calls.
11687
11688 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11689 Jan Kratochvil <jan.kratochvil@redhat.com>
11690
11691 Add a new variable that controls a way in which filenames are
11692 displayed.
11693 * NEWS (set filename-display): New entry.
11694 * source.c (filename_display_basename, filename_display_relative)
11695 (filename_display_absolute, filename_display_kind_names)
11696 (filename_display_string, show_filename_display_string)
11697 (symtab_to_filename_for_display): New.
11698 (_initialize_source): Added initialization of 'filename-display'
11699 variable.
11700 * source.h (symtab_to_filename_for_display): Added declaration.
11701 * stack.c (print_frame): Added new variable and calling of a new
11702 function and condition with this variable. Changed third argument of
11703 calling of a function.
11704
11705 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11708 Rename field reference filename to fullname.
11709 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11710 fullname. New comment for it.
11711 * tui/tui-source.c (tui_set_source_content): Rename field reference
11712 filename to fullname. Initialize field by symtab_to_fullname now.
11713 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11714 reference filename to fullname. Use symtab_to_fullname during
11715 comparison.
11716
11717 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11718
11719 Code cleanup.
11720 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11721 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11722 filename to fullname. Rename variable this_name to this_fullname.
11723 Lowercase FILENAME_CMP call.
11724 (dw2_find_symbol_file): New comment for the returned string.
11725 (dwarf2_gdb_index_functions): Rename the function to
11726 dw2_expand_symtabs_with_fullname.
11727 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11728 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11729 fullname.
11730 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11731 * symfile.h (struct quick_symbol_functions): Rename field
11732 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11733 parameter filename to fullname. Document returned string meaning for
11734 find_symbol_file.
11735 * symtab.c (find_line_symtab): Rename the called function to
11736 expand_symtabs_with_fullname.
11737
11738 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11739
11740 Code cleanup.
11741 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11742 call of filename_cmp with compare_filenames_for_search.
11743 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11744 is_abs, unify the call of FILENAME_CMP with
11745 compare_filenames_for_search. New gdb_asserts for real_path and name.
11746 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11747 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11748 * symfile.h (struct quick_symbol_functions): Extend the comment for
11749 map_symtabs_matching_filename.
11750 * symtab.c (compare_filenames_for_search): Remove the function comment
11751 relative path requirement. Handle absolute filenames, with a comment.
11752 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11753 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11754 real_path and name. Unify the call of compare_filenames_for_search
11755 with FILENAME_CMP.
11756 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11757
11758 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11759
11760 Code cleanup.
11761 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11762 source_file references by symtab field references. Remove variables
11763 sal and fullname.
11764 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11765 (clear_command, say_where): Replace bp_location field source_file
11766 references by symtab field references.
11767 (bp_location_dtor): Remove the source_file reference.
11768 (update_static_tracepoint): Replace bp_location field source_file
11769 references by symtab field references.
11770 (breakpoint_free_objfile): New function.
11771 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11772 Replace the field source_file by field symtab, extend its comment.
11773 (breakpoint_free_objfile): New declaration.
11774 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11775 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11776 field source_file references by symtab field references.
11777
11778 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11779
11780 Replace xfullpath calls by gdb_realpath calls.
11781 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11782 function comment.
11783 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11784 Remove it from the iterate_over_some_symtabs call.
11785 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11786 Remove it from the dw2_map_expand_apply calls, remove a block handling
11787 it.
11788 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11789 Remove it from the iterate_over_some_symtabs call.
11790 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11791 Remove it from the partial_map_expand_apply calls, remove a block
11792 handling it. Drop gdb_realpath call and cleanups from the real_path
11793 handling.
11794 * source.c (openp): Drop the comment part about xfullpath. Replace
11795 xfullpath calls by gdb_realpath calls.
11796 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11797 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11798 from method map_symtabs_matching_filename and its comment.
11799 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11800 gdb_realpath call.
11801 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11802 remove it also from the function comment, remove a block handling it.
11803 Drop gdb_realpath call and cleanups from the real_path handling.
11804 (iterate_over_symtabs): Drop variable full_path and its use.
11805 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11806 * utils.c (xfullpath): Remove.
11807 * utils.h (xfullpath): Remove.
11808
11809 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11810
11811 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11812 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11813 (ALLDEPFILES): Add ppc64-tdep.c.
11814 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11815 ppc64-tdep.o to gdb_target_obs.
11816 * ppc64-tdep.h: New file.
11817 * ppc64-tdep.c: New file.
11818 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11819 ppc-linux-tdep.c to here.
11820 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11821 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11822 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11823 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11824 from ppc-linux-tdep.c to here.
11825 (ppc64_convert_from_func_ptr_addr): Rename from
11826 ppc64_linux_convert_from_func_ptr_addr to
11827 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11828 here.
11829 * rs6000-tdep.c:
11830 (read_insn): Move from ppc-linux-tdep.c to here.
11831 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11832 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11833 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11834 Removed above functions.
11835 (ppc_linux_init_abi): Adjust.
11836
11837 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11838
11839 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11840
11841 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11842
11843 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11844
11845 2013-02-01 Pedro Alves <palves@redhat.com>
11846
11847 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11848 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11849
11850 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11851
11852 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11853 files with no separate debug info.
11854 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11855 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11856 only for files with no separate debug info.
11857
11858 2013-01-31 Tom Tromey <tromey@redhat.com>
11859
11860 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11861 change type.
11862 (struct jit_program_space_data): Rename from jit_inferior_data.
11863 Update comments.
11864 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11865 Change return type. Attach data to program space.
11866 (jit_program_space_data_cleanup): Rename from
11867 jit_inferior_data_cleanup; change argument type.
11868 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11869 change type.
11870 (jit_register_code): Update.
11871 (jit_update_inferior_cache): Remove.
11872 (jit_breakpoint_deleted): Get jit data from the location's program
11873 space.
11874 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11875 'ps_data', change type.
11876 (jit_inferior_init, jit_breakpoint_re_set_internal)
11877 (jit_event_handler): Update.
11878 (free_objfile_data): Get data from objfile's program space.
11879 (_initialize_jit): Update.
11880
11881 2013-01-31 Tom Tromey <tromey@redhat.com>
11882
11883 PR gdb/13987:
11884 * jit.c (struct jit_inferior_data) <cached_code_address,
11885 jit_breakpoint>: New fields.
11886 (jit_breakpoint_re_set_internal): Fix logging. Only create
11887 breakpoint if cached address has changed.
11888 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11889 functions.
11890 (_initialize_jit): Register breakpoint deleted observer.
11891
11892 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11893
11894 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11895 (save_infcall_suspend_state): Ifdef out unused inf.
11896 (restore_infcall_suspend_state): Ifdef out unused inf.
11897 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11898 (jit_frame_sniffer): Remove unused inf_data.
11899
11900 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11901
11902 * c-exp.y (classify_inner_name): Remove unused type.
11903 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11904 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11905 need_escape.
11906 (c_get_string): Remove unused kind.
11907 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11908
11909 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11910
11911 * charset.c (intermediate_encoding): Remove unused i.
11912 * completer.c (signal_completer): Remove unused i.
11913 * continuations.c (discard_my_continuations_1): Remove unused
11914 continuation_ptr.
11915 * corelow.c (core_close): Remove unuseD name.
11916 (get_core_siginfo): Remove unused pid.
11917 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11918 i, cps.
11919 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11920 (loclist_describe_location): Remove unused first.
11921 * event-top.c (command_line_handler): Remove unused got_eof.
11922 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11923 (resize_section_table): Remove unused old_value.
11924 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11925 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11926 * i386-tdep.c (i386_process_record): Remove unused rex.
11927 * infcmd.c (get_return_value): Remove unused uiout.
11928 * jv-lang.c (type_from_class): Remove unused is_array.
11929 * jv-valprint.c (java_val_print): Remove unused i.
11930 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11931 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11932 * m2-typeprint.c (m2_print_type): Remove unused code.
11933 * macroexp.c (get_character_constant): Remove unused body_start.
11934 (macro_stringify): Remove unused result.
11935 * objc-lang.c (find_methods): Remove unused gdbarch.
11936 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11937 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11938 * stack.c (print_frame_args): Remove unused summary.
11939 * thread.c (thread_apply_command): Remove unused p.
11940 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11941 * valops.c (search_struct_method): Remove unused skip.
11942 * valprint.c (generic_val_print): Remove unused byte_order.
11943 * varobj.c (varobj_update): Remove unused changed.
11944 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11945 (alias_command): Remove unused c.
11946 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11947 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11948 format.
11949 (mi_cmd_data_write_memory): Remove unused word_format.
11950 (mi_cmd_data_write_memory_bytes): Remove unused r.
11951 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11952 p_start, p_end.
11953 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11954 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11955 line_width.
11956
11957 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11958
11959 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11960 * symtab.c (iterate_over_symtabs): Remove unused s.
11961 (find_pc_sect_symtab): Remove unused pspAce.
11962 (find_pc_sect_line): Remove unused alt_symtab.
11963 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11964 (completion_list_add_name): Remove unused newsize.
11965
11966 2013-01-31 Tom Tromey <tromey@redhat.com>
11967
11968 PR c++/14998:
11969 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11970 TYPE_CODE_FUNC.
11971
11972 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11973
11974 * target.c (target_read_string): Remove unused origlen.
11975
11976 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11977
11978 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11979 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11980 * ax-general.c (ax_print): Remove unused is_float.
11981 * blockframe.c (block_innermost_frame): Remove unused start, end.
11982 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11983
11984 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11985
11986 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11987 (svr4_read_so_list): Remove unused lmo.
11988 * solib-target.c (solib_target_relocate_section_addresses): Remove
11989 unused flags.
11990
11991 2013-01-30 Tom Tromey <tromey@redhat.com>
11992
11993 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11994
11995 2013-01-30 Tom Tromey <tromey@redhat.com>
11996
11997 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11998 * utils.c (gnu_debuglink_crc32): Remove.
11999 * utils.h (gnu_debuglink_crc32): Don't declare.
12000
12001 2013-01-30 Tom Tromey <tromey@redhat.com>
12002
12003 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12004 (read_structure_type, read_enumeration_type): Remove cast.
12005
12006 2013-01-30 Tom Tromey <tromey@redhat.com>
12007
12008 * dwarf2read.c (read_namespace_type): Remove cast.
12009 (read_typedef): Likewise.
12010
12011 2013-01-29 Tom Tromey <tromey@redhat.com>
12012
12013 * dwarf2read.c (free_dwo_file): Remove assert.
12014
12015 2013-01-29 Tom Tromey <tromey@redhat.com>
12016
12017 * value.c (deprecated_set_value_modifiable): Remove.
12018 * value.h (deprecated_set_value_modifiable): Remove.
12019
12020 2013-01-28 Doug Evans <dje@google.com>
12021
12022 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12023 to addresses from dwo files.
12024
12025 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12026
12027 * valops.c (find_overload_match): Remove unused argument 'lax'.
12028 * value.h: Remove unused argument 'lax' from the declaration of
12029 find_overload_match.
12030 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12031 to find_overload_match.
12032 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12033 argument to find_overload_match.
12034
12035 2013-01-25 Tom Tromey <tromey@redhat.com>
12036
12037 * dwarf2read.c (processing_has_namespace_info): Remove.
12038 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12039 (process_die, read_func_scope, dwarf2_start_symtab)
12040 (new_symbol_full): Update.
12041
12042 2013-01-25 Tom Tromey <tromey@redhat.com>
12043
12044 * cp-namespace.c (cp_set_block_scope): Remove.
12045 * cp-support.h (cp_set_block_scope): Remove.
12046 * dbxread.c: Include block.h.
12047 (cp_set_block_scope): New function.
12048 (process_one_symbol): Update.
12049 * dwarf2read.c (read_func_scope): Use block_set_scope.
12050
12051 2013-01-25 Pedro Alves <palves@redhat.com>
12052
12053 * remote.c (add_current_inferior_and_thread): Tweak comment.
12054
12055 2013-01-25 Tom Tromey <tromey@redhat.com>
12056
12057 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12058 (cp_add_using_directive): Add 'copy_names' argument.
12059 * cp-support.h (cp_add_using_directive): Update.
12060 (struct using_direct) <import_src, import_dest, alias,
12061 declaration>: Now const.
12062 * dwarf2read.c (read_import_statement): Use obconcat.
12063 Don't copy names passed to cp_add_using_directive.
12064
12065 2013-01-25 Tom Tromey <tromey@redhat.com>
12066
12067 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12068
12069 2013-01-25 Pedro Alves <palves@redhat.com>
12070
12071 * remote.c (stop_reply_extract_thread): New.
12072 (add_current_inferior_and_thread): New parameter 'wait_status'.
12073 Handle it.
12074 (remote_start_remote): Pass wait status to
12075 add_current_inferior_and_thread.
12076 (extended_remote_run): Update comment.
12077 (extended_remote_create_inferior_1): Pass wait status to
12078 add_current_inferior_and_thread.
12079
12080 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12081 Ulrich Weigand <uweigand@de.ibm.com>
12082
12083 * valarith.c (value_vector_widen): New function for replicating a
12084 scalar into a vector.
12085 (value_binop): Use value_vector_widen to widen scalar to vector
12086 rather than casting, this better matches gcc C behaviour.
12087 * valops.c (value_casst): Update logic for casting between vector
12088 types, and for casting from scalar to vector, try to match gcc C
12089 behaviour.
12090 * value.h (value_vector_widen): Declare.
12091 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12092 function, handle special case for casting scalar to vector.
12093 (opencl_relop): Use opencl_value_cast.
12094 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12095 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12096 in order to use opencl_value_cast.
12097
12098 2013-01-25 Yao Qi <yao@codesourcery.com>
12099
12100 * event-loop.c: Include "queue.h".
12101 (gdb_event_p): New typedef.
12102 (DECLARE_QUEUE_P): Use.
12103 (DEFINE_QUEUE_P): Use.
12104 (async_queue_event): Remove.
12105 (gdb_event_xfree): New.
12106 (initialize_event_loop): New.
12107 (process_event): Use QUEUE macros.
12108 (event_queue): Remove.
12109 (gdb_wait_for_event): Caller update.
12110 (check_async_event_handlers): Likewise.
12111 (poll_timers): Likewise.
12112 * event-loop.h (initialize_event_loop): Declare.
12113 * event-loop.c (gdb_event_xfree): New.
12114 * top.c (gdb_init): Call initialize_event_loop.
12115
12116 2013-01-25 Yao Qi <yao@codesourcery.com>
12117
12118 * event-loop.c (async_queue_event): Remove one parameter
12119 'position'. Remove code handling 'position' == TAIL.
12120 (gdb_wait_for_event): Caller update.
12121 (check_async_event_handlers): Caller update.
12122 (poll_timers): Caller update.
12123 * event-loop.h (enum queue_position): Remove.
12124
12125 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12126
12127 * MAINTAINERS: Update my email.
12128
12129 2013-01-25 Yao Qi <yao@codesourcery.com>
12130
12131 * main.c (print_gdb_help): Remove "--epoch" from the help
12132 message.
12133
12134 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12135
12136 * symtab.c (skip_prologue_using_sal): Consider a file
12137 change the same as an increased line number
12138
12139 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12140
12141 * MAINTAINERS (Write After Approval): Add myself to the list.
12142
12143 2013-01-24 Tom Tromey <tromey@redhat.com>
12144
12145 * ada-lang.h (ada_decode_symbol): Make return type const.
12146 * ada-lang.c (ada_decode_symbol): Likewise.
12147
12148 2013-01-23 Doug Evans <dje@google.com>
12149
12150 * linespec.c (find_linespec_symbols): Make static.
12151
12152 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12153
12154 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12155 type on float conversion for complex type.
12156
12157 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12158
12159 Add a new class gdb.Architecture which exposes GDB's
12160 internal representation of architecture via GDB Python API.
12161 * Makefile.in: Add entries corresponding to the new file
12162 python/py-arch.c.
12163 * NEWS (Python Scripting): Add entries for the new class
12164 gdb.Architecture and the new method gdb.Frame.architecture.
12165 * python/py-arch.c: Implement gdb.Architecture class.
12166 * python/py-frame.c (frapy_arch): Implement the method
12167 gdb.Frame.architecture().
12168 (frame_object_methods): Add 'architecture' to the method table.
12169 * python/python-internal.h: Add declarations of new utility
12170 functions.
12171 * python/python.c (_initialize_python): Initialize
12172 gdb.Architecture class.
12173
12174 2013-01-23 Doug Evans <dje@google.com>
12175
12176 Work around binutils/15021.
12177 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12178 type_unit_group out of union s. All uses updated.
12179 (read_index_from_section): Watch for index version 8.
12180 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12181 an imported symtab.
12182 (write_psymtabs_to_index): Increment version number to 8.
12183
12184 2013-01-22 Pedro Alves <palves@redhat.com>
12185
12186 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12187 user-visible.
12188
12189 2013-01-22 Pedro Alves <palves@redhat.com>
12190
12191 * annotate.c (annotate_breakpoints_changed): Rename to ...
12192 (annotate_breakpoints_invalid): ... this. Make static.
12193 (breakpoint_changed): Adjust.
12194 (_initialize_annotate): Always install the observers. Install a
12195 "breakpoint_created" observer.
12196 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12197 * breakpoint.c (set_breakpoint_condition)
12198 (breakpoint_set_commands, do_map_commands_command)
12199 (init_raw_breakpoint, clear_command, set_ignore_count)
12200 (enable_breakpoint_disp): No longer call
12201 annotate_breakpoints_changed.
12202
12203 2013-01-22 Pedro Alves <palves@redhat.com>
12204
12205 * annotate.c: Include "inferior.h".
12206 (frames_invalid_emitted)
12207 (breakpoints_invalid_emitted): New globals.
12208 (async_background_execution_p): New function.
12209 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12210 emitting the annotation if it has already been emitted.
12211 (annotate_display_prompt): New function.
12212 * annotate.h (annotate_display_prompt): New declaration.
12213 * event-top.c: Include annotate.h.
12214 (display_gdb_prompt): Call annotate_display_prompt.
12215
12216 2013-01-22 Pedro Alves <palves@redhat.com>
12217
12218 * annotate.c (ignore_count_changed): Delete.
12219 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12220 (annotate_ignore_count_change): Delete.
12221 (annotate_stopped): Don't emit a delayed breakpoints-changed
12222 annotation.
12223 * annotate.h (annotate_ignore_count_change): Delete.
12224 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12225 annotate_ignore_count_change.
12226
12227 2013-01-22 Tom Tromey <tromey@redhat.com>
12228
12229 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12230 require_rvalue for a register location.
12231
12232 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12233
12234 * breakpoint.c (print_one_breakpoint_location): Add MI
12235 field 'thread-groups' when printing a breakpoint.
12236 (output_thread_groups): New function.
12237
12238 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12239
12240 * python/lib/gdb/commands/explore.py
12241 (CompoundExplorer.explore_expr): Correct the name of a method
12242 being invoked.
12243 (ExploreTypeCommand.invoke): Add a missing 'return'.
12244
12245 2013-01-21 Tom Tromey <tromey@redhat.com>
12246
12247 * gdb_obstack.h (obconcat): Move declaration here, from...
12248 * symfile.h (obconcat): ... here.
12249 * gdb_obstack.c: New file.
12250 (obconcat): Move from...
12251 * symfile.c (obconcat): ... here.
12252 * Makefile.in (SFILES): Add gdb_obstack.c.
12253 (COMMON_OBS): Add gdb_obstack.o.
12254
12255 2013-01-21 Tom Tromey <tromey@redhat.com>
12256
12257 * symfile.h (obsavestring): Don't declare.
12258 * symfile.c (obsavestring): Remove.
12259 * ada-exp.y: Use obstack_copy0, not obsavestring.
12260 * ada-lang.c: Use obstack_copy0, not obsavestring.
12261 * coffread.c: Use obstack_copy0, not obsavestring.
12262 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12263 * dbxread.c: Use obstack_copy0, not obsavestring.
12264 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12265 * jit.c: Use obstack_copy0, not obsavestring.
12266 * mdebugread.c: Use obstack_copy0, not obsavestring.
12267 * psymtab.c: Use obstack_copy0, not obsavestring.
12268 * stabsread.c: Use obstack_copy0, not obsavestring.
12269 * xcoffread.c: Use obstack_copy0, not obsavestring.
12270
12271 2013-01-21 Tom Tromey <tromey@redhat.com>
12272
12273 * dwarf2read.c (fixup_go_packaging): Save package name
12274 on objfile obstack.
12275 * gdbtypes.c (init_type): Don't copy name.
12276
12277 2013-01-21 Tom Tromey <tromey@redhat.com>
12278
12279 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12280 const.
12281 (struct attribute) <u.str>: Now const.
12282 (struct fnfieldlist) <name>: Now const.
12283 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12284 (partial_die_parent_scope): Make return type const.
12285 (partial_die_full_name, add_partial_symbol): Update.
12286 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12287 'name' const.
12288 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12289 (read_file_scope, read_func_scope, dwarf2_add_field)
12290 (dwarf2_add_member_fn, read_structure_type)
12291 (process_enumeration_scope, read_array_type, read_module_type)
12292 (read_base_type, read_subrange_type): Update.
12293 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12294 (new_symbol_full, guess_full_die_structure_name): Update.
12295 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12296 (dwarf2_name): Return const type.
12297 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12298 const.
12299
12300 2013-01-21 Tom Tromey <tromey@redhat.com>
12301
12302 * gdbtypes.c (init_type): Make 'name' const.
12303 * gdbtypes.h (init_type): Update.
12304
12305 2013-01-21 Tom Tromey <tromey@redhat.com>
12306
12307 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12308 (start_symtab): Make 'name' and 'dirname' const. Use
12309 set_last_source_file.
12310 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12311 (last_source_file): Define. Now static.
12312 (set_last_source_file, get_last_source_file): New functions.
12313 * buildsym.h (last_source_file): Don't declare.
12314 (start_symtab): Update.
12315 (set_last_source_file, get_last_source_file): Declare.
12316 * coffread.c (complete_symtab): Use set_last_source_file.
12317 (coff_end_symtab): Likewise.
12318 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12319 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12320 set_last_source_file.
12321 (process_one_symbol): Use get_last_source_file.
12322 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12323 (psymtab_to_symtab_1): Use get_last_source_file.
12324 * xcoffread.c (process_linenos): Use get_last_source_file.
12325 (complete_symtab): Use set_last_source_file.
12326 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12327 (scan_xcoff_symtab): Use set_last_source_file.
12328
12329 2013-01-21 Tom Tromey <tromey@redhat.com>
12330
12331 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12332 (symbol_set_names): Remove casts. Handle field const-ness.
12333
12334 2013-01-21 Tom Tromey <tromey@redhat.com>
12335
12336 * dwarf2read.c (new_symbol_full): Remove cast.
12337 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12338 * symtab.h (symbol_set_demangled_name): Update.
12339
12340 2013-01-21 Tom Tromey <tromey@redhat.com>
12341
12342 * main.c (captured_main): Call bfd_init.
12343
12344 2013-01-21 Tom Tromey <tromey@redhat.com>
12345
12346 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12347 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12348 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12349 * NEWS: Update.
12350
12351 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12352
12353 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12354
12355 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12356
12357 Fix gdb.fortran/common-block.exp crash in PIE mode.
12358 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12359 LOC_COMMON_BLOCK.
12360 * f-valprint.c (info_common_command_for_block): Expect
12361 LOC_COMMON_BLOCK in gdb_assert.
12362 * symtab.h (struct general_symbol_info): Update comment for the
12363 common_block member.
12364 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12365 (enum address_class): New member LOC_COMMON_BLOCK.
12366
12367 2013-01-18 David Blaikie <dblaikie@gmail.com>
12368
12369 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12370
12371 2013-01-18 Tom Tromey <tromey@redhat.com>
12372
12373 PR c++/14999:
12374 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12375 Call require_rvalue.
12376
12377 2013-01-18 Yao Qi <yao@codesourcery.com>
12378
12379 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12380 (dbx_read_symtab): New declaration.
12381 (dbx_psymtab_to_symtab): Delete.
12382 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12383 Rename parameter PST to SELF. Exchanged two parameters.
12384 (start_psymtab): Caller update.
12385 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12386 (dwarf2_read_symtab): New declaration.
12387 (dwarf2_psymtab_to_symtab): Delete.
12388 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12389 Rename parameter PST to SELF. Exchanged two parameters.
12390 (create_partial_symtab): Caller update.
12391 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12392 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12393 Rename parameter PST to SELF. Exchanged two parameters.
12394 (parse_partial_symbols, new_psymtab): Caller update.
12395 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12396 two parameters.
12397 * psymtab.c (psymtab_to_symtab): Caller update.
12398 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12399 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12400 Rename parameter PST to SELF. Exchanged two parameters.
12401 (xcoff_start_psymtab): Caller update.
12402
12403 2013-01-18 Yao Qi <yao@codesourcery.com>
12404
12405 * infrun.c (proceed): Rename local variable 'oneproc' to
12406 'force_step'.
12407
12408 2013-01-17 Doug Evans <dje@google.com>
12409
12410 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12411 (dw2_build_type_unit_groups): Delete. All uses updated.
12412
12413 * symtab.h (struct symbol_search): Add comment.
12414
12415 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12416
12417 * symtab.c (compare_filenames_for_search): New comment for
12418 HAS_DRIVE_SPEC.
12419
12420 2013-01-17 Tom Tromey <tromey@redhat.com>
12421
12422 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12423
12424 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12425
12426 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12427 initialize it by existing make_cleanup. Call new do_cleanups.
12428
12429 2013-01-17 Tom Tromey <tromey@redhat.com>
12430
12431 * cp-abi.c (cp_abi_completer): New function.
12432 (_initialize_cp_abi): Set completer for "set cp-abi".
12433
12434 2013-01-17 Tom Tromey <tromey@redhat.com>
12435
12436 * mem-break.c: Remove obsolete comment.
12437 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12438
12439 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12440
12441 * jit.c (jit_reader_load_command): Interpret the jit reader name
12442 as an absolute path if it begins with a forward slash.
12443
12444 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12445
12446 PR gdb/14550
12447
12448 * jit.c (finalize_symtab): Ensure that only the global block has a
12449 NULL superblock.
12450
12451 2013-01-17 Pedro Alves <palves@redhat.com>
12452
12453 * acinclude.m4: Include ../config/plugins.m4,
12454 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12455 * Makefile.in (aclocal_m4_deps): Update.
12456 * aclocal.m4: Renegerate.
12457
12458 2013-01-16 Doug Evans <dje@google.com>
12459
12460 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12461
12462 2013-01-16 Pedro Alves <palves@redhat.com>
12463 Tom Tromey <tromey@redhat.com>
12464
12465 PR cli/7221:
12466 * NEWS: Add "catch signal".
12467 * breakpoint.c (base_breakpoint_ops): No longer static.
12468 (bpstat_explains_signal): New function.
12469 (init_catchpoint): No longer static.
12470 (base_breakpoint_explains_signal): New function.
12471 (base_breakpoint_ops): Initialize new field.
12472 * breakpoint.h (enum bpstat_signal_value): New.
12473 (struct breakpoint_ops) <explains_signal>: New field.
12474 (bpstat_explains_signal): Remove macro, declare as function.
12475 (base_breakpoint_ops, init_catchpoint): Declare.
12476 * break-catch-sig.c: New file.
12477 * inferior.h (signal_catch_update): Declare.
12478 * infrun.c (signal_catch): New global.
12479 (handle_syscall_event): Update for change to
12480 bpstat_explains_signal.
12481 (handle_inferior_event): Likewise. Always handle random signals
12482 via bpstats.
12483 (signal_cache_update): Check signal_catch.
12484 (signal_catch_update): New function.
12485 (_initialize_infrun): Initialize signal_catch.
12486 * Makefile.in (SFILES): Add break-catch-sig.c.
12487 (COMMON_OBS): Add break-catch-sig.o.
12488
12489 2013-01-16 Tom Tromey <tromey@redhat.com>
12490
12491 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12492 (print_one_catch_solib, print_one_catch_syscall)
12493 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12494 "catch-type".
12495
12496 2013-01-16 Yao Qi <yao@codesourcery.com>
12497
12498 * printcmd.c (current_display_number): Make it static.
12499
12500 2013-01-16 Yao Qi <yao@codesourcery.com>
12501
12502 * infcmd.c (step_once): Don't check '!single_inst' as it was
12503 checked before.
12504
12505 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12506
12507 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12508
12509 2013-01-14 Tom Tromey <tromey@redhat.com>
12510
12511 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12512 set command.
12513 * command.h (add_setshow_string_noescape_cmd): Update.
12514 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12515 (complete_set_gnutarget): New function.
12516 (_initialize_core): Set the "set gnutarget" completer.
12517
12518 2013-01-14 Tom Tromey <tromey@redhat.com>
12519
12520 PR symtab/14442:
12521 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12522 (c_type_print_modifier): Likewise.
12523 * dwarf2read.c (read_tag_restrict_type): New function.
12524 (read_type_die_1): Handle DW_TAG_restrict_type.
12525 * gdbtypes.c (make_restrict_type): New function.
12526 (recursive_dump_type): Handle TYPE_RESTRICT.
12527 * gdbtypes.h (enum type_flag_values): Renumber.
12528 (enum type_instance_flag_value): Add
12529 TYPE_INSTANCE_FLAG_RESTRICT.
12530 (TYPE_RESTRICT): New macro.
12531 (make_restrict_type): Declare.
12532
12533 2013-01-14 Tom Tromey <tromey@redhat.com>
12534
12535 PR symtab/14931:
12536 * psymtab.c (struct psymtab_state): New.
12537 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12538 functions.
12539 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12540 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12541
12542 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12543 Pedro Alves <palves@redhat.com>
12544
12545 PR remote/14786
12546
12547 * remote.c (remote_threads_info): Make a copy of the reply from
12548 qfThreadInfo and use that instead of rs->buf.
12549
12550 2013-01-14 Yao Qi <yao@codesourcery.com>
12551
12552 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12553 (dbx_psymtab_to_symtab): Likewise.
12554 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12555 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12556 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12557
12558 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12559
12560 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12561 make_cleanup_restore_current_language. Call set_language. Move
12562 OLD_CHAIN and INNER_CHAIN cleanups.
12563 * utils.c (do_restore_current_language)
12564 (make_cleanup_restore_current_language): New functions.
12565 * utils.h (make_cleanup_restore_current_language): New declaration.
12566
12567 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12568
12569 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12570 non-existing files.
12571
12572 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12573 non-existing files if FILENAME is already absolute.
12574
12575 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12576
12577 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12578 fputs_filtered. Append trailing newline.
12579
12580 2013-01-11 Yao Qi <yao@codesourcery.com>
12581 Stan Shebs <stan@codesourcery.com>
12582
12583 * psymtab.c (init_psymbol_list): Clarify the comment.
12584
12585 2013-01-11 Yao Qi <yao@codesourcery.com>
12586
12587 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12588 (update_dprintf_command_list): Assert that 'printf_line' is
12589 non-null. Remove condition check.
12590
12591 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12592
12593 Code cleanup.
12594 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12595 type const char *.
12596 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12597 const char *.
12598 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12599
12600 2013-01-09 Anthony Green <green@moxielogic.com>
12601
12602 * cp-abi.c (cplus_print_vtable): Don't return value from void
12603 function.
12604 * ada-lang.c (re_set_catch_assert): Ditto.
12605
12606 2013-01-09 Doug Evans <dje@google.com>
12607
12608 * symfile.h (quick_symbol_functions): Delete member
12609 pre_expand_symtabs_matching. All uses removed.
12610 * dwarf2read.c (dw2_lookup_symbol): Implement.
12611 (dw2_do_expand_symtabs_matching): Delete.
12612 (dw2_pre_expand_symtabs_matching): Delete.
12613 (struct dw2_symtab_iterator): New type.
12614 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12615 (dw2_expand_symtabs_for_function): Rewrite.
12616 (dwarf2_gdb_index_functions): Update.
12617 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12618 (psym_functions): Update.
12619
12620 2013-01-09 Tom Tromey <tromey@redhat.com>
12621
12622 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12623 * configure: Rebuild.
12624 * configure.ac: Add somread.o to the build if BFD has SOM
12625 support.
12626 * somread.c: Include som/aout.h, not syms.h.
12627 (som_symtab_read): Use som_external_symbol_dictionary_record.
12628 Unpack records manually.
12629 (_initialize_somread): Declare.
12630
12631 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12632
12633 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12634 Cast return_address to 64bits.
12635
12636 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12637
12638 * printcmd.c: Remove define of function output_command.
12639 * tracepoint.c: Remove extern of function output_command.
12640 * valprint.h: (output_command): New extern.
12641
12642 2013-01-07 Tom Tromey <tromey@redhat.com>
12643
12644 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12645 Remove.
12646 (objc_language_defn): Use c_printchar, c_printstr,
12647 c_emit_char.
12648
12649 2013-01-07 Tom Tromey <tromey@redhat.com>
12650
12651 PR cli/7719:
12652 * NEWS: Update.
12653 * ada-valprint.c (printstr, print_field_values): Remove
12654 "inspect_it" code.
12655 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12656 code.
12657 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12658 code.
12659 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12660 * main.c (captured_main): Remove "epoch" argument.
12661 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12662 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12663 * p-valprint.c (pascal_object_print_value_fields): Remove
12664 "inspect_it" code.
12665 * printcmd.c (print_command_1): Remove 'inspect' argument.
12666 (print_command, call_command): Update.
12667 (inspect_command): Remove.
12668 (_initialize_printcmd): Make "inspect" an alias for "print".
12669 * top.c (epoch_interface): Remove.
12670 * top.h (epoch_interface): Remove.
12671 * valprint.c (user_print_options): Update.
12672 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12673 * valprint.h (struct value_print_options) <inspect_it>: Remove
12674 field.
12675
12676 2013-01-04 Tom Tromey <tromey@redhat.com>
12677
12678 * valprint.h (read_string): Add 'extern'.
12679
12680 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12681
12682 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12683 used to decide whether to define darwin_read_dyld_info or not.
12684
12685 2013-01-03 Pierre Muller <muller@sourceware.org>
12686
12687 * main.c (relocate_gdb_directory): Avoid calling stat function
12688 if DIR is empty.
12689
12690 2013-01-03 Yao Qi <yao@codesourcery.com>
12691
12692 * psymtab.c (fixup_psymbol_section): Update declaration.
12693 (fixup_psymbol_section): Remove code returning value.
12694
12695 2013-01-03 Yao Qi <yao@codesourcery.com>
12696
12697 * symtab.h: Remove some out of date comments.
12698 (enum exception_event_kind): Move it ...
12699 * breakpoint.c: ... here.
12700
12701 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12702
12703 PR gdb/14405
12704 * darwin-nat.c (darwin_read_dyld_info): Only build if
12705 TASK_DYLD_INFO_COUNT is defined.
12706 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12707 TASK_DYLD_INFO_COUNT is defined.
12708
12709 2013-01-02 Tom Tromey <tromey@redhat.com>
12710
12711 * symfile.h (struct ecoff_debug_hack): Remove.
12712 * objfiles.c: Don't include mdebugread.h.
12713
12714 2013-01-02 Tom Tromey <tromey@redhat.com>
12715
12716 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12717 * configure.ac: Check for Mach-O support in BFD. Update
12718 CONFIG_OBS.
12719 * configure: Rebuild.
12720
12721 2013-01-02 Tom Tromey <tromey@redhat.com>
12722
12723 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12724 * configure.ac: Use GDB_AC_CHECK_BFD.
12725 * configure: Rebuild.
12726
12727 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12728
12729 * MAINTAINERS: Update my email.
12730
12731 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12732
12733 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12734
12735 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12736
12737 * rs6000-nat.c (bss_data_overlap): New function.
12738 (vmap_symtab): Use it to adjust the .bss section's offset.
12739
12740 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12741
12742 Update year range in copyright notice of all files.
12743
12744 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12745
12746 * top.c (print_gdb_version): Update copyright year.
12747
12748 For older changes see ChangeLog-2012.
12749 \f
12750 Local Variables:
12751 mode: change-log
12752 left-margin: 8
12753 fill-column: 74
12754 version-control: never
12755 coding: utf-8
12756 End:
This page took 0.266989 seconds and 5 git commands to generate.